Update perl5 from version 5.8.8nb8 to 5.10.0. A large number of packages have had their internal regression tests run successfully with this update, including mod_perl for Apache. Pkgsrc changes: a number of our local patches are no longer needed. Upstream changes from version 5.8.8: # Core Enhancements * The feature pragma * New -E command-line switch * Defined-or operator * Switch and Smart Match operator * Regular expressions * say() * Lexical $_ * The _ prototype * UNITCHECK blocks * New Pragma, mro * readdir() may return a "short filename" on Windows * readpipe() is now overridable * Default argument for readline() * state() variables * Stacked filetest operators * UNIVERSAL::DOES() * Formats * Byte-order modifiers for pack() and unpack() * no VERSION * chdir, chmod and chown on filehandles * OS groups * Recursive sort subs * Exceptions in constant folding * Source filters in @INC * New internal variables * Miscellaneous * UCD 5.0.0 * MAD * kill() on Windows # Incompatible Changes * Packing and UTF-8 strings * Byte/character count feature in unpack() * The $* and $# variables have been removed * substr() lvalues are no longer fixed-length * Parsing of -f _ * :unique * Effect of pragmas in eval * chdir FOO * Handling of .pmc files * $^V is now a version object instead of a v-string * @- and @+ in patterns * $AUTOLOAD can now be tainted * Tainting and printf * undef and signal handlers * strictures and dereferencing in defined() * (?p{}) has been removed * Pseudo-hashes have been removed * Removal of the bytecode compiler and of perlcc * Removal of the JPL * Recursive inheritance detected earlier # Modules and Pragmata * Upgrading individual core modules * Pragmata Changes * New modules * Selected Changes to Core Modules # Utility Changes # New Documentation # Performance Enhancements * In-place sorting * Lexical array access * XS-assisted SWASHGET * Constant subroutines * PERL_DONT_CREATE_GVSV * Weak references are cheaper * sort() enhancements * Memory optimisations * UTF-8 cache optimisation * Sloppy stat on Windows * Regular expressions optimisations # Installation and Configuration Improvements * Configuration improvements * Compilation improvements * Installation improvements * New Or Improved Platforms # Selected Bug Fixes # New or Changed Diagnostics # Changed Internals * Reordering of SVt_* constants * Elimination of SVt_PVBM * New type SVt_BIND * Removal of CPP symbols * Less space is used by ops * New parser * Use of const * Mathoms * AvFLAGS has been removed * av_* changes * $^H and %^H * B:: modules inheritance changed * Anonymous hash and array constructors ... See 'perldoc perldelta' or http://perldoc.perl.org/perldelta.html for explanation of each of these points.diff -r1.137 -r1.138 pkgsrc/lang/perl5/Makefile
(he)
@@ -1,364 +1,381 @@ | @@ -1,364 +1,381 @@ | |||
1 | # $NetBSD: Makefile,v 1.137 2008/06/01 22:04:07 he Exp $ | 1 | # $NetBSD: Makefile,v 1.138 2008/10/10 21:58:43 he Exp $ | |
2 | 2 | |||
3 | DISTNAME= perl-5.8.8 | 3 | DISTNAME= perl-5.10.0 | |
4 | PKGREVISION= 8 | |||
5 | CATEGORIES= lang devel perl5 | 4 | CATEGORIES= lang devel perl5 | |
6 | MASTER_SITES= ${MASTER_SITE_PERL_CPAN:S,/modules/by-module/$,/src/,} | 5 | MASTER_SITES= ${MASTER_SITE_PERL_CPAN:S,/modules/by-module/$,/src/,} | |
7 | EXTRACT_SUFX= .tar.bz2 | |||
8 | DISTFILES+= ${DISTNAME}${EXTRACT_SUFX} | 6 | DISTFILES+= ${DISTNAME}${EXTRACT_SUFX} | |
9 | 7 | |||
10 | MAINTAINER= jlam@pkgsrc.org | 8 | MAINTAINER= jlam@pkgsrc.org | |
11 | HOMEPAGE= http://www.perl.org/ | 9 | HOMEPAGE= http://www.perl.org/ | |
12 | COMMENT= Practical Extraction and Report Language | 10 | COMMENT= Practical Extraction and Report Language | |
13 | #LICENSE= gnu-gpl-v2 | 11 | #LICENSE= gnu-gpl-v2 | |
14 | 12 | |||
15 | PKG_DESTDIR_SUPPORT= user-destdir | 13 | PKG_DESTDIR_SUPPORT= user-destdir | |
16 | 14 | |||
17 | CONFLICTS= perl-base-[0-9]* perl-thread-[0-9]* \ | 15 | CONFLICTS= perl-base-[0-9]* perl-thread-[0-9]* \ | |
18 | p5-CGI-2.66 p5-CGI-2.75 p5-CGI-2.75.[0-2] | 16 | p5-CGI-2.66 p5-CGI-2.75 p5-CGI-2.75.[0-2] | |
19 | 17 | |||
20 | .include "../../mk/bsd.prefs.mk" | 18 | .include "../../mk/bsd.prefs.mk" | |
21 | 19 | |||
22 | # Determine the Perl API version from the patchlevel.h file from the | 20 | # Determine the Perl API version from the patchlevel.h file from the | |
23 | # source distribution. | 21 | # source distribution. | |
24 | # | 22 | # | |
25 | PERL5_API_VERS= ${PERL5_API_VERS_cmd:sh} | 23 | PERL5_API_VERS= ${PERL5_API_VERS_cmd:sh} | |
26 | PERL5_API_VERS_cmd= \ | 24 | PERL5_API_VERS_cmd= \ | |
27 | if ${TEST} -f ${WRKSRC}/patchlevel.h; then \ | 25 | if ${TEST} -f ${WRKSRC}/patchlevel.h; then \ | |
28 | ${AWK} '/\#define[ ]*PERL_API_REVISION/ { R = $$3 }\ | 26 | ${AWK} '/\#define[ ]*PERL_API_REVISION/ { R = $$3 }\ | |
29 | /\#define[ ]*PERL_API_VERSION/ { r = "."$$3 } \ | 27 | /\#define[ ]*PERL_API_VERSION/ { r = "."$$3 } \ | |
30 | /\#define[ ]*PERL_API_SUBVERSION/ { s = "."$$3 } \ | 28 | /\#define[ ]*PERL_API_SUBVERSION/ { s = "."$$3 } \ | |
31 | END { printf "%s%s%s\n", R, r, s }' \ | 29 | END { printf "%s%s%s\n", R, r, s }' \ | |
32 | ${WRKSRC}/patchlevel.h; \ | 30 | ${WRKSRC}/patchlevel.h; \ | |
33 | else \ | 31 | else \ | |
34 | ${ECHO} "unknown"; \ | 32 | ${ECHO} "unknown"; \ | |
35 | fi | 33 | fi | |
36 | 34 | |||
37 | PERL5_PREFIX= ${PREFIX} | 35 | PERL5_PREFIX= ${PREFIX} | |
38 | PERL5_VENDORPREFIX= ${PERL5_PREFIX} | 36 | PERL5_VENDORPREFIX= ${PERL5_PREFIX} | |
39 | PERL5_SITEPREFIX?= ${PERL5_PREFIX} | 37 | PERL5_SITEPREFIX?= ${PERL5_PREFIX} | |
40 | BUILD_DEFS+= PERL5_SITEPREFIX | 38 | BUILD_DEFS+= PERL5_SITEPREFIX | |
41 | 39 | |||
42 | PERL5= ${PERL5_PREFIX}/bin/perl | 40 | PERL5= ${PERL5_PREFIX}/bin/perl | |
43 | PERL5_PERLBASE= ${PERL5_PREFIX}/lib/perl5 | 41 | PERL5_PERLBASE= ${PERL5_PREFIX}/lib/perl5 | |
44 | PERL5_VENDORBASE= ${PERL5_VENDORPREFIX}/lib/perl5/vendor_perl | 42 | PERL5_VENDORBASE= ${PERL5_VENDORPREFIX}/lib/perl5/vendor_perl | |
45 | # | 43 | # | |
46 | # The unusual check for empty(PERL5_SITEPREFIX) is because ${PREFIX} isn't | 44 | # The unusual check for empty(PERL5_SITEPREFIX) is because ${PREFIX} isn't | |
47 | # defined until bsd.pkg.mk is included, so when we inspect its value at | 45 | # defined until bsd.pkg.mk is included, so when we inspect its value at | |
48 | # this point, it's empty. | 46 | # this point, it's empty. | |
49 | # | 47 | # | |
50 | .if empty(PERL5_SITEPREFIX) || \ | 48 | .if empty(PERL5_SITEPREFIX) || \ | |
51 | !empty(PERL5_SITEPREFIX:M${LOCALBASE}) || \ | 49 | !empty(PERL5_SITEPREFIX:M${LOCALBASE}) || \ | |
52 | !empty(PERL5_SITEPREFIX:M${LOCALBASE}/*) | 50 | !empty(PERL5_SITEPREFIX:M${LOCALBASE}/*) | |
53 | PERL5_SITEBASE= ${PERL5_SITEPREFIX}/lib/perl5/site_perl | 51 | PERL5_SITEBASE= ${PERL5_SITEPREFIX}/lib/perl5/site_perl | |
54 | .else | 52 | .else | |
55 | PERL5_SITEBASE= ${PERL5_SITEPREFIX} | 53 | PERL5_SITEBASE= ${PERL5_SITEPREFIX} | |
56 | .endif | 54 | .endif | |
57 | 55 | |||
58 | PERL5_PRIVLIB= ${PERL5_PERLBASE}/${PERL5_API_VERS} | 56 | PERL5_PRIVLIB= ${PERL5_PERLBASE}/${PERL5_API_VERS} | |
59 | PERL5_VENDORLIB= ${PERL5_VENDORBASE}/${PERL5_API_VERS} | 57 | PERL5_VENDORLIB= ${PERL5_VENDORBASE}/${PERL5_API_VERS} | |
60 | .if !empty(PERL5_SITEBASE:M*lib/perl5/site_perl) | 58 | .if !empty(PERL5_SITEBASE:M*lib/perl5/site_perl) | |
61 | PERL5_SITELIB= ${PERL5_SITEBASE}/${PERL5_API_VERS} | 59 | PERL5_SITELIB= ${PERL5_SITEBASE}/${PERL5_API_VERS} | |
62 | .else | 60 | .else | |
63 | PERL5_SITELIB= ${PERL5_SITEBASE}/lib/perl5/site_perl/${PERL5_API_VERS} | 61 | PERL5_SITELIB= ${PERL5_SITEBASE}/lib/perl5/site_perl/${PERL5_API_VERS} | |
64 | .endif | 62 | .endif | |
65 | 63 | |||
66 | .include "../../mk/compiler.mk" | 64 | .include "../../mk/compiler.mk" | |
67 | 65 | |||
68 | HAS_CONFIGURE= yes | 66 | HAS_CONFIGURE= yes | |
69 | CONFIGURE_SCRIPT= ./Configure | 67 | CONFIGURE_SCRIPT= ./Configure | |
70 | CONFIGURE_ARGS+= -sde | 68 | CONFIGURE_ARGS+= -sde | |
71 | CONFIGURE_ARGS+= -Darchname="${MACHINE_ARCH}-${LOWER_OPSYS}" | 69 | CONFIGURE_ARGS+= -Darchname="${MACHINE_ARCH}-${LOWER_OPSYS}" | |
72 | CONFIGURE_ARGS+= -Dcc=${CC:Q} | 70 | CONFIGURE_ARGS+= -Dcc=${CC:Q} | |
73 | CONFIGURE_ARGS+= -Doptimize=${CFLAGS:M*:Q} | 71 | CONFIGURE_ARGS+= -Doptimize=${CFLAGS:M*:Q} | |
74 | CONFIGURE_ARGS+= -Ui_malloc | 72 | CONFIGURE_ARGS+= -Ui_malloc | |
75 | CONFIGURE_ARGS+= -Uusemymalloc | 73 | CONFIGURE_ARGS+= -Uusemymalloc | |
76 | CONFIGURE_ARGS+= -Uinstallusrbinperl | 74 | CONFIGURE_ARGS+= -Uinstallusrbinperl | |
77 | MAKE_ENV+= LC_ALL="C" | 75 | MAKE_ENV+= LC_ALL="C" | |
78 | MAKE_JOBS_SAFE= no | 76 | MAKE_JOBS_SAFE= no | |
79 | 77 | |||
80 | TEST_TARGET= test | 78 | TEST_TARGET= test | |
81 | 79 | |||
82 | ### | 80 | ### | |
83 | ### Installation directories for "perl", "vendor" and "site" bits. | 81 | ### Installation directories for "perl", "vendor" and "site" bits. | |
84 | ### | 82 | ### | |
85 | CONFIGURE_ARGS+= -Dinstallstyle="lib/perl5" | 83 | CONFIGURE_ARGS+= -Dinstallstyle="lib/perl5" | |
86 | CONFIGURE_ARGS+= -Dprefix=${PERL5_PREFIX:Q} | 84 | CONFIGURE_ARGS+= -Dprefix=${PERL5_PREFIX:Q} | |
87 | CONFIGURE_ARGS+= -Dsiteprefix=${PERL5_SITEPREFIX:Q} | 85 | CONFIGURE_ARGS+= -Dsiteprefix=${PERL5_SITEPREFIX:Q} | |
88 | CONFIGURE_ARGS+= -Dvendorprefix=${PERL5_VENDORPREFIX:Q} | 86 | CONFIGURE_ARGS+= -Dvendorprefix=${PERL5_VENDORPREFIX:Q} | |
89 | 87 | |||
90 | # The Perl Configure script will install scripts into "*/script" | 88 | # The Perl Configure script will install scripts into "*/script" | |
91 | # directories if they exist, so override with explicit settings. | 89 | # directories if they exist, so override with explicit settings. | |
92 | # | 90 | # | |
93 | PERL5_SCRIPTDIR= ${PERL5_PERLBASE}/bin | 91 | PERL5_SCRIPTDIR= ${PERL5_PERLBASE}/bin | |
94 | 92 | |||
95 | CONFIGURE_ARGS+= -Dscriptdir=${PERL5_SCRIPTDIR:Q} | 93 | CONFIGURE_ARGS+= -Dscriptdir=${PERL5_SCRIPTDIR:Q} | |
96 | CONFIGURE_ARGS+= -Dsitescript=${PERL5_SITEBASE:Q}/bin | 94 | CONFIGURE_ARGS+= -Dsitescript=${PERL5_SITEBASE:Q}/bin | |
97 | CONFIGURE_ARGS+= -Dvendorscript=${PERL5_VENDORBASE:Q}/bin | 95 | CONFIGURE_ARGS+= -Dvendorscript=${PERL5_VENDORBASE:Q}/bin | |
98 | 96 | |||
99 | # Put any compiled binaries into vendor- and site-specific locations to | 97 | # Put any compiled binaries into vendor- and site-specific locations to | |
100 | # avoid conflicts with each other. The perllink script will handle all | 98 | # avoid conflicts with each other. The perllink script will handle all | |
101 | # the appropriate symlinking. | 99 | # the appropriate symlinking. | |
102 | # | 100 | # | |
103 | CONFIGURE_ARGS+= -Dsitebin=${PERL5_SITEBASE:Q}/bin | 101 | CONFIGURE_ARGS+= -Dsitebin=${PERL5_SITEBASE:Q}/bin | |
104 | CONFIGURE_ARGS+= -Dvendorbin=${PERL5_VENDORBASE:Q}/bin | 102 | CONFIGURE_ARGS+= -Dvendorbin=${PERL5_VENDORBASE:Q}/bin | |
105 | 103 | |||
106 | # Put the API-specific files into API-specific directories instead | 104 | # Put the API-specific files into API-specific directories instead | |
107 | # of the default version-specific directories. | 105 | # of the default version-specific directories. | |
108 | # | 106 | # | |
109 | CONFIGURE_ARGS+= -Dprivlib=${PERL5_PRIVLIB:Q} | 107 | CONFIGURE_ARGS+= -Dprivlib=${PERL5_PRIVLIB:Q} | |
110 | CONFIGURE_ARGS+= -Dsitelib=${PERL5_SITELIB:Q} | 108 | CONFIGURE_ARGS+= -Dsitelib=${PERL5_SITELIB:Q} | |
111 | CONFIGURE_ARGS+= -Dvendorlib=${PERL5_VENDORLIB:Q} | 109 | CONFIGURE_ARGS+= -Dvendorlib=${PERL5_VENDORLIB:Q} | |
112 | 110 | |||
113 | # Search for version-specific directories under these directories. | 111 | # Search for version-specific directories under these directories. | |
114 | CONFIGURE_ARGS+= -Dsitelib_stem=${PERL5_SITEBASE:Q} | 112 | CONFIGURE_ARGS+= -Dsitelib_stem=${PERL5_SITEBASE:Q} | |
115 | CONFIGURE_ARGS+= -Dvendorlib_stem=${PERL5_VENDORBASE:Q} | 113 | CONFIGURE_ARGS+= -Dvendorlib_stem=${PERL5_VENDORBASE:Q} | |
116 | 114 | |||
117 | # Avoid manpage conflicts between the standard Perl library, 3rd-party | 115 | # Avoid manpage conflicts between the standard Perl library, 3rd-party | |
118 | # modules, and other packages. | 116 | # modules, and other packages. | |
119 | # | 117 | # | |
120 | PERL5_MAN1DIR= ${PERL5_PERLBASE}/${PKGMANDIR}/man1 | 118 | PERL5_MAN1DIR= ${PERL5_PERLBASE}/${PKGMANDIR}/man1 | |
121 | 119 | |||
122 | CONFIGURE_ARGS+= -Dman1ext="1" | 120 | CONFIGURE_ARGS+= -Dman1ext="1" | |
123 | CONFIGURE_ARGS+= -Dman1dir=${PERL5_MAN1DIR:Q} | 121 | CONFIGURE_ARGS+= -Dman1dir=${PERL5_MAN1DIR:Q} | |
124 | CONFIGURE_ARGS+= -Dsiteman1dir=${PERL5_SITEBASE:Q}/${PKGMANDIR:Q}/man1 | 122 | CONFIGURE_ARGS+= -Dsiteman1dir=${PERL5_SITEBASE:Q}/${PKGMANDIR:Q}/man1 | |
125 | CONFIGURE_ARGS+= -Dvendorman1dir=${PERL5_VENDORBASE:Q}/${PKGMANDIR:Q}/man1 | 123 | CONFIGURE_ARGS+= -Dvendorman1dir=${PERL5_VENDORBASE:Q}/${PKGMANDIR:Q}/man1 | |
126 | CONFIGURE_ARGS+= -Dman3ext="3" | 124 | CONFIGURE_ARGS+= -Dman3ext="3" | |
127 | CONFIGURE_ARGS+= -Dman3dir=${PERL5_PERLBASE:Q}/${PKGMANDIR:Q}/man3 | 125 | CONFIGURE_ARGS+= -Dman3dir=${PERL5_PERLBASE:Q}/${PKGMANDIR:Q}/man3 | |
128 | CONFIGURE_ARGS+= -Dsiteman3dir=${PERL5_SITEBASE:Q}/${PKGMANDIR:Q}/man3 | 126 | CONFIGURE_ARGS+= -Dsiteman3dir=${PERL5_SITEBASE:Q}/${PKGMANDIR:Q}/man3 | |
129 | CONFIGURE_ARGS+= -Dvendorman3dir=${PERL5_VENDORBASE:Q}/${PKGMANDIR:Q}/man3 | 127 | CONFIGURE_ARGS+= -Dvendorman3dir=${PERL5_VENDORBASE:Q}/${PKGMANDIR:Q}/man3 | |
130 | 128 | |||
131 | .if ${OPSYS} == "Darwin" | 129 | .if ${OPSYS} == "Darwin" | |
132 | # | 130 | # | |
133 | # The Perl build attempts to work around case-insensitivity problems on | 131 | # The Perl build attempts to work around case-insensitivity problems on | |
134 | # HFS filesystems by using GNUmakefiles, so we need to use GNU make. | 132 | # HFS filesystems by using GNUmakefiles, so we need to use GNU make. | |
135 | # | 133 | # | |
136 | USE_TOOLS+= gmake | 134 | USE_TOOLS+= gmake | |
137 | .endif | 135 | .endif | |
138 | 136 | |||
139 | # | 137 | # | |
140 | # For the moment disable the building of a shared libperl.dylib on Darwin | 138 | # For the moment disable the building of a shared libperl.dylib on Darwin | |
141 | # => 9.0 as it breaks the build. This should just be considered a temporary | 139 | # => 9.0 as it breaks the build. This should just be considered a temporary | |
142 | # work around until the actual problem can be fixed as this worked for | 140 | # work around until the actual problem can be fixed as this worked for | |
143 | # Darwin < 9.0. | 141 | # Darwin < 9.0. | |
144 | # | 142 | # | |
145 | .if empty(MACHINE_PLATFORM:MDarwin-9.*-*) | 143 | .if empty(MACHINE_PLATFORM:MDarwin-9.*-*) | |
146 | CONFIGURE_ARGS+= -Duseshrplib | 144 | CONFIGURE_ARGS+= -Duseshrplib | |
147 | .endif | 145 | .endif | |
148 | 146 | |||
149 | # Perl embeds the full paths to the following tools in several installed | 147 | # Perl embeds the full paths to the following tools in several installed | |
150 | # files, so make sure the paths to the ones in ${TOOLS_DIR} aren't used. | 148 | # files, so make sure the paths to the ones in ${TOOLS_DIR} aren't used. | |
151 | # | 149 | # | |
152 | USE_TOOLS+= hostname ln sed test | 150 | USE_TOOLS+= hostname ln sed test | |
153 | CONFIGURE_ARGS+= -Daphostname=${TOOLS_HOSTNAME_CMD:Q} | 151 | CONFIGURE_ARGS+= -Daphostname=${TOOLS_HOSTNAME_CMD:Q} | |
154 | CONFIGURE_ARGS+= -Dln=${TOOLS_LN:Q} | 152 | CONFIGURE_ARGS+= -Dln=${TOOLS_LN:Q} | |
155 | CONFIGURE_ARGS+= -Dsed=${TOOLS_SED:Q} | 153 | CONFIGURE_ARGS+= -Dsed=${TOOLS_SED:Q} | |
156 | TOOLS_ALIASES.sed+= ${TOOLS_SED:T} | 154 | TOOLS_ALIASES.sed+= ${TOOLS_SED:T} | |
157 | CONFIGURE_ARGS+= -Dsh=${TOOLS_SH:Q} | 155 | CONFIGURE_ARGS+= -Dsh=${TOOLS_SH:Q} | |
158 | CONFIGURE_ARGS+= -Dissymlink="${TOOLS_TEST} -h" | 156 | CONFIGURE_ARGS+= -Dissymlink="${TOOLS_TEST} -h" | |
159 | CONFIGURE_ARGS+= -Dperl5=${FALSE} | 157 | CONFIGURE_ARGS+= -Dperl5=${FALSE} | |
160 | 158 | |||
161 | # Nail down the needed libraries for each platform here to avoid hidden | 159 | # Nail down the needed libraries for each platform here to avoid hidden | |
162 | # dependencies. If this isn't defined, then use the perl defaults for the | 160 | # dependencies. If this isn't defined, then use the perl defaults for the | |
163 | # particular operating system. | 161 | # particular operating system. | |
164 | # | 162 | # | |
165 | LIBSWANTED.Darwin= m c | 163 | LIBSWANTED.Darwin= m c | |
166 | LIBSWANTED.DragonFly= m crypt | 164 | LIBSWANTED.DragonFly= m crypt | |
167 | LIBSWANTED.FreeBSD= m crypt | 165 | LIBSWANTED.FreeBSD= m crypt | |
168 | LIBSWANTED.IRIX= m crypt | 166 | LIBSWANTED.IRIX= m crypt | |
169 | LIBSWANTED.Interix= m dl | 167 | LIBSWANTED.Interix= m dl | |
170 | LIBSWANTED.Linux= m crypt dl nsl | 168 | LIBSWANTED.Linux= m crypt dl nsl | |
171 | LIBSWANTED.NetBSD= m crypt | 169 | LIBSWANTED.NetBSD= m crypt | |
172 | LIBSWANTED.OpenBSD= m crypt | 170 | LIBSWANTED.OpenBSD= m crypt | |
173 | LIBSWANTED.SunOS= m crypt dl socket nsl | 171 | LIBSWANTED.SunOS= m crypt dl socket nsl | |
174 | LIBSWANTED= ${LIBSWANTED.${OPSYS}} | 172 | LIBSWANTED= ${LIBSWANTED.${OPSYS}} | |
175 | 173 | |||
176 | # Nail down the directories in which the system libraries may be found. | 174 | # Nail down the directories in which the system libraries may be found. | |
177 | # If this isn't defined, then use the perl defaults for the particular | 175 | # If this isn't defined, then use the perl defaults for the particular | |
178 | # operating system. | 176 | # operating system. | |
179 | # | 177 | # | |
180 | SYSLIBPATH.Darwin= /usr/lib | 178 | SYSLIBPATH.Darwin= /usr/lib | |
181 | SYSLIBPATH.DragonFly= /usr/lib | 179 | SYSLIBPATH.DragonFly= /usr/lib | |
182 | SYSLIBPATH.FreeBSD= /usr/lib | 180 | SYSLIBPATH.FreeBSD= /usr/lib | |
183 | SYSLIBPATH.Interix= /usr/lib | 181 | SYSLIBPATH.Interix= /usr/lib | |
184 | SYSLIBPATH.NetBSD= /usr/lib | 182 | SYSLIBPATH.NetBSD= /usr/lib | |
185 | SYSLIBPATH.OpenBSD= /usr/lib | 183 | SYSLIBPATH.OpenBSD= /usr/lib | |
186 | SYSLIBPATH.SunOS= /usr/lib | 184 | SYSLIBPATH.SunOS= /usr/lib | |
187 | SYSLIBPATH= ${SYSLIBPATH.${OPSYS}} | 185 | SYSLIBPATH= ${SYSLIBPATH.${OPSYS}} | |
188 | 186 | |||
189 | # Nail down the directories in which headers and libraries of | 187 | # Nail down the directories in which headers and libraries of | |
190 | # locally-installed software may be found. | 188 | # locally-installed software may be found. | |
191 | # | 189 | # | |
192 | LOCLIBPATH= ${LOCALBASE}/lib | 190 | LOCLIBPATH= ${LOCALBASE}/lib | |
193 | LOCINCPATH= ${LOCALBASE}/include | 191 | LOCINCPATH= ${LOCALBASE}/include | |
194 | 192 | |||
195 | # On a.out platforms, we link with "ld" and on ELF platforms, we link with | 193 | # On a.out platforms, we link with "ld" and on ELF platforms, we link with | |
196 | # "cc", so we need to use different options to pass the run-time search path | 194 | # "cc", so we need to use different options to pass the run-time search path | |
197 | # flags to the link command in the right way. | 195 | # flags to the link command in the right way. | |
198 | # | 196 | # | |
199 | .if ${OBJECT_FMT} == "a.out" | 197 | .if ${OBJECT_FMT} == "a.out" | |
200 | LOCLIBRPATHFLAGS= ${LOCLIBPATH:S/^/${LINKER_RPATH_FLAG} /g} | 198 | LOCLIBRPATHFLAGS= ${LOCLIBPATH:S/^/${LINKER_RPATH_FLAG} /g} | |
201 | .elif ${OBJECT_FMT} == "ELF" | 199 | .elif ${OBJECT_FMT} == "ELF" | |
202 | LOCLIBRPATHFLAGS= ${LOCLIBPATH:S/^/${COMPILER_RPATH_FLAG}/g} | 200 | LOCLIBRPATHFLAGS= ${LOCLIBPATH:S/^/${COMPILER_RPATH_FLAG}/g} | |
203 | .else | 201 | .else | |
204 | LOCLIBRPATHFLAGS= # empty | 202 | LOCLIBRPATHFLAGS= # empty | |
205 | .endif | 203 | .endif | |
206 | 204 | |||
207 | .include "../../mk/dlopen.buildlink3.mk" | 205 | .include "../../mk/dlopen.buildlink3.mk" | |
208 | 206 | |||
209 | CHECK_BUILTIN.pthread:= yes | 207 | CHECK_BUILTIN.pthread:= yes | |
210 | .include "../../mk/pthread.builtin.mk" | 208 | .include "../../mk/pthread.builtin.mk" | |
211 | CHECK_BUILTIN.pthread:= no | 209 | CHECK_BUILTIN.pthread:= no | |
212 | 210 | |||
213 | # By default, build with threads only if the threads are native. | 211 | # By default, build with threads only if the threads are native. | |
214 | .if !empty(USE_BUILTIN.pthread:M[yY][eE][sS]) | 212 | .if !empty(USE_BUILTIN.pthread:M[yY][eE][sS]) | |
215 | PERL5_BUILD_THREADS_SUPPORT= yes | 213 | PERL5_BUILD_THREADS_SUPPORT= yes | |
216 | .else | 214 | .else | |
217 | PERL5_BUILD_THREADS_SUPPORT= ${DLOPEN_REQUIRE_PTHREADS} | 215 | PERL5_BUILD_THREADS_SUPPORT= ${DLOPEN_REQUIRE_PTHREADS} | |
218 | .endif | 216 | .endif | |
219 | 217 | |||
220 | ### [Sat Dec 18 17:29:44 EST 2004 : jlam] | 218 | ### [Sat Dec 18 17:29:44 EST 2004 : jlam] | |
221 | ### Native threading on VAX isn't ready for primetime in NetBSD>=2.0. | 219 | ### Native threading on VAX isn't ready for primetime in NetBSD>=2.0. | |
222 | ### Build Perl without threads-support until VAX native threads are | 220 | ### Build Perl without threads-support until VAX native threads are | |
223 | ### known to work. | 221 | ### known to work. | |
224 | ### | 222 | ### | |
225 | .if !empty(MACHINE_PLATFORM:MNetBSD-*-vax) && \ | 223 | .if !empty(MACHINE_PLATFORM:MNetBSD-*-vax) && \ | |
226 | !empty(USE_BUILTIN.pthread:M[yY][eE][sS]) | 224 | !empty(USE_BUILTIN.pthread:M[yY][eE][sS]) | |
227 | PKG_HACKS+= broken-vax-pthreads | 225 | PKG_HACKS+= broken-vax-pthreads | |
228 | PERL5_BUILD_THREADS_SUPPORT= no | 226 | PERL5_BUILD_THREADS_SUPPORT= no | |
229 | .endif | 227 | .endif | |
230 | 228 | |||
231 | PKG_OPTIONS_VAR= PKG_OPTIONS.perl | 229 | PKG_OPTIONS_VAR= PKG_OPTIONS.perl | |
232 | PKG_SUPPORTED_OPTIONS= debug threads | 230 | PKG_SUPPORTED_OPTIONS= debug threads | |
233 | .if !empty(PERL5_BUILD_THREADS_SUPPORT:M[yY][eE][sS]) | 231 | .if !empty(PERL5_BUILD_THREADS_SUPPORT:M[yY][eE][sS]) | |
234 | PKG_SUGGESTED_OPTIONS= threads | 232 | PKG_SUGGESTED_OPTIONS= threads | |
235 | .endif | 233 | .endif | |
236 | 234 | |||
237 | .include "../../mk/bsd.options.mk" | 235 | .include "../../mk/bsd.options.mk" | |
238 | 236 | |||
239 | .if !empty(PKG_OPTIONS:Mthreads) | 237 | .if !empty(PKG_OPTIONS:Mthreads) | |
240 | . include "../../mk/pthread.buildlink3.mk" | 238 | . include "../../mk/pthread.buildlink3.mk" | |
241 | CONFIGURE_ARGS+= -Duseithreads | 239 | CONFIGURE_ARGS+= -Duseithreads | |
242 | CFLAGS+= ${PTHREAD_CFLAGS} | 240 | CFLAGS+= ${PTHREAD_CFLAGS} | |
243 | LIBSWANTED+= ${PTHREAD_LIBS:M-l*:S/^-l//} | 241 | LIBSWANTED+= ${PTHREAD_LIBS:M-l*:S/^-l//} | |
244 | .else | 242 | .else | |
245 | CONFIGURE_ARGS+= -Uuseithreads | 243 | CONFIGURE_ARGS+= -Uuseithreads | |
246 | .endif | 244 | .endif | |
247 | 245 | |||
248 | .if !empty(PKG_OPTIONS:Mdebug) | 246 | .if !empty(PKG_OPTIONS:Mdebug) | |
249 | CFLAGS+= -DDEBUGGING | 247 | CFLAGS+= -DDEBUGGING | |
250 | .endif | 248 | .endif | |
251 | 249 | |||
252 | .if !empty(LIBSWANTED) | 250 | .if !empty(LIBSWANTED) | |
253 | CONFIGURE_ARGS+= -Dlibswanted=${LIBSWANTED:Q} | 251 | CONFIGURE_ARGS+= -Dlibswanted=${LIBSWANTED:Q} | |
254 | .endif | 252 | .endif | |
255 | 253 | |||
256 | .include "../../mk/compiler.mk" | 254 | .include "../../mk/compiler.mk" | |
257 | 255 | |||
258 | .if ${OPSYS} == "IRIX" | 256 | .if ${OPSYS} == "IRIX" | |
259 | . if defined(ABI) && ${ABI} == "64" | 257 | . if defined(ABI) && ${ABI} == "64" | |
260 | CONFIGURE_ARGS+= -Duse64bitint | 258 | CONFIGURE_ARGS+= -Duse64bitint | |
261 | . endif | 259 | . endif | |
262 | .endif | 260 | .endif | |
263 | 261 | |||
262 | # Remove a spurious workdir reference | |||
263 | SUBST_CLASSES+= rm | |||
264 | SUBST_STAGE.rm= pre-install | |||
265 | SUBST_FILES.rm= lib/Config_heavy.pl | |||
266 | SUBST_SED.rm= -e "s!^rm_try=\'/.*work/.tools/bin/rm -f!rm_try=\'/bin/rm -f!" | |||
267 | ||||
268 | # Replace our perl as the interpreter | |||
269 | REPLACE_PERL+= lib/Class/ISA.pm | |||
270 | REPLACE_PERL+= lib/File/DosGlob.pm | |||
271 | REPLACE_PERL+= lib/version.pm | |||
272 | ||||
273 | # And replace a perl interpreter during the pre-install stage | |||
274 | # I think this may be a bootstrap script, so can't use REPLACE_PERL | |||
275 | # because that is acted upon already in the pre-configure stage | |||
276 | SUBST_CLASSES+= miniperl | |||
277 | SUBST_STAGE.miniperl= pre-install | |||
278 | SUBST_FILES.miniperl= lib/ExtUtils/xsubpp | |||
279 | SUBST_SED.miniperl= -e "1s:\#!./miniperl:\#!${PERL5}:" | |||
280 | ||||
264 | # Some platforms may want the directory mode not to be 0755. This | 281 | # Some platforms may want the directory mode not to be 0755. This | |
265 | # is, unfortunately, hardcoded in quite a few places in Perl, so | 282 | # is, unfortunately, hardcoded in quite a few places in Perl, so | |
266 | # let's substitute what pkgsrc says instead. | 283 | # let's substitute what pkgsrc says instead. | |
267 | # | 284 | # | |
268 | SUBST_CLASSES+= dirmode | 285 | SUBST_CLASSES+= dirmode | |
269 | SUBST_STAGE.dirmode= post-patch | 286 | SUBST_STAGE.dirmode= post-patch | |
270 | SUBST_FILES.dirmode= installhtml installman installperl \ | 287 | SUBST_FILES.dirmode= installhtml installman installperl \ | |
271 | lib/ExtUtils/Install.pm | 288 | lib/ExtUtils/Install.pm | |
272 | SUBST_SED.dirmode= -e "s/755/${PKGDIRMODE}/g;/umask(/d" | 289 | SUBST_SED.dirmode= -e "s/755/${PKGDIRMODE}/g;/umask(/d" | |
273 | 290 | |||
274 | # It's tough to guess which hints file will be used, so add our modifications | 291 | # It's tough to guess which hints file will be used, so add our modifications | |
275 | # to all of them: | 292 | # to all of them: | |
276 | # | 293 | # | |
277 | # - Add the pkgsrc-derived LDFLAGS for linking against pthreads to the | 294 | # - Add the pkgsrc-derived LDFLAGS for linking against pthreads to the | |
278 | # usethreads.cbu call-back script. | 295 | # usethreads.cbu call-back script. | |
279 | # | 296 | # | |
280 | # - Generate a pkgsrc.cbu call-back script that sets the correct LDFLAGS | 297 | # - Generate a pkgsrc.cbu call-back script that sets the correct LDFLAGS | |
281 | # for linking against pkgsrc-installed libraries. | 298 | # for linking against pkgsrc-installed libraries. | |
282 | # | 299 | # | |
283 | # - Explicitly set the local compiler search paths to contain only the | 300 | # - Explicitly set the local compiler search paths to contain only the | |
284 | # pkgsrc-controlled directories. | 301 | # pkgsrc-controlled directories. | |
285 | # | 302 | # | |
286 | pre-configure: | 303 | pre-configure: | |
287 | .if defined(PTHREAD_LDFLAGS) && !empty(PTHREAD_LDFLAGS) | 304 | .if defined(PTHREAD_LDFLAGS) && !empty(PTHREAD_LDFLAGS) | |
288 | hintdir="${WRKSRC}/hints"; \ | 305 | hintdir="${WRKSRC}/hints"; \ | |
289 | for hints in $${hintdir}/*.sh; do \ | 306 | for hints in $${hintdir}/*.sh; do \ | |
290 | ${CHMOD} +w $${hints}; \ | 307 | ${CHMOD} +w $${hints}; \ | |
291 | { ${ECHO} ""; \ | 308 | { ${ECHO} ""; \ | |
292 | ${ECHO} "cat >> UU/usethreads.cbu <<'EOCBU'"; \ | 309 | ${ECHO} "cat >> UU/usethreads.cbu <<'EOCBU'"; \ | |
293 | ${ECHO} ""; \ | 310 | ${ECHO} ""; \ | |
294 | ${ECHO} "# Add pkgsrc-derived ldflags to link with thread support."; \ | 311 | ${ECHO} "# Add pkgsrc-derived ldflags to link with thread support."; \ | |
295 | ${ECHO} 'ldflags="'${PTHREAD_LDFLAGS:Q}' $$ldflags"'; \ | 312 | ${ECHO} 'ldflags="'${PTHREAD_LDFLAGS:Q}' $$ldflags"'; \ | |
296 | ${ECHO} 'lddlflags="'${PTHREAD_LDFLAGS:Q}' $$lddlflags"'; \ | 313 | ${ECHO} 'lddlflags="'${PTHREAD_LDFLAGS:Q}' $$lddlflags"'; \ | |
297 | ${ECHO} "EOCBU"; \ | 314 | ${ECHO} "EOCBU"; \ | |
298 | } >> $${hints}; \ | 315 | } >> $${hints}; \ | |
299 | done | 316 | done | |
300 | .endif | 317 | .endif | |
301 | hintdir="${WRKSRC}/hints"; \ | 318 | hintdir="${WRKSRC}/hints"; \ | |
302 | for hints in $${hintdir}/*.sh; do \ | 319 | for hints in $${hintdir}/*.sh; do \ | |
303 | ${CHMOD} +w $${hints}; \ | 320 | ${CHMOD} +w $${hints}; \ | |
304 | { ${ECHO} ""; \ | 321 | { ${ECHO} ""; \ | |
305 | ${ECHO} "cat > UU/pkgsrc.cbu <<'EOCBU'"; \ | 322 | ${ECHO} "cat > UU/pkgsrc.cbu <<'EOCBU'"; \ | |
306 | ${ECHO} "# This script UU/pkgsrc.cbu will get 'called-back' by Configure to set"; \ | 323 | ${ECHO} "# This script UU/pkgsrc.cbu will get 'called-back' by Configure to set"; \ | |
307 | ${ECHO} '# linker options after all other call-back scripts have been invoked.'; \ | 324 | ${ECHO} '# linker options after all other call-back scripts have been invoked.'; \ | |
308 | ${ECHO} 'ldflags="'${LOCLIBRPATHFLAGS:Q}' $$ldflags"'; \ | 325 | ${ECHO} 'ldflags="'${LOCLIBRPATHFLAGS:Q}' $$ldflags"'; \ | |
309 | ${ECHO} 'lddlflags="'${LOCLIBRPATHFLAGS:Q}' $$lddlflags"'; \ | 326 | ${ECHO} 'lddlflags="'${LOCLIBRPATHFLAGS:Q}' $$lddlflags"'; \ | |
310 | ${ECHO} "EOCBU"; \ | 327 | ${ECHO} "EOCBU"; \ | |
311 | } >> $${hints}; \ | 328 | } >> $${hints}; \ | |
312 | done | 329 | done | |
313 | hintdir="${WRKSRC}/hints"; \ | 330 | hintdir="${WRKSRC}/hints"; \ | |
314 | for hints in $${hintdir}/*.sh; do \ | 331 | for hints in $${hintdir}/*.sh; do \ | |
315 | ${CHMOD} +w $${hints}; \ | 332 | ${CHMOD} +w $${hints}; \ | |
316 | { ${ECHO} ""; \ | 333 | { ${ECHO} ""; \ | |
317 | ${ECHO} "# Set pkgsrc defaults for library and header search paths."; \ | 334 | ${ECHO} "# Set pkgsrc defaults for library and header search paths."; \ | |
318 | ${ECHO} 'locincpth="'${LOCINCPATH:Q}'"'; \ | 335 | ${ECHO} 'locincpth="'${LOCINCPATH:Q}'"'; \ | |
319 | ${ECHO} 'loclibpth="'${LOCLIBPATH:Q}'"'; \ | 336 | ${ECHO} 'loclibpth="'${LOCLIBPATH:Q}'"'; \ | |
320 | } >> $${hints}; \ | 337 | } >> $${hints}; \ | |
321 | done | 338 | done | |
322 | .if !empty(SYSLIBPATH) | 339 | .if !empty(SYSLIBPATH) | |
323 | hintdir="${WRKSRC}/hints"; \ | 340 | hintdir="${WRKSRC}/hints"; \ | |
324 | for hints in $${hintdir}/*.sh; do \ | 341 | for hints in $${hintdir}/*.sh; do \ | |
325 | ${CHMOD} +w $${hints}; \ | 342 | ${CHMOD} +w $${hints}; \ | |
326 | ${ECHO} 'glibpth="'${SYSLIBPATH:Q}'"' >> $${hints}; \ | 343 | ${ECHO} 'glibpth="'${SYSLIBPATH:Q}'"' >> $${hints}; \ | |
327 | done | 344 | done | |
328 | .endif | 345 | .endif | |
329 | 346 | |||
330 | post-build: | 347 | post-build: | |
331 | ${SED} -e "s,@PERL5@,"${PERL5:Q}",g" \ | 348 | ${SED} -e "s,@PERL5@,"${PERL5:Q}",g" \ | |
332 | -e "s,@SH@,"${SH:Q}",g" \ | 349 | -e "s,@SH@,"${SH:Q}",g" \ | |
333 | -e "s,@PKGMANDIR@,"${PKGMANDIR:Q}",g" \ | 350 | -e "s,@PKGMANDIR@,"${PKGMANDIR:Q}",g" \ | |
334 | ${FILESDIR}/perllink.in > ${WRKDIR}/perllink.sh | 351 | ${FILESDIR}/perllink.in > ${WRKDIR}/perllink.sh | |
335 | 352 | |||
336 | INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 | 353 | INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 | |
337 | PERL5_PACKLIST_DIR_cmd= . ${WRKSRC}/config.sh; echo $$installarchlib | 354 | PERL5_PACKLIST_DIR_cmd= . ${WRKSRC}/config.sh; echo $$installarchlib | |
338 | PERL5_PACKLIST_DIR= ${PERL5_PACKLIST_DIR_cmd:sh} | 355 | PERL5_PACKLIST_DIR= ${PERL5_PACKLIST_DIR_cmd:sh} | |
339 | PERL5_PACKLIST= .packlist | 356 | PERL5_PACKLIST= .packlist | |
340 | PERL5_PACKLIST_DESTDIR= no | 357 | PERL5_PACKLIST_DESTDIR= no | |
341 | FILES_SUBST+= PERL5_COMMENT=\# | 358 | FILES_SUBST+= PERL5_COMMENT=\# | |
342 | FILES_SUBST+= PERL5_PACKLIST= | 359 | FILES_SUBST+= PERL5_PACKLIST= | |
343 | PLIST_SRC= ${WRKDIR}/.PLIST_SRC | 360 | PLIST_SRC= ${WRKDIR}/.PLIST_SRC | |
344 | 361 | |||
345 | post-install: perl5-post-install | 362 | post-install: perl5-post-install | |
346 | 363 | |||
347 | perl5-post-install: | 364 | perl5-post-install: | |
348 | if ${TEST} -x ${DESTDIR}${PREFIX}/bin/a2p; then \ | 365 | if ${TEST} -x ${DESTDIR}${PREFIX}/bin/a2p; then \ | |
349 | strip ${DESTDIR}${PREFIX}/bin/a2p; \ | 366 | strip ${DESTDIR}${PREFIX}/bin/a2p; \ | |
350 | fi | 367 | fi | |
351 | ${INSTALL_SCRIPT} ${WRKDIR}/perllink.sh ${DESTDIR}${PERL5_SCRIPTDIR}/perllink; \ | 368 | ${INSTALL_SCRIPT} ${WRKDIR}/perllink.sh ${DESTDIR}${PERL5_SCRIPTDIR}/perllink; \ | |
352 | ${INSTALL_MAN} ${FILESDIR}/perllink.1 ${DESTDIR}${PERL5_MAN1DIR}/perllink.1; \ | 369 | ${INSTALL_MAN} ${FILESDIR}/perllink.1 ${DESTDIR}${PERL5_MAN1DIR}/perllink.1; \ | |
353 | ${RM} -f ${DESTDIR}${PREFIX}/bin/perllink \ | 370 | ${RM} -f ${DESTDIR}${PREFIX}/bin/perllink \ | |
354 | ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/perllink.1; \ | 371 | ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/perllink.1; \ | |
355 | ${LN} -s ${PERL5_SCRIPTDIR}/perllink ${DESTDIR}${PREFIX}/bin/perllink; \ | 372 | ${LN} -s ${PERL5_SCRIPTDIR}/perllink ${DESTDIR}${PREFIX}/bin/perllink; \ | |
356 | ${LN} -s ${PERL5_MAN1DIR}/perllink.1 \ | 373 | ${LN} -s ${PERL5_MAN1DIR}/perllink.1 \ | |
357 | ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/perllink.1; \ | 374 | ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/perllink.1; \ | |
358 | { ${CAT} ${PKGDIR}/PLIST; \ | 375 | { ${CAT} ${PKGDIR}/PLIST; \ | |
359 | ${ECHO} "${PERL5_SCRIPTDIR}/perllink"; \ | 376 | ${ECHO} "${PERL5_SCRIPTDIR}/perllink"; \ | |
360 | ${ECHO} "${PERL5_MAN1DIR}/perllink.1"; \ | 377 | ${ECHO} "${PERL5_MAN1DIR}/perllink.1"; \ | |
361 | } | ${SED} -e "s,^"${PREFIX:Q}"/,," > ${PLIST_SRC} | 378 | } | ${SED} -e "s,^"${PREFIX:Q}"/,," > ${PLIST_SRC} | |
362 | 379 | |||
363 | .include "packlist.mk" | 380 | .include "packlist.mk" | |
364 | .include "../../mk/bsd.pkg.mk" | 381 | .include "../../mk/bsd.pkg.mk" |
@@ -1,35 +1,21 @@ | @@ -1,35 +1,21 @@ | |||
1 | $NetBSD: distinfo,v 1.49 2008/07/30 23:07:52 ahoka Exp $ | 1 | $NetBSD: distinfo,v 1.50 2008/10/10 21:58:43 he Exp $ | |
2 | 2 | |||
3 | SHA1 (perl-5.8.8.tar.bz2) = 4aab490040727ca4419098720eca2ba4367df539 | 3 | SHA1 (perl-5.10.0.tar.gz) = adf73606dd5248af7ccdd735bcaa0e628ea75b3c | |
4 | RMD160 (perl-5.8.8.tar.bz2) = e78f26d9b96e6db35f946ad4ff55e3a69385c71b | 4 | RMD160 (perl-5.10.0.tar.gz) = c6614fc99a162790a703f91085b24a60af903ba2 | |
5 | Size (perl-5.8.8.tar.bz2) = 10123359 bytes | 5 | Size (perl-5.10.0.tar.gz) = 15595020 bytes | |
6 | SHA1 (patch-aa) = 9b6844635086206dc7740103747a2b54bf987941 | 6 | SHA1 (patch-aa) = 5bd44a8076cf27e2deac52240af7f3898865859c | |
7 | SHA1 (patch-ab) = e32427327192f023477b16f29bc55fdf4f057410 | 7 | SHA1 (patch-ab) = e32427327192f023477b16f29bc55fdf4f057410 | |
8 | SHA1 (patch-ac) = 428e0757495b82a47ec092a71333fb3ec366f14f | 8 | SHA1 (patch-ah) = 1d2f4049dcc8dafcd0eafad36a74531dc7f305c9 | |
9 | SHA1 (patch-ad) = 914e1c74555a9b6a0256992a694b2ba609f29786 | 9 | SHA1 (patch-aq) = 3ece22678e3e6dcd3cf641e6389ff203cbe351b9 | |
10 | SHA1 (patch-ae) = 287ac0d97a5372c8b45457129f3e70fe42cf69e2 | 10 | SHA1 (patch-as) = 8656cb4d9baf43dd92f4c467aaa40802d4c43239 | |
11 | SHA1 (patch-af) = b11574297e46b910f206f09702effc6cc272b0fd | 11 | SHA1 (patch-ba) = dc150656628e83e25c99f246a0fb30906d185184 | |
12 | SHA1 (patch-ag) = 0122ec30b8fcd17198e068d07e95974bee0945b6 | 12 | SHA1 (patch-ca) = 47db0530a705b8086b2bfc58491f9b56de4b9e12 | |
13 | SHA1 (patch-ah) = 25443063c26287b1b8130c53d5c9d92248d4c0d1 | 13 | SHA1 (patch-ch) = 5b6a89c82e158bab0a5f06add48c28e600678099 | |
14 | SHA1 (patch-ai) = 4a07c6268a1e27b73f2f6fcde86f788fce77fcbd | 14 | SHA1 (patch-ci) = 70531d44b6e2cb7a7ab9fb20ffe91d97e5c03e3a | |
15 | SHA1 (patch-aj) = a2fc32766ed8556455c60780fe242a034ce491a9 | |||
16 | SHA1 (patch-ak) = 8899f8b6d1d038b950979073cb0527c8e7afca1e | |||
17 | SHA1 (patch-am) = cf1687063d0c0542e811545aaaad291bad12d75e | |||
18 | SHA1 (patch-an) = 987763c3098bf4356993dd6d8741962a1ff8190d | |||
19 | SHA1 (patch-ap) = 178d6909a8aa6544b849c2b63530fcf1893b77ea | |||
20 | SHA1 (patch-aq) = b9569d0cd74a06912e82498cd2bfba131c0b6f3b | |||
21 | SHA1 (patch-ar) = 9d257ceeca337e3d477b80215560bbc290d19dd2 | |||
22 | SHA1 (patch-as) = 371827db418eac11f0b49df45e9d587106908bf0 | |||
23 | SHA1 (patch-ba) = 27aefd5043c251380ac607df54fff882f689f237 | |||
24 | SHA1 (patch-ca) = 5ed14e043a6d5f8dadf5711b59418f01aa5f6f21 | |||
25 | SHA1 (patch-cb) = 2cbcaa476f33c270bfea50cddd0da3f476dbe689 | |||
26 | SHA1 (patch-ce) = 6b1efab32c6bc28e0faf7522322e6d805eb21730 | |||
27 | SHA1 (patch-ch) = a0831869e23d4a66588e6e27eecedb08527c9498 | |||
28 | SHA1 (patch-ci) = fe943f07044efa457d163eb86974ea10bb356226 | |||
29 | SHA1 (patch-cj) = 3f40f1b166a054d55224c3e79d74516ca608b696 | 15 | SHA1 (patch-cj) = 3f40f1b166a054d55224c3e79d74516ca608b696 | |
30 | SHA1 (patch-ck) = 28207b8186c9ad194a1edc696159915bc16d1097 | 16 | SHA1 (patch-ck) = 28207b8186c9ad194a1edc696159915bc16d1097 | |
31 | SHA1 (patch-cn) = b5e56787fb9ca10025e9061d7bfd2da549ee3fa3 | 17 | SHA1 (patch-cn) = 7ca2b1ff19f8371637a34ec26779b37d74c74cca | |
32 | SHA1 (patch-co) = 4f7ae271aa6a17860e60411dfa45566ee02b0f58 | 18 | SHA1 (patch-co) = 493ae6cb6cb544ce023c2a1fb067abe943bba2d4 | |
33 | SHA1 (patch-da) = 24c8783fcdbead35de20bc3cecf1627a64717853 | 19 | SHA1 (patch-ta) = 60d9ef72db56b9f149f3995b3f526fc32a352bd7 | |
34 | SHA1 (patch-ta) = ca0d1e4bc2dbbc4b86a087fed27cd1e7bbb2873f | 20 | SHA1 (patch-zc) = a23002397ffaebb243f7683c95c8fb227af90f49 | |
35 | SHA1 (patch-zc) = 0c61b6028813e0f80bfe0760a1e74e3037d37cdd | 21 | SHA1 (patch-zd) = ee67148b8f44fb3826273574abb62ad9ca4ffa7f |
@@ -1,57 +1,33 @@ | @@ -1,57 +1,33 @@ | |||
1 | $NetBSD: patch-aa,v 1.30 2006/04/09 06:34:32 jlam Exp $ | 1 | $NetBSD: patch-aa,v 1.31 2008/10/10 21:58:43 he Exp $ | |
2 | 2 | |||
3 | --- lib/ExtUtils/MM_Unix.pm.orig 2005-05-21 05:42:56.000000000 -0400 | 3 | --- lib/ExtUtils/MM_Unix.pm.orig 2007-12-18 11:47:07.000000000 +0100 | |
4 | +++ lib/ExtUtils/MM_Unix.pm | 4 | +++ lib/ExtUtils/MM_Unix.pm | |
5 | @@ -12,8 +12,8 @@ use DirHandle; | 5 | @@ -11,8 +11,8 @@ use DirHandle; | |
6 | 6 | |||
7 | use vars qw($VERSION @ISA | 7 | use vars qw($VERSION @ISA | |
8 | $Is_OS2 $Is_VMS $Is_Win32 $Is_Dos | 8 | $Is_OS2 $Is_VMS $Is_Win32 $Is_Dos | |
9 | - $Is_OSF $Is_IRIX $Is_NetBSD $Is_BSD | 9 | - $Is_OSF $Is_IRIX $Is_NetBSD $Is_BSD | |
10 | - $Is_SunOS4 $Is_Solaris $Is_SunOS $Is_Interix | 10 | - $Is_SunOS4 $Is_Solaris $Is_SunOS $Is_Interix | |
11 | + $Is_OSF $Is_IRIX $Is_BSD | 11 | + $Is_OSF $Is_IRIX $Is_BSD | |
12 | + $Is_SunOS4 $Is_Solaris $Is_SunOS | 12 | + $Is_SunOS4 $Is_Solaris $Is_SunOS | |
13 | $Verbose %pm | |||
14 | %Config_Override | 13 | %Config_Override | |
15 | ); | 14 | ); | |
16 | @@ -32,13 +32,11 @@ BEGIN { | 15 | ||
16 | @@ -30,8 +30,6 @@ BEGIN { | |||
17 | $Is_VMS = $^O eq 'VMS'; | 17 | $Is_VMS = $^O eq 'VMS'; | |
18 | $Is_OSF = $^O eq 'dec_osf'; | 18 | $Is_OSF = $^O eq 'dec_osf'; | |
19 | $Is_IRIX = $^O eq 'irix'; | 19 | $Is_IRIX = $^O eq 'irix'; | |
20 | - $Is_NetBSD = $^O eq 'netbsd'; | 20 | - $Is_NetBSD = $^O eq 'netbsd'; | |
21 | - $Is_Interix = $^O eq 'interix'; | 21 | - $Is_Interix = $^O eq 'interix'; | |
22 | $Is_SunOS4 = $^O eq 'sunos'; | 22 | $Is_SunOS4 = $^O eq 'sunos'; | |
23 | $Is_Solaris = $^O eq 'solaris'; | 23 | $Is_Solaris = $^O eq 'solaris'; | |
24 | $Is_SunOS = $Is_SunOS4 || $Is_Solaris; | 24 | $Is_SunOS = $Is_SunOS4 || $Is_Solaris; | |
25 | $Is_BSD = $^O =~ /^(?:free|net|open)bsd$/ or | 25 | @@ -932,7 +930,7 @@ $(INST_DYNAMIC): $(OBJECT) $(MYEXTLIB) $ | |
26 | - $^O eq 'bsdos' or $^O eq 'interix'; | |||
27 | + $^O eq 'bsdos' or $^O eq 'dragonfly' or $^O eq 'interix'; | |||
28 | } | |||
29 | ||||
30 | BEGIN { | |||
31 | @@ -928,7 +926,7 @@ $(INST_DYNAMIC): $(OBJECT) $(MYEXTLIB) $ | |||
32 | 26 | |||
33 | my $libs = '$(LDLOADLIBS)'; | 27 | my $libs = '$(LDLOADLIBS)'; | |
34 | 28 | |||
35 | - if (($Is_NetBSD || $Is_Interix) && $Config{'useshrplib'}) { | 29 | - if (($Is_NetBSD || $Is_Interix) && $Config{'useshrplib'} eq 'true') { | |
36 | + if ($Is_BSD && $Config{'useshrplib'}) { | 30 | + if ($Is_BSD && $Config{'useshrplib'} eq 'true') { | |
37 | # Use nothing on static perl platforms, and to the flags needed | 31 | # Use nothing on static perl platforms, and to the flags needed | |
38 | # to link against the shared libperl library on shared perl | 32 | # to link against the shared libperl library on shared perl | |
39 | # platforms. We peek at lddlflags to see if we need -Wl,-R | 33 | # platforms. We peek at lddlflags to see if we need -Wl,-R | |
40 | @@ -2074,7 +2072,7 @@ pure_site_install :: | |||
41 | $(INST_LIB) $(DESTINSTALLSITELIB) \ | |||
42 | $(INST_ARCHLIB) $(DESTINSTALLSITEARCH) \ | |||
43 | $(INST_BIN) $(DESTINSTALLSITEBIN) \ | |||
44 | - $(INST_SCRIPT) $(DESTINSTALLSCRIPT) \ | |||
45 | + $(INST_SCRIPT) $(DESTINSTALLSITESCRIPT) \ | |||
46 | $(INST_MAN1DIR) $(DESTINSTALLSITEMAN1DIR) \ | |||
47 | $(INST_MAN3DIR) $(DESTINSTALLSITEMAN3DIR) | |||
48 | $(NOECHO) $(WARN_IF_OLD_PACKLIST) \ | |||
49 | @@ -2087,7 +2085,7 @@ pure_vendor_install :: | |||
50 | $(INST_LIB) $(DESTINSTALLVENDORLIB) \ | |||
51 | $(INST_ARCHLIB) $(DESTINSTALLVENDORARCH) \ | |||
52 | $(INST_BIN) $(DESTINSTALLVENDORBIN) \ | |||
53 | - $(INST_SCRIPT) $(DESTINSTALLSCRIPT) \ | |||
54 | + $(INST_SCRIPT) $(DESTINSTALLVENDORSCRIPT) \ | |||
55 | $(INST_MAN1DIR) $(DESTINSTALLVENDORMAN1DIR) \ | |||
56 | $(INST_MAN3DIR) $(DESTINSTALLVENDORMAN3DIR) | |||
57 |
@@ -1,103 +1,107 @@ | @@ -1,103 +1,107 @@ | |||
1 | $NetBSD: patch-ah,v 1.9 2008/01/08 15:19:39 apb Exp $ | 1 | $NetBSD: patch-ah,v 1.10 2008/10/10 21:58:43 he Exp $ | |
2 | 2 | |||
3 | --- perl.c.orig 2006-01-31 12:34:47.000000000 +0000 | 3 | --- perl.c.orig 2007-12-18 11:47:08.000000000 +0100 | |
4 | +++ perl.c | 4 | +++ perl.c | |
5 | @@ -4615,8 +4615,10 @@ S_procself_val(pTHX_ SV *sv, char *arg0) | 5 | @@ -1454,8 +1454,10 @@ S_procself_val(pTHX_ SV *sv, const char | |
6 | to the executable (or returning an error from the readlink). Any valid | 6 | to the executable (or returning an error from the readlink). Any valid | |
7 | path has a '/' in it somewhere, so use that to validate the result. | 7 | path has a '/' in it somewhere, so use that to validate the result. | |
8 | See http://www.freebsd.org/cgi/query-pr.cgi?pr=35703 | 8 | See http://www.freebsd.org/cgi/query-pr.cgi?pr=35703 | |
9 | + | 9 | + | |
10 | + NetBSD's implementation sometimes returns "/"; reject that too. | 10 | + NetBSD's implementation sometimes returns "/"; reject that too. | |
11 | */ | 11 | */ | |
12 | - if (len > 0 && memchr(buf, '/', len)) { | 12 | - if (len > 0 && memchr(buf, '/', len)) { | |
13 | + if (len > 1 && memchr(buf, '/', len)) { | 13 | + if (len > 1 && memchr(buf, '/', len)) { | |
14 | sv_setpvn(sv,buf,len); | 14 | sv_setpvn(sv,buf,len); | |
15 | } | 15 | } | |
16 | else { | 16 | else { | |
17 | @@ -4770,45 +4772,12 @@ S_init_perllib(pTHX) | 17 | @@ -4747,45 +4749,8 @@ S_init_perllib(pTHX) | |
18 | } | 18 | } | |
19 | 19 | |||
20 | /* Use the ~-expanded versions of APPLLIB (undocumented), | 20 | /* Use the ~-expanded versions of APPLLIB (undocumented), | |
21 | - ARCHLIB PRIVLIB SITEARCH SITELIB VENDORARCH and VENDORLIB | 21 | - ARCHLIB PRIVLIB SITEARCH SITELIB VENDORARCH and VENDORLIB | |
22 | + SITEARCH SITELIB VENDORARCH VENDORLIB ARCHLIB and PRIVLIB | 22 | + SITEARCH SITELIB VENDORARCH VENDORLIB ARCHLIB and PRIVLIB | |
23 | */ | 23 | */ | |
24 | #ifdef APPLLIB_EXP | 24 | -#ifdef APPLLIB_EXP | |
25 | incpush(APPLLIB_EXP, TRUE, TRUE, TRUE); | 25 | - incpush(APPLLIB_EXP, TRUE, TRUE, TRUE, TRUE); | |
26 | #endif | 26 | -#endif | |
27 | 27 | - | ||
28 | -#ifdef ARCHLIB_EXP | 28 | -#ifdef ARCHLIB_EXP | |
29 | - incpush(ARCHLIB_EXP, FALSE, FALSE, TRUE); | 29 | - incpush(ARCHLIB_EXP, FALSE, FALSE, TRUE, TRUE); | |
30 | -#endif | 30 | -#endif | |
31 | -#ifdef MACOS_TRADITIONAL | 31 | -#ifdef MACOS_TRADITIONAL | |
32 | - { | 32 | - { | |
33 | - Stat_t tmpstatbuf; | 33 | - Stat_t tmpstatbuf; | |
34 | - SV * privdir = NEWSV(55, 0); | 34 | - SV * privdir = newSV(0); | |
35 | - char * macperl = PerlEnv_getenv("MACPERL"); | 35 | - char * macperl = PerlEnv_getenv("MACPERL"); | |
36 | - | 36 | - | |
37 | - if (!macperl) | 37 | - if (!macperl) | |
38 | - macperl = ""; | 38 | - macperl = ""; | |
39 | - | 39 | - | |
40 | - Perl_sv_setpvf(aTHX_ privdir, "%slib:", macperl); | 40 | - Perl_sv_setpvf(aTHX_ privdir, "%slib:", macperl); | |
41 | - if (PerlLIO_stat(SvPVX(privdir), &tmpstatbuf) >= 0 && S_ISDIR(tmpstatbuf.st_mode)) | 41 | - if (PerlLIO_stat(SvPVX(privdir), &tmpstatbuf) >= 0 && S_ISDIR(tmpstatbuf.st_mode)) | |
42 | - incpush(SvPVX(privdir), TRUE, FALSE, TRUE); | 42 | - incpush(SvPVX(privdir), TRUE, FALSE, TRUE, FALSE); | |
43 | - Perl_sv_setpvf(aTHX_ privdir, "%ssite_perl:", macperl); | 43 | - Perl_sv_setpvf(aTHX_ privdir, "%ssite_perl:", macperl); | |
44 | - if (PerlLIO_stat(SvPVX(privdir), &tmpstatbuf) >= 0 && S_ISDIR(tmpstatbuf.st_mode)) | 44 | - if (PerlLIO_stat(SvPVX(privdir), &tmpstatbuf) >= 0 && S_ISDIR(tmpstatbuf.st_mode)) | |
45 | - incpush(SvPVX(privdir), TRUE, FALSE, TRUE); | 45 | - incpush(SvPVX(privdir), TRUE, FALSE, TRUE, FALSE); | |
46 | - | 46 | - | |
47 | - SvREFCNT_dec(privdir); | 47 | - SvREFCNT_dec(privdir); | |
48 | - } | 48 | - } | |
49 | - if (!PL_tainting) | 49 | - if (!PL_tainting) | |
50 | - incpush(":", FALSE, FALSE, TRUE); | 50 | - incpush(":", FALSE, FALSE, TRUE, FALSE); | |
51 | -#else | 51 | -#else | |
52 | -#ifndef PRIVLIB_EXP | 52 | -#ifndef PRIVLIB_EXP | |
53 | -# define PRIVLIB_EXP "/usr/local/lib/perl5:/usr/local/lib/perl" | 53 | -# define PRIVLIB_EXP "/usr/local/lib/perl5:/usr/local/lib/perl" | |
54 | -#endif | 54 | -#endif | |
55 | -#if defined(WIN32) | 55 | -#if defined(WIN32) | |
56 | - incpush(PRIVLIB_EXP, TRUE, FALSE, TRUE); | 56 | - incpush(PRIVLIB_EXP, TRUE, FALSE, TRUE, TRUE); | |
57 | -#else | 57 | -#else | |
58 | - incpush(PRIVLIB_EXP, FALSE, FALSE, TRUE); | 58 | - incpush(PRIVLIB_EXP, FALSE, FALSE, TRUE, TRUE); | |
59 | -#endif | 59 | -#endif | |
60 | - | 60 | - | |
61 | #ifdef SITEARCH_EXP | 61 | #ifdef SITEARCH_EXP | |
62 | /* sitearch is always relative to sitelib on Windows for | 62 | /* sitearch is always relative to sitelib on Windows for | |
63 | * DLL-based path intuition to work correctly */ | 63 | * DLL-based path intuition to work correctly */ | |
64 | @@ -4850,6 +4819,39 @@ S_init_perllib(pTHX) | 64 | @@ -4828,6 +4793,43 @@ S_init_perllib(pTHX) | |
65 | incpush(PERL_VENDORLIB_STEM, FALSE, TRUE, TRUE); | 65 | incpush(PERL_VENDORLIB_STEM, FALSE, TRUE, TRUE, TRUE); | |
66 | #endif | 66 | #endif | |
67 | 67 | |||
68 | +#ifdef APPLLIB_EXP | |||
69 | + incpush(APPLLIB_EXP, TRUE, TRUE, TRUE, TRUE); | |||
70 | +#endif | |||
71 | + | |||
68 | +#ifdef ARCHLIB_EXP | 72 | +#ifdef ARCHLIB_EXP | |
69 | + incpush(ARCHLIB_EXP, FALSE, FALSE, TRUE); | 73 | + incpush(ARCHLIB_EXP, FALSE, FALSE, TRUE, TRUE); | |
70 | +#endif | 74 | +#endif | |
71 | +#ifdef MACOS_TRADITIONAL | 75 | +#ifdef MACOS_TRADITIONAL | |
72 | + { | 76 | + { | |
73 | + Stat_t tmpstatbuf; | 77 | + Stat_t tmpstatbuf; | |
74 | + SV * privdir = NEWSV(55, 0); | 78 | + SV * privdir = newSV(0); | |
75 | + char * macperl = PerlEnv_getenv("MACPERL"); | 79 | + char * macperl = PerlEnv_getenv("MACPERL"); | |
76 | + | 80 | + | |
77 | + if (!macperl) | 81 | + if (!macperl) | |
78 | + macperl = ""; | 82 | + macperl = ""; | |
79 | + | 83 | + | |
80 | + Perl_sv_setpvf(aTHX_ privdir, "%slib:", macperl); | 84 | + Perl_sv_setpvf(aTHX_ privdir, "%slib:", macperl); | |
81 | + if (PerlLIO_stat(SvPVX(privdir), &tmpstatbuf) >= 0 && S_ISDIR(tmpstatbuf.st_mode)) | 85 | + if (PerlLIO_stat(SvPVX(privdir), &tmpstatbuf) >= 0 && S_ISDIR(tmpstatbuf.st_mode)) | |
82 | + incpush(SvPVX(privdir), TRUE, FALSE, TRUE); | 86 | + incpush(SvPVX(privdir), TRUE, FALSE, TRUE, FALSE); | |
83 | + Perl_sv_setpvf(aTHX_ privdir, "%ssite_perl:", macperl); | 87 | + Perl_sv_setpvf(aTHX_ privdir, "%ssite_perl:", macperl); | |
84 | + if (PerlLIO_stat(SvPVX(privdir), &tmpstatbuf) >= 0 && S_ISDIR(tmpstatbuf.st_mode)) | 88 | + if (PerlLIO_stat(SvPVX(privdir), &tmpstatbuf) >= 0 && S_ISDIR(tmpstatbuf.st_mode)) | |
85 | + incpush(SvPVX(privdir), TRUE, FALSE, TRUE); | 89 | + incpush(SvPVX(privdir), TRUE, FALSE, TRUE, FALSE); | |
86 | + | 90 | + | |
87 | + SvREFCNT_dec(privdir); | 91 | + SvREFCNT_dec(privdir); | |
88 | + } | 92 | + } | |
89 | + if (!PL_tainting) | 93 | + if (!PL_tainting) | |
90 | + incpush(":", FALSE, FALSE, TRUE); | 94 | + incpush(":", FALSE, FALSE, TRUE, FALSE); | |
91 | +#else | 95 | +#else | |
92 | +#ifndef PRIVLIB_EXP | 96 | +#ifndef PRIVLIB_EXP | |
93 | +# define PRIVLIB_EXP "/usr/local/lib/perl5:/usr/local/lib/perl" | 97 | +# define PRIVLIB_EXP "/usr/local/lib/perl5:/usr/local/lib/perl" | |
94 | +#endif | 98 | +#endif | |
95 | +#if defined(WIN32) | 99 | +#if defined(WIN32) | |
96 | + incpush(PRIVLIB_EXP, TRUE, FALSE, TRUE); | 100 | + incpush(PRIVLIB_EXP, TRUE, FALSE, TRUE, TRUE); | |
97 | +#else | 101 | +#else | |
98 | + incpush(PRIVLIB_EXP, FALSE, FALSE, TRUE); | 102 | + incpush(PRIVLIB_EXP, FALSE, FALSE, TRUE, TRUE); | |
99 | +#endif | 103 | +#endif | |
100 | + | 104 | + | |
101 | #ifdef PERL_OTHERLIBDIRS | 105 | #ifdef PERL_OTHERLIBDIRS | |
102 | incpush(PERL_OTHERLIBDIRS, TRUE, TRUE, TRUE); | 106 | incpush(PERL_OTHERLIBDIRS, TRUE, TRUE, TRUE, TRUE); | |
103 | #endif | 107 | #endif |
@@ -1,26 +1,31 @@ | @@ -1,26 +1,31 @@ | |||
1 | $NetBSD: patch-aq,v 1.1 2006/05/06 12:32:20 jlam Exp $ | 1 | $NetBSD: patch-aq,v 1.2 2008/10/10 21:58:43 he Exp $ | |
2 | 2 | |||
3 | --- XSUB.h.orig 2006-01-02 09:45:29.000000000 -0500 | 3 | --- XSUB.h.orig 2007-12-18 11:47:07.000000000 +0100 | |
4 | +++ XSUB.h | 4 | +++ XSUB.h | |
5 | @@ -85,17 +85,16 @@ handled automatically by C<xsubpp>. | 5 | @@ -93,6 +93,9 @@ is a lexical $_ in scope. | |
6 | #ifndef PERL_UNUSED_VAR | 6 | #ifndef PERL_UNUSED_VAR | |
7 | # define PERL_UNUSED_VAR(x) ((void)x) | 7 | # define PERL_UNUSED_VAR(x) ((void)x) | |
8 | #endif | 8 | #endif | |
9 | +#ifndef PERL_UNUSED_DECL | 9 | +#ifndef PERL_UNUSED_DECL | |
10 | +# define PERL_UNUSED_DECL | 10 | +# define PERL_UNUSED_DECL | |
11 | +#endif | 11 | +#endif | |
12 | 12 | |||
13 | #define ST(off) PL_stack_base[ax + (off)] | 13 | #define ST(off) PL_stack_base[ax + (off)] | |
14 | 14 | |||
15 | #if defined(__CYGWIN__) && defined(USE_DYNAMIC_LOADING) | 15 | @@ -116,15 +119,7 @@ is a lexical $_ in scope. | |
16 | # define XS(name) __declspec(dllexport) void name(pTHX_ CV* cv) | 16 | # define XS(name) EXPORT_C XSPROTO(name) | |
17 | #else | 17 | #endif | |
18 | -# ifdef HASATTRIBUTE_UNUSED | 18 | #ifndef XS | |
19 | -# if defined(HASATTRIBUTE_UNUSED) && !defined(__cplusplus) | |||
19 | -# define XS(name) void name(pTHX_ CV* cv __attribute__unused__) | 20 | -# define XS(name) void name(pTHX_ CV* cv __attribute__unused__) | |
20 | -# else | 21 | -# else | |
21 | -# define XS(name) void name(pTHX_ CV* cv) | 22 | -# ifdef __cplusplus | |
23 | -# define XS(name) extern "C" XSPROTO(name) | |||
24 | -# else | |||
25 | -# define XS(name) XSPROTO(name) | |||
26 | -# endif | |||
22 | -# endif | 27 | -# endif | |
23 | +# define XS(name) void name(pTHX_ CV* cv PERL_UNUSED_DECL) | 28 | +# define XS(name) void name(pTHX_ CV* cv PERL_UNUSED_DECL) | |
24 | #endif | 29 | #endif | |
25 | 30 | |||
26 | #define dAX const I32 ax = MARK - PL_stack_base + 1 | 31 | #define dAX const I32 ax = (I32)(MARK - PL_stack_base + 1) |
@@ -1,22 +1,22 @@ | @@ -1,22 +1,22 @@ | |||
1 | $NetBSD: patch-cn,v 1.1 2007/04/21 15:32:15 tnn Exp $ | 1 | $NetBSD: patch-cn,v 1.2 2008/10/10 21:58:43 he Exp $ | |
2 | 2 | |||
3 | --- hints/hpux.sh.orig 2007-04-21 17:17:01.000000000 +0200 | 3 | --- hints/hpux.sh.orig 2007-12-18 11:47:07.000000000 +0100 | |
4 | +++ hints/hpux.sh | 4 | +++ hints/hpux.sh | |
5 | @@ -371,7 +371,7 @@ case "$ccisgcc" in | 5 | @@ -376,7 +376,7 @@ case "$ccisgcc" in | |
6 | *O[3456789]*) optimize=`echo "$optimize" | sed -e 's/O[3-9]/O2/'` ;; | 6 | *O[3456789]*) optimize=`echo "$optimize" | sed -e 's/O[3-9]/O2/'` ;; | |
7 | esac | 7 | esac | |
8 | #ld="$cc" | 8 | #ld="$cc" | |
9 | - ld=/usr/bin/ld | 9 | - ld=/usr/bin/ld | |
10 | + ld=ld | 10 | + ld=ld | |
11 | cccdlflags='-fPIC' | 11 | cccdlflags='-fPIC' | |
12 | #lddlflags='-shared' | 12 | #lddlflags='-shared' | |
13 | lddlflags='-b' | 13 | lddlflags='-b' | |
14 | @@ -428,7 +428,7 @@ case "$ccisgcc" in | 14 | @@ -434,7 +434,7 @@ case "$ccisgcc" in | |
15 | toke_cflags="$toke_cflags;optimize=\"$opt\"" | 15 | toke_cflags="$toke_cflags;optimize=\"$opt\"" | |
16 | regexec_cflags="optimize=\"$opt\"" | 16 | regexec_cflags="optimize=\"$opt\"" | |
17 | fi | 17 | fi | |
18 | - ld=/usr/bin/ld | 18 | - ld=/usr/bin/ld | |
19 | + ld=ld | 19 | + ld=ld | |
20 | cccdlflags='+Z' | 20 | cccdlflags='+Z' | |
21 | lddlflags='-b +vnocompatwarnings' | 21 | lddlflags='-b +vnocompatwarnings' | |
22 | ;; | 22 | ;; |
@@ -1,28 +1,28 @@ | @@ -1,28 +1,28 @@ | |||
1 | $NetBSD: patch-co,v 1.1 2008/07/30 23:07:52 ahoka Exp $ | 1 | $NetBSD: patch-co,v 1.2 2008/10/10 21:58:43 he Exp $ | |
2 | 2 | |||
3 | --- hints/freebsd.sh.orig 2004-03-24 22:47:33.000000000 +0100 | 3 | --- hints/freebsd.sh.orig 2007-12-18 11:47:07.000000000 +0100 | |
4 | +++ hints/freebsd.sh | 4 | +++ hints/freebsd.sh | |
5 | @@ -114,7 +114,7 @@ case "$osvers" in | 5 | @@ -114,7 +114,7 @@ case "$osvers" in | |
6 | lddlflags="-Bshareable $lddlflags" | 6 | lddlflags="-Bshareable $lddlflags" | |
7 | ;; | 7 | ;; | |
8 | 8 | |||
9 | -*) | 9 | -*) | |
10 | +3*|4*|5*|6*) | 10 | +3*|4*|5*|6*) | |
11 | objformat=`/usr/bin/objformat` | 11 | objformat=`/usr/bin/objformat` | |
12 | if [ x$objformat = xelf ]; then | 12 | if [ x$objformat = xaout ]; then | |
13 | libpth="/usr/lib /usr/local/lib" | 13 | if [ -e /usr/lib/aout ]; then | |
14 | @@ -130,6 +130,14 @@ case "$osvers" in | 14 | @@ -130,6 +130,14 @@ case "$osvers" in | |
15 | fi | 15 | fi | |
16 | cccdlflags='-DPIC -fPIC' | 16 | cccdlflags='-DPIC -fPIC' | |
17 | ;; | 17 | ;; | |
18 | + | 18 | + | |
19 | +*) | 19 | +*) | |
20 | + libpth="/usr/lib /usr/local/lib" | 20 | + libpth="/usr/lib /usr/local/lib" | |
21 | + glibpth="/usr/lib /usr/local/lib" | 21 | + glibpth="/usr/lib /usr/local/lib" | |
22 | + ldflags="-Wl,-E " | 22 | + ldflags="-Wl,-E " | |
23 | + lddlflags="-shared " | 23 | + lddlflags="-shared " | |
24 | + cccdlflags='-DPIC -fPIC' | 24 | + cccdlflags='-DPIC -fPIC' | |
25 | + ;; | 25 | + ;; | |
26 | esac | 26 | esac | |
27 | 27 | |||
28 | case "$osvers" in | 28 | case "$osvers" in |
@@ -1,23 +1,25 @@ | @@ -1,23 +1,25 @@ | |||
1 | $NetBSD: patch-ta,v 1.1 2006/07/02 20:35:53 rillig Exp $ | 1 | $NetBSD: patch-ta,v 1.2 2008/10/10 21:58:44 he Exp $ | |
2 | 2 | |||
3 | On NetBSD, filesystems may be mounted with the noatime option. | 3 | On NetBSD, filesystems may be mounted with the noatime option. | |
4 | 4 | |||
5 | --- t/io/fs.t.orig 2006-01-08 22:46:15.000000000 +0100 | 5 | --- t/io/fs.t.orig 2007-12-18 11:47:08.000000000 +0100 | |
6 | +++ t/io/fs.t 2006-07-02 22:33:01.000000000 +0200 | 6 | +++ t/io/fs.t | |
7 | @@ -255,13 +255,13 @@ SKIP: { | 7 | @@ -275,15 +275,15 @@ sub check_utime_result { | |
8 | is( $atime, 500000001, 'atime' ); | 8 | is( $atime, 500000001, 'atime' ); | |
9 | is( $mtime, 500000000 + $delta, 'mtime' ); | 9 | is( $mtime, 500000000 + $delta, 'mtime' ); | |
10 | } | 10 | } | |
11 | - elsif ($^O eq 'beos') { | 11 | - elsif ($^O eq 'beos') { | |
12 | + elsif ($^O eq 'beos' || $^O eq 'netbsd') { | 12 | + elsif ($^O eq 'beos' || $^O eq 'netbsd') { | |
13 | SKIP: { skip "atime not updated", 1; } | 13 | SKIP: { | |
14 | is($mtime, 500000001, 'mtime'); | 14 | skip "atime not updated", 1; | |
15 | } | 15 | } | |
16 | else { | 16 | is($mtime, 500000001, 'mtime'); | |
17 | - fail("atime"); | 17 | } | |
18 | - fail("mtime"); | 18 | else { | |
19 | + fail("atime: expected 500000000, got ${atime}"); | 19 | - fail("atime"); | |
20 | + fail("mtime: expected ".(500000000+$delta).", got ${mtime}"); | 20 | - fail("mtime"); | |
21 | } | 21 | + fail("atime: expected 500000000, got ${atime}"); | |
22 | + fail("mtime: expected ".(500000000+$delta).", got ${mtime}"); | |||
23 | } | |||
24 | } | |||
22 | } | 25 | } | |
23 | } |
@@ -1,17 +1,16 @@ | @@ -1,17 +1,16 @@ | |||
1 | $NetBSD: patch-as,v 1.2 2008/01/13 00:20:22 joerg Exp $ | 1 | $NetBSD: patch-as,v 1.3 2008/10/10 21:58:43 he Exp $ | |
2 | 2 | |||
3 | asm/page.h is no longer installed as part of the kernel header | 3 | asm/page.h is no longer installed as part of the kernel header | |
4 | page on Gentoo/Linux. | 4 | page on Gentoo/Linux. | |
5 | 5 | |||
6 | --- ext/IPC/SysV/SysV.xs.orig 2008-01-12 15:55:22.000000000 +0100 | 6 | --- ext/IPC/SysV/SysV.xs.orig 2007-12-18 11:47:07.000000000 +0100 | |
7 | +++ ext/IPC/SysV/SysV.xs | 7 | +++ ext/IPC/SysV/SysV.xs | |
8 | @@ -3,9 +3,6 @@ | 8 | @@ -24,8 +24,6 @@ | |
9 | #include "XSUB.h" | 9 | # elif defined(HAS_GETPAGESIZE) | |
10 | 10 | # undef SHMLBA /* not static: determined at boot time */ | ||
11 | #include <sys/types.h> | 11 | # define SHMLBA getpagesize() | |
12 | -#ifdef __linux__ | 12 | -# elif defined(__linux__) | |
13 | -# include <asm/page.h> | 13 | -# include <asm/page.h> | |
14 | -#endif | 14 | # endif | |
15 | #if defined(HAS_MSG) || defined(HAS_SEM) || defined(HAS_SHM) | 15 | # endif | |
16 | #ifndef HAS_SEM | 16 | #endif | |
17 | # include <sys/ipc.h> |
@@ -1,34 +1,34 @@ | @@ -1,34 +1,34 @@ | |||
1 | $NetBSD: patch-zc,v 1.2 2006/04/09 06:34:33 jlam Exp $ | 1 | $NetBSD: patch-zc,v 1.3 2008/10/10 21:58:44 he Exp $ | |
2 | 2 | |||
3 | --- Policy_sh.SH.orig 2003-08-01 08:23:23.000000000 -0400 | 3 | --- Policy_sh.SH.orig 2007-12-18 11:47:07.000000000 +0100 | |
4 | +++ Policy_sh.SH | 4 | +++ Policy_sh.SH | |
5 | @@ -184,10 +184,10 @@ do | 5 | @@ -184,10 +184,10 @@ do | |
6 | ;; | 6 | ;; | |
7 | sitearch) dflt="$sitelib/$archname" ;; | 7 | sitearch) dflt="$sitelib/$archname" ;; | |
8 | 8 | |||
9 | - siteman1) dflt="$siteprefix/man/man1" ;; | 9 | - siteman1) dflt="$siteprefix/man/man1" ;; | |
10 | - siteman3) dflt="$siteprefix/man/man3" ;; | 10 | - siteman3) dflt="$siteprefix/man/man3" ;; | |
11 | + siteman1dir) dflt="$siteprefix/man/man1" ;; | 11 | + siteman1dir) dflt="$siteprefix/man/man1" ;; | |
12 | + siteman3dir) dflt="$siteprefix/man/man3" ;; | 12 | + siteman3dir) dflt="$siteprefix/man/man3" ;; | |
13 | # We don't know what to do with these yet. | 13 | # We don't know what to do with these yet. | |
14 | - sitehtml1) dflt='' ;; | 14 | - sitehtml1) dflt='' ;; | |
15 | + sitehtml1dir) dflt='' ;; | 15 | + sitehtml1dir) dflt='' ;; | |
16 | sitehtm31dir) dflt='' ;; | 16 | sitehtm31dir) dflt='' ;; | |
17 | 17 | |||
18 | # Directories for vendor-supplied add-on files | 18 | # Directories for vendor-supplied add-on files | |
19 | @@ -213,11 +213,11 @@ do | 19 | @@ -213,11 +213,11 @@ do | |
20 | ;; | 20 | ;; | |
21 | vendorarch) dflt="$vendorlib/$archname" ;; | 21 | vendorarch) dflt="$vendorlib/$archname" ;; | |
22 | 22 | |||
23 | - vendorman1) dflt="$vendorprefix/man/man1" ;; | 23 | - vendorman1) dflt="$vendorprefix/man/man1" ;; | |
24 | - vendorman3) dflt="$vendorprefix/man/man3" ;; | 24 | - vendorman3) dflt="$vendorprefix/man/man3" ;; | |
25 | + vendorman1dir) dflt="$vendorprefix/man/man1" ;; | 25 | + vendorman1dir) dflt="$vendorprefix/man/man1" ;; | |
26 | + vendorman3dir) dflt="$vendorprefix/man/man3" ;; | 26 | + vendorman3dir) dflt="$vendorprefix/man/man3" ;; | |
27 | # We don't know what to do with these yet. | 27 | # We don't know what to do with these yet. | |
28 | - vendorhtml1) dflt='' ;; | 28 | - vendorhtml1) dflt='' ;; | |
29 | - vendorhtm3) dflt='' ;; | 29 | - vendorhtm3) dflt='' ;; | |
30 | + vendorhtml1dir) dflt='' ;; | 30 | + vendorhtml1dir) dflt='' ;; | |
31 | + vendorhtml3dir) dflt='' ;; | 31 | + vendorhtml3dir) dflt='' ;; | |
32 | 32 | |||
33 | esac # End of vendorprefix != '' | 33 | esac # End of vendorprefix != '' | |
34 | fi | 34 | fi |
@@ -1,59 +1,37 @@ | @@ -1,59 +1,37 @@ | |||
1 | $NetBSD: patch-ba,v 1.4 2006/08/08 15:36:00 tron Exp $ | 1 | $NetBSD: patch-ba,v 1.5 2008/10/10 21:58:43 he Exp $ | |
2 | 2 | |||
3 | --- hints/netbsd.sh.orig 2003-08-07 17:57:56.000000000 +0100 | 3 | --- hints/netbsd.sh.orig 2007-12-18 11:47:07.000000000 +0100 | |
4 | +++ hints/netbsd.sh 2006-08-08 16:33:33.000000000 +0100 | 4 | +++ hints/netbsd.sh | |
5 | @@ -78,6 +78,30 @@ | 5 | @@ -79,7 +79,7 @@ case "$osvers" in | |
6 | d_setreuid="$undef" | |||
7 | ;; | 6 | ;; | |
8 | esac | 7 | esac | |
9 | +case "$osvers" in | 8 | case "$osvers" in | |
10 | +0.9*|1.*|2.*|3.*|4.*) | 9 | -0.9*|1.*|2.*|3.*|4.*) | |
11 | + d_getprotoent_r="$undef" | 10 | +0.9*|1.*|2.*|3.*|4.*|5.*) | |
12 | + d_getprotobyname_r="$undef" | 11 | d_getprotoent_r="$undef" | |
13 | + d_getprotobynumber_r="$undef" | 12 | d_getprotobyname_r="$undef" | |
14 | + d_setprotoent_r="$undef" | 13 | d_getprotobynumber_r="$undef" | |
15 | + d_endprotoent_r="$undef" | 14 | @@ -175,23 +175,6 @@ $define|true|[yY]*) | |
16 | + d_getservent_r="$undef" | 15 | esac | |
17 | + d_getservbyname_r="$undef" | |||
18 | + d_getservbyport_r="$undef" | |||
19 | + d_setservent_r="$undef" | |||
20 | + d_endservent_r="$undef" | |||
21 | + d_getprotoent_r_proto="$undef" | |||
22 | + d_getprotobyname_r_proto="$undef" | |||
23 | + d_getprotobynumber_r_proto="$undef" | |||
24 | + d_setprotoent_r_proto="$undef" | |||
25 | + d_endprotoent_r_proto="$undef" | |||
26 | + d_getservent_r_proto="$undef" | |||
27 | + d_getservbyname_r_proto="$undef" | |||
28 | + d_getservbyport_r_proto="$undef" | |||
29 | + d_setservent_r_proto="$undef" | |||
30 | + d_endservent_r_proto="$undef" | |||
31 | + ;; | |||
32 | +esac | |||
33 | ||||
34 | # These are obsolete in any netbsd. | |||
35 | d_setrgid="$undef" | |||
36 | @@ -133,23 +157,6 @@ | |||
37 | esac | |||
38 | EOCBU | 16 | EOCBU | |
39 | 17 | |||
40 | -# Set sensible defaults for NetBSD: look for local software in | 18 | -# Set sensible defaults for NetBSD: look for local software in | |
41 | -# /usr/pkg (NetBSD Packages Collection) and in /usr/local. | 19 | -# /usr/pkg (NetBSD Packages Collection) and in /usr/local. | |
42 | -# | 20 | -# | |
43 | -loclibpth="/usr/pkg/lib /usr/local/lib" | 21 | -loclibpth="/usr/pkg/lib /usr/local/lib" | |
44 | -locincpth="/usr/pkg/include /usr/local/include" | 22 | -locincpth="/usr/pkg/include /usr/local/include" | |
45 | -case "$rpathflag" in | 23 | -case "$rpathflag" in | |
46 | -'') | 24 | -'') | |
47 | - ldflags= | 25 | - ldflags= | |
48 | - ;; | 26 | - ;; | |
49 | -*) | 27 | -*) | |
50 | - ldflags= | 28 | - ldflags= | |
51 | - for yyy in $loclibpth; do | 29 | - for yyy in $loclibpth; do | |
52 | - ldflags="$ldflags $rpathflag$yyy" | 30 | - ldflags="$ldflags $rpathflag$yyy" | |
53 | - done | 31 | - done | |
54 | - ;; | 32 | - ;; | |
55 | -esac | 33 | -esac | |
56 | - | 34 | - | |
57 | case `uname -m` in | 35 | case `uname -m` in | |
58 | alpha) | 36 | alpha) | |
59 | echo 'int main() {}' > try.c | 37 | echo 'int main() {}' > try.c |
@@ -1,110 +1,103 @@ | @@ -1,110 +1,103 @@ | |||
1 | $NetBSD: patch-ca,v 1.5 2006/04/09 06:34:33 jlam Exp $ | 1 | $NetBSD: patch-ca,v 1.6 2008/10/10 21:58:43 he Exp $ | |
2 | 2 | |||
3 | --- Configure.orig 2006-01-08 09:51:03.000000000 -0500 | 3 | --- Configure.orig 2007-12-18 11:47:07.000000000 +0100 | |
4 | +++ Configure | 4 | +++ Configure | |
5 | @@ -3130,11 +3130,13 @@ EOM | 5 | @@ -3206,13 +3206,14 @@ EOM | |
6 | dgux) osname=dgux | |||
7 | osvers="$3" | 6 | osvers="$3" | |
8 | ;; | 7 | ;; | |
9 | + dragonfly) osname=dragonfly | 8 | dragonfly) osname=dragonfly | |
10 | + osvers=`$uname -r | UU/tr '[A-Z]' '[a-z]'` ;; | 9 | - osvers="$3" | |
10 | + osvers=`$uname -r | UU/tr '[A-Z]' '[a-z]'` | |||
11 | ;; | |||
11 | dynixptx*) osname=dynixptx | 12 | dynixptx*) osname=dynixptx | |
12 | osvers=`echo "$4"|sed 's/^v//'` | 13 | osvers=`echo "$4"|sed 's/^v//'` | |
13 | ;; | 14 | ;; | |
14 | freebsd) osname=freebsd | 15 | freebsd) osname=freebsd | |
15 | - osvers="$3" ;; | 16 | - osvers="$3" ;; | |
16 | + osvers=`$uname -r | UU/tr '[A-Z]' '[a-z]'` ;; | 17 | + osvers=`$uname -r | UU/tr '[A-Z]' '[a-z]'` | |
18 | + ;; | |||
17 | genix) osname=genix ;; | 19 | genix) osname=genix ;; | |
18 | gnu) osname=gnu | 20 | gnu) osname=gnu | |
19 | osvers="$3" ;; | 21 | osvers="$3" ;; | |
20 | @@ -3156,7 +3158,7 @@ EOM | 22 | @@ -3234,7 +3235,7 @@ EOM | |
21 | MiNT) osname=mint | 23 | MiNT) osname=mint | |
22 | ;; | 24 | ;; | |
23 | netbsd*) osname=netbsd | 25 | netbsd*) osname=netbsd | |
24 | - osvers="$3" | 26 | - osvers="$3" | |
25 | + osvers=`$uname -r | UU/tr '[A-Z]' '[a-z]'` | 27 | + osvers=`$uname -r | UU/tr '[A-Z]' '[a-z]'` | |
26 | ;; | 28 | ;; | |
27 | news-os) osvers="$3" | 29 | news-os) osvers="$3" | |
28 | case "$3" in | 30 | case "$3" in | |
29 | @@ -3167,8 +3169,8 @@ EOM | 31 | @@ -3245,8 +3246,8 @@ EOM | |
30 | next*) osname=next ;; | 32 | next*) osname=next ;; | |
31 | nonstop-ux) osname=nonstopux ;; | 33 | nonstop-ux) osname=nonstopux ;; | |
32 | openbsd) osname=openbsd | 34 | openbsd) osname=openbsd | |
33 | - osvers="$3" | 35 | - osvers="$3" | |
34 | - ;; | 36 | - ;; | |
35 | + osvers=`$uname -r | UU/tr '[A-Z]' '[a-z]'` | 37 | + osvers=`$uname -r | UU/tr '[A-Z]' '[a-z]'` | |
36 | + ;; | 38 | + ;; | |
37 | os2) osname=os2 | 39 | os2) osname=os2 | |
38 | osvers="$4" | 40 | osvers="$4" | |
39 | ;; | 41 | ;; | |
40 | @@ -4445,7 +4447,7 @@ case "$plibpth" in | 42 | @@ -4739,7 +4740,7 @@ case "$plibpth" in | |
41 | esac | 43 | esac | |
42 | case "$libpth" in | 44 | case "$libpth" in | |
43 | ' ') dlist='';; | 45 | ' ') dlist='';; | |
44 | -'') dlist="$loclibpth $plibpth $glibpth";; | 46 | -'') dlist="$loclibpth $plibpth $glibpth";; | |
45 | +'') dlist="$plibpth $glibpth $loclibpth";; | 47 | +'') dlist="$plibpth $glibpth $loclibpth";; | |
46 | *) dlist="$libpth";; | 48 | *) dlist="$libpth";; | |
47 | esac | 49 | esac | |
48 | 50 | |||
49 | @@ -6485,7 +6487,9 @@ rp='Pathname for the site-specific libra | 51 | @@ -6425,7 +6426,9 @@ rp='Pathname for the site-specific libra | |
50 | . ./getfile | 52 | . ./getfile | |
51 | sitelib="$ans" | 53 | prefixvar=sitelib | |
52 | sitelibexp="$ansexp" | 54 | . ./setprefixvar | |
53 | -sitelib_stem=`echo "$sitelibexp" | sed "s,/$version$,,"` | 55 | -sitelib_stem=`echo "$sitelibexp" | sed "s,/$version$,,"` | |
54 | +if $test -z "$sitelib_stem"; then | 56 | +if $test -z "$sitelib_stem"; then | |
55 | + sitelib_stem=`echo "$sitelibexp" | sed "s,/$version$,,"` | 57 | + sitelib_stem=`echo "$sitelibexp" | sed "s,/$version$,,"` | |
56 | +fi | 58 | +fi | |
57 | : Change installation prefix, if necessary. | 59 | ||
58 | if $test X"$prefix" != X"$installprefix"; then | 60 | : Determine list of previous versions to include in @INC | |
59 | installsitelib=`echo $sitelibexp | $sed "s#^$prefix#$installprefix#"` | 61 | $cat > getverlist <<EOPL | |
60 | @@ -6606,7 +6610,9 @@ case "$vendorprefix" in | 62 | @@ -6925,7 +6928,9 @@ case "$vendorprefix" in | |
61 | vendorlibexp="$ansexp" | 63 | vendorlibexp="$ansexp" | |
62 | ;; | 64 | ;; | |
63 | esac | 65 | esac | |
64 | -vendorlib_stem=`echo "$vendorlibexp" | sed "s,/$version$,,"` | 66 | -vendorlib_stem=`echo "$vendorlibexp" | sed "s,/$version$,,"` | |
65 | +if $test -z "$vendorlib_stem"; then | 67 | +if $test -z "$vendorlib_stem"; then | |
66 | + vendorlib_stem=`echo "$vendorlibexp" | sed "s,/$version$,,"` | 68 | + vendorlib_stem=`echo "$vendorlibexp" | sed "s,/$version$,,"` | |
67 | +fi | 69 | +fi | |
68 | : Change installation prefix, if necessary. | 70 | prefixvar=vendorlib | |
69 | if $test X"$prefix" != X"$installprefix"; then | 71 | . ./installprefix | |
70 | installvendorlib=`echo $vendorlibexp | $sed "s#^$prefix#$installprefix#"` | 72 | ||
71 | @@ -7889,7 +7895,7 @@ if "$useshrplib"; then | 73 | @@ -9170,6 +9175,13 @@ EOCP | |
72 | solaris) | |||
73 | xxx="-R $shrpdir" | |||
74 | ;; | |||
75 | - freebsd|netbsd|openbsd|interix) | |||
76 | + freebsd|netbsd|openbsd|dragonfly|interix) | |||
77 | xxx="-Wl,-R$shrpdir" | |||
78 | ;; | |||
79 | bsdos|linux|irix*|dec_osf|gnu*) | |||
80 | @@ -9010,6 +9016,13 @@ EOCP | |||
81 | ;; | 74 | ;; | |
82 | esac | 75 | esac | |
83 | 76 | |||
84 | +: Look for a hint-file generated 'call-back-unit'. We need | 77 | +: Look for a hint-file generated 'call-back-unit'. We need | |
85 | +: to set some defaults for building perl in pkgsrc. | 78 | +: to set some defaults for building perl in pkgsrc. | |
86 | +if $test -f pkgsrc.cbu; then | 79 | +if $test -f pkgsrc.cbu; then | |
87 | + echo "Setting pkgsrc-specific hints regarding compiler/linker flags..." | 80 | + echo "Setting pkgsrc-specific hints regarding compiler/linker flags..." | |
88 | + . ./pkgsrc.cbu | 81 | + . ./pkgsrc.cbu | |
89 | +fi | 82 | +fi | |
90 | + | 83 | + | |
91 | case "$vendorprefix" in | 84 | case "$vendorprefix" in | |
92 | '') d_vendorbin="$undef" | 85 | '') d_vendorbin="$undef" | |
93 | vendorbin='' | 86 | vendorbin='' | |
94 | @@ -17776,7 +17789,15 @@ RCAT(Rei,ser) | 87 | @@ -18347,7 +18359,15 @@ RCAT(Rei,ser) | |
95 | ACAT(Cir,cus) | 88 | ACAT(Cir,cus) | |
96 | EOCP | 89 | EOCP | |
97 | $cppstdin $cppflags $cppminus <cpp_stuff.c >cpp_stuff.out 2>&1 | 90 | $cppstdin $cppflags $cppminus <cpp_stuff.c >cpp_stuff.out 2>&1 | |
98 | -if $contains 'Circus' cpp_stuff.out >/dev/null 2>&1; then | 91 | -if $contains 'Circus' cpp_stuff.out >/dev/null 2>&1; then | |
99 | +# yuck, what a hack. | 92 | +# yuck, what a hack. | |
100 | +# MIPSPro compiler/preprocessor behaves differently if invoked on | 93 | +# MIPSPro compiler/preprocessor behaves differently if invoked on | |
101 | +# stdin vs file. Here we test for stdin, but lateron we use files. | 94 | +# stdin vs file. Here we test for stdin, but lateron we use files. | |
102 | +# So force it to work the way we know it does: | 95 | +# So force it to work the way we know it does: | |
103 | +if [ x"${OPSYS}" = x"IRIX" ]; then | 96 | +if [ x"${OPSYS}" = x"IRIX" ]; then | |
104 | + echo "Hacking MIPSPro on file vs. stdin..." >&4 | 97 | + echo "Hacking MIPSPro on file vs. stdin..." >&4 | |
105 | + echo "We know we can catify or stringify, separately or together!" | 98 | + echo "We know we can catify or stringify, separately or together!" | |
106 | + cpp_stuff=42 | 99 | + cpp_stuff=42 | |
107 | +elif $contains 'Circus' cpp_stuff.out >/dev/null 2>&1; then | 100 | +elif $contains 'Circus' cpp_stuff.out >/dev/null 2>&1; then | |
108 | echo "Oh! Smells like ANSI's been here." >&4 | 101 | echo "Oh! Smells like ANSI's been here." >&4 | |
109 | echo "We can catify or stringify, separately or together!" | 102 | echo "We can catify or stringify, separately or together!" | |
110 | cpp_stuff=42 | 103 | cpp_stuff=42 |
@@ -1,13 +1,13 @@ | @@ -1,13 +1,13 @@ | |||
1 | $NetBSD: patch-ch,v 1.3 2006/04/09 06:34:33 jlam Exp $ | 1 | $NetBSD: patch-ch,v 1.4 2008/10/10 21:58:43 he Exp $ | |
2 | 2 | |||
3 | --- hints/dec_osf.sh.orig 2006-01-08 04:53:29.000000000 -0500 | 3 | --- hints/dec_osf.sh.orig 2007-12-18 11:47:07.000000000 +0100 | |
4 | +++ hints/dec_osf.sh | 4 | +++ hints/dec_osf.sh | |
5 | @@ -285,7 +285,7 @@ case "`uname -r`" in | 5 | @@ -79,7 +79,7 @@ case "$unamer" in | |
6 | # fixed in 4.0E or better. | 6 | # fixed in 4.0E or better. | |
7 | ;; | 7 | ;; | |
8 | *) | 8 | *) | |
9 | - lddlflags="$lddlflags $optimize" | 9 | - lddlflags="$lddlflags $optimize" | |
10 | + lddlflags="$lddlflags" | 10 | + lddlflags="$lddlflags" | |
11 | ;; | 11 | ;; | |
12 | esac | 12 | esac | |
13 | # -msym: If using a sufficiently recent /sbin/loader, | 13 | # -msym: If using a sufficiently recent /sbin/loader, |
@@ -1,21 +1,21 @@ | @@ -1,21 +1,21 @@ | |||
1 | $NetBSD: patch-ci,v 1.3 2006/04/09 06:34:33 jlam Exp $ | 1 | $NetBSD: patch-ci,v 1.4 2008/10/10 21:58:43 he Exp $ | |
2 | 2 | |||
3 | --- pp_sys.c.orig 2006-01-13 13:15:15.000000000 -0500 | 3 | --- pp_sys.c.orig 2007-12-18 11:47:08.000000000 +0100 | |
4 | +++ pp_sys.c | 4 | +++ pp_sys.c | |
5 | @@ -4516,12 +4516,15 @@ PP(pp_gmtime) | 5 | @@ -4452,12 +4452,15 @@ PP(pp_gmtime) | |
6 | when = (Time_t)SvIVx(POPs); | 6 | when = (Time_t)SvIVx(POPs); | |
7 | #endif | 7 | #endif | |
8 | 8 | |||
9 | - if (PL_op->op_type == OP_LOCALTIME) | 9 | - if (PL_op->op_type == OP_LOCALTIME) | |
10 | + if (PL_op->op_type == OP_LOCALTIME) { | 10 | + if (PL_op->op_type == OP_LOCALTIME) { | |
11 | #ifdef LOCALTIME_EDGECASE_BROKEN | 11 | #ifdef LOCALTIME_EDGECASE_BROKEN | |
12 | tmbuf = S_my_localtime(aTHX_ &when); | 12 | tmbuf = S_my_localtime(aTHX_ &when); | |
13 | #else | 13 | #else | |
14 | + /* Explicitly invoke tzset() as localtime_r may not. */ | 14 | + /* Explicitly invoke tzset() as localtime_r may not. */ | |
15 | + tzset(); | 15 | + tzset(); | |
16 | tmbuf = localtime(&when); | 16 | tmbuf = localtime(&when); | |
17 | #endif | 17 | #endif | |
18 | + } | 18 | + } | |
19 | else | 19 | else | |
20 | tmbuf = gmtime(&when); | 20 | tmbuf = gmtime(&when); | |
21 | 21 |
$NetBSD: patch-zd,v 1.1 2008/10/10 21:58:44 he Exp $
--- lib/Module/Build/t/tilde.t.orig 2007-12-18 11:47:07.000000000 +0100
+++ lib/Module/Build/t/tilde.t
@@ -40,6 +40,9 @@ my $p = 'install_base';
SKIP: {
my $home = $ENV{HOME} ? $ENV{HOME} : undef;
skip "Needs case and syntax tweaks for VMS", 14 if $^O eq 'VMS';
+ if ($home =~ /work\/.home/) {
+ skip "Skipping test in pkgsrc env to avoid FAKE_HOME trouble", 14;
+ }
unless (defined $home) {
my @info = eval { getpwuid $> };
skip "No home directory for tilde-expansion tests", 14 if $@;