Bug#320141: FTBFS on GNU/kFreeBSD
Package: tetex-bin
Version: 3.0-4
Severity: important
Tags: experimental patch
Hi,
I have seen your post on debian-release about this new experimental
version. I have tested it on GNU/kFreeBSD, but it fails to build from
source due to outdated libtool. The solution is to update libtool files
and regenerate configure. To reduce the size of the patch, I have only
kept the necessary changes to support GNU/kFreeBSD. You will find
attached a patch to support this system.
Could you please include it in the next upload? BTW, it would also be
nice to ask upstream to update the libtool stuff.
Thanks for your cooperation,
Aurelien
-- System Information:
Debian Release: testing/unstable
Architecture: kfreebsd-i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: GNU/kFreeBSD 5.3-17
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Versions of packages tetex-bin depends on:
ii debconf 1.4.52 Debian configuration management sy
ii debianutils 2.14.1 Miscellaneous utilities specific t
ii dpkg 1.13.10+kbsd Package maintenance system for Deb
ii ed 0.2-20 The classic unix line editor
ii libc0.1 2.3-1+kbsd.10 GNU C Library: Shared libraries an
ii libgcc1 1:4.0.1-2 GCC support library
ii libice6 6.8.2.dfsg.1-4+kbsd Inter-Client Exchange library
ii libkpathsea3 2.0.2-30 path search library for teTeX (run
ii libpaper1 1.1.14-3 Library for handling paper charact
ii libpng12-0 1.2.8rel-1 PNG library - runtime
ii libsm6 6.8.2.dfsg.1-4+kbsd X Window System Session Management
ii libstdc++5 1:3.3.6-7+kbsd The GNU Standard C++ Library v3
ii libt1-5 5.0.2-3 Type 1 font rasterizer library - r
ii libwww0 5.4.0-9+kbsd The W3C WWW library
ii libx11-6 6.8.2.dfsg.1-4+kbsd X Window System protocol client li
ii libxaw7 6.8.2.dfsg.1-4+kbsd X Athena widget set library
ii libxext6 6.8.2.dfsg.1-4+kbsd X Window System miscellaneous exte
ii libxmu6 6.8.2.dfsg.1-4+kbsd X Window System miscellaneous util
ii libxt6 6.8.2.dfsg.1-4+kbsd X Toolkit Intrinsics
ii mime-support 3.34-1 MIME files 'mime.types' & 'mailcap
ii perl 5.8.7-3 Larry Wall's Practical Extraction
ii sed 4.1.4-2 The GNU sed stream editor
ii tetex-base 2.0.2c-8 Basic library files of teTeX
ii ucf 2.000 Update Configuration File: preserv
ii xlibs 6.8.2.dfsg.1-4+kbsd X Window System client libraries m
ii zlib1g 1:1.2.3-1 compression library - runtime
Versions of packages tetex-bin recommends:
ii dialog 1.0-20050306-1 Displays user-friendly dialog boxe
pn perl-tk <none> (no description available)
pn psutils <none> (no description available)
ii texi2html 1.76-1 Convert Texinfo files to HTML
-- debconf information excluded
diff -u tetex-bin-3.0/debian/patches/patchlist.mk tetex-bin-3.0/debian/patches/patchlist.mk
--- tetex-bin-3.0/debian/patches/patchlist.mk
+++ tetex-bin-3.0/debian/patches/patchlist.mk
@@ -9,7 +9,7 @@
# define patches
patchnames = patch-deb patch-src patch-texdoc patch-texdoctk \
- patch-texmfcnf patch-tds patch-tmp patch-CAN-2004-0888 \
+ patch-texmfcnf patch-tds patch-libtool patch-tmp patch-CAN-2004-0888 \
patch-CAN-2005-0064 patch-xdvi-300109
build-patches = $(patchnames)
diff -u tetex-bin-3.0/debian/rules tetex-bin-3.0/debian/rules
--- tetex-bin-3.0/debian/rules
+++ tetex-bin-3.0/debian/rules
@@ -272,7 +272,7 @@
debian/sarge-stamp:
cp debian/changelog debian/sarge/changelog.sid
- sed -e s/3.0-4/3.0-3.sarge/ debian/sarge/changelog.sid \
+ sed -e s/3.0-4+kbsd/3.0-3.sarge+kbsd/ debian/sarge/changelog.sid \
> debian/changelog && rm debian/sid-stamp
# need to remake rules
touch debian/rules.in
--- tetex-bin-3.0.orig/debian/patches/patch-libtool
+++ tetex-bin-3.0/debian/patches/patch-libtool
@@ -0,0 +1,87 @@
+--- texk/libtool.m4.orig
++++ texk/libtool.m4
+@@ -1617,7 +1617,7 @@
+ ;;
+
+ # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
+- freebsd*)
++ freebsd* | kfreebsd*-gnu)
+ archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
+ hardcode_libdir_flag_spec='-R$libdir'
+ hardcode_direct=yes
+@@ -2084,7 +2084,7 @@
+ dynamic_linker=no
+ ;;
+
+-freebsd*-gnu*)
++kfreebsd*-gnu)
+ version_type=linux
+ need_lib_prefix=no
+ need_version=no
+@@ -3368,7 +3368,7 @@
+ esac
+ ;;
+
+-freebsd*)
++freebsd* | kfreebsd*-gnu)
+ if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
+ case $host_cpu in
+ i*86 )
+--- texk/configure.orig
++++ texk/configure
+@@ -2860,7 +2860,7 @@
+ esac
+ ;;
+
+-freebsd*)
++freebsd* | kfreebsd*-gnu)
+ if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
+ case $host_cpu in
+ i*86 )
+@@ -4637,7 +4637,7 @@
+ ;;
+
+ # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
+- freebsd*)
++ freebsd* | kfreebsd*-gnu)
+ archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
+ hardcode_libdir_flag_spec='-R$libdir'
+ hardcode_direct=yes
+@@ -5107,7 +5107,7 @@
+ dynamic_linker=no
+ ;;
+
+-freebsd*-gnu*)
++kfreebsd*-gnu)
+ version_type=linux
+ need_lib_prefix=no
+ need_version=no
+--- texk/kpathsea/configure.orig
++++ texk/kpathsea/configure
+@@ -1839,7 +1839,7 @@
+ esac
+ ;;
+
+-freebsd*)
++freebsd* | kfreebsd*-gnu)
+ if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
+ case $host_cpu in
+ i*86 )
+@@ -3616,7 +3616,7 @@
+ ;;
+
+ # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
+- freebsd*)
++ freebsd* | kfreebsd*-gnu)
+ archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
+ hardcode_libdir_flag_spec='-R$libdir'
+ hardcode_direct=yes
+@@ -4086,7 +4086,7 @@
+ dynamic_linker=no
+ ;;
+
+-freebsd*-gnu*)
++kfreebsd*-gnu)
+ version_type=linux
+ need_lib_prefix=no
+ =no
--- tetex-bin-3.0.orig/debian/patches/patch-libtool.files
+++ tetex-bin-3.0/debian/patches/patch-libtool.files
@@ -0,0 +1,3 @@
+texk/libtool.m4
+texk/configure
+texk/kpathsea/configure
Reply to: