develooper Front page | perl.perl5.porters | Postings from January 2005

[perl #33998] [PATCH] Support for GNU/kFreeBSD

Thread Previous | Thread Next
From:
rmh @ debian . org
Date:
January 31, 2005 00:47
Subject:
[perl #33998] [PATCH] Support for GNU/kFreeBSD
Message ID:
rt-3.0.11-33998-106860.15.2609323921089@perl.org
# New Ticket Created by  rmh@debian.org 
# Please include the string:  [perl #33998]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/rt3/Ticket/Display.html?id=33998 >



This is a bug report for perl from rmh@debian.org,
generated with the help of perlbug 1.35 running under perl v5.8.4.

To: perlbug@perl.org
Subject: [PATCH] Support for GNU/kFreeBSD
Reply-To: rmh@debian.org
Message-Id: <5.8.4_76584_1107156125@aragorn>

This is a bug report for perl from rmh@debian.org,
generated with the help of perlbug 1.35 running under perl v5.8.4.

-----------------------------------------------------------------
[Please enter your report here]

Support for GNU/kFreeBSD.  Please could you apply to both 5.9.x and 5.8.x
branches?  I have verified that perl passes the testsuite on each of them.

diff -Nur perl-5.9.1.old/Configure perl-5.9.1/Configure
--- perl-5.9.1.old/Configure	2004-02-26 14:17:41.000000000 +0100
+++ perl-5.9.1/Configure	2005-01-31 02:49:40.000000000 +0100
@@ -7057,7 +7057,7 @@
 : for archive libraries.  Thank you, Linux.
 case "$nm_so_opt" in
 '')	case "$myuname" in
-	*linux*)
+	*linux*|gnu*)
 		if $nm --help | $grep 'dynamic' > /dev/null 2>&1; then
 			nm_so_opt='--dynamic'
 		fi
@@ -7579,7 +7579,7 @@
 			      '') dflt="$dflt +vnocompatwarnings" ;;
 			      esac
 			      ;;	
-			linux|irix*)	dflt='-shared' ;;
+			linux|gnu*|irix*)	dflt='-shared' ;;
 			next)  dflt='none' ;;
 			solaris) dflt='-G' ;;
 			sunos) dflt='-assert nodefinitions' ;;
@@ -7626,7 +7626,7 @@
 EOM
     case "$ccdlflags" in
     '') case "$osname" in
-	    linux|hpux)	dflt='-Wl,-E' ;;
+	    linux|gnu*|hpux)	dflt='-Wl,-E' ;;
 	    next|sunos)	dflt='none' ;;
 	    *)		dflt='none' ;;
 	    esac ;;
@@ -7723,7 +7723,7 @@
 			dflt=libperl.5.$so
 			# XXX How handle the --version stuff for MAB?
 			;;
-		linux*)  # ld won't link with a bare -lperl otherwise.
+		linux*|gnu*)  # ld won't link with a bare -lperl otherwise.
 			dflt=libperl.$so
 			;;
 		cygwin*) # ld links against an importlib
@@ -7810,7 +7810,7 @@
 	freebsd|netbsd|openbsd)
 		xxx="-Wl,-R$shrpdir"
 		;;
-	bsdos|linux|irix*|dec_osf)
+	bsdos|linux|gnu*|irix*|dec_osf)
 		xxx="-Wl,-rpath,$shrpdir"
 		;;
 	next)
diff -Nur perl-5.9.1.old/ext/DynaLoader/hints/gnukfreebsd.pl perl-5.9.1/ext/DynaLoader/hints/gnukfreebsd.pl
--- perl-5.9.1.old/ext/DynaLoader/hints/gnukfreebsd.pl	1970-01-01 01:00:00.000000000 +0100
+++ perl-5.9.1/ext/DynaLoader/hints/gnukfreebsd.pl	2005-01-31 01:53:58.000000000 +0100
@@ -0,0 +1 @@
+do './hints/linux.pl';
diff -Nur perl-5.9.1.old/ext/DynaLoader/hints/gnuknetbsd.pl perl-5.9.1/ext/DynaLoader/hints/gnuknetbsd.pl
--- perl-5.9.1.old/ext/DynaLoader/hints/gnuknetbsd.pl	1970-01-01 01:00:00.000000000 +0100
+++ perl-5.9.1/ext/DynaLoader/hints/gnuknetbsd.pl	2005-01-31 01:53:58.000000000 +0100
@@ -0,0 +1 @@
+do './hints/linux.pl';
diff -Nur perl-5.9.1.old/ext/NDBM_File/hints/gnukfreebsd.pl perl-5.9.1/ext/NDBM_File/hints/gnukfreebsd.pl
--- perl-5.9.1.old/ext/NDBM_File/hints/gnukfreebsd.pl	1970-01-01 01:00:00.000000000 +0100
+++ perl-5.9.1/ext/NDBM_File/hints/gnukfreebsd.pl	2005-01-31 01:53:58.000000000 +0100
@@ -0,0 +1 @@
+do './hints/linux.pl';
diff -Nur perl-5.9.1.old/ext/NDBM_File/hints/gnuknetbsd.pl perl-5.9.1/ext/NDBM_File/hints/gnuknetbsd.pl
--- perl-5.9.1.old/ext/NDBM_File/hints/gnuknetbsd.pl	1970-01-01 01:00:00.000000000 +0100
+++ perl-5.9.1/ext/NDBM_File/hints/gnuknetbsd.pl	2005-01-31 01:53:58.000000000 +0100
@@ -0,0 +1 @@
+do './hints/linux.pl';
diff -Nur perl-5.9.1.old/ext/ODBM_File/hints/gnukfreebsd.pl perl-5.9.1/ext/ODBM_File/hints/gnukfreebsd.pl
--- perl-5.9.1.old/ext/ODBM_File/hints/gnukfreebsd.pl	1970-01-01 01:00:00.000000000 +0100
+++ perl-5.9.1/ext/ODBM_File/hints/gnukfreebsd.pl	2005-01-31 01:53:58.000000000 +0100
@@ -0,0 +1 @@
+do './hints/linux.pl';
diff -Nur perl-5.9.1.old/ext/ODBM_File/hints/gnuknetbsd.pl perl-5.9.1/ext/ODBM_File/hints/gnuknetbsd.pl
--- perl-5.9.1.old/ext/ODBM_File/hints/gnuknetbsd.pl	1970-01-01 01:00:00.000000000 +0100
+++ perl-5.9.1/ext/ODBM_File/hints/gnuknetbsd.pl	2005-01-31 01:53:58.000000000 +0100
@@ -0,0 +1 @@
+do './hints/linux.pl';
diff -Nur perl-5.9.1.old/ext/POSIX/hints/gnukfreebsd.pl perl-5.9.1/ext/POSIX/hints/gnukfreebsd.pl
--- perl-5.9.1.old/ext/POSIX/hints/gnukfreebsd.pl	1970-01-01 01:00:00.000000000 +0100
+++ perl-5.9.1/ext/POSIX/hints/gnukfreebsd.pl	2005-01-31 01:53:58.000000000 +0100
@@ -0,0 +1 @@
+do './hints/linux.pl';
diff -Nur perl-5.9.1.old/ext/POSIX/hints/gnuknetbsd.pl perl-5.9.1/ext/POSIX/hints/gnuknetbsd.pl
--- perl-5.9.1.old/ext/POSIX/hints/gnuknetbsd.pl	1970-01-01 01:00:00.000000000 +0100
+++ perl-5.9.1/ext/POSIX/hints/gnuknetbsd.pl	2005-01-31 01:53:58.000000000 +0100
@@ -0,0 +1 @@
+do './hints/linux.pl';
diff -Nur perl-5.9.1.old/ext/Storable/hints/gnukfreebsd.pl perl-5.9.1/ext/Storable/hints/gnukfreebsd.pl
--- perl-5.9.1.old/ext/Storable/hints/gnukfreebsd.pl	1970-01-01 01:00:00.000000000 +0100
+++ perl-5.9.1/ext/Storable/hints/gnukfreebsd.pl	2005-01-31 01:53:58.000000000 +0100
@@ -0,0 +1 @@
+do './hints/linux.pl';
diff -Nur perl-5.9.1.old/ext/Storable/hints/gnuknetbsd.pl perl-5.9.1/ext/Storable/hints/gnuknetbsd.pl
--- perl-5.9.1.old/ext/Storable/hints/gnuknetbsd.pl	1970-01-01 01:00:00.000000000 +0100
+++ perl-5.9.1/ext/Storable/hints/gnuknetbsd.pl	2005-01-31 01:53:58.000000000 +0100
@@ -0,0 +1 @@
+do './hints/linux.pl';
diff -Nur perl-5.9.1.old/hints/gnukfreebsd.sh perl-5.9.1/hints/gnukfreebsd.sh
--- perl-5.9.1.old/hints/gnukfreebsd.sh	1970-01-01 01:00:00.000000000 +0100
+++ perl-5.9.1/hints/gnukfreebsd.sh	2005-01-31 02:50:24.000000000 +0100
@@ -0,0 +1,2 @@
+#! /bin/sh
+. ./hints/linux.sh
diff -Nur perl-5.9.1.old/hints/gnuknetbsd.sh perl-5.9.1/hints/gnuknetbsd.sh
--- perl-5.9.1.old/hints/gnuknetbsd.sh	1970-01-01 01:00:00.000000000 +0100
+++ perl-5.9.1/hints/gnuknetbsd.sh	2005-01-31 02:50:29.000000000 +0100
@@ -0,0 +1,2 @@
+#! /bin/sh
+. ./hints/linux.sh


[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
    category=core
    severity=low
---
Site configuration information for perl v5.8.4:

Configured by Debian Project at Fri Dec 17 20:20:03 CET 2004.

Summary of my perl5 (revision 5 version 8 subversion 4) configuration:
  Platform:
    osname=gnukfreebsd, osvers=5.3-2, archname=i386-kfreebsd-gnu-thread-multi
    uname='gnukfreebsd aragorn 5.3-2 #0: thu dec 2 01:55:37 cet 2004 i386 gnukfreebsd '
    config_args='-Dusethreads -Duselargefiles -Dccflags=-DDEBIAN -Dcccdlflags=-fPIC -Darchname=i386-kfreebsd-gnu -Dprefix=/usr -Dprivlib=/usr/share/perl/5.8 -Darchlib=/usr/lib/perl/5.8 -Dvendorprefix=/usr -Dvendorlib=/usr/share/perl5 -Dvendorarch=/usr/lib/perl5 -Dsiteprefix=/usr/local -Dsitelib=/usr/local/share/perl/5.8.4 -Dsitearch=/usr/local/lib/perl/5.8.4 -Dman1dir=/usr/share/man/man1 -Dman3dir=/usr/share/man/man3 -Dsiteman1dir=/usr/local/man/man1 -Dsiteman3dir=/usr/local/man/man3 -Dman1ext=1 -Dman3ext=3perl -Dpager=/usr/bin/sensible-pager -Uafs -Ud_csh -Uusesfio -Uusenm -Duseshrplib -Dlibperl=libperl.so.5.8.4 -Dd_dosuid -des'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=define use5005threads=undef useithreads=define usemultiplicity=define
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='cc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-O2',
    cppflags='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN -fno-strict-aliasing -I/usr/local/include'
    ccversion='', gccversion='3.3.4 (Debian 1:3.3.4-11+kbsd)', 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=8
    alignbytes=4, prototype=define
  Linker and Libraries:
    ld='cc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib
    libs=-lgdbm -lgdbm_compat -ldb -ldl -lm -lpthread -lc -lcrypt
    perllibs=-ldl -lm -lpthread -lc -lcrypt
    libc=, so=so, useshrplib=true, libperl=libperl.so.5.8.4
    gnulibc_version='2.3'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
    cccdlflags='-fPIC', lddlflags='-shared -L/usr/local/lib'

Locally applied patches:
    

---
@INC for perl v5.8.4:
    /etc/perl
    /usr/local/lib/perl/5.8.4
    /usr/local/share/perl/5.8.4
    /usr/lib/perl5
    /usr/share/perl5
    /usr/lib/perl/5.8
    /usr/share/perl/5.8
    /usr/local/lib/site_perl
    .

---
Environment for perl v5.8.4:
    HOME=/home/rmh
    LANG=C
    LANGUAGE (unset)
    LC_ALL=C
    LD_LIBRARY_PATH=/usr/X11R6/lib/
    LOGDIR (unset)
    PATH=~/bin:/usr/games:~/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin
    PERL_BADLANG (unset)
    SHELL=/bin/bash
---
Flags:
    category=core
    severity=low
---
Site configuration information for perl v5.8.4:

Configured by Debian Project at Fri Dec 17 20:20:03 CET 2004.

Summary of my perl5 (revision 5 version 8 subversion 4) configuration:
  Platform:
    osname=gnukfreebsd, osvers=5.3-2, archname=i386-kfreebsd-gnu-thread-multi
    uname='gnukfreebsd aragorn 5.3-2 #0: thu dec 2 01:55:37 cet 2004 i386 gnukfreebsd '
    config_args='-Dusethreads -Duselargefiles -Dccflags=-DDEBIAN -Dcccdlflags=-fPIC -Darchname=i386-kfreebsd-gnu -Dprefix=/usr -Dprivlib=/usr/share/perl/5.8 -Darchlib=/usr/lib/perl/5.8 -Dvendorprefix=/usr -Dvendorlib=/usr/share/perl5 -Dvendorarch=/usr/lib/perl5 -Dsiteprefix=/usr/local -Dsitelib=/usr/local/share/perl/5.8.4 -Dsitearch=/usr/local/lib/perl/5.8.4 -Dman1dir=/usr/share/man/man1 -Dman3dir=/usr/share/man/man3 -Dsiteman1dir=/usr/local/man/man1 -Dsiteman3dir=/usr/local/man/man3 -Dman1ext=1 -Dman3ext=3perl -Dpager=/usr/bin/sensible-pager -Uafs -Ud_csh -Uusesfio -Uusenm -Duseshrplib -Dlibperl=libperl.so.5.8.4 -Dd_dosuid -des'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=define use5005threads=undef useithreads=define usemultiplicity=define
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='cc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-O2',
    cppflags='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN -fno-strict-aliasing -I/usr/local/include'
    ccversion='', gccversion='3.3.4 (Debian 1:3.3.4-11+kbsd)', 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=8
    alignbytes=4, prototype=define
  Linker and Libraries:
    ld='cc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib
    libs=-lgdbm -lgdbm_compat -ldb -ldl -lm -lpthread -lc -lcrypt
    perllibs=-ldl -lm -lpthread -lc -lcrypt
    libc=, so=so, useshrplib=true, libperl=libperl.so.5.8.4
    gnulibc_version='2.3'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
    cccdlflags='-fPIC', lddlflags='-shared -L/usr/local/lib'

Locally applied patches:
    

---
@INC for perl v5.8.4:
    /etc/perl
    /usr/local/lib/perl/5.8.4
    /usr/local/share/perl/5.8.4
    /usr/lib/perl5
    /usr/share/perl5
    /usr/lib/perl/5.8
    /usr/share/perl/5.8
    /usr/local/lib/site_perl
    .

---
Environment for perl v5.8.4:
    HOME=/home/rmh
    LANG=C
    LANGUAGE (unset)
    LC_ALL=C
    LD_LIBRARY_PATH=/usr/X11R6/lib/
    LOGDIR (unset)
    PATH=~/bin:/usr/games:~/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin
    PERL_BADLANG (unset)
    SHELL=/bin/bash


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About