[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#360491: "uname -m" broken in ia32 chroot



Robert Millan wrote:
Package: libc6
Version: 2.3.6-3
Severity: important

When running an i386-linux-gnu chroot on an x86_64-linux-gnu host:

$ uname -m
x86_64

This seriously breaks lots of native autoconf checks.  A massive number of
packages will FTBFS or work improperly when built inside the chroot.

Just install linux32, and use this wrapper to run your code.

I think uname() should have hardcoded (#ifdef __x86_64__) machine name instead
of asking Linux which doesn't always know.

Using this solution would mean that you can't detect if a 32-bit or a 64-bit kernel is running, which is sometimes necessary. This is not acceptable.


--
  .''`.  Aurelien Jarno	            | GPG: 1024D/F1BCDB73
 : :' :  Debian developer           | Electrical Engineer
 `. `'   aurel32@debian.org         | aurelien@aurel32.net
   `-    people.debian.org/~aurel32 | www.aurel32.net



Reply to: