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

Bug#671804: binutils: Various hurd-i386 FTBFS due to ELF management discrepancy



Package: binutils
Version: 2.22-6
Severity: important
Tags: patch
User: debian-hurd@lists.debian.org
Usertags: hurd

Hello,

See for instance 

https://buildd.debian.org/status/fetch.php?pkg=calcoo&arch=hurd-i386&ver=1.3.18-3%2Bb1&stamp=1336056055

We used to drop no-add-needed to avoid these, but we really have to fix
them now.  It seems they do not happen on Linux & kFreeBSD simply due to
a discrepancy in ./ld/emultempl/elf32.em, in the code that looks into
/etc/ld.so.conf*, so please apply the attached patch to fix all these
FTBFS.

Samuel

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.0.4 (SMP w/8 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages binutils depends on:
ii  libc6       2.13-32
ii  libgcc1     1:4.7.0-3
ii  libstdc++6  4.7.0-3
ii  zlib1g      1:1.2.6.dfsg-2

binutils recommends no packages.

Versions of packages binutils suggests:
ii  binutils-doc  2.22-6

-- no debconf information
--- ./ld/emultempl/elf32.em.orig	2012-05-07 02:25:44.786069598 +0200
+++ ./ld/emultempl/elf32.em	2012-05-07 02:27:55.783091094 +0200
@@ -72,7 +72,7 @@
 
 if [ "x${USE_LIBPATH}" = xyes ] ; then
   case ${target} in
-    *-*-linux-* | *-*-k*bsd*-*)
+    *-*-linux-* | *-*-k*bsd*-* | *-*-gnu*)
   fragment <<EOF
 #ifdef HAVE_GLOB
 #include <glob.h>
@@ -376,7 +376,7 @@
 
 EOF
 case ${target} in
-  *-*-linux-* | *-*-k*bsd*-*)
+  *-*-linux-* | *-*-k*bsd*-* | *-*-gnu*)
     fragment <<EOF
 	  {
 	    struct bfd_link_needed_list *l;
@@ -627,7 +627,7 @@
     # FreeBSD
     ;;
 
-    *-*-linux-* | *-*-k*bsd*-*)
+    *-*-linux-* | *-*-k*bsd*-* | *-*-gnu*)
       fragment <<EOF
 /* For a native linker, check the file /etc/ld.so.conf for directories
    in which we may find shared libraries.  /etc/ld.so.conf is really
@@ -1321,7 +1321,7 @@
     # FreeBSD
     ;;
 
-    *-*-linux-* | *-*-k*bsd*-*)
+    *-*-linux-* | *-*-k*bsd*-* | *-*-gnu*)
     # Linux
       fragment <<EOF
 	  if (gld${EMULATION_NAME}_check_ld_so_conf (l->name, force))

Reply to: