pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/pkgsrc-2009Q3]: pkgsrc/lang/perl5 Pullup ticket #2912 - requested by ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7747defea10b
branches:  pkgsrc-2009Q3
changeset: 399939:7747defea10b
user:      tron <tron%pkgsrc.org@localhost>
date:      Wed Oct 14 09:27:26 2009 +0000

description:
Pullup ticket #2912 - requested by hasso
perl5: portability patch

Revisions pulled up:
- lang/perl5/distinfo                   1.61
- lang/perl5/patches/patch-db           1.1
---
Module Name:    pkgsrc
Committed By:   hasso
Date:           Tue Oct 13 10:38:31 UTC 2009

Modified Files:
        pkgsrc/lang/perl5: distinfo
Added Files:
        pkgsrc/lang/perl5/patches: patch-db

Log Message:
Fix thread library detection on DragonFly. From corecode via PR 42170.

diffstat:

 lang/perl5/distinfo         |   3 +-
 lang/perl5/patches/patch-db |  73 +++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 75 insertions(+), 1 deletions(-)

diffs (94 lines):

diff -r 0a0b3825a99a -r 7747defea10b lang/perl5/distinfo
--- a/lang/perl5/distinfo       Wed Oct 14 09:09:06 2009 +0000
+++ b/lang/perl5/distinfo       Wed Oct 14 09:27:26 2009 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.60 2009/07/24 04:58:56 schmonz Exp $
+$NetBSD: distinfo,v 1.60.2.1 2009/10/14 09:27:26 tron Exp $
 
 SHA1 (perl-5.10.0.tar.gz) = adf73606dd5248af7ccdd735bcaa0e628ea75b3c
 RMD160 (perl-5.10.0.tar.gz) = c6614fc99a162790a703f91085b24a60af903ba2
@@ -20,6 +20,7 @@
 SHA1 (patch-cn) = 7ca2b1ff19f8371637a34ec26779b37d74c74cca
 SHA1 (patch-co) = 811e5c391f9f9f72a3f52e6d590b0b4f1e851325
 SHA1 (patch-da) = 13f576db014ec90df319670703482c7276a1f543
+SHA1 (patch-db) = 3aef75518bfea88cb5166026f04ef4d7c016bc99
 SHA1 (patch-ri) = fc838ec10cf601a580aa1f58eb93c3198a13ff71
 SHA1 (patch-ta) = 60d9ef72db56b9f149f3995b3f526fc32a352bd7
 SHA1 (patch-zc) = a23002397ffaebb243f7683c95c8fb227af90f49
diff -r 0a0b3825a99a -r 7747defea10b lang/perl5/patches/patch-db
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/perl5/patches/patch-db       Wed Oct 14 09:27:26 2009 +0000
@@ -0,0 +1,73 @@
+$NetBSD: patch-db,v 1.1.2.2 2009/10/14 09:27:27 tron Exp $
+
+--- hints/dragonfly.sh.orig    2009-10-09 15:28:17 +0200
++++ hints/dragonfly.sh
+@@ -19,18 +19,10 @@ esac
+ # out here to avoid duplicating them everywhere.
+ case "$osvers" in
+ *)  objformat=`/usr/bin/objformat`
+-    if [ x$objformat = xelf ]; then
+-      libpth="/usr/lib /usr/local/lib"
+-      glibpth="/usr/lib /usr/local/lib"
+-      ldflags="-Wl,-E "
+-      lddlflags="-shared "
+-    else
+-      if [ -e /usr/lib/aout ]; then
+-          libpth="/usr/lib/aout /usr/local/lib /usr/lib"
+-          glibpth="/usr/lib/aout /usr/local/lib /usr/lib"
+-      fi
+-      lddlflags='-Bshareable'
+-    fi
++    libpth="/usr/lib /usr/local/lib"
++    glibpth="/usr/lib /usr/local/lib"
++    ldflags="-Wl,-E "
++    lddlflags="-shared "
+     cccdlflags='-DPIC -fPIC'
+     ;;
+ esac
+@@ -67,43 +59,16 @@ d_voidsig='define'
+ cat > UU/usethreads.cbu <<'EOCBU'
+ case "$usethreads" in
+ $define|true|[yY]*)
+-    lc_r=`/sbin/ldconfig -r|grep ':-lc_r'|awk '{print $NF}'|sed -n '$p'`
+     case "$osvers" in
+-    *)  if [ ! -r "$lc_r" ]; then
+-          cat <<EOM >&4
+-POSIX threads should be supported by FreeBSD $osvers --
+-but your system is missing the shared libc_r.
+-(/sbin/ldconfig -r doesn't find any).
++    *)  ldflags="-pthread $ldflags"
+ 
+-Consider using the latest STABLE release.
+-EOM
+-          exit 1
+-      fi
+-      case "$osvers" in
+-          *)  ldflags="-pthread $ldflags"
+-              ;;
+-      esac
+       # Both in 4.x and 5.x gethostbyaddr_r exists but
+       # it is "Temporary function, not threadsafe"...
+       # Presumably earlier it didn't even exist.
+       d_gethostbyaddr_r="undef"
+       d_gethostbyaddr_r_proto="0"
+-      ;;
+-    esac
+ 
+-    set `echo X "$libswanted "| sed -e 's/ c / c_r /'`
+-    shift
+-    libswanted="$*"
+-    # Configure will probably pick the wrong libc to use for nm scan.
+-    # The safest quick-fix is just to not use nm at all...
+-    usenm=false
+-
+-    unset lc_r
+-
+-    # Even with the malloc mutexes the Perl malloc does not
+-    # seem to be threadsafe in FreeBSD?
+-    case "$usemymalloc" in
+-    '')  usemymalloc=n ;;
++      ;;
+     esac
+ esac
+ EOCBU



Home | Main Index | Thread Index | Old Index