Fri Jul 7 05:54:24 2017 UTC ()
Use ldflags during build.
Allow -Wl,-z arguments into lddlflags.

Fixes RELRO build.

Bump PKGREVISION.

While here, remove bogus comment from patch and remove reference
to two non-existing files.


(wiz)
diff -r1.239 -r1.240 pkgsrc/lang/perl5/Makefile
diff -r1.143 -r1.144 pkgsrc/lang/perl5/distinfo
diff -r1.3 -r1.4 pkgsrc/lang/perl5/patches/patch-Configure
diff -r1.20 -r1.21 pkgsrc/lang/perl5/patches/patch-ab

cvs diff -r1.239 -r1.240 pkgsrc/lang/perl5/Makefile (expand / switch to unified diff)

--- pkgsrc/lang/perl5/Makefile 2017/06/05 18:58:44 1.239
+++ pkgsrc/lang/perl5/Makefile 2017/07/07 05:54:24 1.240
@@ -1,20 +1,20 @@ @@ -1,20 +1,20 @@
1# $NetBSD: Makefile,v 1.239 2017/06/05 18:58:44 bsiegert Exp $ 1# $NetBSD: Makefile,v 1.240 2017/07/07 05:54:24 wiz Exp $
2 2
3.include "license.mk" 3.include "license.mk"
4.include "Makefile.common" 4.include "Makefile.common"
5 5
6COMMENT= Practical Extraction and Report Language 6COMMENT= Practical Extraction and Report Language
7PKGREVISION= 1 7PKGREVISION= 2
8 8
9CONFLICTS+= perl-base-[0-9]* perl-thread-[0-9]* 9CONFLICTS+= perl-base-[0-9]* perl-thread-[0-9]*
10 10
11# CONFLICTS packages older than CORE modules version. 11# CONFLICTS packages older than CORE modules version.
12# based on 'corelist -v ${PKGVERSION}' 12# based on 'corelist -v ${PKGVERSION}'
13# update based on 'corelist -diff ${PREV_PKGVERSION} ${PKGVERSION}' 13# update based on 'corelist -diff ${PREV_PKGVERSION} ${PKGVERSION}'
14CONFLICTS+= p5-Archive-Tar<1.96 14CONFLICTS+= p5-Archive-Tar<1.96
15CONFLICTS+= p5-Attribute-Handlers<0.96 15CONFLICTS+= p5-Attribute-Handlers<0.96
16CONFLICTS+= p5-AutoLoader<5.74 16CONFLICTS+= p5-AutoLoader<5.74
17CONFLICTS+= p5-CGI<3.65 17CONFLICTS+= p5-CGI<3.65
18# older for www/p5-CGI-Fast 18# older for www/p5-CGI-Fast
19CONFLICTS+= p5-CPAN<2.0500 # 2.05 19CONFLICTS+= p5-CPAN<2.0500 # 2.05
20CONFLICTS+= p5-CPAN-Meta<2.140640 20CONFLICTS+= p5-CPAN-Meta<2.140640
@@ -109,26 +109,27 @@ PERL5_API_VERS_cmd= \ @@ -109,26 +109,27 @@ PERL5_API_VERS_cmd= \
109 END { printf "%s%s%s\n", R, r, s }' \ 109 END { printf "%s%s%s\n", R, r, s }' \
110 ${WRKSRC}/patchlevel.h; \ 110 ${WRKSRC}/patchlevel.h; \
111 else \ 111 else \
112 ${ECHO} "unknown"; \ 112 ${ECHO} "unknown"; \
113 fi 113 fi
114 114
115.include "dirs.mk" 115.include "dirs.mk"
116 116
117.include "../../mk/compiler.mk" 117.include "../../mk/compiler.mk"
118 118
119HAS_CONFIGURE= yes 119HAS_CONFIGURE= yes
120CONFIGURE_SCRIPT= ./Configure 120CONFIGURE_SCRIPT= ./Configure
121CONFIGURE_ARGS+= -sde 121CONFIGURE_ARGS+= -sde
 122CONFIGURE_ARGS+= -Dldflags=${LDFLAGS:Q}
122MAKE_ENV+= LC_ALL="C" 123MAKE_ENV+= LC_ALL="C"
123 124
124.if ${OPSYS} == "SunOS" 125.if ${OPSYS} == "SunOS"
125USE_TOOLS+= bash 126USE_TOOLS+= bash
126CONFIG_SHELL= ${TOOLS_PATH.bash} 127CONFIG_SHELL= ${TOOLS_PATH.bash}
127.endif 128.endif
128 129
129TEST_TARGET= test 130TEST_TARGET= test
130 131
131# Policy.sh generation 132# Policy.sh generation
132# (see comments in files/Policy.sh) 133# (see comments in files/Policy.sh)
133SUBST_CLASSES+= policysh 134SUBST_CLASSES+= policysh
134SUBST_STAGE.policysh= pre-configure 135SUBST_STAGE.policysh= pre-configure
@@ -239,28 +240,26 @@ SUBST_VARS.policysh+= SYSLIBPATH @@ -239,28 +240,26 @@ SUBST_VARS.policysh+= SYSLIBPATH
239 240
240.if !empty(MACHINE_PLATFORM:MMirBSD*) 241.if !empty(MACHINE_PLATFORM:MMirBSD*)
241SUBST_CLASSES+= mirbsd-paths 242SUBST_CLASSES+= mirbsd-paths
242SUBST_STAGE.mirbsd-paths= pre-configure 243SUBST_STAGE.mirbsd-paths= pre-configure
243SUBST_FILES.mirbsd-paths= hints/mirbsd.sh 244SUBST_FILES.mirbsd-paths= hints/mirbsd.sh
244SUBST_SED.mirbsd-paths= -e 's,/usr/mpkg,${PREFIX},g' 245SUBST_SED.mirbsd-paths= -e 's,/usr/mpkg,${PREFIX},g'
245SUBST_MESSAGE.mirbsd-paths= Do not use non-pkgsrc paths on MirBSD. 246SUBST_MESSAGE.mirbsd-paths= Do not use non-pkgsrc paths on MirBSD.
246.endif 247.endif
247 248
248# Replace our perl as the interpreter 249# Replace our perl as the interpreter
249REPLACE_PERL+= cpan/Config-Perl-V/V.pm 250REPLACE_PERL+= cpan/Config-Perl-V/V.pm
250REPLACE_PERL+= cpan/Getopt-Long/lib/Getopt/Long.pm 251REPLACE_PERL+= cpan/Getopt-Long/lib/Getopt/Long.pm
251REPLACE_PERL+= cpan/version/lib/version.pm 252REPLACE_PERL+= cpan/version/lib/version.pm
252REPLACE_PERL+= dist/bignum/lib/Math/BigFloat/Trace.pm 
253REPLACE_PERL+= dist/bignum/lib/Math/BigInt/Trace.pm 
254REPLACE_PERL+= dist/ExtUtils-ParseXS/lib/ExtUtils/xsubpp 253REPLACE_PERL+= dist/ExtUtils-ParseXS/lib/ExtUtils/xsubpp
255REPLACE_PERL+= ext/ExtUtils-Miniperl/lib/ExtUtils/Miniperl.pm 254REPLACE_PERL+= ext/ExtUtils-Miniperl/lib/ExtUtils/Miniperl.pm
256REPLACE_PERL+= ext/File-DosGlob/lib/File/DosGlob.pm 255REPLACE_PERL+= ext/File-DosGlob/lib/File/DosGlob.pm
257REPLACE_PERL+= lib/unicore/mktables 256REPLACE_PERL+= lib/unicore/mktables
258 257
259# And replace a perl interpreter during the pre-install stage 258# And replace a perl interpreter during the pre-install stage
260# I think this may be a bootstrap script, so can't use REPLACE_PERL 259# I think this may be a bootstrap script, so can't use REPLACE_PERL
261# because that is acted upon already in the pre-configure stage 260# because that is acted upon already in the pre-configure stage
262SUBST_CLASSES+= miniperl 261SUBST_CLASSES+= miniperl
263SUBST_STAGE.miniperl= pre-install 262SUBST_STAGE.miniperl= pre-install
264SUBST_FILES.miniperl= lib/ExtUtils/xsubpp 263SUBST_FILES.miniperl= lib/ExtUtils/xsubpp
265SUBST_SED.miniperl= -e "1s:\#!./miniperl:\#!${PERL5}:" 264SUBST_SED.miniperl= -e "1s:\#!./miniperl:\#!${PERL5}:"
266 265

cvs diff -r1.143 -r1.144 pkgsrc/lang/perl5/distinfo (expand / switch to unified diff)

--- pkgsrc/lang/perl5/distinfo 2017/06/06 12:37:50 1.143
+++ pkgsrc/lang/perl5/distinfo 2017/07/07 05:54:24 1.144
@@ -1,24 +1,24 @@ @@ -1,24 +1,24 @@
1$NetBSD: distinfo,v 1.143 2017/06/06 12:37:50 jperkin Exp $ 1$NetBSD: distinfo,v 1.144 2017/07/07 05:54:24 wiz Exp $
2 2
3SHA1 (perl-5.26.0.tar.bz2) = 2ca1b28f2c3ed4cc3b74be89d150ed0377f0336a 3SHA1 (perl-5.26.0.tar.bz2) = 2ca1b28f2c3ed4cc3b74be89d150ed0377f0336a
4RMD160 (perl-5.26.0.tar.bz2) = a853a1ec299d7c6ba8239e8ed444ee6d922b8938 4RMD160 (perl-5.26.0.tar.bz2) = a853a1ec299d7c6ba8239e8ed444ee6d922b8938
5SHA512 (perl-5.26.0.tar.bz2) = 1e3849c0fbf3a1903f83f86470d44f55f0f22136a1bdeb829af9c47351b6c817d7d8961a2db4c9172285f5abc087ea105ccfd4c93025acbd73569e628669aab3 5SHA512 (perl-5.26.0.tar.bz2) = 1e3849c0fbf3a1903f83f86470d44f55f0f22136a1bdeb829af9c47351b6c817d7d8961a2db4c9172285f5abc087ea105ccfd4c93025acbd73569e628669aab3
6Size (perl-5.26.0.tar.bz2) = 14708010 bytes 6Size (perl-5.26.0.tar.bz2) = 14708010 bytes
7SHA1 (patch-Configure) = 13455c1b32b0f602b339787af4ddcd481f9c2dd5 7SHA1 (patch-Configure) = d65082b236c81c310eb683a07c8ab60fc2a3e2f0
8SHA1 (patch-MANIFEST) = b27b0e1754fe2c4484931219fa17c562db88d41a 8SHA1 (patch-MANIFEST) = b27b0e1754fe2c4484931219fa17c562db88d41a
9SHA1 (patch-Makefile.SH) = e9353181a286f52303d09cb4ce0b2c04ec104217 9SHA1 (patch-Makefile.SH) = e9353181a286f52303d09cb4ce0b2c04ec104217
10SHA1 (patch-aa) = 3a2b39c9eb903e68ef7d03ae448c51c147c19aa1 10SHA1 (patch-aa) = 3a2b39c9eb903e68ef7d03ae448c51c147c19aa1
11SHA1 (patch-ab) = c899b7221a78e74cc9b1480834baba047dd19f38 11SHA1 (patch-ab) = 0ad5988b7cadfb13d9646a59a57f6cf884a6238a
12SHA1 (patch-ac) = 4baa8f80695687abb53d4f4e1830cf86db5b2bf7 12SHA1 (patch-ac) = 4baa8f80695687abb53d4f4e1830cf86db5b2bf7
13SHA1 (patch-aq) = 4bf5a76f0277b0939b2ca7720f4bb045a788b5cc 13SHA1 (patch-aq) = 4bf5a76f0277b0939b2ca7720f4bb045a788b5cc
14SHA1 (patch-caretx.c) = 9f53a9133f8dd2f962b448d7288b5b20454c86fb 14SHA1 (patch-caretx.c) = 9f53a9133f8dd2f962b448d7288b5b20454c86fb
15SHA1 (patch-ch) = 5b6a89c82e158bab0a5f06add48c28e600678099 15SHA1 (patch-ch) = 5b6a89c82e158bab0a5f06add48c28e600678099
16SHA1 (patch-ck) = 483e93a782e5627d3c7334d930ee11010fe7f7d8 16SHA1 (patch-ck) = 483e93a782e5627d3c7334d930ee11010fe7f7d8
17SHA1 (patch-cn) = d1877383e213a414562b5bb4c1e8aa785926fab7 17SHA1 (patch-cn) = d1877383e213a414562b5bb4c1e8aa785926fab7
18SHA1 (patch-cpan_File-Path_lib_File_Path.pm) = e8a08e7e7fdbebabbeef7eaa651147353eedbfd7 18SHA1 (patch-cpan_File-Path_lib_File_Path.pm) = e8a08e7e7fdbebabbeef7eaa651147353eedbfd7
19SHA1 (patch-dist_Carp_lib_Carp.pm) = fb628ee983462cec9303ceea09852378ec654ecf 19SHA1 (patch-dist_Carp_lib_Carp.pm) = fb628ee983462cec9303ceea09852378ec654ecf
20SHA1 (patch-ext_Errno_Errno__pm.PL) = 4f135e267da17de38f8f1e7e03d5209bfd09a323 20SHA1 (patch-ext_Errno_Errno__pm.PL) = 4f135e267da17de38f8f1e7e03d5209bfd09a323
21SHA1 (patch-ext_File-Glob_bsd_glob.c) = e43252b55f04bb1cd69d48e8155aa110532c9fbe 21SHA1 (patch-ext_File-Glob_bsd_glob.c) = e43252b55f04bb1cd69d48e8155aa110532c9fbe
22SHA1 (patch-ext_File-Glob_t_rt131211.t) = 9aeddad078cdc920e64ed2e73f952be341745d7e 22SHA1 (patch-ext_File-Glob_t_rt131211.t) = 9aeddad078cdc920e64ed2e73f952be341745d7e
23SHA1 (patch-hints_cygwin.sh) = 1b21d927d6b7379754c4cd64a2b05d3632c35470 23SHA1 (patch-hints_cygwin.sh) = 1b21d927d6b7379754c4cd64a2b05d3632c35470
24SHA1 (patch-hints_netbsd.sh) = 0d549a48800372d75fe34b783529a78cba90f646 24SHA1 (patch-hints_netbsd.sh) = 0d549a48800372d75fe34b783529a78cba90f646

cvs diff -r1.3 -r1.4 pkgsrc/lang/perl5/patches/patch-Configure (expand / switch to unified diff)

--- pkgsrc/lang/perl5/patches/patch-Configure 2016/06/08 17:39:30 1.3
+++ pkgsrc/lang/perl5/patches/patch-Configure 2017/07/07 05:54:24 1.4
@@ -1,214 +1,224 @@ @@ -1,214 +1,224 @@
1$NetBSD: patch-Configure,v 1.3 2016/06/08 17:39:30 he Exp $ 1$NetBSD: patch-Configure,v 1.4 2017/07/07 05:54:24 wiz Exp $
2 2
3* Use "uname -r" to get OS version for *BSD. 3* Use "uname -r" to get OS version for *BSD.
4* Move $loclibpth to the end of $dlist, instead of the beginning. 4* Move $loclibpth to the end of $dlist, instead of the beginning.
5* Detect systems which have <fenv.h> but where using it fails. 5* Detect systems which have <fenv.h> but where using it fails.
 6* Honor more ldflags in shared objects.
6* Several other changes. 7* Several other changes.
7 8
8--- Configure.orig 2016-04-26 22:11:09.000000000 +0000 9--- Configure.orig 2017-05-30 09:57:56.000000000 +0000
9+++ Configure 10+++ Configure 2017-07-07 05:44:48.961150149 +0000
10@@ -3468,13 +3468,14 @@ EOM 11@@ -3485,13 +3485,14 @@
11 osvers="$3" 12 osvers="$3"
12 ;; 13 ;;
13 dragonfly) osname=dragonfly 14 dragonfly) osname=dragonfly
14- osvers="$3" 15- osvers="$3"
15+ osvers=`$uname -r | UU/tr '[A-Z]' '[a-z]'` 16+ osvers=`$uname -r | UU/tr '[A-Z]' '[a-z]'`
16 ;; 17 ;;
17 dynixptx*) osname=dynixptx 18 dynixptx*) osname=dynixptx
18 osvers=`echo "$4"|sed 's/^v//'` 19 osvers=`echo "$4"|sed 's/^v//'`
19 ;; 20 ;;
20 freebsd) osname=freebsd 21 freebsd) osname=freebsd
21- osvers="$3" ;; 22- osvers="$3" ;;
22+ osvers=`$uname -r | UU/tr '[A-Z]' '[a-z]'` 23+ osvers=`$uname -r | UU/tr '[A-Z]' '[a-z]'`
23+ ;; 24+ ;;
24 genix) osname=genix ;; 25 genix) osname=genix ;;
25 gnu) osname=gnu 26 gnu) osname=gnu
26 osvers="$3" ;; 27 osvers="$3" ;;
27@@ -3497,7 +3498,7 @@ EOM 28@@ -3514,7 +3515,7 @@
28 MiNT) osname=mint 29 MiNT) osname=mint
29 ;; 30 ;;
30 netbsd*) osname=netbsd 31 netbsd*) osname=netbsd
31- osvers="$3" 32- osvers="$3"
32+ osvers=`$uname -r | UU/tr '[A-Z]' '[a-z]'` 33+ osvers=`$uname -r | UU/tr '[A-Z]' '[a-z]'`
33 ;; 34 ;;
34 news-os) osvers="$3" 35 news-os) osvers="$3"
35 case "$3" in 36 case "$3" in
36@@ -3507,7 +3508,7 @@ EOM 37@@ -3524,7 +3525,7 @@
37 ;; 38 ;;
38 nonstop-ux) osname=nonstopux ;; 39 nonstop-ux) osname=nonstopux ;;
39 openbsd) osname=openbsd 40 openbsd) osname=openbsd
40- osvers="$3" 41- osvers="$3"
41+ osvers=`$uname -r | UU/tr '[A-Z]' '[a-z]'` 42+ osvers=`$uname -r | UU/tr '[A-Z]' '[a-z]'`
42 ;; 43 ;;
43 os2) osname=os2 44 os2) osname=os2
44 osvers="$4" 45 osvers="$4"
45@@ -3522,6 +3523,9 @@ EOM 46@@ -3539,6 +3540,9 @@
46 qnx) osname=qnx 47 qnx) osname=qnx
47 osvers="$4" 48 osvers="$4"
48 ;; 49 ;;
49+ sco_sv) osname=sco_sv 50+ sco_sv) osname=sco_sv
50+ osvers=`$uname -r`v`$uname -v` 51+ osvers=`$uname -r`v`$uname -v`
51+ ;; 52+ ;;
52 solaris) osname=solaris 53 solaris) osname=solaris
53 case "$3" in 54 case "$3" in
54 5*) osvers=`echo $3 | $sed 's/^5/2/g'` ;; 55 5*) osvers=`echo $3 | $sed 's/^5/2/g'` ;;
55@@ -4960,7 +4964,7 @@ esac 56@@ -4977,7 +4981,7 @@
56 # If using gcc or clang, we can get better values for libpth, incpth 57 # If using gcc or clang, we can get better values for libpth, incpth
57 # and usrinc directly from the compiler. 58 # and usrinc directly from the compiler.
58 # Note that ccname for clang is also gcc. 59 # Note that ccname for clang is also gcc.
59-case "$ccname" in 60-case "$ccname" in
60+case "xx$ccname" in 61+case "xx$ccname" in
61 gcc) 62 gcc)
62 $echo 'extern int foo;' > try.c 63 $echo 'extern int foo;' > try.c
63 set X `$cppstdin -v try.c 2>&1 | $awk '/^#include </,/^End of search /'|$cppfilter $grep '/include'` 64 set X `$cppstdin -v try.c 2>&1 | $awk '/^#include </,/^End of search /'|$cppfilter $grep '/include'`
64@@ -5036,14 +5040,14 @@ case "$plibpth" in 65@@ -5053,14 +5057,14 @@
65 esac 66 esac
66 case "$libpth" in 67 case "$libpth" in
67 ' ') dlist='';; 68 ' ') dlist='';;
68-'') dlist="$loclibpth $plibpth $glibpth";; 69-'') dlist="$loclibpth $plibpth $glibpth";;
69+'') dlist="$plibpth $glibpth $loclibpth";; 70+'') dlist="$plibpth $glibpth $loclibpth";;
70 *) dlist="$libpth";; 71 *) dlist="$libpth";;
71 esac 72 esac
72  73
73 : Now check and see which directories actually exist, avoiding duplicates 74 : Now check and see which directories actually exist, avoiding duplicates
74 for xxx in $dlist 75 for xxx in $dlist
75 do 76 do
76- if $test -d $xxx; then 77- if $test -d $xxx; then
77+ if $test -d $xxx -o "$xxx" = "$prefix/lib"; then 78+ if $test -d $xxx -o "$xxx" = "$prefix/lib"; then
78 case " $libpth " in 79 case " $libpth " in
79 *" $xxx "*) ;; 80 *" $xxx "*) ;;
80 *) libpth="$libpth $xxx";; 81 *) libpth="$libpth $xxx";;
81@@ -5159,7 +5163,7 @@ lib_ext=$_a 82@@ -5176,7 +5180,7 @@
82 obj_ext=$_o 83 obj_ext=$_o
83 path_sep=$p_ 84 path_sep=$p_
84  85
85-rm_try="$rm -f try try$_exe a.out .out try.[cho] try.$_o core core.try* try.core*" 86-rm_try="$rm -f try try$_exe a.out .out try.[cho] try.$_o core core.try* try.core*"
86+rm_try="@TOOLS_RM@ -f try try$_exe a.out .out try.[cho] try.$_o core core.try* try.core*" 87+rm_try="@TOOLS_RM@ -f try try$_exe a.out .out try.[cho] try.$_o core core.try* try.core*"
87  88
88 : Which makefile gets called first. This is used by make depend. 89 : Which makefile gets called first. This is used by make depend.
89 case "$firstmakefile" in 90 case "$firstmakefile" in
90@@ -6461,6 +6465,15 @@ case "$nm_so_opt" in 91@@ -6492,6 +6496,15 @@
91 ;; 92 ;;
92 esac 93 esac
93  94
94+: Mac OS X 10.7 is different 95+: Mac OS X 10.7 is different
95+case "$osname" in 96+case "$osname" in
96+ darwin) 97+ darwin)
97+ case "$osvers" in 98+ case "$osvers" in
98+ 11.*) 99+ 11.*)
99+ libnames="$libnames /usr/lib/system/libsystem_*.dylib" 100+ libnames="$libnames /usr/lib/system/libsystem_*.dylib"
100+ esac 101+ esac
101+esac 102+esac
102+ 103+
103 : Figure out where the libc is located 104 : Figure out where the libc is located
104 case "$runnm" in 105 case "$runnm" in
105 true) 106 true)
106@@ -7564,7 +7577,9 @@ rp='Pathname for the site-specific libra 107@@ -7626,7 +7639,9 @@
107 . ./getfile 108 . ./getfile
108 prefixvar=sitelib 109 prefixvar=sitelib
109 . ./setprefixvar 110 . ./setprefixvar
110-sitelib_stem=`echo "$sitelibexp" | sed "s,/$version$,,"` 111-sitelib_stem=`echo "$sitelibexp" | sed "s,/$version$,,"`
111+if $test -z "$sitelib_stem"; then 112+if $test -z "$sitelib_stem"; then
112+ sitelib_stem=`echo "$sitelibexp" | sed "s,/$version$,,"` 113+ sitelib_stem=`echo "$sitelibexp" | sed "s,/$version$,,"`
113+fi 114+fi
114  115
115 : Determine list of previous versions to include in @INC 116 : Determine list of previous versions to include in @INC
116 $cat > getverlist <<EOPL 117 $cat > getverlist <<EOPL
117@@ -7976,7 +7991,9 @@ case "$vendorprefix" in 118@@ -8038,7 +8053,9 @@
118 vendorlibexp="$ansexp" 119 vendorlibexp="$ansexp"
119 ;; 120 ;;
120 esac 121 esac
121-vendorlib_stem=`echo "$vendorlibexp" | sed "s,/$version$,,"` 122-vendorlib_stem=`echo "$vendorlibexp" | sed "s,/$version$,,"`
122+if $test -z "$vendorlib_stem"; then 123+if $test -z "$vendorlib_stem"; then
123+ vendorlib_stem=`echo "$vendorlibexp" | sed "s,/$version$,,"` 124+ vendorlib_stem=`echo "$vendorlibexp" | sed "s,/$version$,,"`
124+fi 125+fi
125 prefixvar=vendorlib 126 prefixvar=vendorlib
126 . ./installprefix 127 . ./installprefix
127  128
128@@ -8518,6 +8535,7 @@ EOM 129@@ -8580,6 +8597,7 @@
129 esac 130 esac
130 ;; 131 ;;
131 *linux*|irix*|gnu*) dflt="-shared $optimize" ;; 132 *linux*|irix*|gnu*) dflt="-shared $optimize" ;;
132+ sco_sv) dflt='-shared' ;; 133+ sco_sv) dflt='-shared' ;;
133 solaris) # See [perl #66604]. 134 solaris) # See [perl #66604].
134 # On Solaris 11, gcc -m64 on amd64 135 # On Solaris 11, gcc -m64 on amd64
135 # appears not to understand -G. gcc versions at 136 # appears not to understand -G. gcc versions at
136@@ -8816,6 +8834,10 @@ if "$useshrplib"; then 137@@ -8619,7 +8637,7 @@
 138 esac
 139 for thisflag in $ldflags; do
 140 case "$thisflag" in
 141- -L*|-R*|-Wl,-R*)
 142+ -L*|-R*|-Wl,-R*|-Wl,-z*)
 143 case " $dflt " in
 144 *" $thisflag "*) ;;
 145 *) dflt="$dflt $thisflag" ;;
 146@@ -8878,6 +8896,10 @@
137 bsdos|linux|irix*|dec_osf|gnu*|haiku) 147 bsdos|linux|irix*|dec_osf|gnu*|haiku)
138 xxx="-Wl,-rpath,$shrpdir" 148 xxx="-Wl,-rpath,$shrpdir"
139 ;; 149 ;;
140+ haiku) 150+ haiku)
141+ # Haiku doesn't like the default, either. 151+ # Haiku doesn't like the default, either.
142+ xxx="-Wl,-rpath,$shrpdir" 152+ xxx="-Wl,-rpath,$shrpdir"
143+ ;; 153+ ;;
144 hpux*) 154 hpux*)
145 # hpux doesn't like the default, either. 155 # hpux doesn't like the default, either.
146 tmp_shrpenv="env LDOPTS=\"+s +b${shrpdir}\"" 156 tmp_shrpenv="env LDOPTS=\"+s +b${shrpdir}\""
147@@ -8823,6 +8845,9 @@ if "$useshrplib"; then 157@@ -8885,6 +8907,9 @@
148 cygwin) 158 cygwin)
149 # cygwin needs only ldlibpth 159 # cygwin needs only ldlibpth
150 ;; 160 ;;
151+ sco_sv) 161+ sco_sv)
152+ xxx="-Wl,-R$shrpdir" 162+ xxx="-Wl,-R$shrpdir"
153+ ;; 163+ ;;
154 *) 164 *)
155 tmp_shrpenv="env LD_RUN_PATH=$shrpdir" 165 tmp_shrpenv="env LD_RUN_PATH=$shrpdir"
156 ;; 166 ;;
157@@ -9901,6 +9926,13 @@ esac 167@@ -9966,6 +9991,13 @@
158 : Check if we want perlio 168 : Check if we want perlio
159 useperlio="$define" 169 useperlio="$define"
160  170
161+: Look for a hint-file generated 'call-back-unit'. We need 171+: Look for a hint-file generated 'call-back-unit'. We need
162+: to set some defaults for building perl in pkgsrc. 172+: to set some defaults for building perl in pkgsrc.
163+if $test -f pkgsrc.cbu; then 173+if $test -f pkgsrc.cbu; then
164+ echo "Setting pkgsrc-specific hints regarding compiler/linker flags..." 174+ echo "Setting pkgsrc-specific hints regarding compiler/linker flags..."
165+ . ./pkgsrc.cbu 175+ . ./pkgsrc.cbu
166+fi 176+fi
167+ 177+
168 : Set the vendorbin variables 178 : Set the vendorbin variables
169 case "$vendorprefix" in 179 case "$vendorprefix" in
170 '') d_vendorbin="$undef" 180 '') d_vendorbin="$undef"
171@@ -20262,7 +20294,15 @@ RCAT(Rei,ser) 181@@ -20424,7 +20456,15 @@
172 ACAT(Cir,cus) 182 ACAT(Cir,cus)
173 EOCP 183 EOCP
174 $cppstdin $cppflags $cppminus <cpp_stuff.c >cpp_stuff.out 2>&1 184 $cppstdin $cppflags $cppminus <cpp_stuff.c >cpp_stuff.out 2>&1
175-if $contains 'Circus' cpp_stuff.out >/dev/null 2>&1; then 185-if $contains 'Circus' cpp_stuff.out >/dev/null 2>&1; then
176+# yuck, what a hack. 186+# yuck, what a hack.
177+# MIPSPro compiler/preprocessor behaves differently if invoked on 187+# MIPSPro compiler/preprocessor behaves differently if invoked on
178+# stdin vs file. Here we test for stdin, but lateron we use files. 188+# stdin vs file. Here we test for stdin, but lateron we use files.
179+# So force it to work the way we know it does: 189+# So force it to work the way we know it does:
180+if [ x"${OPSYS}" = x"IRIX" ]; then 190+if [ x"${OPSYS}" = x"IRIX" ]; then
181+ echo "Hacking MIPSPro on file vs. stdin..." >&4 191+ echo "Hacking MIPSPro on file vs. stdin..." >&4
182+ echo "We know we can catify or stringify, separately or together!" 192+ echo "We know we can catify or stringify, separately or together!"
183+ cpp_stuff=42 193+ cpp_stuff=42
184+elif $contains 'Circus' cpp_stuff.out >/dev/null 2>&1; then 194+elif $contains 'Circus' cpp_stuff.out >/dev/null 2>&1; then
185 echo "Oh! Smells like ANSI's been here." >&4 195 echo "Oh! Smells like ANSI's been here." >&4
186 echo "We can catify or stringify, separately or together!" 196 echo "We can catify or stringify, separately or together!"
187 cpp_stuff=42 197 cpp_stuff=42
188@@ -23049,6 +23089,21 @@ eval $inhdr 198@@ -23296,6 +23336,21 @@
189 set fenv.h i_fenv 199 set fenv.h i_fenv
190 eval $inhdr 200 eval $inhdr
191  201
192+: And really validate that it is OK to include it 202+: And really validate that it is OK to include it
193+: On NetBSD 6.x non-amd64 non-i386 and non-sparc this fails 203+: On NetBSD 6.x non-amd64 non-i386 and non-sparc this fails
194+cat > try.c <<EOCP 204+cat > try.c <<EOCP
195+#include <fenv.h> 205+#include <fenv.h>
196+int main() { 206+int main() {
197+ printf("runs ok too\n"); 207+ printf("runs ok too\n");
198+ exit(0); 208+ exit(0);
199+} 209+}
200+EOCP 210+EOCP
201+set try 211+set try
202+if ! eval $compile_ok; then 212+if ! eval $compile_ok; then
203+ echo "<fenv.h> found to be unusable, disabling" >&4 213+ echo "<fenv.h> found to be unusable, disabling" >&4
204+ i_fenv=$undef 214+ i_fenv=$undef
205+fi 215+fi
206+ 216+
207 : see if this is a fp.h system 217 : see if this is a fp.h system
208 set fp.h i_fp 218 set fp.h i_fp
209 eval $inhdr 219 eval $inhdr
210@@ -25402,4 +25457,3 @@ $rm -f kit*isdone ark*isdone 220@@ -25665,4 +25720,3 @@
211 $rm -rf UU 221 $rm -rf UU
212  222
213 : End of Configure 223 : End of Configure
214- 224-

cvs diff -r1.20 -r1.21 pkgsrc/lang/perl5/patches/Attic/patch-ab (expand / switch to unified diff)

--- pkgsrc/lang/perl5/patches/Attic/patch-ab 2014/05/29 07:57:07 1.20
+++ pkgsrc/lang/perl5/patches/Attic/patch-ab 2017/07/07 05:54:24 1.21
@@ -1,14 +1,12 @@ @@ -1,14 +1,12 @@
1$NetBSD: patch-ab,v 1.20 2014/05/29 07:57:07 adam Exp $ 1$NetBSD: patch-ab,v 1.21 2017/07/07 05:54:24 wiz Exp $
2 
3* XXX 
4 2
5--- installperl.orig 2014-05-26 13:34:20.000000000 +0000 3--- installperl.orig 2014-05-26 13:34:20.000000000 +0000
6+++ installperl 4+++ installperl
7@@ -332,7 +332,6 @@ $do_installprivlib = 0 if $versiononly & 5@@ -332,7 +332,6 @@ $do_installprivlib = 0 if $versiononly &
8 mkpath($installprivlib); 6 mkpath($installprivlib);
9 mkpath($installarchlib); 7 mkpath($installarchlib);
10 mkpath($installsitelib, $opts{verbose}, 0777) if ($installsitelib); 8 mkpath($installsitelib, $opts{verbose}, 0777) if ($installsitelib);
11-mkpath($installsitearch, $opts{verbose}, 0777) if ($installsitearch); 9-mkpath($installsitearch, $opts{verbose}, 0777) if ($installsitearch);
12  10
13 if (-d 'lib') { 11 if (-d 'lib') {
14 find({no_chdir => 1, wanted => \&installlib}, 'lib') 12 find({no_chdir => 1, wanted => \&installlib}, 'lib')