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

Re: [PATCH] polystrap-binfmt for preparing the build host



Hi,

2011/6/28 Yann Dirson <dirson@debian.org>:
> As can be seen in your script, the use of binfmt support is not
> without problems.
>
> +        case $ARCH in
> +                alpha|amd64|arm|armeb|i386|m68k|mips|mipsel\
> +               |powerpc|ppc64|sh4|sh4eb|sparc|sparc64)
> +                       BINFMT_ARCH=$ARCH ;;
> +                armel)         BINFMT_ARCH=arm ;;
> +                lpia)          BINFMT_ARCH=i386 ;; # not yet verified FIXME
> +                *) echo "unknown architecture: $ARCH"; exit 1;;
> +        esac
>
> The most prominent problem IMHO is that it requires a system-wide
> setting, and that in turn ties a qemu arch name to a particular
> distro/ABI version.

May I suggest the use of `dpkg-architecture` environment variables?

Cheers,
-- 
 Héctor Orón  -.. . -... .. .- -.   -.. . ...- . .-.. --- .--. . .-.

<free spam>
-- Would you like to make a donation for Debian Conference?
   ** http://debconf11.debconf.org/payments.xhtml **
</free spam>


Reply to: