Subject: perl5-base patch to test
To: None <tech-pkg@netbsd.org>
From: Emmanuel Dreyfus <p99dreyf@criens.u-psud.fr>
List: tech-pkg
Date: 04/07/2001 23:32:39
Here is a patch for the perl5-base package, requiered to run Xerces-P. Please
test it on your favourite platform, to make sure it does not break anything.
Index: files/patch-sum
===================================================================
RCS file: /cvsroot/pkgsrc/lang/perl5-base/files/patch-sum,v
retrieving revision 1.3
diff -U4 -r1.3 patch-sum
--- files/patch-sum 2001/01/11 17:51:29 1.3
+++ files/patch-sum 2001/04/07 20:40:33
@@ -1,12 +1,12 @@
$NetBSD: patch-sum,v 1.3 2001/01/11 17:51:29 jlam Exp $
-MD5 (patch-aa) = 22d1a3a613210ca5f129c81449eab10b
-MD5 (patch-ab) = 032835dd7aaab9ee4531e7e6e83ffba5
-MD5 (patch-ac) = ddd3e3b08afdc062c78f26175e4fcc44
-MD5 (patch-ad) = 76f075f7badc7dcc5a315b3c2a82657c
-MD5 (patch-ae) = 197b8ed09f99be86865c0d6d66927e96
-MD5 (patch-af) = 16d95e0667ef104d0dba4a61531d5b11
-MD5 (patch-ag) = a2e03195dab858bf57005a63043ca355
-MD5 (patch-ah) = 450115a339f77225d07d09e8554d41a9
-MD5 (patch-ai) = 27f1ec73c9eadd3252c7a7d37f2e0e11
-MD5 (patch-aj) = b4bae11ddc7f42fb317196ee853b175b
+SHA1 (patch-aa) = 574152b70a041dcd13f0f7c57a33d8068bbf776e
+SHA1 (patch-ab) = 97dc3d00c3621b923d4d37d48c5f482658094d5b
+SHA1 (patch-ac) = 0e6b9cd8f0adb0d7791c15f9216535fca6f9d813
+SHA1 (patch-ad) = 3dbd2399666ffa270b6463494752ead99aa755fd
+SHA1 (patch-ae) = 78f12e1e9f68d1ad93bbf5845ade7a8651d21208
+SHA1 (patch-af) = ecc2a7ff8d8ce6f40ddfbf1873ed04d5b3ab7e55
+SHA1 (patch-ag) = fd4cd3f029329a3dbb8fd786f19a8d97881fa2af
+SHA1 (patch-ah) = c293738f1822d474f26558b15a4071f806d5ea94
+SHA1 (patch-ai) = cb48b1316abceec5f7f337cf44b20eb6ab4056bf
+SHA1 (patch-aj) = bea0d2037649dda059872de663bb0b2c2ff32af0
cvs server: Diffing patches
Index: patches/patch-ag
===================================================================
RCS file: /cvsroot/pkgsrc/lang/perl5-base/patches/patch-ag,v
retrieving revision 1.1
diff -U4 -r1.1 patch-ag
--- patches/patch-ag 2000/11/08 08:28:00 1.1
+++ patches/patch-ag 2001/04/07 20:40:33
@@ -1,12 +1,27 @@
-$NetBSD: patch-ag,v 1.1 2000/11/08 08:28:00 martin Exp $
-
--- hints/netbsd.sh.orig Sun Feb 6 15:57:09 2000
-+++ hints/netbsd.sh Wed Nov 8 08:26:20 2000
-@@ -63,6 +63,23 @@
++++ hints/netbsd.sh Sat Apr 7 22:23:39 2001
+@@ -20,9 +20,13 @@
+ *)
+ if [ -f /usr/libexec/ld.elf_so ]; then
+ d_dlopen=$define
+ d_dlerror=$define
+- ccdlflags="-Wl,-E -Wl,-R${PREFIX}/lib $ccdlflags"
++ # Include the whole libgcc.a, requiered for Xerces-P, which
++ # needs __eh_alloc, __pure_virtual, and others. This should
++ # be obsoleted by gcc-3.0
++ ccdlflags="-Wl,-whole-archive -lgcc -Wl,-no-whole-archive \
++ -Wl,-E -Wl,-R${PREFIX}/lib $ccdlflags"
+ cccdlflags="-DPIC -fPIC $cccdlflags"
+ lddlflags="--whole-archive -shared $lddlflags"
+ elif [ "`uname -m`" = "pmax" ]; then
+ # NetBSD 1.3 and 1.3.1 on pmax shipped an `old' ld.so, which will not work.
+@@ -61,8 +65,25 @@
+ # there's no problem with vfork.
+ case "$usevfork" in
'') usevfork=true ;;
esac
-
++
+# Using perl's malloc leads to trouble on some toolchain versions...
+test "$usemymalloc" || usemymalloc='n'
+
+# The toolchain on sparc64 is not realy production quality right now,
@@ -21,8 +36,8 @@
+ lddlflags="-g $lddlflags"
+ optimize='-g -msoft-quad-float -O2 -DGCC2952_SPARC64_WORKAROUND'
+ fi
+fi
-+
+
# Pre-empt the /usr/bin/perl question of installperl.
installusrbinperl='n'
--
Emmanuel Dreyfus.
Pas de processeur Intel, pas de logiciels Microsoft:
Des programmes sains dans un ordinateur sain.
p99dreyf@criens.u-psud.fr