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

Bug#595474: /usr/lib/gcc/powerpc-linux-gnu/4.4/libgcc_s.so missing from gcc-4.4



Package: gcc-4.4
Version: 4.4.4-12
Severity: grave
Tags: patch

In the gcc-4.4 4.4.4-12 upload, the libgcc_s.so symlink is missing on
powerpc.  This breaks the compiler quite badly and needs to be fixed ASAP.
The same bug affects armel, for which binaries have already been accepted;
it does not affect i386, amd64, or ia64, the other architectures for which
binaries have been accepted at this time.

The attached patch should get the ordering right in debian/rules to ensure
the symlink is included in the gcc-4.4 package.  However, I've not been able
to test it yet, and would rather not NMU with an untested patch.  It would be
great if someone could verify this fix on one of the affected archs ASAP.

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable')
Architecture: armel (armv5tel)

Kernel: Linux 2.6.30-1-iop32x
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
diff -u gcc-4.4-4.4.4/debian/changelog gcc-4.4-4.4.4/debian/changelog
--- gcc-4.4-4.4.4/debian/changelog
+++ gcc-4.4-4.4.4/debian/changelog
@@ -1,3 +1,11 @@
+gcc-4.4 (4.4.4-12.1) unstable; urgency=low
+
+  * debian/rules.d/binary-gcc.mk: make sure the libgcc_s.so symlink is
+    moved to the gcc lib dir before trying to put it in a package, otherwise
+    it goes missing on powerpc.
+
+ -- Steve Langasek <vorlon@debian.org>  Sat, 04 Sep 2010 05:50:38 +0000
+
 gcc-4.4 (4.4.4-12) unstable; urgency=low
 
   * Update to SVN 20100902 from the gcc-4_4-branch (r163781).
diff -u gcc-4.4-4.4.4/debian/rules.d/binary-gcc.mk gcc-4.4-4.4.4/debian/rules.d/binary-gcc.mk
--- gcc-4.4-4.4.4/debian/rules.d/binary-gcc.mk
+++ gcc-4.4-4.4.4/debian/rules.d/binary-gcc.mk
@@ -122,8 +122,6 @@
 	rm -rf $(d_gcc)
 	dh_installdirs -p$(p_gcc) $(dirs_gcc)
 
-	$(call misc_gcc_libs,,$(p_gcc))
-
 ifneq ($(DEB_STAGE),stage1) # stage1 builds static libgcc only
 	: # libgcc_s.so may be a linker script on some architectures
 	set -e; \
@@ -137,6 +135,8 @@
 	    $(gcc_lib_dir)/libgcc_s.so.$(GCC_SONAME); \
 	fi
 endif
+	$(call misc_gcc_libs,,$(p_gcc))
+
 ifeq ($(with_libssp),yes)
 	cp -p $(srcdir)/libssp/ChangeLog \
 		$(d_gcc)/$(docdir)/$(p_base)/libssp/changelog

Reply to: