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

Bug#322890: gcc-4.0: Please do not use '/emul/ia32-linux' on ppc64



Package: gcc-4.0
Version: 4.0.1-4
Severity: wishlist
Tags: patch

Please do not use the Debian-amd64 biarch32 installation directory
'/emul/ia32-linux' on ppc64.

Additionally, I think that 'libgcc_s.so.$(GCC_SONAME)' should be
installed in '/usr/lib32' instead of '/lib32'. At least this is
location where it is found on ppc64 without taking any special
measures.

I think eventually Debian-amd64 should also move to use /usr/lib32 instead
of /emul/ia32-linux/usr/lib, but this would have to be coordinated with 
the ia32-libs and glibc packages, of course.

Regards
Andreas Jochens

diff -urN ../tmp-orig/gcc-4.0-4.0.1/debian/rules.d/binary-libgcc.mk ./debian/rules.d/binary-libgcc.mk
--- ../tmp-orig/gcc-4.0-4.0.1/debian/rules.d/binary-libgcc.mk	2005-08-09 06:34:02.000000000 +0000
+++ ./debian/rules.d/binary-libgcc.mk	2005-08-09 06:33:38.000000000 +0000
@@ -127,12 +127,12 @@
 
 	rm -rf $(d_l32gcc)
 
-ifeq ($(distribution),Ubuntu)
+ifneq ($(distribution)-$(DEB_TARGET_ARCH),Debian-amd64)
 	dh_installdirs -p$(p_l32gcc) \
 		$(docdir)/$(p_l32gcc) \
-		lib32
+		$(PF)/lib32
 	mv $(d)/$(PF)/lib32/libgcc_s.so.$(GCC_SONAME) \
-		$(d_l32gcc)/lib32/.
+		$(d_l32gcc)/$(PF)/lib32/.
 else
 	dh_installdirs -p$(p_l32gcc) \
 		$(docdir)/$(p_l32gcc) \
diff -urN ../tmp-orig/gcc-4.0-4.0.1/debian/rules.d/binary-libstdcxx.mk ./debian/rules.d/binary-libstdcxx.mk
--- ../tmp-orig/gcc-4.0-4.0.1/debian/rules.d/binary-libstdcxx.mk	2005-08-09 06:34:02.000000000 +0000
+++ ./debian/rules.d/binary-libstdcxx.mk	2005-08-09 06:33:56.000000000 +0000
@@ -236,7 +236,7 @@
 
 	rm -rf $(d_lib32) $(d_dbg32)
 
-ifeq ($(distribution),Ubuntu)
+ifneq ($(distribution)-$(DEB_TARGET_ARCH),Debian-amd64)
 	dh_installdirs -p$(p_lib32) \
 		$(docdir)/$(p_lib32) \
 		$(PF)/lib32



Reply to: