Package: binutils
Version: 2.17-2
Severity: wishlist
Tags: patch

Hello,

the alsa-lib package currently FTBFS on ppc64 because some necessary
32-bit libraries in (/usr)/lib32 are not found by the linker.

The problem is the same as the one which is described in #369052 for amd64.
The amd64 case was solved by introducing the debian specific patch 
debian/patches/127_x86_64_i386_biarch.dpatch.

The attached patch does a similar thing for the ppc64 case.

Regards
Andreas Jochens

diff -urN ../tmp-orig/binutils-2.17/debian/patches/00list.ppc64 
./debian/patches/00list.ppc64
--- ../tmp-orig/binutils-2.17/debian/patches/00list.ppc64       1970-01-01 
00:00:00.000000000 +0000
+++ ./debian/patches/00list.ppc64       2006-09-13 07:50:10.000000000 +0000
@@ -0,0 +1,1 @@
+128_powerpc64_biarch
diff -urN ../tmp-orig/binutils-2.17/debian/patches/128_powerpc64_biarch.dpatch 
./debian/patches/128_powerpc64_biarch.dpatch
--- ../tmp-orig/binutils-2.17/debian/patches/128_powerpc64_biarch.dpatch        
1970-01-01 00:00:00.000000000 +0000
+++ ./debian/patches/128_powerpc64_biarch.dpatch        2006-09-13 
07:03:52.000000000 +0000
@@ -0,0 +1,35 @@
+#!/bin/sh -e
+## 128_powerpc64_biarch.dpatch
+##
+## DP: Description: Add (/usr)/lib32 to the search paths on powerpc64.
+## DP: Author: Andreas Jochens <[EMAIL PROTECTED]>
+## DP: Upstream status: Debian specific
+
+if [ $# -ne 1 ]; then
+    echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
+    exit 1
+fi
+
+[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
+patch_opts="${patch_opts:--f --no-backup-if-mismatch}"
+
+case "$1" in
+       -patch) patch $patch_opts -p1 < $0;;
+       -unpatch) patch $patch_opts -p1 -R < $0;;
+        *)
+                echo >&2 "`basename $0`: script expects -patch|-unpatch as 
argument"
+                exit 1;;
+esac
+
+exit 0
+
[EMAIL PROTECTED]@
++++ binutils/ld/emulparams/elf32ppccommon.sh   2006-03-02 08:50:04.000000000 
+0000
+--- binutils/ld/emulparams/elf32ppccommon.sh   2006-09-13 06:59:26.000000000 
+0000
+@@ -45,5 +45,6 @@
+ 
+ # Look for 64 bit target libraries in /lib64, /usr/lib64 etc., first.
+ case "$EMULATION_NAME" in
++  *32*) LIBPATH_SUFFIX=32 ;;
+   *64*) LIBPATH_SUFFIX=64 ;;
+ esac


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to