summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorjlam <jlam>2002-01-28 00:25:27 +0000
committerjlam <jlam>2002-01-28 00:25:27 +0000
commita155c0e004baaef9f43a4baf1c4aa49f6a44edb7 (patch)
treef3b0c8c6464b272e93ec58b191570f47c0a95a4d /lang
parent2e3e7b534c001dd1eec4fafb87391beed74faaa4 (diff)
downloadpkgsrc-a155c0e004baaef9f43a4baf1c4aa49f6a44edb7.tar.gz
Update lang/perl5 to 5.6.1nb7. Changes from version 5.6.1nb6 include
changing the default module/library search path to have site_perl come before the standard directories. In other words, the previous search path on an i386 was: /usr/pkg/lib/perl5/5.6.1/i386-netbsd /usr/pkg/lib/perl5/5.6.1 /usr/pkg/lib/perl5/site_perl/5.6.1/i386-netbsd /usr/pkg/lib/perl5/site_perl/5.6.1 /usr/pkg/lib/perl5/site_perl but it is now: /usr/pkg/lib/perl5/site_perl/5.6.1/i386-netbsd /usr/pkg/lib/perl5/site_perl/5.6.1 /usr/pkg/lib/perl5/site_perl /usr/pkg/lib/perl5/5.6.1/i386-netbsd /usr/pkg/lib/perl5/5.6.1 The rationale for this is that when we install a module that is newer than one in the standard library, the new module goes into the site_perl directory as it's an add-on module. However, we can't use the newer module without modifying either the scripts of the perl environment to find the newer module explicitly because of the order of the library search path: the site_perl directories come after the standard directories. The normal solution is to directly replace the module in the standard library with the newer module. However, this isn't really on option when installing via pkgsrc because the older module files are owned by the perl package. By placing the the site_perl directories before the standard directories, newer modules that we install via pkgsrc are simply found before the older ones in the standard library.
Diffstat (limited to 'lang')
-rw-r--r--lang/perl5/Makefile4
-rw-r--r--lang/perl5/distinfo3
-rw-r--r--lang/perl5/patches/patch-ah65
3 files changed, 69 insertions, 3 deletions
diff --git a/lang/perl5/Makefile b/lang/perl5/Makefile
index 289b29260e3..183b1461dd2 100644
--- a/lang/perl5/Makefile
+++ b/lang/perl5/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.53 2001/12/14 19:26:11 jlam Exp $
+# $NetBSD: Makefile,v 1.54 2002/01/28 00:25:27 jlam Exp $
.include "../../lang/perl5/Makefile.common"
-PKGREVISION= 6
+PKGREVISION= 7
CATEGORIES+= lang devel
MAINTAINER= jlam@netbsd.org
diff --git a/lang/perl5/distinfo b/lang/perl5/distinfo
index 78199206150..04e827af46a 100644
--- a/lang/perl5/distinfo
+++ b/lang/perl5/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.8 2001/10/14 19:55:47 jlam Exp $
+$NetBSD: distinfo,v 1.9 2002/01/28 00:25:27 jlam Exp $
SHA1 (perl-5.6.1.tar.gz) = c718b38685f90d51a9a6b1b008de0d7d198c0744
Size (perl-5.6.1.tar.gz) = 5983695 bytes
@@ -9,3 +9,4 @@ SHA1 (patch-ad) = 7a3ca903d958026473f593fdeb172f86f2ef66d2
SHA1 (patch-ae) = 677797f38279b7602fc5bbac8ee80c0e09f6e285
SHA1 (patch-af) = 94d91fba0731c9ee43b3e544f81cc9367a75a77c
SHA1 (patch-ag) = 6f25b4799994279172bc756ede9f13506e9b1c28
+SHA1 (patch-ah) = 4c689dde8cba8cb3c30295d52536ff09a0c7f589
diff --git a/lang/perl5/patches/patch-ah b/lang/perl5/patches/patch-ah
new file mode 100644
index 00000000000..5594b0dc301
--- /dev/null
+++ b/lang/perl5/patches/patch-ah
@@ -0,0 +1,65 @@
+$NetBSD: patch-ah,v 1.5 2002/01/28 00:25:28 jlam Exp $
+
+--- perl.c.orig Thu Mar 22 00:05:02 2001
++++ perl.c
+@@ -3408,12 +3408,32 @@
+ }
+
+ /* Use the ~-expanded versions of APPLLIB (undocumented),
+- ARCHLIB PRIVLIB SITEARCH SITELIB VENDORARCH and VENDORLIB
++ SITEARCH SITELIB ARCHLIB PRIVLIB VENDORARCH and VENDORLIB
+ */
+ #ifdef APPLLIB_EXP
+ incpush(APPLLIB_EXP, TRUE, TRUE);
+ #endif
+
++#ifdef SITEARCH_EXP
++ /* sitearch is always relative to sitelib on Windows for
++ * DLL-based path intuition to work correctly */
++# if !defined(WIN32)
++ incpush(SITEARCH_EXP, FALSE, FALSE);
++# endif
++#endif
++
++#ifdef SITELIB_EXP
++# if defined(WIN32)
++ incpush(SITELIB_EXP, TRUE, FALSE); /* this picks up sitearch as well */
++# else
++ incpush(SITELIB_EXP, FALSE, FALSE);
++# endif
++#endif
++
++#ifdef SITELIB_STEM /* Search for version-specific dirs below here */
++ incpush(SITELIB_STEM, FALSE, TRUE);
++#endif
++
+ #ifdef ARCHLIB_EXP
+ incpush(ARCHLIB_EXP, FALSE, FALSE);
+ #endif
+@@ -3445,26 +3465,6 @@
+ incpush(PRIVLIB_EXP, TRUE, FALSE);
+ #else
+ incpush(PRIVLIB_EXP, FALSE, FALSE);
+-#endif
+-
+-#ifdef SITEARCH_EXP
+- /* sitearch is always relative to sitelib on Windows for
+- * DLL-based path intuition to work correctly */
+-# if !defined(WIN32)
+- incpush(SITEARCH_EXP, FALSE, FALSE);
+-# endif
+-#endif
+-
+-#ifdef SITELIB_EXP
+-# if defined(WIN32)
+- incpush(SITELIB_EXP, TRUE, FALSE); /* this picks up sitearch as well */
+-# else
+- incpush(SITELIB_EXP, FALSE, FALSE);
+-# endif
+-#endif
+-
+-#ifdef SITELIB_STEM /* Search for version-specific dirs below here */
+- incpush(SITELIB_STEM, FALSE, TRUE);
+ #endif
+
+ #ifdef PERL_VENDORARCH_EXP