Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve general GNU hints, needed for GNU/Hurd #11722

Closed
p5pRT opened this issue Oct 30, 2011 · 7 comments
Closed

Improve general GNU hints, needed for GNU/Hurd #11722

p5pRT opened this issue Oct 30, 2011 · 7 comments

Comments

@p5pRT
Copy link

p5pRT commented Oct 30, 2011

Migrated from rt.perl.org#102516 (status was 'resolved')

Searchable as RT102516$

@p5pRT
Copy link
Author

p5pRT commented Oct 30, 2011

From @jmdh

Created by @jmdh

This is a bug report for perl from dom@​earth.li,
generated with the help of perlbug 1.39 running under perl 5.15.4.

-----------------------------------------------------------------
perl does not currently build on multiarch-enabled GNU/Hurd distributions
(eg Debian unstable); the same changes made to hints/linux.sh should
be made in hints/gnu.sh too. Patch from Pino Toscano attached.

Perl Info

Flags:
    category=core
    severity=medium

Site configuration information for perl 5.15.4:

Configured by dom at Sun Oct 30 21:56:45 UTC 2011.

Summary of my perl5 (revision 5 version 15 subversion 4) configuration:
  Local Commit: afc8aac35d338acc1543b0de07e4339ed9433dc9
  Ancestor: c66e013fd39470e69c07a870bbc2b5474887239d
  Platform:
    osname=gnu, osvers=0.3, archname=i686-AT386-gnu
    uname='gnu hurdtest 0.3 gnu-mach 1.3.99hurd-0.3 i686-at386 gnu '
    config_args='-de -Dusedevel -Dprefix=/home/dom/blead'
    hint=recommended, useposix=true, d_sigaction=define
    useithreads=undef, usemultiplicity=undef
    useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
    use64bitint=undef, use64bitall=undef, uselongdouble=undef
    usemymalloc=y, bincompat5005=undef
  Compiler:
    cc='cc', ccflags ='-D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include',
    optimize='-O2',
    cppflags='-D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include'
    ccversion='', gccversion='4.6.1', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=4
    alignbytes=4, prototype=define
  Linker and Libraries:
    ld='cc', ldflags =' -fstack-protector -L/usr/local/lib'
    libpth=/usr/local/lib /lib/i386-gnu /lib /usr/lib/i386-gnu /usr/lib
    libs=-lgdbm -ldb -ldl -lm -lcrypt -lutil -lpthread -lbsd -lgdbm_compat
    perllibs=-ldl -lm -lcrypt -lutil -lpthread -lbsd
    libc=, so=so, useshrplib=false, libperl=libperl.a
    gnulibc_version='2.13'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
    cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib -fstack-protector'

Locally applied patches:
    


@INC for perl 5.15.4:
    /home/dom/blead/lib/perl5/site_perl/5.15.4/i686-AT386-gnu
    /home/dom/blead/lib/perl5/site_perl/5.15.4
    /home/dom/blead/lib/perl5/5.15.4/i686-AT386-gnu
    /home/dom/blead/lib/perl5/5.15.4
    .


Environment for perl 5.15.4:
    HOME=/home/dom
    LANG=en_GB.UTF-8
    LANGUAGE=en_GB:en
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
    PERL_BADLANG (unset)
    SHELL=/bin/bash

-- 
Dominic Hargreaves | http://www.larted.org.uk/~dom/
PGP key 5178E2A5 from the.earth.li (keyserver,web,email)

@p5pRT
Copy link
Author

p5pRT commented Oct 30, 2011

From @jmdh

hurd-hints.diff
From d6fd7595fcd04b332e7449f59ea298639f10a183 Mon Sep 17 00:00:00 2001
From: Pino Toscano <pino@debian.org>
Date: Wed, 10 Aug 2011 08:11:33 +0300
Subject: Improve general GNU hints, needed for GNU/Hurd.

Bug-Debian: http://bugs.debian.org/636609

Patch-Name: fixes/hurd-hints.diff
---
 ext/ODBM_File/hints/gnu.pl |    1 +
 hints/gnu.sh               |   12 ++++++++++++
 2 files changed, 13 insertions(+), 0 deletions(-)
 create mode 100644 ext/ODBM_File/hints/gnu.pl

diff --git a/ext/ODBM_File/hints/gnu.pl b/ext/ODBM_File/hints/gnu.pl
new file mode 100644
index 0000000..db63567
--- /dev/null
+++ b/ext/ODBM_File/hints/gnu.pl
@@ -0,0 +1 @@
+do './hints/linux.pl' or die $@;
diff --git a/hints/gnu.sh b/hints/gnu.sh
index c1ba2db..f075642 100644
--- a/hints/gnu.sh
+++ b/hints/gnu.sh
@@ -8,10 +8,22 @@ set `echo X "$libswanted "| sed -e 's/ nsl / /' -e 's/ c / pthread /'`
 shift
 libswanted="$*"
 
+# Debian 4.0 puts ndbm in the -lgdbm_compat library.
+libswanted="$libswanted gdbm_compat"
+
 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'
 

@p5pRT
Copy link
Author

p5pRT commented Oct 31, 2011

From @tsee

Thanks, applied. But not tested on Hurd yet. Could you give blead perl
with the patch a whirl?

@p5pRT
Copy link
Author

p5pRT commented Oct 31, 2011

From [Unknown Contact. See original ticket]

Thanks, applied. But not tested on Hurd yet. Could you give blead perl
with the patch a whirl?

@p5pRT
Copy link
Author

p5pRT commented Oct 31, 2011

@tsee - Status changed from 'new' to 'resolved'

@p5pRT p5pRT closed this as completed Oct 31, 2011
@p5pRT
Copy link
Author

p5pRT commented Oct 31, 2011

From @tsee

Thanks, applied. But not tested on Hurd yet. Could you give blead perl
with the patch a whirl?

@p5pRT
Copy link
Author

p5pRT commented Oct 31, 2011

From @jmdh

On Mon, Oct 31, 2011 at 12​:41​:38AM -0700, Steffen Mueller via RT wrote​:

Thanks, applied. But not tested on Hurd yet. Could you give blead perl
with the patch a whirl?

The patch as submitted allows blead (as of yesterday) to build to
completion. Note that there will most likely be some test failures
remaining; there are a few patches in the Debian BTS to check against
blead and forward upstream.

Cheers,
Dominic.

--
Dominic Hargreaves | http​://www.larted.org.uk/~dom/
PGP key 5178E2A5 from the.earth.li (keyserver,web,email)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant