Package: libtool
Version: 1.5.22-2
Severity: wishlist
Tags: patch
Hi,
Please find attached a patch to support kfreebsd-amd64. It consists of two
parts:
- Don't build depends on gcj for kfreebsd-amd64 (just like kfreebsd-i386).
- Fix anon_versioning for kfreebsd*-gnu. The problem has been detected when
building glib2.0 on kfreebsd-amd64, probably because the amd64 is more
sensitive to relocations and non PIC code (or i386 is less sensible than
other architectures :-), but the fix is common to all GNU/kFreeBSD
platforms.
It would be nice if you could apply it in the next upload.
Thanks in advance,
Aurelien
-- System Information:
Debian Release: testing/unstable
Architecture: kfreebsd-amd64 (x86_64)
Shell: /bin/sh linked to /bin/bash
Kernel: GNU/kFreeBSD 6.0-1-amd64-k8
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Versions of packages libtool depends on:
ii autotools-dev 20060223.1 Update infrastructure for config.{
ii cpp 4:4.0.2-2 The GNU C preprocessor (cpp)
ii file 4.15-2+kbsd Determines file type using "magic"
ii gcc [c-compiler] 4:4.0.2-2 The GNU C compiler
ii gcc-3.4 [c-compiler] 3.4.5-2+kbsd The GNU C compiler
ii gcc-4.0 [c-compiler] 4.0.2-10+kbsd The GNU C compiler
ii libc0.1-dev [libc6-de 2.3.6-3+kbsd.r1284 GNU C Library: Development Librari
Versions of packages libtool recommends:
ii libltdl3-dev 1.5.22-2+kbsd.1 A system independent dlopen wrappe
-- no debconf information
diff -u libtool-1.5.22/debian/control libtool-1.5.22/debian/control
--- libtool-1.5.22/debian/control
+++ libtool-1.5.22/debian/control
@@ -1,5 +1,5 @@
Source: libtool
-Build-Depends: debhelper (>= 4.0), texi2html, texinfo, file, g77 |
fortran77-compiler, gcj [!mips !mipsel !netbsd-i386 !hurd-i386 !kfreebsd-i386],
automake1.9, autoconf, autotools-dev, dpatch
+Build-Depends: debhelper (>= 4.0), texi2html, texinfo, file, g77 |
fortran77-compiler, gcj [!mips !mipsel !netbsd-i386 !hurd-i386 !kfreebsd-i386
!kfreebsd-amd64], automake1.9, autoconf, autotools-dev, dpatch
Section: devel
Priority: optional
Maintainer: Kurt Roeckx <[EMAIL PROTECTED]>
--- libtool-1.5.22.orig/debian/patches/anon_versioning_kfreebsd.dpatch
+++ libtool-1.5.22/debian/patches/anon_versioning_kfreebsd.dpatch
@@ -0,0 +1,33 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## anon_versioning_kfreebsd.dpatch by Aurelien Jarno <[EMAIL PROTECTED]>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
[EMAIL PROTECTED]@
+--- libtool.m4.orig 2006-02-28 13:43:10.000000000 +0100
++++ libtool.m4 2006-03-07 22:05:08.000000000 +0100
+@@ -5589,6 +5589,23 @@
+ fi
+ ;;
+
++ kfreebsd*-gnu)
++ if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
++ tmp_addflag=
++ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs
$deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
++
++ if test $supports_anon_versioning = yes; then
++ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" >
$output_objdir/$libname.ver~
++ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
++ $echo "local: *; };" >> $output_objdir/$libname.ver~
++ $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags
${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver
-o $lib'
++ fi
++ _LT_AC_TAGVAR(link_all_deplibs, $1)=no
++ else
++ _LT_AC_TAGVAR(ld_shlibs, $1)=no
++ fi
++ ;;
++
+ solaris*)
+ if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no