1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
#!/bin/sh
# On architectures where we sometimes have 64-bit kernels on buildds when we
# want to build for 32-bit userland (seen especially on the experimental
# buildds), make sure we invoke the commands using linux32 otherwise the
# binaries end up with the wrong arch name hardcoded in them
# TODO: Probably changing how the arch name is detected in the build
# scripts would be a more clever idea
DEB_BUILD_ARCH=$(dpkg-architecture -qDEB_BUILD_ARCH)
if [ ${DEB_BUILD_ARCH} = "powerpc" -o ${DEB_BUILD_ARCH} = "i386" -o ${DEB_BUILD_ARCH} = "sparc" -o ${DEB_BUILD_ARCH} = "s390" -o ${DEB_BUILD_ARCH} = "hppa" ]; then
exec /usr/bin/linux32 "$@"
else
exec "$@"
fi
|