Bug#636609: perl: FTBFS on hurd-i386

Pino Toscano pino at debian.org
Thu Aug 4 15:00:24 UTC 2011


Package: perl
Version: 5.12.4-1
Severity: important
Tags: patch
User: debian-hurd at lists.debian.org
Usertags: hurd

Hi,

currently[1], perl does not compile, because it cannot find the
Berkeley DB library.

The attached patch adds hints for ext/ODBM_File, and improving the
general "gnu" hints, copying a couple of stuff which makes sense from
the linux.pl hints, like the library patch search, the pthread linking
(needed on hurd).
(Most probably the same patch could be applied to perl 5.14 too,
although I have not tested it.)

[1] https://buildd.debian.org/status/fetch.php?pkg=perl&arch=hurd-i386&ver=5.12.4-2&stamp=1312288288

Thanks,
-- 
Pino
-------------- next part --------------
--- /dev/null
+++ b/ext/ODBM_File/hints/gnu.pl
@@ -0,0 +1 @@
+do './hints/linux.pl' or die $@;
--- a/hints/gnu.sh
+++ b/hints/gnu.sh
@@ -8,10 +8,24 @@
 shift
 libswanted="$*"
 
+# Debian 4.0 puts ndbm in the -lgdbm_compat library.
+libswanted="$libswanted gdbm_compat"
+
+libswanted="$libswanted pthread"
+
 case "$optimize" in
 '') optimize='-O2' ;;
 esac
 
+case "$plibpth" in
+'') plibpth=`gcc -print-search-dirs | grep libraries |
+        cut -f2- -d= | tr ':' $trnl | grep -v 'gcc' | sed -e 's:/$::'`
+    set X $plibpth # Collapse all entries on one line
+    shift
+    plibpth="$*"
+    ;;
+esac
+
 # Flags needed to produce shared libraries.
 lddlflags='-shared'
 


More information about the Perl-maintainers mailing list