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

fix the hints for NDBM_File on GNU/Hurd #11727

Closed
p5pRT opened this issue Nov 1, 2011 · 6 comments
Closed

fix the hints for NDBM_File on GNU/Hurd #11727

p5pRT opened this issue Nov 1, 2011 · 6 comments

Comments

@p5pRT
Copy link

p5pRT commented Nov 1, 2011

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

Searchable as RT102680$

@p5pRT
Copy link
Author

p5pRT commented Nov 1, 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.

-----------------------------------------------------------------
Please find attached a patch fixing the following test failures on
Debian GNU/Hurd​:

  cpan/autodie/t/dbmopen.t
  ext/NDBM_File/t/ndbm.t

Original author details and commentary enclosed.

Debian bug report is <http​://bugs.debian.org/645989>

Perl Info

Flags:
    category=library
    severity=medium
    module=NDBM_File

Site configuration information for perl 5.15.4:

Configured by dom at Tue Nov  1 17:05:08 UTC 2011.

Summary of my perl5 (revision 5 version 15 subversion 4) configuration:
  Local Commit: 644f49267bda687a2fcb7b0101c568c76b160b6f
  Ancestor: a058c51605ec2d38bf37f2e2c4f81926e3a90ea9
  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 Nov 1, 2011

From @jmdh

0001-Add-GNU-Hurd-hints-for-NDBM_File.patch
From e65f1123a1fa3f0373f3b1f1125e9310231c2e5a Mon Sep 17 00:00:00 2001
From: Pino Toscano <pino@debian.org>
Date: Mon, 31 Oct 2011 19:21:27 +0000
Subject: [PATCH 1/2] Add GNU/Hurd hints for NDBM_File

currently, there are few tests failing because of a broken NDBM module;
using the same hints as used on Linux (given that apparently the cause
is the same) makes the following tests pass:
  t/op/dbm.t
  cpan/autodie/t/dbmopen.t
  cpan/Memoize/t/errors.t
  cpan/Memoize/t/tie_ndbm.t
  ext/NDBM_File/t/ndbm.t
  lib/AnyDBM_File.t
---
 MANIFEST                   |    1 +
 ext/NDBM_File/hints/gnu.pl |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)
 create mode 100644 ext/NDBM_File/hints/gnu.pl

diff --git a/MANIFEST b/MANIFEST
index 19eab08..592a19e 100644
--- a/MANIFEST
+++ b/MANIFEST
@@ -3677,6 +3677,7 @@ ext/mro/mro.xs			mro extension
 ext/NDBM_File/hints/cygwin.pl	Hint for NDBM_File for named architecture
 ext/NDBM_File/hints/dec_osf.pl	Hint for NDBM_File for named architecture
 ext/NDBM_File/hints/dynixptx.pl	Hint for NDBM_File for named architecture
+ext/NDBM_File/hints/gnu.pl	Hint for NDBM_File for named architecture
 ext/NDBM_File/hints/gnukfreebsd.pl	Hint for NDBM_File for named architecture
 ext/NDBM_File/hints/gnuknetbsd.pl	Hint for NDBM_File for named architecture
 ext/NDBM_File/hints/linux.pl	Hint for NDBM_File for named architecture
diff --git a/ext/NDBM_File/hints/gnu.pl b/ext/NDBM_File/hints/gnu.pl
new file mode 100644
index 0000000..db63567
--- /dev/null
+++ b/ext/NDBM_File/hints/gnu.pl
@@ -0,0 +1 @@
+do './hints/linux.pl' or die $@;
-- 
1.7.7

@p5pRT
Copy link
Author

p5pRT commented Nov 1, 2011

From @jmdh

Note that the original git commit log lists some tests which aren't
affected in blead.

Dominic.

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

@p5pRT
Copy link
Author

p5pRT commented Nov 4, 2011

From @cpansprout

On Tue Nov 01 11​:32​:54 2011, dom wrote​:

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.

-----------------------------------------------------------------
Please find attached a patch fixing the following test failures on
Debian GNU/Hurd​:

cpan/autodie/t/dbmopen.t
ext/NDBM_File/t/ndbm.t

Thank you. Applied as f0d0a20.

--

Father Chrysostomos

@p5pRT
Copy link
Author

p5pRT commented Nov 4, 2011

The RT System itself - Status changed from 'new' to 'open'

@p5pRT
Copy link
Author

p5pRT commented Nov 4, 2011

@cpansprout - Status changed from 'open' to 'resolved'

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