<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, May 15, 2017 at 8:34 PM, Niels Thykier <span dir="ltr"><<a href="mailto:niels@thykier.net" target="_blank">niels@thykier.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Michael Stapelberg:<br>
> On Mon, Apr 10, 2017 at 12:55 PM, Niels Thykier <<a href="mailto:niels@thykier.net">niels@thykier.net</a>> wrote:<br>
><br>
>> On Wed, 22 Mar 2017 19:01:54 +0100 Michael Stapelberg<br>
>> <<a href="mailto:stapelberg@debian.org">stapelberg@debian.org</a>> wrote:<br>
>>> Package: debhelper<br>
>>> Version: 10.2.5<br>
>>> Severity: normal<br>
>>><br>
>>> Currently, when trying to build a Debian package whose binary packages<br>
>>> specify “€œArchitecture: arm64“€  on an amd64 machine, I get the<br>
>> following<br>
>>> error message:<br>
>>><br>
>>> raspi3-firmware $ dh clean<br>
>>> dh: No packages to build.<br>
>>><br>
>>> While this is technically correct, the error message could be way<br>
>>> friendlier: I’€™d suggest something along the lines of “No packages to<br>
>>> build (architecture mismatch: got amd64, want arm64)“€ .<br>
>>><br>
>>> What do you think?<br>
>>><br>
>>> [...]<br>
>><br>
>> I am fine with getting patches for the better error messages.<br>
>><br>
><br>
> Perfect. Find attached a patch to that effect.<br>
><br>
><br>
<br>
Thanks,<br>
<br>
I am not sure that it is safe to change the return value of<br>
package_arch().  E.g. it is used to determine the name of the binNMU<br>
changelog, and I suspect things will break if all binNMUs start to use<br>
"changelog.Debian.linux-any.<wbr>gz" regardless architecture. :)<br></blockquote><div><br></div><div>Thanks for the details. I found 4 callers of package_arch, of which 2 merely compare whether package_arch returns 'all'. I think it would be cleaner to move the “turn specified arch into actual build arch” logic into the remaining 2 callsites, rather than keep the old misnomer package_arch around. Do you agree? If not, what do you suggest we do?</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
>><br>
>> Please keep in mind that the "want" part includes architecture<br>
>> wildcards, which debhelper doesn't deal with directly so far.<br>
>><br>
><br>
> I don’t follow. My patch displays the “want” part as-is. Shouldn’t that<br>
> give users all the information they need?<br>
><br>
> [...]<br>
<br>
Right, it will show wildcards and that is what you intended. :)  I agree<br>
it is better than the status quo, so lets go with that.<br>
<br>
Thanks,<br>
~Niels<br>
<br>
<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Best regards,<br>Michael</div>
</div></div>