Package: openbios-ppc Version: 1.0+svn1047-1 Severity: serious The package fails to build from source, on either squeeze or wheezy. This is because of wrong code in config/scripts/switch-arch:
select_prefix() { for TARGET in ${1}-linux-gnu- ${1}-linux- ${1}-elf- ${1}-eabi- do if type ${TARGET}gcc > /dev/null 2>&1 then return fi done if [ "$ARCH" = "$HOSTARCH" ]; then return fi echo "ERROR: no ${1} cross-compiler found !" 1>&2 exit 1 } On a powerpc debian install of either squeeze or wheezy, there's powerpc-linux-gnu-gcc (which is just a symlink to gcc), but no powerpc-linux-gnu-{as,ld,ranlib,strip}. Yet, based on the code above, the script is setting TARGET variable to powerpc-linux-gnu-, which gets written to obj-ppc/config.mak. In squeeze backport of openbios-ppc package I worked around this by setting TARGET= when calling make from debian/rules to build stuff in obj-ppc: cd obj-ppc && $(MAKE) all TARGET= Proper fix, I think, is to swap for-loop and if statement in the above function, select_prefix, to test for ARCH being the same as HOSTARCH before other variants. Now I wonder how this package has been built to be uploaded to debian... Thanks, /mjt -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org