File: linux32-wrapper

package info (click to toggle)
gridengine 8.1.9%2Bdfsg-10
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 56,880 kB
  • sloc: ansic: 432,689; java: 87,068; cpp: 31,958; sh: 29,429; jsp: 7,757; perl: 6,336; xml: 5,828; makefile: 4,701; csh: 3,928; ruby: 2,221; tcl: 1,676; lisp: 669; yacc: 519; python: 503; lex: 361; javascript: 200
file content (19 lines) | stat: -rwxr-xr-x 602 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/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)

case ${DEB_BUILD_ARCH} in
powerpc|i386|sparc|s390|hppa|armel|armhf|mips|mipsel)
    exec /usr/bin/linux32 "$@";;
*)
    exec "$@";;
esac