Bug#636609: perl: FTBFS on hurd-i386

2011-08-09 Thread Samuel Thibault
The issue has become particularly important since newer libc breaks old
perl...

Samuel



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#636609: perl: FTBFS on hurd-i386

2011-08-09 Thread Niko Tyni
On Tue, Aug 09, 2011 at 08:12:58PM +0200, Samuel Thibault wrote:
 The issue has become particularly important since newer libc breaks old
 perl...

Ah, that's unfortunate. Thanks for the note, I'll upload a fixed perl soon.
-- 
Niko Tyni   nt...@debian.org



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#636609: perl: FTBFS on hurd-i386

2011-08-05 Thread Niko Tyni
On Thu, Aug 04, 2011 at 05:00:24PM +0200, Pino Toscano wrote:
 Package: perl
 Version: 5.12.4-1
 Severity: important
 Tags: patch
 User: debian-h...@lists.debian.org
 Usertags: hurd

 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).

Thanks.

The other things look fine to me, but about this one:

 +libswanted=$libswanted pthread

hints/gnu.sh already has

set `echo X $libswanted | sed -e 's/ nsl / /' -e 's/ c / pthread /'`

which to my eye looks pthread already ends up in libswanted (because
Configure includes 'c' there unconditionally.) Isn't this enough? Is
it broken? Does pthread need to be the last library in the list?

(If this is related to the libdb_needs_pthread block in hints/linux.sh,
 the whole libdb.so test probably needs to be copied into gnu.sh too
 for upstreaming this properly.)
-- 
Niko Tyni   nt...@debian.org



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#636609: perl: FTBFS on hurd-i386

2011-08-05 Thread Pino Toscano
Alle venerdì 5 agosto 2011, Niko Tyni ha scritto:
 On Thu, Aug 04, 2011 at 05:00:24PM +0200, Pino Toscano wrote:
  Package: perl
  Version: 5.12.4-1
  Severity: important
  Tags: patch
  User: debian-h...@lists.debian.org
  Usertags: hurd
  
  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).
 
 Thanks.
 
 The other things look fine to me, but about this one:
  +libswanted=$libswanted pthread
 
 hints/gnu.sh already has
 
 set `echo X $libswanted | sed -e 's/ nsl / /' -e 's/ c / pthread
 /'`
 
 which to my eye looks pthread already ends up in libswanted (because
 Configure includes 'c' there unconditionally.) Isn't this enough?

To be honest that part gave me a small doubt, so I decided to put it 
anyway. I'll trust you in that, so that pthread addition in my patch can 
go.

Thanks,
-- 
Pino Toscano


signature.asc
Description: This is a digitally signed message part.


Bug#636609: perl: FTBFS on hurd-i386

2011-08-04 Thread Pino Toscano
Package: perl
Version: 5.12.4-1
Severity: important
Tags: patch
User: debian-h...@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=perlarch=hurd-i386ver=5.12.4-2stamp=1312288288

Thanks,
-- 
Pino
--- /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'