Re: assumptions about the build environment.
On Thu, 2012-09-27 at 13:14:49 +0100, Wookey wrote:
> But the case of uname _is_ easy to deal with - use dpkg-architecture.
Well, not really if the patch is supposed to go upstream, given that
dpkg-architecture is not a distribution-neutral interface.
In most of the cases uname is wrong because the build system should
be checking for features instead of hardcoded lists of architectures
and because its output is not really normalized across different
operating systems, or as mentioned on this thread the detection should
really be delayed until run-time. But if the architecture is needed for
whatever reason then using something like config.guess/sub's output and
a way to distinguish between host and build architectures is probably
> And on the original point, anything checking /sys for HOST arch stuff
> is likely to be getting it wrong too - fine for BUILD arch checks.