Package: acpica-unix Version: 20140214-1 Severity: normal Tags: patch User: [email protected] Usertags: origin-ubuntu trusty ubuntu-patch
In Ubuntu, the attached patch was applied to achieve the following: * debian/run-misc-tests.sh: Use dpkg-architecture instead of 'uname -m' This should be reasonably self-explanatory. Not all 64-bit arches have unames that end in "64" but, furthermore, it's fundamentally wrong to believe that uname has any bearing on the userspace wordsize. I could be running an i386 userspace on x86_64, a powerpc userspace on ppc64, etc. This patch fixed an FTBFS on ppc64el, but also sorts out the kernel/user confusion described above. ... Adam -- System Information: Debian Release: jessie/sid APT prefers trusty-updates APT policy: (500, 'trusty-updates'), (500, 'trusty-security'), (500, 'trusty') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 3.13.0-19-generic (SMP w/4 CPU cores) Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash
diff -Nru acpica-unix-20140214/debian/changelog acpica-unix-20140214/debian/changelog diff -Nru acpica-unix-20140214/debian/run-misc-tests.sh acpica-unix-20140214/debian/run-misc-tests.sh --- acpica-unix-20140214/debian/run-misc-tests.sh 2014-02-27 20:30:03.000000000 -0700 +++ acpica-unix-20140214/debian/run-misc-tests.sh 2014-03-29 17:00:29.000000000 -0600 @@ -22,14 +22,7 @@ # create files to compare against $BINDIR/iasl -h -m=`uname -m` -case $m in - s390x | \ - *64) BITS=64 - ;; - *) BITS=32 - ;; -esac +BITS=$(dpkg-architecture -qDEB_HOST_ARCH_BITS) # if the build happens to start before midnight, the date gets # confused in the comparison later on if the build goes past

