Bug#355953: glib2.0: FTBFS on kfreebsd-amd64

Aurelien Jarno aurel32 at debian.org
Wed Mar 8 22:52:55 UTC 2006


Package: glib2.0
Severity: normal
Tags: patch

Hi,

glib2.0 fails to build on kfreebsd-amd64 because we discovered a problem
with libtool on GNU/kFreeBSD that only shows up on this architecture and 
not on kfreebsd-i386.

The problem is being resolved in Debian, see bug#355889, though we may
use another approach, ie merging kfreebsd*-gnu with linux* in the cases
so that we definitely get rid of this kind of bugs.

Meanwhile, and probably also until the problem is fixed in upstream
libtool, I propose a patch to the configure file so that we can build 
glib2.0 on kfreebsd-amd64 from the Debian sources.

It would be nice if you could apply 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)
-------------- next part --------------
Status: in BTS, needed for kfreebsd-amd64 only
Author: aurel32

--- glib2.0-2.8.6.orig/debian/patches/001_anon_versioning_kfreebsd.patch
+++ glib2.0-2.8.6/debian/patches/001_anon_versioning_kfreebsd.patch
@@ -0,0 +1,26 @@
+--- glib-2.8.6/configure	2006-01-18 17:44:49.000000000 +0100
++++ glib-2.8.6-deb/configure	2006-03-08 00:18:27.000000000 +0100
+@@ -10865,6 +10865,23 @@
+       fi
+       ;;
+ 
++    kfreebsd*-gnu)
++      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
++      	tmp_addflag=
++	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
++
++	if test $supports_anon_versioning = yes; then
++	  archive_expsym_cmds='$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
++	link_all_deplibs=no
++      else
++	ld_shlibs=no
++      fi
++      ;;
++
+     solaris* | sysv5*)
+       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
+ 	ld_shlibs=no


More information about the Pkg-gnome-maintainers mailing list