summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorjlam <jlam>2005-06-24 06:43:43 +0000
committerjlam <jlam>2005-06-24 06:43:43 +0000
commitd784868011f321c20c09a4cfc7ab3e3a3cf96c41 (patch)
tree666a7e5cc344f7ca6390ba1b81aaa8b1490d242a /lang
parent65b8f16ef71af8037058db0367057c2abfc7f63f (diff)
downloadpkgsrc-d784868011f321c20c09a4cfc7ab3e3a3cf96c41.tar.gz
Drop the perl-5.6.x package from pkgsrc. Remove lang/perl58 and update
lang/perl5 to perl-5.8.6nb4. Modify packages that referred to lang/perl58 to point to lang/perl5 instead.
Diffstat (limited to 'lang')
-rw-r--r--lang/Makefile3
-rw-r--r--lang/perl5/MESSAGE2
-rw-r--r--lang/perl5/Makefile279
-rw-r--r--lang/perl5/Makefile.common12
-rw-r--r--lang/perl5/PLIST5
-rw-r--r--lang/perl5/buildlink3.mk4
-rw-r--r--lang/perl5/distinfo42
-rw-r--r--lang/perl5/hacks.mk (renamed from lang/perl58/hacks.mk)2
-rw-r--r--lang/perl5/patches/patch-aa136
-rw-r--r--lang/perl5/patches/patch-ac20
-rw-r--r--lang/perl5/patches/patch-ad51
-rw-r--r--lang/perl5/patches/patch-ae61
-rw-r--r--lang/perl5/patches/patch-af35
-rw-r--r--lang/perl5/patches/patch-ag86
-rw-r--r--lang/perl5/patches/patch-ah44
-rw-r--r--lang/perl5/patches/patch-aj31
-rw-r--r--lang/perl5/patches/patch-al32
-rw-r--r--lang/perl5/patches/patch-am53
-rw-r--r--lang/perl5/patches/patch-ba111
-rw-r--r--lang/perl5/patches/patch-bb32
-rw-r--r--lang/perl5/patches/patch-bc15
-rw-r--r--lang/perl5/patches/patch-bd (renamed from lang/perl58/patches/patch-bd)2
-rw-r--r--lang/perl5/patches/patch-be (renamed from lang/perl58/patches/patch-be)2
-rw-r--r--lang/perl5/patches/patch-bf (renamed from lang/perl58/patches/patch-bf)2
-rw-r--r--lang/perl5/patches/patch-ca66
-rw-r--r--lang/perl5/patches/patch-cb (renamed from lang/perl58/patches/patch-cb)2
-rw-r--r--lang/perl5/patches/patch-cc (renamed from lang/perl58/patches/patch-cc)2
-rw-r--r--lang/perl5/patches/patch-cd (renamed from lang/perl58/patches/patch-cd)2
-rw-r--r--lang/perl5/patches/patch-ce (renamed from lang/perl58/patches/patch-ce)2
-rw-r--r--lang/perl5/patches/patch-cf (renamed from lang/perl58/patches/patch-cf)2
-rw-r--r--lang/perl5/patches/patch-cg (renamed from lang/perl58/patches/patch-cg)2
-rw-r--r--lang/perl5/patches/patch-ch (renamed from lang/perl58/patches/patch-ch)2
-rw-r--r--lang/perl5/patches/patch-ci (renamed from lang/perl58/patches/patch-ci)2
-rw-r--r--lang/perl5/patches/patch-cj (renamed from lang/perl58/patches/patch-cj)2
-rw-r--r--lang/perl5/patches/patch-ck (renamed from lang/perl58/patches/patch-ck)2
-rw-r--r--lang/perl5/patches/patch-cl (renamed from lang/perl58/patches/patch-cl)2
-rw-r--r--lang/perl5/patches/patch-zc (renamed from lang/perl58/patches/patch-zc)2
-rw-r--r--lang/perl58/DESCR11
-rw-r--r--lang/perl58/MESSAGE9
-rw-r--r--lang/perl58/Makefile285
-rw-r--r--lang/perl58/PLIST5
-rw-r--r--lang/perl58/distinfo25
-rw-r--r--lang/perl58/patches/patch-aa50
-rw-r--r--lang/perl58/patches/patch-ae12
-rw-r--r--lang/perl58/patches/patch-ah67
-rw-r--r--lang/perl58/patches/patch-ba59
-rw-r--r--lang/perl58/patches/patch-ca79
47 files changed, 420 insertions, 1334 deletions
diff --git a/lang/Makefile b/lang/Makefile
index 8c84511df99..6ae10f2cf70 100644
--- a/lang/Makefile
+++ b/lang/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.216 2005/06/24 05:56:26 jlam Exp $
+# $NetBSD: Makefile,v 1.217 2005/06/24 06:43:44 jlam Exp $
#
COMMENT= Programming languages
@@ -97,7 +97,6 @@ SUBDIR+= opencobol
SUBDIR+= p2c
SUBDIR+= parrot
SUBDIR+= perl5
-SUBDIR+= perl58
SUBDIR+= pforth
#SUBDIR+= php # only contains Makefile fragments
#SUBDIR+= php5 # only contains Makefile fragments
diff --git a/lang/perl5/MESSAGE b/lang/perl5/MESSAGE
index 0b21418b1bd..3a985af08b2 100644
--- a/lang/perl5/MESSAGE
+++ b/lang/perl5/MESSAGE
@@ -1,5 +1,5 @@
===========================================================================
-$NetBSD: MESSAGE,v 1.4 2004/01/08 19:18:00 jlam Exp $
+$NetBSD: MESSAGE,v 1.5 2005/06/24 06:43:45 jlam Exp $
${PKGNAME} will use the following directory as the default
location of the site-specific Perl modules:
diff --git a/lang/perl5/Makefile b/lang/perl5/Makefile
index 3d9d6b0d752..a585b938988 100644
--- a/lang/perl5/Makefile
+++ b/lang/perl5/Makefile
@@ -1,26 +1,49 @@
-# $NetBSD: Makefile,v 1.92 2005/04/11 21:46:15 tv Exp $
+# $NetBSD: Makefile,v 1.93 2005/06/24 06:43:45 jlam Exp $
-.include "../../lang/perl5/Makefile.common"
+# The following two variables should have empty values unless we're
+# building a perl snapshot or release candidate.
+#
+PERL5_SNAPSHOT= # empty
+PERL5_RC_VERS= # empty
-PKGREVISION= 11
-CATEGORIES+= lang devel
+PERL5_VERS= 5.8.6
+CATEGORIES= lang devel perl5
+EXTRACT_SUFX= .tar.bz2
-MAINTAINER= tech-pkg@NetBSD.org
-HOMEPAGE= http://www.perl.com/
-COMMENT= Practical Extraction and Report Language
+.if empty(PERL5_SNAPSHOT) && empty(PERL5_RC_VERS)
+DISTNAME= perl-${PERL5_VERS}
+PKGNAME= perl-${PERL5_VERS}
+PKGREVISION= 4
+MASTER_SITES= ${MASTER_SITE_PERL_CPAN:S,/modules/by-module/$,/src/,}
+.else
+. if !empty(PERL5_SNAPSHOT)
+DISTNAME= perl@${PERL5_SNAPSHOT}
+PKGNAME= perl-${PERL5_VERS}beta${PERL5_SNAPSHOT}
+MASTER_SITES= http://www.iki.fi/jhi/
+EXTRACT_SUFX= .tbz
+WRKSRC= ${WRKDIR}/perl
+. else # !empty(PERL5_RC_VERS)
+DISTNAME= perl-${PERL5_VERS}-RC${PERL5_RC_VERS}
+PKGNAME= perl-${PERL5_VERS}rc${PERL5_RC_VERS}
+MASTER_SITES= ${MASTER_SITE_PERL_CPAN:S/${MODULE_DIR}/${AUTHOR_DIR}/}
+MODULE_DIR= modules/by-module
+AUTHOR_DIR= authors/id/J/JH/JHI
+. endif
+.endif
-CONFLICTS= perl-5.00* perl-base-[0-9]* \
- p5-CGI-2.66 p5-CGI-2.75 p5-CGI-2.75.[0-2] \
- p5-Data-Dumper-2.1[0-9][0-9] p5-Data-Dumper-[0-9][0-9] \
- p5-Devel-DProf-[0-9]* p5-Devel-Peek-[0-9]* \
- perl-mk-[0-9]*
+MAINTAINER= jlam@NetBSD.org
+HOMEPAGE= http://www.perl.com/
+COMMENT= Practical Extraction and Report Language
-NOT_FOR_PLATFORM= Darwin-*-* Interix-*-*
+CONFLICTS= perl-5.00* perl-base-[0-9]* \
+ p5-CGI-2.66 p5-CGI-2.75 p5-CGI-2.75.[0-2] \
+ p5-Data-Dumper-2.1[0-9][0-9] p5-Data-Dumper-[0-9][0-9] \
+ p5-Devel-DProf-[0-9]* p5-Devel-Peek-[0-9]* \
+ perl-mk-[0-9]* perl-thread-[0-9]*
PKG_INSTALLATION_TYPES= overwrite pkgviews
-BUILDING_PERL5= yes
-PERL5_CONFIGURE= no
+.include "../../mk/compiler.mk"
HAS_CONFIGURE= yes
CONFIGURE_SCRIPT= ./Configure
@@ -28,15 +51,16 @@ CONFIGURE_ARGS+= -sde
CONFIGURE_ARGS+= -Dprefix="${PREFIX}"
CONFIGURE_ARGS+= -Dscriptdir="${PREFIX}/bin"
CONFIGURE_ARGS+= -Darchname="${MACHINE_ARCH}-${LOWER_OPSYS}"
+CONFIGURE_ARGS+= -Dcc="${CC}"
CONFIGURE_ARGS+= -Doptimize="${CFLAGS}"
-CONFIGURE_ARGS+= -Dcc="${CC:T}"
CONFIGURE_ARGS+= -Dinstallstyle="lib/perl5"
+CONFIGURE_ARGS+= -Duseshrplib
CONFIGURE_ARGS+= -Ui_malloc
CONFIGURE_ARGS+= -Uusemymalloc
CONFIGURE_ARGS+= -Uinstallusrbinperl
-TEST_TARGET= test
+MAKE_ENV+= LC_ALL="C"
-CONFIGURE_ARGS+= -Dman1dir="${PREFIX}/man/man1"
+TEST_TARGET= test
# Install Perl man3 pages into a private directory under the normal
# Perl installation. Also install site-specific Perl man3 pages into a
@@ -44,41 +68,62 @@ CONFIGURE_ARGS+= -Dman1dir="${PREFIX}/man/man1"
# between 3rd-party modules, the standard Perl library, and other
# packages.
#
+CONFIGURE_ARGS+= -Dman3ext="3"
CONFIGURE_ARGS+= -Dman3dir="${PERL5_PRIVLIB}/man/man3"
-CONFIGURE_ARGS+= -Dinstallsiteman3dir="${PERL5_SITEPERL}/man/man3"
+CONFIGURE_ARGS+= -Dsiteman3dir="${PERL5_SITEPERL}/man/man3"
+
+# Ensure that the Perl man1 pages go into ${PREFIX}/man/man1 and not
+# into some other platform-specific location kindly "guessed" by the
+# Configure script.
+#
+CONFIGURE_ARGS+= -Dman1dir="${PREFIX}/man/man1"
# The site directories are all relative to the perl view.
CONFIGURE_ARGS+= -Dsiteprefix="${VIEWBASE}"
-CONFIGURE_ARGS+= -Dinstallsiteman1dir="${VIEWBASE}/man/man1"
+CONFIGURE_ARGS+= -Dsiteman1dir="${VIEWBASE}/man/man1"
.include "../../mk/bsd.prefs.mk"
-.include "../../mk/compiler.mk"
-
-MKPIC?= yes
-.if ${OPSYS} == "IRIX" && ${ABI} == "64"
-CONFIGURE_ARGS+= -Duse64bitint
+.if ${OPSYS} == "Darwin"
+#
+# The perl build attempts to work around case-insensitivity problems on
+# HFS filesystems by using GNUmakefiles, so we need to use GNU make.
+#
+USE_TOOLS+= gmake
.endif
+# Perl embeds the full paths to the following tools in several installed
+# files, so make sure the paths to the ones in ${TOOLS_DIR} aren't used.
+#
+USE_TOOLS+= hostname ln sed
+CONFIGURE_ARGS+= -Daphostname=${TOOLS_HOSTNAME_CMD:Q}
+CONFIGURE_ARGS+= -Dln=${TOOLS_LN:Q}
+CONFIGURE_ARGS+= -Dsed=${TOOLS_SED:Q}
+
# Nail down the needed libraries for each platform here to avoid hidden
# dependencies. If this isn't defined, then use the perl defaults for the
# particular operating system.
#
-LIBSWANTED.BSDOS= m crypt dl bind
+LIBSWANTED.Darwin= m c
LIBSWANTED.FreeBSD= m crypt
LIBSWANTED.IRIX= m crypt
+LIBSWANTED.Interix= m dl
LIBSWANTED.NetBSD= m crypt
LIBSWANTED.OpenBSD= m crypt
LIBSWANTED.SunOS= m crypt dl socket nsl
+LIBSWANTED= ${LIBSWANTED.${OPSYS}}
# Nail down the directories in which the system libraries may be found.
# If this isn't defined, then use the perl defaults for the particular
# operating system.
#
-SYSLIBPATH.BSDOS= /usr/lib
+SYSLIBPATH.Darwin= /usr/lib
+SYSLIBPATH.FreeBSD= /usr/lib
+SYSLIBPATH.Interix= /usr/lib
SYSLIBPATH.NetBSD= /usr/lib
SYSLIBPATH.OpenBSD= /usr/lib
SYSLIBPATH.SunOS= /usr/lib
+SYSLIBPATH= ${SYSLIBPATH.${OPSYS}}
# Nail down the directories in which headers and libraries of
# locally-installed software may be found.
@@ -92,46 +137,82 @@ LOCINCPATH= ${LOCALBASE}/include
#
.if ${OBJECT_FMT} == "a.out"
LOCLIBRPATHFLAGS= ${LOCLIBPATH:S/^/${LINKER_RPATH_FLAG} /g}
-.else
+.elif ${OBJECT_FMT} == "ELF"
LOCLIBRPATHFLAGS= ${LOCLIBPATH:S/^/${COMPILER_RPATH_FLAG}/g}
+.else
+LOCLIBRPATHFLAGS= # empty
.endif
-FIX_RPATH+= LOCLIBRPATHFLAGS
-.if defined(LIBSWANTED.${OPSYS})
-CONFIGURE_ARGS+= -Dlibswanted="${LIBSWANTED.${OPSYS}}"
+PERL5_HINTS_LDFLAGS= # empty
+PERL5_HINTS_LDDLFLAGS= # empty
+
+PERL5_HINTS_LDFLAGS+= ${LOCLIBRPATHFLAGS}
+
+.include "../../mk/dlopen.buildlink3.mk"
+
+CHECK_BUILTIN.pthread:= yes
+.include "../../mk/pthread.builtin.mk"
+CHECK_BUILTIN.pthread:= no
+
+# By default, build with threads only if the threads are native.
+.if !empty(USE_BUILTIN.pthread:M[yY][eE][sS])
+PERL5_USE_THREADS?= yes
+.else
+PERL5_USE_THREADS?= ${DLOPEN_REQUIRE_PTHREADS}
.endif
-.if ${OPSYS} == "NetBSD"
-. if !exists(/usr/libexec/ld.so) && !exists(/usr/libexec/ld.elf_so)
-MKPIC= no
-. endif
-. if ${MACHINE_ARCH} == "sparc64"
-# The toolchain on sparc64 is not really production-quality right now, but
-# gcc-2.96 is supposed to fix most problems. Passing -g to the configure
-# process triggers -DDEBUGGING, which plays the real trick and circumvents
-# code-generation bugs, so we add -g to CFLAGS to at least have a really
-# debuggable build.
-#
-CFLAGS+= -g -msoft-quad-float -O2
-. endif
-.elif ${OPSYS} == "SunOS"
-CFLAGS=
+### [Sat Dec 18 17:29:44 EST 2004 : jlam]
+### Native threading on VAX isn't ready for primetime in NetBSD>=2.0.
+### Build Perl without threads-support until VAX native threads are
+### known to work.
+###
+.if !empty(MACHINE_PLATFORM:MNetBSD-*-vax)
+PKG_HACKS+= broken-vax-pthreads
+PERL5_USE_THREADS= no
.endif
-.if ${MKPIC} == "yes"
-CONFIGURE_ARGS+= -Duseshrplib
+.if !empty(PERL5_USE_THREADS:M[nN][oO])
+CONFIGURE_ARGS+= -Uuseithreads
+.else
+. include "../../mk/pthread.buildlink3.mk"
+CONFIGURE_ARGS+= -Duseithreads
+CFLAGS+= ${PTHREAD_CFLAGS}
+PERL5_HINTS_LDFLAGS+= ${PTHREAD_LDFLAGS}
+PERL5_HINTS_LDDLFLAGS+= ${PTHREAD_LDFLAGS}
+LIBSWANTED+= ${PTHREAD_LIBS:M-l*:S/^-l//}
.endif
-PERL5= ${PREFIX}/bin/perl${PERL5_DIST_VERS}
-PERL5_PRIVLIB= ${PREFIX}/lib/perl5/${PERL5_DIST_VERS}
-PERL5_ARCHLIB= ${PREFIX}/lib/perl5/${PERL5_DIST_VERS}/${MACHINE_ARCH}-${LOWER_OPSYS}
+.if !empty(LIBSWANTED)
+CONFIGURE_ARGS+= -Dlibswanted="${LIBSWANTED}"
+.endif
+
+.include "../../mk/compiler.mk"
+
+.if ${OPSYS} == "IRIX" && ${ABI} == "64"
+CONFIGURE_ARGS+= -Dcc='${CC} -64' -Duse64bitint
+.endif
+
+PERL5= ${PREFIX}/bin/perl${PERL5_VERS}
+PERL5_PRIVLIB= ${PREFIX}/lib/perl5/${PERL5_VERS}
PERL5_SITEPERL= ${VIEWBASE}/lib/perl5/site_perl
-PERL5_SITELIB= ${VIEWBASE}/lib/perl5/site_perl/${PERL5_DIST_VERS}
-PERL5_SITEARCH= ${VIEWBASE}/lib/perl5/site_perl/${PERL5_DIST_VERS}/${MACHINE_ARCH}-${LOWER_OPSYS}
-PERL5_PACKLIST= ${PERL5_ARCHLIB}/.packlist
+PERL5_SITELIB= ${VIEWBASE}/lib/perl5/site_perl/${PERL5_VERS}
PLIST_SUBST+= PERL5_SITEPERL=${PERL5_SITEPERL:S/^${PREFIX}\///}
+PLIST_SUBST+= PERL5_SITELIB=${PERL5_SITELIB:S/^${PREFIX}\///}
MESSAGE_SUBST+= PERL5_SITELIB=${PERL5_SITELIB}
+# Some platforms may want the directory mode not to be 0755. This is,
+# unfortunately, hardcoded in quite a few places in Perl. So let's substitute
+# what pkgsrc said instead.
+post-patch:
+.if ${PKGDIRMODE} != "755"
+. for f in installhtml installman installperl lib/ExtUtils/Install.pm
+ cd ${WRKSRC} && \
+ ${MV} -f ${f} ${f}.dirmode && \
+ ${SED} -e 's/755/${PKGDIRMODE}/g;/umask(/d' \
+ ${f}.dirmode >${f}
+. endfor
+.endif
+
# It's tough to guess which hints file will be used, so add our modifications
# to all of them:
#
@@ -142,69 +223,63 @@ pre-configure:
hintdir="${WRKSRC}/hints"; \
for hints in $${hintdir}/*.sh; do \
${CHMOD} +w $${hints}; \
- ( ${ECHO} ''; \
+ ( ${ECHO} ""; \
+ ${ECHO} "cat > UU/pkgsrc.cbu <<'EOCBU'"; \
+ ${ECHO} "# This script UU/pkgsrc.cbu will get 'called-back' by Configure to set"; \
+ ${ECHO} '# linker options after all other call-back scripts have been invoked.'; \
+ ${ECHO} 'ldflags="${PERL5_HINTS_LDFLAGS} $$ldflags"'; \
+ ${ECHO} 'lddlflags="${PERL5_HINTS_LDFLAGS} $$lddlflags"'; \
+ ${ECHO} "EOCBU"; \
+ ) >> $${hints}; \
+ done
+ hintdir="${WRKSRC}/hints"; \
+ for hints in $${hintdir}/*.sh; do \
+ ( ${ECHO} ""; \
+ ${ECHO} "# Set pkgsrc defaults for library and header search paths."; \
${ECHO} 'locincpth="${LOCINCPATH}"'; \
${ECHO} 'loclibpth="${LOCLIBPATH}"'; \
- ${ECHO} 'ldflags="${LOCLIBRPATHFLAGS} $$ldflags"'; \
) >> $${hints}; \
done
-.if defined(SYSLIBPATH.${OPSYS})
+.if !empty(SYSLIBPATH)
hintdir="${WRKSRC}/hints"; \
for hints in $${hintdir}/*.sh; do \
- ( ${ECHO} "glibpth='${SYSLIBPATH.${OPSYS}}'"; \
+ ( ${ECHO} "glibpth='${SYSLIBPATH}'"; \
) >> $${hints}; \
done
.endif
-# By default, on platforms that build shared libraries, rebuild the perl
-# binary as a statically-linked binary as a speed optimization. Performance
-# increase is only by word-of-mouth -- no actual benchmarks have been
-# produced. However, it has been remarked that the advantage of having a
-# statically-linked perl is pretty much non-existent on any platform with
-# any reasonable number of registers. These platforms should be added to
-# the list below to bypass the build of the statically-linked perl.
-#
-.if ${MKPIC} == "yes"
-. for _arch_ in mipsel mipseb
-. if !empty(MACHINE_ARCH:M${_arch_})
-STATIC_PERL?= NO
-. endif
-. endfor
-.endif
-STATIC_PERL?= YES
-
-WRKSRC_PERL5= ${WRKSRC}/perl
-
-.if defined(STATIC_PERL) && ${STATIC_PERL} == "YES"
-STATIC_WRKDIR= ${WRKDIR}/static
-STATIC_MAKEFLAGS= MKPIC=no STATIC_PERL=NO
-STATIC_MAKEFLAGS+= WRKDIR=${STATIC_WRKDIR}
-STATIC_MAKEFLAGS+= BUILD_TARGET=perl
-WRKSRC_PERL5= ${STATIC_WRKDIR}/${WRKSRC:T}/perl
-
-post-build:
- cd ${.CURDIR} && ${MAKE} build ${STATIC_MAKEFLAGS}
-.endif
+WRKSRC_PERL5= ${WRKSRC}/perl
+PLIST_SRC= ${WRKDIR}/.PLIST_SRC
+PLIST_FILE_SED= -e "s,[ ].*,," -e "s,/\./,/,g" -e "s,${PREFIX}/,,"
+PLIST_DIR_SED= ${PLIST_FILE_SED} \
+ -e "s,^,@unexec \${RMDIR} -p %D/," \
+ -e "s,/[^/]*$$, 2>/dev/null || ${TRUE}," \
post-install:
- ${RM} -f ${PREFIX}/bin/perl ${PREFIX}/bin/perl${PERL5_DIST_VERS}
- ${INSTALL_PROGRAM} ${WRKSRC_PERL5} ${PREFIX}/bin/perl${PERL5_DIST_VERS}
- ${LN} -f ${PREFIX}/bin/perl${PERL5_DIST_VERS} ${PREFIX}/bin/perl
+ ${RM} -f ${PREFIX}/bin/perl ${PREFIX}/bin/perl${PERL5_VERS}
+ ${INSTALL_PROGRAM_DIR} ${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC_PERL5} ${PREFIX}/bin/perl${PERL5_VERS}
+ ${LN} -f ${PREFIX}/bin/perl${PERL5_VERS} ${PREFIX}/bin/perl
.if defined(_STRIPFLAG_INSTALL) && !empty(_STRIPFLAG_INSTALL)
if [ -x ${PREFIX}/bin/a2p ]; then \
strip ${PREFIX}/bin/a2p; \
fi
.endif
- ${RMDIR} -p ${PERL5_SITEARCH} 2>/dev/null || ${TRUE}
- ${RM} -f ${WRKDIR}/bsd.perl.mk
- eval `${PERL5} -V:installsitelib 2>/dev/null` && \
- echo PERL5_SITELIB=$$installsitelib >>${WRKDIR}/bsd.perl.mk
- eval `${PERL5} -V:installsitearch 2>/dev/null` && \
- echo PERL5_SITEARCH=$$installsitearch >>${WRKDIR}/bsd.perl.mk
- eval `${PERL5} -V:installarchlib 2>/dev/null` && \
- echo PERL5_ARCHLIB=$$installarchlib >>${WRKDIR}/bsd.perl.mk
- ${INSTALL_DATA_DIR} ${PREFIX}/share/mk
- ${INSTALL_DATA} ${WRKDIR}/bsd.perl.mk ${PREFIX}/share/mk/bsd.perl.mk
-
-.include "module.mk"
+ # Generate the PLIST template
+ eval `${PERL5} -V:installarchlib 2>/dev/null`; \
+ eval `${PERL5} -V:installsitearch 2>/dev/null`; \
+ sitearch=`${ECHO} $$installsitearch | ${SED} ${PLIST_FILE_SED}`; \
+ ${RMDIR} -p $$installsitearch 2>/dev/null || ${TRUE}; \
+ packlist="$$installarchlib/.packlist"; \
+ ( ${ECHO} "@unexec ${RM} -f %D/$$sitearch/perllocal.pod"; \
+ ${ECHO} "@unexec ${RMDIR} -p %D/$$sitearch 2>/dev/null || ${TRUE}"; \
+ ${CAT} ${PKGDIR}/PLIST; \
+ ${ECHO} "@comment The following lines are automatically generated"; \
+ ${ECHO} "@comment from the installed .packlist files."; \
+ ) > ${PLIST_SRC}; \
+ ( ${ECHO} "$$packlist" && ${CAT} $$packlist ) \
+ | ${SED} ${PLIST_FILE_SED} | ${SORT} -u >> ${PLIST_SRC}; \
+ ( ${ECHO} "$$packlist" && ${CAT} $$packlist ) \
+ | ${SED} ${PLIST_DIR_SED} | ${SORT} -ur >> ${PLIST_SRC}
+
.include "../../mk/bsd.pkg.mk"
diff --git a/lang/perl5/Makefile.common b/lang/perl5/Makefile.common
deleted file mode 100644
index 9f72f2debaa..00000000000
--- a/lang/perl5/Makefile.common
+++ /dev/null
@@ -1,12 +0,0 @@
-# $NetBSD: Makefile.common,v 1.6 2003/03/18 10:06:26 heinz Exp $
-
-DISTNAME= perl-${PERL5_DIST_VERS}
-CATEGORIES+= perl5
-MASTER_SITES+= ftp://cpan.teleglobe.net/pub/CPAN/src/5.0/maint/ \
- ftp://perl.secsup.org/pub/perl/src/5.0/maint/ \
- ftp://ftp.lug.udel.edu/pub/CPAN/src/5.0/maint/ \
- ftp://ftp.funet.fi/pub/languages/perl/CPAN/src/5.0/maint/ \
- ftp://ftp.ruhr-uni-bochum.de/mirrors/ftp.funet.fi/pub/languages/perl/CPAN/src/5.0/maint/
-
-# version number on the distfile
-PERL5_DIST_VERS= 5.6.1
diff --git a/lang/perl5/PLIST b/lang/perl5/PLIST
index 096629c7876..2a77ff1ff91 100644
--- a/lang/perl5/PLIST
+++ b/lang/perl5/PLIST
@@ -1,6 +1,5 @@
-@comment $NetBSD: PLIST,v 1.3 2003/05/27 21:57:25 jlam Exp $
-share/mk/bsd.perl.mk
-@unexec ${RM} -f %D/${PERL5_ARCHLIB}/perllocal.pod
+@comment $NetBSD: PLIST,v 1.4 2005/06/24 06:43:45 jlam Exp $
@unexec ${RMDIR} -p %D/${PERL5_SITEPERL}/man/man3 2>/dev/null || ${TRUE}
@unexec ${RMDIR} -p %D/${PERL5_SITEPERL}/man 2>/dev/null || ${TRUE}
@unexec ${RMDIR} -p %D/${PERL5_SITEPERL} 2>/dev/null || ${TRUE}
+@unexec ${RMDIR} -p %D/${PERL5_SITELIB} 2>/dev/null || ${TRUE}
diff --git a/lang/perl5/buildlink3.mk b/lang/perl5/buildlink3.mk
index fafd7d4863d..f2c217428fb 100644
--- a/lang/perl5/buildlink3.mk
+++ b/lang/perl5/buildlink3.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.23 2005/05/22 19:11:12 jlam Exp $
+# $NetBSD: buildlink3.mk,v 1.24 2005/06/24 06:43:45 jlam Exp $
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
PERL5_BUILDLINK3_MK:= ${PERL5_BUILDLINK3_MK}+
@@ -17,7 +17,7 @@ USE_TOOLS+= perl
TOOLS_DEPENDS.perl= # buildlink3 will handle the dependency
BUILDLINK_DEPENDS.perl+= {perl>=${PERL5_REQD},perl-thread>=${PERL5_REQD}}
BUILDLINK_RECOMMENDED.perl+= perl>=5.8.5nb6
-BUILDLINK_PKGSRCDIR.perl?= ../../lang/perl58
+BUILDLINK_PKGSRCDIR.perl?= ../../lang/perl5
.if defined(USE_PERL5) && !empty(USE_PERL5:Mbuild)
BUILDLINK_DEPMETHOD.perl?= build
diff --git a/lang/perl5/distinfo b/lang/perl5/distinfo
index d2fa04c6d4f..1f8297f697c 100644
--- a/lang/perl5/distinfo
+++ b/lang/perl5/distinfo
@@ -1,19 +1,25 @@
-$NetBSD: distinfo,v 1.21 2005/05/25 12:42:29 wiz Exp $
+$NetBSD: distinfo,v 1.22 2005/06/24 06:43:45 jlam Exp $
-SHA1 (perl-5.6.1.tar.gz) = c718b38685f90d51a9a6b1b008de0d7d198c0744
-RMD160 (perl-5.6.1.tar.gz) = 4062e3d43e7a860197ff73ab5083ddb2e5909cde
-Size (perl-5.6.1.tar.gz) = 5983695 bytes
-SHA1 (patch-aa) = f15f873160a611e35978a24fdabad29dabdff043
-SHA1 (patch-ac) = dfebafeec171c86de3d6105e5543270a30f82691
-SHA1 (patch-ad) = 7a3ca903d958026473f593fdeb172f86f2ef66d2
-SHA1 (patch-ae) = 677797f38279b7602fc5bbac8ee80c0e09f6e285
-SHA1 (patch-af) = 94d91fba0731c9ee43b3e544f81cc9367a75a77c
-SHA1 (patch-ag) = 4e9c1a22d593f79e25a67ea330ae4b908b3c2c5f
-SHA1 (patch-ah) = 4c689dde8cba8cb3c30295d52536ff09a0c7f589
-SHA1 (patch-aj) = 4da55b4bb1e1607fde7a3d9510ca3d6a90f8c10b
-SHA1 (patch-al) = 96b68e38900053109caeb10326cce6e17f58dcab
-SHA1 (patch-am) = 57af2f39327951e321fcb6985aa2d74c090278c6
-SHA1 (patch-ba) = c30dbcbcd72896c324ad18c4adb3304a340c379f
-SHA1 (patch-bb) = 7aa35848111a62c608e792f025b7095513d7041b
-SHA1 (patch-bc) = 6f3c2a279065872f836a9d7bb79d127975227952
-SHA1 (patch-ca) = a8ce3508d1dbe1c40321b7262f5bf2320bcd9c04
+SHA1 (perl-5.8.6.tar.bz2) = 5267c5b4900a995a10e4fc56fe10a6852004c29b
+RMD160 (perl-5.8.6.tar.bz2) = 52fdee3caecf67417a9c081b7aae84807235cb27
+Size (perl-5.8.6.tar.bz2) = 9693085 bytes
+SHA1 (patch-aa) = 3c16c599dae752cea4143ca48071118ece5925a4
+SHA1 (patch-ae) = 044ac094cd475a16483552aa6f1bde03bd11f592
+SHA1 (patch-ah) = cb103c14090b2d61720ee9b555b32085c8eeb810
+SHA1 (patch-ba) = 096835f71a69f29e50bdad47944afa838dba5aec
+SHA1 (patch-bd) = 9f96ba1912f2a8db93db31f7a63c0b49a045318d
+SHA1 (patch-be) = 9f667f33ea24300a5580db84d0978ca53f126f29
+SHA1 (patch-bf) = 9bc5690b41a70617cde89b805184a8d5605d20d1
+SHA1 (patch-ca) = 3198a5f49c2a850b1ea1f5c6f0738f45da505924
+SHA1 (patch-cb) = 5eec09e832735d2e59fd82f7043fa78ee08cbd0d
+SHA1 (patch-cc) = b04ea30ac47ae0748aa6b6c83c8de0396ace349f
+SHA1 (patch-cd) = d9420f57f036567abac821a8144768a2a7057b47
+SHA1 (patch-ce) = c7d2defd2cfa872c1f6651678bc3de6cd7aeaf34
+SHA1 (patch-cf) = 23cf46c8d683b688878433ec9b33f3c65528cd28
+SHA1 (patch-cg) = e1b56aaa40934f78298d1fd9303fbae33c472d8e
+SHA1 (patch-ch) = 6cfd77bba102a4bca82576f061ba60c1610c4d07
+SHA1 (patch-ci) = 89bc6e67b18ca903cb3791fd598fd579bc48298b
+SHA1 (patch-cj) = 680b7161d7530825376b9d5c108fc01f15768e5e
+SHA1 (patch-ck) = 28207b8186c9ad194a1edc696159915bc16d1097
+SHA1 (patch-cl) = 8553c83e721f5ae43a5f6e0e4d2b70510b69e77c
+SHA1 (patch-zc) = eb81edd1144ec46285898afc641c03a3aad54977
diff --git a/lang/perl58/hacks.mk b/lang/perl5/hacks.mk
index 7130e3111f8..c65ce0aee4b 100644
--- a/lang/perl58/hacks.mk
+++ b/lang/perl5/hacks.mk
@@ -1,4 +1,4 @@
-# $NetBSD: hacks.mk,v 1.6 2005/05/11 16:15:50 jlam Exp $
+# $NetBSD: hacks.mk,v 1.1 2005/06/24 06:43:45 jlam Exp $
.include "../../mk/compiler.mk"
diff --git a/lang/perl5/patches/patch-aa b/lang/perl5/patches/patch-aa
index 25b0b41446d..68259c37791 100644
--- a/lang/perl5/patches/patch-aa
+++ b/lang/perl5/patches/patch-aa
@@ -1,96 +1,50 @@
-$NetBSD: patch-aa,v 1.25 2003/10/05 14:16:41 grant Exp $
+$NetBSD: patch-aa,v 1.26 2005/06/24 06:43:45 jlam Exp $
---- Configure.orig Sun Mar 18 22:03:33 2001
-+++ Configure Fri Oct 3 20:55:27 2003
-@@ -891,6 +891,8 @@
- sitelib=''
- sitelib_stem=''
- sitelibexp=''
-+installsiteman1dir=''
-+installsiteman3dir=''
- siteprefix=''
- siteprefixexp=''
- sizesize=''
-@@ -6598,7 +6600,7 @@
- esac
- for thisflag in $ldflags; do
- case "$thisflag" in
-- -L*|-R*)
-+ -L*|-R*|-Wl,-R*)
- case " $dflt " in
- *" $thisflag "*) ;;
- *) dflt="$dflt $thisflag" ;;
-@@ -6807,12 +6809,18 @@
- aix)
- # We'll set it in Makefile.SH...
- ;;
-- solaris|netbsd)
-+ solaris)
- xxx="-R $shrpdir"
- ;;
-+ netbsd)
-+ xxx="-Wl,-R$shrpdir"
-+ ;;
- freebsd)
- xxx="-Wl,-R$shrpdir"
- ;;
-+ bsdos)
-+ xxx="-Wl,-R$shrpdir"
-+ ;;
- linux|irix*|dec_osf)
- xxx="-Wl,-rpath,$shrpdir"
- ;;
-@@ -6966,6 +6974,17 @@
- ;;
- esac
+--- lib/ExtUtils/MM_Unix.pm.orig 2004-01-05 17:34:59.000000000 -0500
++++ lib/ExtUtils/MM_Unix.pm
+@@ -12,7 +12,7 @@ use DirHandle;
-+case "$installsiteman1dir" in
-+'') dflt="$installman1dir" ;;
-+*) dflt="$installsiteman1dir" ;;
-+esac
-+set installsiteman1dir installsiteman1dir none
-+eval $prefixit
-+fn=d~+
-+rp="Where do the site-specific manual pages (source) go?"
-+. ./getfile
-+installsiteman1dir="$ans"
-+
- : see if we can have long filenames
- echo " "
- first=123456789abcdef
-@@ -7090,6 +7109,17 @@
- ;;
- esac
+ use vars qw($VERSION @ISA
+ $Is_Mac $Is_OS2 $Is_VMS $Is_Win32 $Is_Win95 $Is_Dos $Is_VOS
+- $Is_QNX $Is_AIX $Is_OSF $Is_IRIX $Is_NetBSD $Is_BSD
++ $Is_QNX $Is_AIX $Is_OSF $Is_IRIX $Is_BSD $Is_Interix
+ $Is_SunOS4 $Is_Solaris $Is_SunOS
+ $Verbose %pm %static
+ %Config_Override
+@@ -36,11 +36,11 @@ $Is_QNX = $^O eq 'qnx';
+ $Is_AIX = $^O eq 'aix';
+ $Is_OSF = $^O eq 'dec_osf';
+ $Is_IRIX = $^O eq 'irix';
+-$Is_NetBSD = $^O eq 'netbsd';
++$Is_Interix = $^O eq 'interix';
+ $Is_SunOS4 = $^O eq 'sunos';
+ $Is_Solaris = $^O eq 'solaris';
+ $Is_SunOS = $Is_SunOS4 || $Is_Solaris;
+-$Is_BSD = $^O =~ /^(?:free|net|open)bsd|bsdos$/;
++$Is_BSD = $^O =~ /^(?:free|net|open)bsd|bsdos|dragonfly|interix$/;
-+case "$installsiteman3dir" in
-+'') dflt="$installman3dir" ;;
-+*) dflt="$installsiteman3dir" ;;
-+esac
-+set installsiteman3dir installsiteman3dir none
-+eval $prefixit
-+fn=d~+
-+rp="Where do the site-specific library man pages (source) go?"
-+. ./getfile
-+installsiteman3dir="$ans"
-+
- : see if we have to deal with yellow pages, now NIS.
- if $test -d /usr/etc/yp || $test -d /etc/yp; then
- if $test -f /usr/etc/nibindd; then
-@@ -14719,7 +14749,7 @@
- eval $inhdr
- : see if this is a ieeefp.h system
--set ieeefp.h i_ieeefp
-+set machine/ieeefp.h i_ieeefp
- eval $inhdr
+ =head1 NAME
+@@ -1120,16 +1120,16 @@ $(INST_DYNAMIC): $(OBJECT) $(MYEXTLIB) $
- : see if this is a libutil.h system
-@@ -16145,6 +16175,8 @@
- installsitearch='$installsitearch'
- installsitebin='$installsitebin'
- installsitelib='$installsitelib'
-+installsiteman1dir='$installsiteman1dir'
-+installsiteman3dir='$installsiteman3dir'
- installstyle='$installstyle'
- installusrbinperl='$installusrbinperl'
- installvendorarch='$installvendorarch'
+ my $libs = '$(LDLOADLIBS)';
+
+- if ($Is_NetBSD) {
+- # Use nothing on static perl platforms, and to the flags needed
+- # to link against the shared libperl library on shared perl
+- # platforms. We peek at lddlflags to see if we need -Wl,-R
++ if ($Is_BSD) {
++ # Use nothing on static perl platforms, and add to the flags
++ # needed to link against the shared libperl library on shared
++ # perl platforms. We peek at lddlflags to see if we need -Wl,-R
+ # or -R to add paths to the run-time library search path.
+ if ($Config{'useshrplib'}) {
+ if ($Config{'lddlflags'} =~ /-Wl,-R/) {
+- $libs .= ' -L$(PERL_INC) -Wl,-R$(INSTALLARCHLIB)/CORE -lperl';
++ $libs .= ' -L$(PERL_INC) -Wl,-R$(INSTALLARCHLIB)/CORE -Wl,-R$(PERL_ARCHLIB)/CORE -lperl';
+ } elsif ($Config{'lddlflags'} =~ /-R/) {
+- $libs .= ' -L$(PERL_INC) -R$(INSTALLARCHLIB)/CORE -lperl';
++ $libs .= ' -L$(PERL_INC) -R$(INSTALLARCHLIB)/CORE -R$(PERL_ARCHLIB)/CORE -lperl';
+ }
+ }
+ }
diff --git a/lang/perl5/patches/patch-ac b/lang/perl5/patches/patch-ac
deleted file mode 100644
index 093b56b8373..00000000000
--- a/lang/perl5/patches/patch-ac
+++ /dev/null
@@ -1,20 +0,0 @@
-$NetBSD: patch-ac,v 1.8 2001/09/05 17:13:41 jlam Exp $
-
---- lib/ExtUtils/Install.pm.orig Thu Feb 22 18:57:55 2001
-+++ lib/ExtUtils/Install.pm Sat Sep 1 03:57:59 2001
-@@ -156,7 +156,14 @@
- } else {
- inc_uninstall($_,$File::Find::dir,$verbose,0); # nonono set to 0
- }
-- $packlist->{$origfile}++;
-+ #
-+ # jlam 2001-05-21 - Fix a bug in the packlists where only the
-+ # filename and not the full pathname is recorded. The broken
-+ # line is:
-+ #
-+ # $packlist->{$origfile}++;
-+ #
-+ $packlist->{$targetfile}++;
-
- }, ".");
- chdir($cwd) or Carp::croak("Couldn't chdir to $cwd: $!");
diff --git a/lang/perl5/patches/patch-ad b/lang/perl5/patches/patch-ad
deleted file mode 100644
index d115dce9356..00000000000
--- a/lang/perl5/patches/patch-ad
+++ /dev/null
@@ -1,51 +0,0 @@
-$NetBSD: patch-ad,v 1.9 2001/09/05 17:13:41 jlam Exp $
-
---- pp.c.orig Sat Apr 7 23:09:16 2001
-+++ pp.c Sat Sep 1 03:57:59 2001
-@@ -1900,6 +1900,28 @@
- }
- }
-
-+/*
-+ * There are strange code-generation bugs caused on sparc64 by gcc-2.95.2.
-+ * These need to be revisited when a newer toolchain becomes available.
-+ */
-+#if defined(__sparc64__) && defined(__GNUC__)
-+#if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 96)
-+#undef SPARC64_WORKAROUND
-+#define SPARC64_WORKAROUND 1
-+#endif
-+#endif
-+
-+#if defined(SPARC64_WORKAROUND)
-+double
-+sparc64_workaround_modf(double theVal, double *theIntRes)
-+{
-+ double res, ret;
-+ ret = modf(theVal, &res);
-+ *theIntRes = res;
-+ return ret;
-+}
-+#endif
-+
- PP(pp_int)
- {
- dSP; dTARGET;
-@@ -1913,6 +1935,9 @@
- }
- else {
- if (value >= 0.0) {
-+#if defined(SPARC64_WORKAROUND)
-+ (void)sparc64_workaround_modf(value, &value);
-+#else
- #if defined(HAS_MODFL) || defined(LONG_DOUBLE_EQUALS_DOUBLE)
- (void)Perl_modf(value, &value);
- #else
-@@ -1920,6 +1945,7 @@
- (void)Perl_modf(tmp, &tmp);
- value = (NV)tmp;
- #endif
-+#endif /* SPARC64_WORKAROUND */
- }
- else {
- #if defined(HAS_MODFL) || defined(LONG_DOUBLE_EQUALS_DOUBLE)
diff --git a/lang/perl5/patches/patch-ae b/lang/perl5/patches/patch-ae
index 4e41088bd59..8fee128b2e9 100644
--- a/lang/perl5/patches/patch-ae
+++ b/lang/perl5/patches/patch-ae
@@ -1,51 +1,12 @@
-$NetBSD: patch-ae,v 1.8 2001/09/05 17:13:41 jlam Exp $
+$NetBSD: patch-ae,v 1.9 2005/06/24 06:43:46 jlam Exp $
---- regcomp.c.orig Wed Mar 21 21:05:02 2001
-+++ regcomp.c Sat Sep 1 03:57:59 2001
-@@ -541,6 +541,17 @@
- cl->flags |= ANYOF_EOS;
- }
-
-+/*
-+ * There are strange code-generation bugs caused on sparc64 by gcc-2.95.2.
-+ * These need to be revisited when a newer toolchain becomes available.
-+ */
-+#if defined(__sparc64__) && defined(__GNUC__)
-+#if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 96)
-+#undef SPARC64_WORKAROUND
-+#define SPARC64_WORKAROUND 1
-+#endif
-+#endif
-+
- /* REx optimizer. Converts nodes into quickier variants "in place".
- Finds fixed substrings. */
-
-@@ -1076,11 +1087,28 @@
- int counted = mincount != 0;
-
- if (data->last_end > 0 && mincount != 0) { /* Ends with a string. */
-+#if defined(SPARC64_WORKAROUND)
-+ I32 b = 0;
-+ STRLEN l = 0;
-+ char *s = NULL;
-+ I32 old = 0;
-+
-+ if (pos_before >= data->last_start_min)
-+ b = pos_before;
-+ else
-+ b = data->last_start_min;
-+
-+ l = 0;
-+ s = SvPV(data->last_found, l);
-+ old = b - data->last_start_min;
-+
-+#else
- I32 b = pos_before >= data->last_start_min
- ? pos_before : data->last_start_min;
- STRLEN l;
- char *s = SvPV(data->last_found, l);
- I32 old = b - data->last_start_min;
-+#endif
-
- if (UTF)
- old = utf8_hop((U8*)s, old) - (U8*)s;
+--- makedepend.SH.orig 2003-06-05 14:11:10.000000000 -0400
++++ makedepend.SH
+@@ -83,7 +83,6 @@ if test -f Makefile; then
+ # to be out of date. I don't know if OS/2 has touch, so do this:
+ case "$osname" in
+ os2) ;;
+- netbsd) ;;
+ *) $touch $firstmakefile ;;
+ esac
+ fi
diff --git a/lang/perl5/patches/patch-af b/lang/perl5/patches/patch-af
deleted file mode 100644
index b205006e87d..00000000000
--- a/lang/perl5/patches/patch-af
+++ /dev/null
@@ -1,35 +0,0 @@
-$NetBSD: patch-af,v 1.11 2001/10/02 06:37:56 jlam Exp $
-
---- lib/ExtUtils/Liblist.pm.orig Thu Feb 22 21:57:55 2001
-+++ lib/ExtUtils/Liblist.pm
-@@ -68,20 +68,28 @@
- foreach $thislib (split ' ', $potential_libs){
-
- # Handle possible linker path arguments.
-- if ($thislib =~ s/^(-[LR])//){ # save path flag type
-+ if ($thislib =~ s/^(-[LR]|-Wl,-R)//){ # save path flag type
- my($ptype) = $1;
- unless (-d $thislib){
- warn "$ptype$thislib ignored, directory does not exist\n"
- if $verbose;
- next;
- }
-+ my($rtype) = $ptype;
-+ if (($ptype eq '-R') or ($ptype eq '-Wl,-R')) {
-+ if ($Config{'lddlflags'} =~ /-Wl,-R/) {
-+ $rtype = '-Wl,-R';
-+ } elsif ($Config{'lddlflags'} =~ /-R/) {
-+ $rtype = '-R';
-+ }
-+ }
- unless ($self->file_name_is_absolute($thislib)) {
- warn "Warning: $ptype$thislib changed to $ptype$pwd/$thislib\n";
- $thislib = $self->catdir($pwd,$thislib);
- }
- push(@searchpath, $thislib);
- push(@extralibs, "$ptype$thislib");
-- push(@ldloadlibs, "$ptype$thislib");
-+ push(@ldloadlibs, "$rtype$thislib");
- next;
- }
-
diff --git a/lang/perl5/patches/patch-ag b/lang/perl5/patches/patch-ag
deleted file mode 100644
index 6e2397cab54..00000000000
--- a/lang/perl5/patches/patch-ag
+++ /dev/null
@@ -1,86 +0,0 @@
-$NetBSD: patch-ag,v 1.9 2004/01/13 01:08:57 jlam Exp $
-
---- lib/ExtUtils/MM_Unix.pm.orig Thu Mar 15 10:25:20 2001
-+++ lib/ExtUtils/MM_Unix.pm
-@@ -604,8 +604,8 @@ MAN3PODS = ".join(" \\\n\t", sort keys %
- INST_HTMLSITELIBDIR INSTALLHTMLSITELIBDIR
- INST_HTMLSCRIPTDIR INSTALLHTMLSCRIPTDIR
- INST_HTMLLIBDIR HTMLEXT
-- INST_MAN1DIR INSTALLMAN1DIR MAN1EXT
-- INST_MAN3DIR INSTALLMAN3DIR MAN3EXT
-+ INST_MAN1DIR INSTALLMAN1DIR INSTALLSITEMAN1DIR MAN1EXT
-+ INST_MAN3DIR INSTALLMAN3DIR INSTALLSITEMAN3DIR MAN3EXT
- /) {
- next unless defined $self->{$tmp};
- push @m, "$tmp = $self->{$tmp}\n";
-@@ -1059,6 +1059,22 @@ sub dynamic_lib {
- my($ldfrom) = '$(LDFROM)';
- $armaybe = 'ar' if ($^O eq 'dec_osf' and $armaybe eq ':');
- my(@m);
-+
-+ # Set LLIBPERL to nothing on static perl platforms, and to the flags
-+ # needed to link against the shared libperl library on shared perl
-+ # platforms. We peek at lddlflags to see if we need -Wl,-R or -R
-+ # to add paths to the run-time library search path.
-+ #
-+ my($llibperl) = '';
-+ if (($^O eq 'netbsd') and ($Config{'useshrplib'} eq 'true')) {
-+ if ($Config{'lddlflags'} =~ /-Wl,-R/) {
-+ $llibperl = '-L$(PERL_INC) -Wl,-R$(INSTALLARCHLIB)/CORE -Wl,-R$(PERL_ARCHLIB)/CORE -lperl';
-+ } elsif ($Config{'lddlflags'} =~ /-R/) {
-+ $llibperl = '-L$(PERL_INC) -R$(INSTALLARCHLIB)/CORE -R$(PERL_ARCHLIB)/CORE -lperl';
-+ }
-+ }
-+ push(@m,'LLIBPERL = '.$llibperl."\n");
-+
- push(@m,'
- # This section creates the dynamically loadable $(INST_DYNAMIC)
- # from $(OBJECT) and possibly $(MYEXTLIB).
-@@ -1088,7 +1104,7 @@ $(INST_DYNAMIC): $(OBJECT) $(MYEXTLIB) $
- ');
-
- push(@m,' LD_RUN_PATH="$(LD_RUN_PATH)" $(LD) '.$ldrun.' $(LDDLFLAGS) '.$ldfrom.
-- ' $(OTHERLDFLAGS) -o $@ $(MYEXTLIB) $(PERL_ARCHIVE) $(LDLOADLIBS) $(PERL_ARCHIVE_AFTER) $(EXPORT_LIST)');
-+ ' $(OTHERLDFLAGS) -o $@ $(MYEXTLIB) $(PERL_ARCHIVE) $(LLIBPERL) $(LDLOADLIBS) $(PERL_ARCHIVE_AFTER) $(EXPORT_LIST)');
- push @m, '
- $(CHMOD) $(PERM_RWX) $@
- ';
-@@ -1888,7 +1904,9 @@ usually solves this kind of problem.
- }
- for $install_variable (qw/
- INSTALLMAN1DIR
-+ INSTALLSITEMAN1DIR
- INSTALLMAN3DIR
-+ INSTALLSITEMAN3DIR
- /)
- {
- $self->prefixify($install_variable,$search_prefix,$replace_prefix);
-@@ -1898,6 +1916,8 @@ usually solves this kind of problem.
- # installed
- $self->{INSTALLMAN1DIR} = $Config::Config{installman1dir}
- unless defined $self->{INSTALLMAN1DIR};
-+ $self->{INSTALLSITEMAN1DIR} = $Config::Config{installsiteman1dir}
-+ unless defined $self->{INSTALLSITEMAN1DIR};
- unless (defined $self->{INST_MAN1DIR}){
- if ($self->{INSTALLMAN1DIR} =~ /^(none|\s*)$/){
- $self->{INST_MAN1DIR} = $self->{INSTALLMAN1DIR};
-@@ -1909,6 +1929,8 @@ usually solves this kind of problem.
-
- $self->{INSTALLMAN3DIR} = $Config::Config{installman3dir}
- unless defined $self->{INSTALLMAN3DIR};
-+ $self->{INSTALLSITEMAN3DIR} = $Config::Config{installsiteman3dir}
-+ unless defined $self->{INSTALLSITEMAN3DIR};
- unless (defined $self->{INST_MAN3DIR}){
- if ($self->{INSTALLMAN3DIR} =~ /^(none|\s*)$/){
- $self->{INST_MAN3DIR} = $self->{INSTALLMAN3DIR};
-@@ -2153,8 +2175,8 @@ pure_site_install ::
- $(INST_SCRIPT) $(INSTALLSCRIPT) \
- $(INST_HTMLLIBDIR) $(INSTALLHTMLSITELIBDIR) \
- $(INST_HTMLSCRIPTDIR) $(INSTALLHTMLSCRIPTDIR) \
-- $(INST_MAN1DIR) $(INSTALLMAN1DIR) \
-- $(INST_MAN3DIR) $(INSTALLMAN3DIR)
-+ $(INST_MAN1DIR) $(INSTALLSITEMAN1DIR) \
-+ $(INST_MAN3DIR) $(INSTALLSITEMAN3DIR)
- }.$self->{NOECHO}.q{$(WARN_IF_OLD_PACKLIST) \
- }.$self->catdir('$(PERL_ARCHLIB)','auto','$(FULLEXT)').q{
-
diff --git a/lang/perl5/patches/patch-ah b/lang/perl5/patches/patch-ah
index 5594b0dc301..002c1bb137e 100644
--- a/lang/perl5/patches/patch-ah
+++ b/lang/perl5/patches/patch-ah
@@ -1,8 +1,8 @@
-$NetBSD: patch-ah,v 1.5 2002/01/28 00:25:28 jlam Exp $
+$NetBSD: patch-ah,v 1.6 2005/06/24 06:43:46 jlam Exp $
---- perl.c.orig Thu Mar 22 00:05:02 2001
+--- perl.c.orig 2004-11-23 10:16:56.000000000 -0500
+++ perl.c
-@@ -3408,12 +3408,32 @@
+@@ -4314,12 +4314,33 @@ S_init_perllib(pTHX)
}
/* Use the ~-expanded versions of APPLLIB (undocumented),
@@ -10,56 +10,58 @@ $NetBSD: patch-ah,v 1.5 2002/01/28 00:25:28 jlam Exp $
+ SITEARCH SITELIB ARCHLIB PRIVLIB VENDORARCH and VENDORLIB
*/
#ifdef APPLLIB_EXP
- incpush(APPLLIB_EXP, TRUE, TRUE);
+ incpush(APPLLIB_EXP, TRUE, TRUE, TRUE);
#endif
+#ifdef SITEARCH_EXP
+ /* sitearch is always relative to sitelib on Windows for
+ * DLL-based path intuition to work correctly */
+# if !defined(WIN32)
-+ incpush(SITEARCH_EXP, FALSE, FALSE);
++ incpush(SITEARCH_EXP, FALSE, FALSE, TRUE);
+# endif
+#endif
+
+#ifdef SITELIB_EXP
+# if defined(WIN32)
-+ incpush(SITELIB_EXP, TRUE, FALSE); /* this picks up sitearch as well */
++ /* this picks up sitearch as well */
++ incpush(SITELIB_EXP, TRUE, FALSE, TRUE);
+# else
-+ incpush(SITELIB_EXP, FALSE, FALSE);
++ incpush(SITELIB_EXP, FALSE, FALSE, TRUE);
+# endif
+#endif
+
+#ifdef SITELIB_STEM /* Search for version-specific dirs below here */
-+ incpush(SITELIB_STEM, FALSE, TRUE);
++ incpush(SITELIB_STEM, FALSE, TRUE, TRUE);
+#endif
+
#ifdef ARCHLIB_EXP
- incpush(ARCHLIB_EXP, FALSE, FALSE);
+ incpush(ARCHLIB_EXP, FALSE, FALSE, TRUE);
#endif
-@@ -3445,26 +3465,6 @@
- incpush(PRIVLIB_EXP, TRUE, FALSE);
- #else
- incpush(PRIVLIB_EXP, FALSE, FALSE);
--#endif
--
+@@ -4353,27 +4374,6 @@ S_init_perllib(pTHX)
+ incpush(PRIVLIB_EXP, FALSE, FALSE, TRUE);
+ #endif
+
-#ifdef SITEARCH_EXP
- /* sitearch is always relative to sitelib on Windows for
- * DLL-based path intuition to work correctly */
-# if !defined(WIN32)
-- incpush(SITEARCH_EXP, FALSE, FALSE);
+- incpush(SITEARCH_EXP, FALSE, FALSE, TRUE);
-# endif
-#endif
-
-#ifdef SITELIB_EXP
-# if defined(WIN32)
-- incpush(SITELIB_EXP, TRUE, FALSE); /* this picks up sitearch as well */
+- /* this picks up sitearch as well */
+- incpush(SITELIB_EXP, TRUE, FALSE, TRUE);
-# else
-- incpush(SITELIB_EXP, FALSE, FALSE);
+- incpush(SITELIB_EXP, FALSE, FALSE, TRUE);
-# endif
-#endif
-
-#ifdef SITELIB_STEM /* Search for version-specific dirs below here */
-- incpush(SITELIB_STEM, FALSE, TRUE);
- #endif
-
+- incpush(SITELIB_STEM, FALSE, TRUE, TRUE);
+-#endif
+-
#ifdef PERL_VENDORARCH_EXP
+ /* vendorarch is always relative to vendorlib on Windows for
+ * DLL-based path intuition to work correctly */
diff --git a/lang/perl5/patches/patch-aj b/lang/perl5/patches/patch-aj
deleted file mode 100644
index 8f99b16aae7..00000000000
--- a/lang/perl5/patches/patch-aj
+++ /dev/null
@@ -1,31 +0,0 @@
-$NetBSD: patch-aj,v 1.7 2003/02/27 14:05:01 grant Exp $
-
---- makedepend.SH.orig Mon Mar 19 18:33:17 2001
-+++ makedepend.SH
-@@ -68,6 +68,7 @@ if test -f Makefile; then
- case "$osname" in
- os2) ;;
- netbsd) ;;
-+ freebsd) ;;
- *) $touch $firstmakefile ;;
- esac
- fi
-@@ -155,6 +156,8 @@ for file in `$cat .clist`; do
- $sed \
- -e '1d' \
- -e '/^#.*<stdin>/d' \
-+ -e '/^#.*<built-in>/d' \
-+ -e '/^#.*<command line>/d' \
- -e '/^#.*"-"/d' \
- -e 's#\.[0-9][0-9]*\.c#'"$file.c#" \
- -e 's/^[ ]*#[ ]*line/#/' \
-@@ -196,7 +199,8 @@ if $test -s .deptmp; then
- $echo "Updating $mf..."
- $echo "# If this runs make out of memory, delete /usr/include lines." \
- >> $mf.new
-- $sed 's|^\(.*\$(OBJ_EXT):\) *\(.*/.*\.c\) *$|\1 \2; '"$defrule \2|" .deptmp \
-+ $sed 's|^\(.*\$(OBJ_EXT):\) *\(.*/.*\.c\) *$|\1 \2; '"$defrule \2|" .deptmp |\
-+ $sed -e 's|^0$||' \
- >>$mf.new
- else
- $MAKE hlist || ($echo "Searching for .h files..."; \
diff --git a/lang/perl5/patches/patch-al b/lang/perl5/patches/patch-al
deleted file mode 100644
index b178ce8899d..00000000000
--- a/lang/perl5/patches/patch-al
+++ /dev/null
@@ -1,32 +0,0 @@
-$NetBSD: patch-al,v 1.1 2003/05/27 21:57:26 jlam Exp $
-
---- lib/ExtUtils/MM_VMS.pm.orig Thu Feb 22 21:57:55 2001
-+++ lib/ExtUtils/MM_VMS.pm Tue May 27 17:08:08 2003
-@@ -512,6 +512,7 @@
- INSTALLARCHLIB INSTALLSCRIPT INSTALLBIN PERL_LIB PERL_ARCHLIB
- PERL_INC PERL_SRC FULLEXT INST_MAN1DIR INSTALLMAN1DIR
- INST_MAN3DIR INSTALLMAN3DIR INSTALLSITELIB INSTALLSITEARCH
-+ INSTALLSITEMAN1DIR INSTALLSITEMAN3DIR
- SITELIBEXP SITEARCHEXP ] ) {
- next unless defined $self->{$macro};
- $self->{$macro} = $self->fixpath($self->{$macro},1);
-@@ -603,7 +604,7 @@
- ';
-
- for $tmp (qw/
-- INST_MAN1DIR INSTALLMAN1DIR MAN1EXT INST_MAN3DIR INSTALLMAN3DIR MAN3EXT
-+ INST_MAN1DIR INSTALLMAN1DIR INSTALLSITEMAN1DIR MAN1EXT INST_MAN3DIR INSTALLMAN3DIR INSTALLSITEMAN3DIR MAN3EXT
- /) {
- next unless defined $self->{$tmp};
- push @m, "$tmp = $self->{$tmp}\n";
-@@ -1806,8 +1807,8 @@
- $(NOECHO) $(PERL) -e "print '$(INST_ARCHLIB) $(INSTALLSITEARCH) '" >>.MM_tmp
- $(NOECHO) $(PERL) -e "print '$(INST_BIN) $(INSTALLBIN) '" >>.MM_tmp
- $(NOECHO) $(PERL) -e "print '$(INST_SCRIPT) $(INSTALLSCRIPT) '" >>.MM_tmp
-- $(NOECHO) $(PERL) -e "print '$(INST_MAN1DIR) $(INSTALLMAN1DIR) '" >>.MM_tmp
-- $(NOECHO) $(PERL) -e "print '$(INST_MAN3DIR) $(INSTALLMAN3DIR) '" >>.MM_tmp
-+ $(NOECHO) $(PERL) -e "print '$(INST_MAN1DIR) $(INSTALLSITEMAN1DIR) '" >>.MM_tmp
-+ $(NOECHO) $(PERL) -e "print '$(INST_MAN3DIR) $(INSTALLSITEMAN3DIR) '" >>.MM_tmp
- $(MOD_INSTALL) <.MM_tmp
- $(NOECHO) Delete/NoLog/NoConfirm .MM_tmp;
- $(NOECHO) $(WARN_IF_OLD_PACKLIST) ].$self->catfile('$(PERL_ARCHLIB)','auto','$(FULLEXT)','.packlist').q[
diff --git a/lang/perl5/patches/patch-am b/lang/perl5/patches/patch-am
deleted file mode 100644
index 52df8e14849..00000000000
--- a/lang/perl5/patches/patch-am
+++ /dev/null
@@ -1,53 +0,0 @@
-$NetBSD: patch-am,v 1.1 2003/05/27 21:57:26 jlam Exp $
-
---- lib/ExtUtils/MakeMaker.pm.orig Thu Feb 22 21:57:55 2001
-+++ lib/ExtUtils/MakeMaker.pm Tue May 27 17:18:40 2003
-@@ -193,7 +193,8 @@
- INC INCLUDE_EXT INSTALLARCHLIB INSTALLBIN INSTALLDIRS INSTALLHTMLPRIVLIBDIR
- INSTALLHTMLSCRIPTDIR INSTALLHTMLSITELIBDIR INSTALLMAN1DIR
- INSTALLMAN3DIR INSTALLPRIVLIB INSTALLSCRIPT INSTALLSITEARCH
-- INSTALLSITELIB INST_ARCHLIB INST_BIN INST_EXE INST_LIB
-+ INSTALLSITELIB INSTALLSITEMAN1DIR INSTALLSITEMAN3DIR
-+ INST_ARCHLIB INST_BIN INST_EXE INST_LIB
- INST_HTMLLIBDIR INST_HTMLSCRIPTDIR
- INST_MAN1DIR INST_MAN3DIR INST_SCRIPT LDFROM LIB LIBPERL_A LIBS
- LINKTYPE MAKEAPERL MAKEFILE MAN1PODS MAN3PODS MAP_TARGET MYEXTLIB
-@@ -960,8 +961,8 @@
- INST_HTMLSCRIPTDIR INSTALLHTMLSCRIPTDIR
- INST_BIN INSTALLBIN
- INST_SCRIPT INSTALLSCRIPT
-- INST_MAN1DIR INSTALLMAN1DIR
-- INST_MAN3DIR INSTALLMAN3DIR
-+ INST_MAN1DIR INSTALLMAN1DIR INSTALLSITEMAN1DIR
-+ INST_MAN3DIR INSTALLMAN3DIR INSTALLSITEMAN3DIR
-
- The INSTALL... macros in turn default to their %Config
- ($Config{installprivlib}, $Config{installarchlib}, etc.) counterparts.
-@@ -1391,8 +1392,8 @@
-
- =item INSTALLMAN3DIR
-
--This directory gets the man pages at 'make install' time. Defaults to
--$Config{installman3dir}.
-+This directory gets the man pages at 'make install' time if
-+INSTALLDIRS=perl. Defaults to $Config{installman3dir}.
-
- =item INSTALLPRIVLIB
-
-@@ -1413,6 +1414,16 @@
-
- Used by 'make install', which copies files from INST_LIB to this
- directory if INSTALLDIRS is set to site (default).
-+
-+=item INSTALLSITEMAN1DIR
-+
-+This directory gets the man pages at 'make install' time if
-+INSTALLDIRS=site. Defaults to $Config{installsiteman1dir}.
-+
-+=item INSTALLSITEMAN3DIR
-+
-+This directory gets the man pages at 'make install' time if
-+INSTALLDIRS=site. Defaults to $Config{installsiteman3dir}.
-
- =item INST_ARCHLIB
-
diff --git a/lang/perl5/patches/patch-ba b/lang/perl5/patches/patch-ba
index f342b3cca99..ba0598b86f1 100644
--- a/lang/perl5/patches/patch-ba
+++ b/lang/perl5/patches/patch-ba
@@ -1,58 +1,59 @@
-$NetBSD: patch-ba,v 1.1 2003/10/05 14:19:09 grant Exp $
+$NetBSD: patch-ba,v 1.2 2005/06/24 06:43:47 jlam Exp $
---- hints/netbsd.sh.orig Thu Feb 22 18:57:55 2001
-+++ hints/netbsd.sh Fri Jun 20 17:59:50 2003
-@@ -21,16 +21,32 @@
- if [ -f /usr/libexec/ld.elf_so ]; then
- d_dlopen=$define
- d_dlerror=$define
-- ccdlflags="-Wl,-E -Wl,-R${PREFIX}/lib $ccdlflags"
-+ case "$osvers" in
-+ 1.[0-5]|1.[0-5].*)
-+ # Include the whole libgcc.a, required for Xerces-P,
-+ # which needs __eh_alloc, __pure_virtual, and others.
-+ # XXX This should be obsoleted by gcc-3.0.
-+ ccdlflags="-Wl,-whole-archive -lgcc \
-+ -Wl,-no-whole-archive -Wl,-E \
-+ -Wl,-R$prefix/lib $ccdlflags"
-+ ;;
-+ *)
-+ ccdlflags="-Wl,-E -Wl,-R$prefix/lib $ccdlflags"
-+ ;;
-+ esac
- cccdlflags="-DPIC -fPIC $cccdlflags"
- lddlflags="--whole-archive -shared $lddlflags"
- elif [ "`uname -m`" = "pmax" ]; then
- # NetBSD 1.3 and 1.3.1 on pmax shipped an `old' ld.so, which will not work.
-- d_dlopen=$undef
-+ case "$osvers" in
-+ 1.3|1.3.1)
-+ d_dlopen=$undef
-+ ;;
-+ esac
- elif [ -f /usr/libexec/ld.so ]; then
- d_dlopen=$define
- d_dlerror=$define
-- ccdlflags="-Wl,-R${PREFIX}/lib $ccdlflags"
-+ ccdlflags="-Wl,-R$prefix/lib $ccdlflags"
- # we use -fPIC here because -fpic is *NOT* enough for some of the
- # extensions like Tk on some netbsd platforms (the sparc is one)
- cccdlflags="-DPIC -fPIC $cccdlflags"
-@@ -59,12 +75,13 @@
- d_setruid="$undef"
+--- hints/netbsd.sh.orig 2003-08-07 12:57:56.000000000 -0400
++++ hints/netbsd.sh 2004-06-06 18:45:19.000000000 -0400
+@@ -78,6 +78,30 @@
+ d_setreuid="$undef"
+ ;;
+ esac
++case "$osvers" in
++0.9*|1.*|2.*|3.*)
++ d_getprotoent_r="$undef"
++ d_getprotobyname_r="$undef"
++ d_getprotobynumber_r="$undef"
++ d_setprotoent_r="$undef"
++ d_endprotoent_r="$undef"
++ d_getservent_r="$undef"
++ d_getservbyname_r="$undef"
++ d_getservbyport_r="$undef"
++ d_setservent_r="$undef"
++ d_endservent_r="$undef"
++ d_getprotoent_r_proto="$undef"
++ d_getprotobyname_r_proto="$undef"
++ d_getprotobynumber_r_proto="$undef"
++ d_setprotoent_r_proto="$undef"
++ d_endprotoent_r_proto="$undef"
++ d_getservent_r_proto="$undef"
++ d_getservbyname_r_proto="$undef"
++ d_getservbyport_r_proto="$undef"
++ d_setservent_r_proto="$undef"
++ d_endservent_r_proto="$undef"
++ ;;
++esac
- # there's no problem with vfork.
--case "$usevfork" in
--'') usevfork=true ;;
--esac
-+usevfork=true
-+
-+# Using perl's malloc leads to trouble on some toolchain versions.
-+usemymalloc="$undef"
-
- # Pre-empt the /usr/bin/perl question of installperl.
--installusrbinperl='n'
-+installusrbinperl="$undef"
+ # These are obsolete in any netbsd.
+ d_setrgid="$undef"
+@@ -133,23 +157,6 @@
+ esac
+ EOCBU
- # Recognize the NetBSD packages collection.
- # GDBM might be here.
+-# Set sensible defaults for NetBSD: look for local software in
+-# /usr/pkg (NetBSD Packages Collection) and in /usr/local.
+-#
+-loclibpth="/usr/pkg/lib /usr/local/lib"
+-locincpth="/usr/pkg/include /usr/local/include"
+-case "$rpathflag" in
+-'')
+- ldflags=
+- ;;
+-*)
+- ldflags=
+- for yyy in $loclibpth; do
+- ldflags="$ldflags $rpathflag$yyy"
+- done
+- ;;
+-esac
+-
+ case `uname -m` in
+ alpha)
+ echo 'int main() {}' > try.c
diff --git a/lang/perl5/patches/patch-bb b/lang/perl5/patches/patch-bb
deleted file mode 100644
index cf591922306..00000000000
--- a/lang/perl5/patches/patch-bb
+++ /dev/null
@@ -1,32 +0,0 @@
-$NetBSD: patch-bb,v 1.1 2003/10/05 14:19:09 grant Exp $
-
---- hints/freebsd.sh.orig Sun Apr 8 16:09:16 2001
-+++ hints/freebsd.sh
-@@ -85,10 +85,17 @@ case "$osvers" in
- d_setreuid='define'
- d_setegid='undef'
- d_seteuid='undef'
-+ d_dosuid='define'
- ;;
- *) usevfork='true'
- usemymalloc='n'
- libswanted=`echo $libswanted | sed 's/ malloc / /'`
-+ libswanted=`echo $libswanted | sed 's/ bind / /'`
-+ d_setregid='define'
-+ d_setreuid='define'
-+ d_setegid='undef'
-+ d_seteuid='undef'
-+ d_dosuid='define'
- ;;
- esac
-
-@@ -115,7 +122,8 @@ case "$osvers" in
- fi
- lddlflags='-Bshareable'
- fi
-- cccdlflags='-DPIC -fpic'
-+ cccdlflags='-DPIC -fPIC'
-+ libswanted=`echo $libswanted | sed 's/ iconv / /'`
- ;;
- esac
-
diff --git a/lang/perl5/patches/patch-bc b/lang/perl5/patches/patch-bc
deleted file mode 100644
index 4a19ca1f77a..00000000000
--- a/lang/perl5/patches/patch-bc
+++ /dev/null
@@ -1,15 +0,0 @@
-$NetBSD: patch-bc,v 1.1 2003/10/05 14:19:09 grant Exp $
-
---- hints/solaris_2.sh.orig 2001-02-23 13:57:55.000000000 +1100
-+++ hints/solaris_2.sh
-@@ -239,6 +239,10 @@ END
- # All Solaris versions of ld I've seen contain the magic
- # string used in the grep.
- :
-+ elif echo "$verbose" | grep "ld: Solaris Link Editors" >/dev/null 2>&1; then
-+ # This string has also been observed "in the wild" as
-+ # being the Solaris linker.
-+ :
- else
- # No evidence yet of /usr/ccs/bin/ld. Some versions
- # of egcs's ld wrapper call /usr/ccs/bin/ld in turn but
diff --git a/lang/perl58/patches/patch-bd b/lang/perl5/patches/patch-bd
index f3b45b16eec..676131bdbf4 100644
--- a/lang/perl58/patches/patch-bd
+++ b/lang/perl5/patches/patch-bd
@@ -1,4 +1,4 @@
-$NetBSD: patch-bd,v 1.1 2005/01/04 09:50:15 jlam Exp $
+$NetBSD: patch-bd,v 1.1 2005/06/24 06:43:47 jlam Exp $
--- lib/ExtUtils/instmodsh.orig 2004-01-05 17:34:59.000000000 -0500
+++ lib/ExtUtils/instmodsh
diff --git a/lang/perl58/patches/patch-be b/lang/perl5/patches/patch-be
index ef3d58716ac..d5dd53dbe56 100644
--- a/lang/perl58/patches/patch-be
+++ b/lang/perl5/patches/patch-be
@@ -1,4 +1,4 @@
-$NetBSD: patch-be,v 1.1 2005/01/04 09:50:15 jlam Exp $
+$NetBSD: patch-be,v 1.1 2005/06/24 06:43:47 jlam Exp $
--- lib/perl5db.pl.orig 2004-11-17 07:51:18.000000000 -0500
+++ lib/perl5db.pl
diff --git a/lang/perl58/patches/patch-bf b/lang/perl5/patches/patch-bf
index cb4dfb2837e..cc65e2cc14a 100644
--- a/lang/perl58/patches/patch-bf
+++ b/lang/perl5/patches/patch-bf
@@ -1,4 +1,4 @@
-$NetBSD: patch-bf,v 1.1 2005/02/02 19:09:52 jlam Exp $
+$NetBSD: patch-bf,v 1.1 2005/06/24 06:43:47 jlam Exp $
--- perlio.c.orig 2004-09-10 03:06:52.000000000 -0400
+++ perlio.c
diff --git a/lang/perl5/patches/patch-ca b/lang/perl5/patches/patch-ca
index 493d7cb08c6..e5cc0bdc5db 100644
--- a/lang/perl5/patches/patch-ca
+++ b/lang/perl5/patches/patch-ca
@@ -1,8 +1,66 @@
-$NetBSD: patch-ca,v 1.1 2004/04/12 02:51:22 jschauma Exp $
+$NetBSD: patch-ca,v 1.2 2005/06/24 06:43:47 jlam Exp $
---- Configure.orig Fri Mar 26 10:34:43 2004
-+++ Configure Fri Mar 26 10:43:17 2004
-@@ -12495,7 +12495,15 @@
+--- Configure.orig 2004-09-10 02:25:52.000000000 -0400
++++ Configure
+@@ -3107,11 +3107,13 @@ EOM
+ dgux) osname=dgux
+ osvers="$3"
+ ;;
++ dragonfly) osname=dragonfly
++ osvers=`$uname -r | UU/tr '[A-Z]' '[a-z]'` ;;
+ dynixptx*) osname=dynixptx
+ osvers=`echo "$4"|sed 's/^v//'`
+ ;;
+ freebsd) osname=freebsd
+- osvers="$3" ;;
++ osvers=`$uname -r | UU/tr '[A-Z]' '[a-z]'` ;;
+ genix) osname=genix ;;
+ gnu) osname=gnu
+ osvers="$3" ;;
+@@ -3133,7 +3135,7 @@ EOM
+ MiNT) osname=mint
+ ;;
+ netbsd*) osname=netbsd
+- osvers="$3"
++ osvers=`$uname -r | UU/tr '[A-Z]' '[a-z]'`
+ ;;
+ news-os) osvers="$3"
+ case "$3" in
+@@ -3144,8 +3146,8 @@ EOM
+ next*) osname=next ;;
+ nonstop-ux) osname=nonstopux ;;
+ openbsd) osname=openbsd
+- osvers="$3"
+- ;;
++ osvers=`$uname -r | UU/tr '[A-Z]' '[a-z]'`
++ ;;
+ os2) osname=os2
+ osvers="$4"
+ ;;
+@@ -7852,7 +7854,7 @@ if "$useshrplib"; then
+ solaris)
+ xxx="-R $shrpdir"
+ ;;
+- freebsd|netbsd|openbsd)
++ freebsd|netbsd|openbsd|dragonfly|interix)
+ xxx="-Wl,-R$shrpdir"
+ ;;
+ bsdos|linux|irix*|dec_osf)
+@@ -8973,6 +8975,13 @@ EOCP
+ ;;
+ esac
+
++: Look for a hint-file generated 'call-back-unit'. We need
++: to set some defaults for building perl in pkgsrc.
++if $test -f pkgsrc.cbu; then
++ echo "Setting pkgsrc-specific hints regarding compiler/linker flags..."
++ . ./pkgsrc.cbu
++fi
++
+ case "$vendorprefix" in
+ '') d_vendorbin="$undef"
+ vendorbin=''
+@@ -17290,7 +17299,15 @@ RCAT(Rei,ser)
ACAT(Cir,cus)
EOCP
$cppstdin $cppflags $cppminus <cpp_stuff.c >cpp_stuff.out 2>&1
diff --git a/lang/perl58/patches/patch-cb b/lang/perl5/patches/patch-cb
index 5735307bf88..f4377f8f8db 100644
--- a/lang/perl58/patches/patch-cb
+++ b/lang/perl5/patches/patch-cb
@@ -1,4 +1,4 @@
-$NetBSD: patch-cb,v 1.5 2005/03/09 03:49:23 garbled Exp $
+$NetBSD: patch-cb,v 1.1 2005/06/24 06:43:47 jlam Exp $
--- Makefile.SH.orig 2004-10-21 08:30:02.000000000 -0700
+++ Makefile.SH 2005-03-08 18:05:48.000000000 -0700
@@ -69,7 +69,11 @@
diff --git a/lang/perl58/patches/patch-cc b/lang/perl5/patches/patch-cc
index 90b2ff0d5b0..3e0e7cff248 100644
--- a/lang/perl58/patches/patch-cc
+++ b/lang/perl5/patches/patch-cc
@@ -1,4 +1,4 @@
-$NetBSD: patch-cc,v 1.4 2005/01/21 20:23:22 tv Exp $
+$NetBSD: patch-cc,v 1.1 2005/06/24 06:43:47 jlam Exp $
--- hints/interix.sh.orig Fri Apr 23 12:29:09 2004
+++ hints/interix.sh Fri Apr 23 12:32:55 2004
diff --git a/lang/perl58/patches/patch-cd b/lang/perl5/patches/patch-cd
index 2b2c9b33448..5b8f03aa9c5 100644
--- a/lang/perl58/patches/patch-cd
+++ b/lang/perl5/patches/patch-cd
@@ -1,4 +1,4 @@
-$NetBSD: patch-cd,v 1.2 2004/04/26 04:42:12 jlam Exp $
+$NetBSD: patch-cd,v 1.1 2005/06/24 06:43:47 jlam Exp $
--- lib/File/Find.pm.orig Fri Feb 27 11:31:34 2004
+++ lib/File/Find.pm Mon Apr 26 00:34:04 2004
diff --git a/lang/perl58/patches/patch-ce b/lang/perl5/patches/patch-ce
index bf2c8627937..c01c70988be 100644
--- a/lang/perl58/patches/patch-ce
+++ b/lang/perl5/patches/patch-ce
@@ -1,4 +1,4 @@
-$NetBSD: patch-ce,v 1.1 2004/04/24 21:04:43 tv Exp $
+$NetBSD: patch-ce,v 1.1 2005/06/24 06:43:47 jlam Exp $
--- lib/File/Temp.pm.orig Fri Apr 23 12:42:30 2004
+++ lib/File/Temp.pm Fri Apr 23 12:44:21 2004
diff --git a/lang/perl58/patches/patch-cf b/lang/perl5/patches/patch-cf
index f7b02b73326..2142490c38c 100644
--- a/lang/perl58/patches/patch-cf
+++ b/lang/perl5/patches/patch-cf
@@ -1,4 +1,4 @@
-$NetBSD: patch-cf,v 1.1 2004/04/24 21:04:43 tv Exp $
+$NetBSD: patch-cf,v 1.1 2005/06/24 06:43:47 jlam Exp $
--- t/io/openpid.t.orig Fri Apr 23 12:45:43 2004
+++ t/io/openpid.t Fri Apr 23 12:45:56 2004
diff --git a/lang/perl58/patches/patch-cg b/lang/perl5/patches/patch-cg
index d8bc8446600..881ce18429a 100644
--- a/lang/perl58/patches/patch-cg
+++ b/lang/perl5/patches/patch-cg
@@ -1,4 +1,4 @@
-$NetBSD: patch-cg,v 1.1 2004/04/24 21:04:43 tv Exp $
+$NetBSD: patch-cg,v 1.1 2005/06/24 06:43:47 jlam Exp $
--- t/op/groups.t.orig Fri Apr 23 12:46:39 2004
+++ t/op/groups.t Fri Apr 23 12:46:53 2004
diff --git a/lang/perl58/patches/patch-ch b/lang/perl5/patches/patch-ch
index 0e7c77fedc7..80db4adb75f 100644
--- a/lang/perl58/patches/patch-ch
+++ b/lang/perl5/patches/patch-ch
@@ -1,4 +1,4 @@
-$NetBSD: patch-ch,v 1.1 2004/11/26 03:29:44 grant Exp $
+$NetBSD: patch-ch,v 1.1 2005/06/24 06:43:47 jlam Exp $
--- hints/dec_osf.sh.orig 2004-05-14 03:44:00.000000000 +0200
+++ hints/dec_osf.sh
diff --git a/lang/perl58/patches/patch-ci b/lang/perl5/patches/patch-ci
index 68e233b602a..01324fa0395 100644
--- a/lang/perl58/patches/patch-ci
+++ b/lang/perl5/patches/patch-ci
@@ -1,4 +1,4 @@
-$NetBSD: patch-ci,v 1.2 2004/12/29 19:41:25 jlam Exp $
+$NetBSD: patch-ci,v 1.1 2005/06/24 06:43:47 jlam Exp $
--- pp_sys.c.orig 2004-10-19 13:07:23.000000000 -0400
+++ pp_sys.c
diff --git a/lang/perl58/patches/patch-cj b/lang/perl5/patches/patch-cj
index c2efb58cd0f..a0b01800261 100644
--- a/lang/perl58/patches/patch-cj
+++ b/lang/perl5/patches/patch-cj
@@ -1,4 +1,4 @@
-$NetBSD: patch-cj,v 1.1 2005/01/18 00:56:44 jlam Exp $
+$NetBSD: patch-cj,v 1.1 2005/06/24 06:43:47 jlam Exp $
--- /dev/null 2005-01-17 19:31:20.000000000 -0500
+++ hints/dragonfly.sh 2005-01-17 19:39:56.000000000 -0500
diff --git a/lang/perl58/patches/patch-ck b/lang/perl5/patches/patch-ck
index d995a6e1b02..966851d7721 100644
--- a/lang/perl58/patches/patch-ck
+++ b/lang/perl5/patches/patch-ck
@@ -1,4 +1,4 @@
-$NetBSD: patch-ck,v 1.1 2005/03/09 03:49:23 garbled Exp $
+$NetBSD: patch-ck,v 1.1 2005/06/24 06:43:47 jlam Exp $
--- hints/aix_4.sh.orig 2004-09-09 23:29:04.000000000 -0700
+++ hints/aix_4.sh 2005-03-08 18:42:35.000000000 -0700
@@ -103,9 +103,10 @@
diff --git a/lang/perl58/patches/patch-cl b/lang/perl5/patches/patch-cl
index 55ea52978ac..40d496bc5b6 100644
--- a/lang/perl58/patches/patch-cl
+++ b/lang/perl5/patches/patch-cl
@@ -1,4 +1,4 @@
-$NetBSD: patch-cl,v 1.1 2005/06/08 08:42:33 jlam Exp $
+$NetBSD: patch-cl,v 1.1 2005/06/24 06:43:47 jlam Exp $
--- ext/SDBM_File/sdbm/sdbm.c.orig 2003-08-27 06:30:22.000000000 -0400
+++ ext/SDBM_File/sdbm/sdbm.c
diff --git a/lang/perl58/patches/patch-zc b/lang/perl5/patches/patch-zc
index 71fa43a9ef1..d7b090de6fc 100644
--- a/lang/perl58/patches/patch-zc
+++ b/lang/perl5/patches/patch-zc
@@ -1,4 +1,4 @@
-$NetBSD: patch-zc,v 1.1 2003/10/05 07:07:14 jlam Exp $
+$NetBSD: patch-zc,v 1.1 2005/06/24 06:43:47 jlam Exp $
--- Policy_sh.SH.orig Fri Aug 1 05:23:23 2003
+++ Policy_sh.SH Tue Aug 26 02:12:12 2003
diff --git a/lang/perl58/DESCR b/lang/perl58/DESCR
deleted file mode 100644
index ace5f12f3c1..00000000000
--- a/lang/perl58/DESCR
+++ /dev/null
@@ -1,11 +0,0 @@
-Perl is a high-level programming language with an eclectic heritage
-written by Larry Wall and a cast of thousands. It derives from the
-ubiquitous C programming language and to a lesser extent from sed, awk,
-the Unix shell, and at least a dozen other tools and languages. Perl's
-process, file, and text manipulation facilities make it particularly
-well-suited for tasks involving quick prototyping, system utilities,
-software tools, system management tasks, database access, graphical
-programming, networking, and world wide web programming. These strengths
-make it especially popular with system administrators and CGI script
-authors, but mathematicians, geneticists, journalists, and even managers
-also use Perl. Maybe you should, too.
diff --git a/lang/perl58/MESSAGE b/lang/perl58/MESSAGE
deleted file mode 100644
index 478cd18b50b..00000000000
--- a/lang/perl58/MESSAGE
+++ /dev/null
@@ -1,9 +0,0 @@
-===========================================================================
-$NetBSD: MESSAGE,v 1.1 2004/01/08 19:18:00 jlam Exp $
-
-${PKGNAME} will use the following directory as the default
-location of the site-specific Perl modules:
-
- ${PERL5_SITELIB}
-
-===========================================================================
diff --git a/lang/perl58/Makefile b/lang/perl58/Makefile
deleted file mode 100644
index 650c78abe91..00000000000
--- a/lang/perl58/Makefile
+++ /dev/null
@@ -1,285 +0,0 @@
-# $NetBSD: Makefile,v 1.84 2005/06/11 21:57:11 jlam Exp $
-
-# The following two variables should have empty values unless we're
-# building a perl snapshot or release candidate.
-#
-PERL5_SNAPSHOT= # empty
-PERL5_RC_VERS= # empty
-
-PERL5_VERS= 5.8.6
-CATEGORIES= lang devel perl5
-EXTRACT_SUFX= .tar.bz2
-
-.if empty(PERL5_SNAPSHOT) && empty(PERL5_RC_VERS)
-DISTNAME= perl-${PERL5_VERS}
-PKGNAME= perl-${PERL5_VERS}
-PKGREVISION= 4
-MASTER_SITES= ${MASTER_SITE_PERL_CPAN:S,/modules/by-module/$,/src/,}
-.else
-. if !empty(PERL5_SNAPSHOT)
-DISTNAME= perl@${PERL5_SNAPSHOT}
-PKGNAME= perl-${PERL5_VERS}beta${PERL5_SNAPSHOT}
-MASTER_SITES= http://www.iki.fi/jhi/
-EXTRACT_SUFX= .tbz
-WRKSRC= ${WRKDIR}/perl
-. else # !empty(PERL5_RC_VERS)
-DISTNAME= perl-${PERL5_VERS}-RC${PERL5_RC_VERS}
-PKGNAME= perl-${PERL5_VERS}rc${PERL5_RC_VERS}
-MASTER_SITES= ${MASTER_SITE_PERL_CPAN:S/${MODULE_DIR}/${AUTHOR_DIR}/}
-MODULE_DIR= modules/by-module
-AUTHOR_DIR= authors/id/J/JH/JHI
-. endif
-.endif
-
-MAINTAINER= jlam@NetBSD.org
-HOMEPAGE= http://www.perl.com/
-COMMENT= Practical Extraction and Report Language
-
-CONFLICTS= perl-5.00* perl-base-[0-9]* \
- p5-CGI-2.66 p5-CGI-2.75 p5-CGI-2.75.[0-2] \
- p5-Data-Dumper-2.1[0-9][0-9] p5-Data-Dumper-[0-9][0-9] \
- p5-Devel-DProf-[0-9]* p5-Devel-Peek-[0-9]* \
- perl-mk-[0-9]* perl-thread-[0-9]*
-
-PKG_INSTALLATION_TYPES= overwrite pkgviews
-
-.include "../../mk/compiler.mk"
-
-HAS_CONFIGURE= yes
-CONFIGURE_SCRIPT= ./Configure
-CONFIGURE_ARGS+= -sde
-CONFIGURE_ARGS+= -Dprefix="${PREFIX}"
-CONFIGURE_ARGS+= -Dscriptdir="${PREFIX}/bin"
-CONFIGURE_ARGS+= -Darchname="${MACHINE_ARCH}-${LOWER_OPSYS}"
-CONFIGURE_ARGS+= -Dcc="${CC}"
-CONFIGURE_ARGS+= -Doptimize="${CFLAGS}"
-CONFIGURE_ARGS+= -Dinstallstyle="lib/perl5"
-CONFIGURE_ARGS+= -Duseshrplib
-CONFIGURE_ARGS+= -Ui_malloc
-CONFIGURE_ARGS+= -Uusemymalloc
-CONFIGURE_ARGS+= -Uinstallusrbinperl
-MAKE_ENV+= LC_ALL="C"
-
-TEST_TARGET= test
-
-# Install Perl man3 pages into a private directory under the normal
-# Perl installation. Also install site-specific Perl man3 pages into a
-# private directory within site_perl. This avoids manpage conflicts
-# between 3rd-party modules, the standard Perl library, and other
-# packages.
-#
-CONFIGURE_ARGS+= -Dman3ext="3"
-CONFIGURE_ARGS+= -Dman3dir="${PERL5_PRIVLIB}/man/man3"
-CONFIGURE_ARGS+= -Dsiteman3dir="${PERL5_SITEPERL}/man/man3"
-
-# Ensure that the Perl man1 pages go into ${PREFIX}/man/man1 and not
-# into some other platform-specific location kindly "guessed" by the
-# Configure script.
-#
-CONFIGURE_ARGS+= -Dman1dir="${PREFIX}/man/man1"
-
-# The site directories are all relative to the perl view.
-CONFIGURE_ARGS+= -Dsiteprefix="${VIEWBASE}"
-CONFIGURE_ARGS+= -Dsiteman1dir="${VIEWBASE}/man/man1"
-
-.include "../../mk/bsd.prefs.mk"
-
-.if ${OPSYS} == "Darwin"
-#
-# The perl build attempts to work around case-insensitivity problems on
-# HFS filesystems by using GNUmakefiles, so we need to use GNU make.
-#
-USE_TOOLS+= gmake
-.endif
-
-# Perl embeds the full paths to the following tools in several installed
-# files, so make sure the paths to the ones in ${TOOLS_DIR} aren't used.
-#
-USE_TOOLS+= hostname ln sed
-CONFIGURE_ARGS+= -Daphostname=${TOOLS_HOSTNAME_CMD:Q}
-CONFIGURE_ARGS+= -Dln=${TOOLS_LN:Q}
-CONFIGURE_ARGS+= -Dsed=${TOOLS_SED:Q}
-
-# Nail down the needed libraries for each platform here to avoid hidden
-# dependencies. If this isn't defined, then use the perl defaults for the
-# particular operating system.
-#
-LIBSWANTED.Darwin= m c
-LIBSWANTED.FreeBSD= m crypt
-LIBSWANTED.IRIX= m crypt
-LIBSWANTED.Interix= m dl
-LIBSWANTED.NetBSD= m crypt
-LIBSWANTED.OpenBSD= m crypt
-LIBSWANTED.SunOS= m crypt dl socket nsl
-LIBSWANTED= ${LIBSWANTED.${OPSYS}}
-
-# Nail down the directories in which the system libraries may be found.
-# If this isn't defined, then use the perl defaults for the particular
-# operating system.
-#
-SYSLIBPATH.Darwin= /usr/lib
-SYSLIBPATH.FreeBSD= /usr/lib
-SYSLIBPATH.Interix= /usr/lib
-SYSLIBPATH.NetBSD= /usr/lib
-SYSLIBPATH.OpenBSD= /usr/lib
-SYSLIBPATH.SunOS= /usr/lib
-SYSLIBPATH= ${SYSLIBPATH.${OPSYS}}
-
-# Nail down the directories in which headers and libraries of
-# locally-installed software may be found.
-#
-LOCLIBPATH= ${LOCALBASE}/lib
-LOCINCPATH= ${LOCALBASE}/include
-
-# On a.out platforms, we link with "ld" and on ELF platforms, we link with
-# "cc", so we need to use different options to pass the run-time search path
-# flags to the link command in the right way.
-#
-.if ${OBJECT_FMT} == "a.out"
-LOCLIBRPATHFLAGS= ${LOCLIBPATH:S/^/${LINKER_RPATH_FLAG} /g}
-.elif ${OBJECT_FMT} == "ELF"
-LOCLIBRPATHFLAGS= ${LOCLIBPATH:S/^/${COMPILER_RPATH_FLAG}/g}
-.else
-LOCLIBRPATHFLAGS= # empty
-.endif
-
-PERL5_HINTS_LDFLAGS= # empty
-PERL5_HINTS_LDDLFLAGS= # empty
-
-PERL5_HINTS_LDFLAGS+= ${LOCLIBRPATHFLAGS}
-
-.include "../../mk/dlopen.buildlink3.mk"
-
-CHECK_BUILTIN.pthread:= yes
-.include "../../mk/pthread.builtin.mk"
-CHECK_BUILTIN.pthread:= no
-
-# By default, build with threads only if the threads are native.
-.if !empty(USE_BUILTIN.pthread:M[yY][eE][sS])
-PERL5_USE_THREADS?= yes
-.else
-PERL5_USE_THREADS?= ${DLOPEN_REQUIRE_PTHREADS}
-.endif
-
-### [Sat Dec 18 17:29:44 EST 2004 : jlam]
-### Native threading on VAX isn't ready for primetime in NetBSD>=2.0.
-### Build Perl without threads-support until VAX native threads are
-### known to work.
-###
-.if !empty(MACHINE_PLATFORM:MNetBSD-*-vax)
-PKG_HACKS+= broken-vax-pthreads
-PERL5_USE_THREADS= no
-.endif
-
-.if !empty(PERL5_USE_THREADS:M[nN][oO])
-CONFIGURE_ARGS+= -Uuseithreads
-.else
-. include "../../mk/pthread.buildlink3.mk"
-CONFIGURE_ARGS+= -Duseithreads
-CFLAGS+= ${PTHREAD_CFLAGS}
-PERL5_HINTS_LDFLAGS+= ${PTHREAD_LDFLAGS}
-PERL5_HINTS_LDDLFLAGS+= ${PTHREAD_LDFLAGS}
-LIBSWANTED+= ${PTHREAD_LIBS:M-l*:S/^-l//}
-.endif
-
-.if !empty(LIBSWANTED)
-CONFIGURE_ARGS+= -Dlibswanted="${LIBSWANTED}"
-.endif
-
-.include "../../mk/compiler.mk"
-
-.if ${OPSYS} == "IRIX" && ${ABI} == "64"
-CONFIGURE_ARGS+= -Dcc='${CC} -64' -Duse64bitint
-.endif
-
-PERL5= ${PREFIX}/bin/perl${PERL5_VERS}
-PERL5_PRIVLIB= ${PREFIX}/lib/perl5/${PERL5_VERS}
-PERL5_SITEPERL= ${VIEWBASE}/lib/perl5/site_perl
-PERL5_SITELIB= ${VIEWBASE}/lib/perl5/site_perl/${PERL5_VERS}
-PLIST_SUBST+= PERL5_SITEPERL=${PERL5_SITEPERL:S/^${PREFIX}\///}
-PLIST_SUBST+= PERL5_SITELIB=${PERL5_SITELIB:S/^${PREFIX}\///}
-MESSAGE_SUBST+= PERL5_SITELIB=${PERL5_SITELIB}
-
-# Some platforms may want the directory mode not to be 0755. This is,
-# unfortunately, hardcoded in quite a few places in Perl. So let's substitute
-# what pkgsrc said instead.
-post-patch:
-.if ${PKGDIRMODE} != "755"
-. for f in installhtml installman installperl lib/ExtUtils/Install.pm
- cd ${WRKSRC} && \
- ${MV} -f ${f} ${f}.dirmode && \
- ${SED} -e 's/755/${PKGDIRMODE}/g;/umask(/d' \
- ${f}.dirmode >${f}
-. endfor
-.endif
-
-# It's tough to guess which hints file will be used, so add our modifications
-# to all of them:
-#
-# - Explicitly set the local compiler search paths to contain only the
-# pkgsrc-controlled directories.
-#
-pre-configure:
- hintdir="${WRKSRC}/hints"; \
- for hints in $${hintdir}/*.sh; do \
- ${CHMOD} +w $${hints}; \
- ( ${ECHO} ""; \
- ${ECHO} "cat > UU/pkgsrc.cbu <<'EOCBU'"; \
- ${ECHO} "# This script UU/pkgsrc.cbu will get 'called-back' by Configure to set"; \
- ${ECHO} '# linker options after all other call-back scripts have been invoked.'; \
- ${ECHO} 'ldflags="${PERL5_HINTS_LDFLAGS} $$ldflags"'; \
- ${ECHO} 'lddlflags="${PERL5_HINTS_LDFLAGS} $$lddlflags"'; \
- ${ECHO} "EOCBU"; \
- ) >> $${hints}; \
- done
- hintdir="${WRKSRC}/hints"; \
- for hints in $${hintdir}/*.sh; do \
- ( ${ECHO} ""; \
- ${ECHO} "# Set pkgsrc defaults for library and header search paths."; \
- ${ECHO} 'locincpth="${LOCINCPATH}"'; \
- ${ECHO} 'loclibpth="${LOCLIBPATH}"'; \
- ) >> $${hints}; \
- done
-.if !empty(SYSLIBPATH)
- hintdir="${WRKSRC}/hints"; \
- for hints in $${hintdir}/*.sh; do \
- ( ${ECHO} "glibpth='${SYSLIBPATH}'"; \
- ) >> $${hints}; \
- done
-.endif
-
-WRKSRC_PERL5= ${WRKSRC}/perl
-PLIST_SRC= ${WRKDIR}/.PLIST_SRC
-PLIST_FILE_SED= -e "s,[ ].*,," -e "s,/\./,/,g" -e "s,${PREFIX}/,,"
-PLIST_DIR_SED= ${PLIST_FILE_SED} \
- -e "s,^,@unexec \${RMDIR} -p %D/," \
- -e "s,/[^/]*$$, 2>/dev/null || ${TRUE}," \
-
-post-install:
- ${RM} -f ${PREFIX}/bin/perl ${PREFIX}/bin/perl${PERL5_VERS}
- ${INSTALL_PROGRAM_DIR} ${PREFIX}/bin
- ${INSTALL_PROGRAM} ${WRKSRC_PERL5} ${PREFIX}/bin/perl${PERL5_VERS}
- ${LN} -f ${PREFIX}/bin/perl${PERL5_VERS} ${PREFIX}/bin/perl
-.if defined(_STRIPFLAG_INSTALL) && !empty(_STRIPFLAG_INSTALL)
- if [ -x ${PREFIX}/bin/a2p ]; then \
- strip ${PREFIX}/bin/a2p; \
- fi
-.endif
- # Generate the PLIST template
- eval `${PERL5} -V:installarchlib 2>/dev/null`; \
- eval `${PERL5} -V:installsitearch 2>/dev/null`; \
- sitearch=`${ECHO} $$installsitearch | ${SED} ${PLIST_FILE_SED}`; \
- ${RMDIR} -p $$installsitearch 2>/dev/null || ${TRUE}; \
- packlist="$$installarchlib/.packlist"; \
- ( ${ECHO} "@unexec ${RM} -f %D/$$sitearch/perllocal.pod"; \
- ${ECHO} "@unexec ${RMDIR} -p %D/$$sitearch 2>/dev/null || ${TRUE}"; \
- ${CAT} ${PKGDIR}/PLIST; \
- ${ECHO} "@comment The following lines are automatically generated"; \
- ${ECHO} "@comment from the installed .packlist files."; \
- ) > ${PLIST_SRC}; \
- ( ${ECHO} "$$packlist" && ${CAT} $$packlist ) \
- | ${SED} ${PLIST_FILE_SED} | ${SORT} -u >> ${PLIST_SRC}; \
- ( ${ECHO} "$$packlist" && ${CAT} $$packlist ) \
- | ${SED} ${PLIST_DIR_SED} | ${SORT} -ur >> ${PLIST_SRC}
-
-.include "../../mk/bsd.pkg.mk"
diff --git a/lang/perl58/PLIST b/lang/perl58/PLIST
deleted file mode 100644
index 72c35dad6bb..00000000000
--- a/lang/perl58/PLIST
+++ /dev/null
@@ -1,5 +0,0 @@
-@comment $NetBSD: PLIST,v 1.10 2004/12/10 06:01:08 jlam Exp $
-@unexec ${RMDIR} -p %D/${PERL5_SITEPERL}/man/man3 2>/dev/null || ${TRUE}
-@unexec ${RMDIR} -p %D/${PERL5_SITEPERL}/man 2>/dev/null || ${TRUE}
-@unexec ${RMDIR} -p %D/${PERL5_SITEPERL} 2>/dev/null || ${TRUE}
-@unexec ${RMDIR} -p %D/${PERL5_SITELIB} 2>/dev/null || ${TRUE}
diff --git a/lang/perl58/distinfo b/lang/perl58/distinfo
deleted file mode 100644
index fe0080f25df..00000000000
--- a/lang/perl58/distinfo
+++ /dev/null
@@ -1,25 +0,0 @@
-$NetBSD: distinfo,v 1.33 2005/06/08 08:42:33 jlam Exp $
-
-SHA1 (perl-5.8.6.tar.bz2) = 5267c5b4900a995a10e4fc56fe10a6852004c29b
-RMD160 (perl-5.8.6.tar.bz2) = 52fdee3caecf67417a9c081b7aae84807235cb27
-Size (perl-5.8.6.tar.bz2) = 9693085 bytes
-SHA1 (patch-aa) = 3c16c599dae752cea4143ca48071118ece5925a4
-SHA1 (patch-ae) = 044ac094cd475a16483552aa6f1bde03bd11f592
-SHA1 (patch-ah) = cb103c14090b2d61720ee9b555b32085c8eeb810
-SHA1 (patch-ba) = 096835f71a69f29e50bdad47944afa838dba5aec
-SHA1 (patch-bd) = 9f96ba1912f2a8db93db31f7a63c0b49a045318d
-SHA1 (patch-be) = 9f667f33ea24300a5580db84d0978ca53f126f29
-SHA1 (patch-bf) = 9bc5690b41a70617cde89b805184a8d5605d20d1
-SHA1 (patch-ca) = 3198a5f49c2a850b1ea1f5c6f0738f45da505924
-SHA1 (patch-cb) = 5eec09e832735d2e59fd82f7043fa78ee08cbd0d
-SHA1 (patch-cc) = b04ea30ac47ae0748aa6b6c83c8de0396ace349f
-SHA1 (patch-cd) = d9420f57f036567abac821a8144768a2a7057b47
-SHA1 (patch-ce) = c7d2defd2cfa872c1f6651678bc3de6cd7aeaf34
-SHA1 (patch-cf) = 23cf46c8d683b688878433ec9b33f3c65528cd28
-SHA1 (patch-cg) = e1b56aaa40934f78298d1fd9303fbae33c472d8e
-SHA1 (patch-ch) = 6cfd77bba102a4bca82576f061ba60c1610c4d07
-SHA1 (patch-ci) = 89bc6e67b18ca903cb3791fd598fd579bc48298b
-SHA1 (patch-cj) = 680b7161d7530825376b9d5c108fc01f15768e5e
-SHA1 (patch-ck) = 28207b8186c9ad194a1edc696159915bc16d1097
-SHA1 (patch-cl) = 8553c83e721f5ae43a5f6e0e4d2b70510b69e77c
-SHA1 (patch-zc) = eb81edd1144ec46285898afc641c03a3aad54977
diff --git a/lang/perl58/patches/patch-aa b/lang/perl58/patches/patch-aa
deleted file mode 100644
index 2881097ee4b..00000000000
--- a/lang/perl58/patches/patch-aa
+++ /dev/null
@@ -1,50 +0,0 @@
-$NetBSD: patch-aa,v 1.5 2005/01/18 00:56:44 jlam Exp $
-
---- lib/ExtUtils/MM_Unix.pm.orig 2004-01-05 17:34:59.000000000 -0500
-+++ lib/ExtUtils/MM_Unix.pm
-@@ -12,7 +12,7 @@ use DirHandle;
-
- use vars qw($VERSION @ISA
- $Is_Mac $Is_OS2 $Is_VMS $Is_Win32 $Is_Win95 $Is_Dos $Is_VOS
-- $Is_QNX $Is_AIX $Is_OSF $Is_IRIX $Is_NetBSD $Is_BSD
-+ $Is_QNX $Is_AIX $Is_OSF $Is_IRIX $Is_BSD $Is_Interix
- $Is_SunOS4 $Is_Solaris $Is_SunOS
- $Verbose %pm %static
- %Config_Override
-@@ -36,11 +36,11 @@ $Is_QNX = $^O eq 'qnx';
- $Is_AIX = $^O eq 'aix';
- $Is_OSF = $^O eq 'dec_osf';
- $Is_IRIX = $^O eq 'irix';
--$Is_NetBSD = $^O eq 'netbsd';
-+$Is_Interix = $^O eq 'interix';
- $Is_SunOS4 = $^O eq 'sunos';
- $Is_Solaris = $^O eq 'solaris';
- $Is_SunOS = $Is_SunOS4 || $Is_Solaris;
--$Is_BSD = $^O =~ /^(?:free|net|open)bsd|bsdos$/;
-+$Is_BSD = $^O =~ /^(?:free|net|open)bsd|bsdos|dragonfly|interix$/;
-
-
- =head1 NAME
-@@ -1120,16 +1120,16 @@ $(INST_DYNAMIC): $(OBJECT) $(MYEXTLIB) $
-
- my $libs = '$(LDLOADLIBS)';
-
-- if ($Is_NetBSD) {
-- # Use nothing on static perl platforms, and to the flags needed
-- # to link against the shared libperl library on shared perl
-- # platforms. We peek at lddlflags to see if we need -Wl,-R
-+ if ($Is_BSD) {
-+ # Use nothing on static perl platforms, and add to the flags
-+ # needed to link against the shared libperl library on shared
-+ # perl platforms. We peek at lddlflags to see if we need -Wl,-R
- # or -R to add paths to the run-time library search path.
- if ($Config{'useshrplib'}) {
- if ($Config{'lddlflags'} =~ /-Wl,-R/) {
-- $libs .= ' -L$(PERL_INC) -Wl,-R$(INSTALLARCHLIB)/CORE -lperl';
-+ $libs .= ' -L$(PERL_INC) -Wl,-R$(INSTALLARCHLIB)/CORE -Wl,-R$(PERL_ARCHLIB)/CORE -lperl';
- } elsif ($Config{'lddlflags'} =~ /-R/) {
-- $libs .= ' -L$(PERL_INC) -R$(INSTALLARCHLIB)/CORE -lperl';
-+ $libs .= ' -L$(PERL_INC) -R$(INSTALLARCHLIB)/CORE -R$(PERL_ARCHLIB)/CORE -lperl';
- }
- }
- }
diff --git a/lang/perl58/patches/patch-ae b/lang/perl58/patches/patch-ae
deleted file mode 100644
index d2f777ff722..00000000000
--- a/lang/perl58/patches/patch-ae
+++ /dev/null
@@ -1,12 +0,0 @@
-$NetBSD: patch-ae,v 1.3 2005/01/18 00:56:44 jlam Exp $
-
---- makedepend.SH.orig 2003-06-05 14:11:10.000000000 -0400
-+++ makedepend.SH
-@@ -83,7 +83,6 @@ if test -f Makefile; then
- # to be out of date. I don't know if OS/2 has touch, so do this:
- case "$osname" in
- os2) ;;
-- netbsd) ;;
- *) $touch $firstmakefile ;;
- esac
- fi
diff --git a/lang/perl58/patches/patch-ah b/lang/perl58/patches/patch-ah
deleted file mode 100644
index 2c381832da2..00000000000
--- a/lang/perl58/patches/patch-ah
+++ /dev/null
@@ -1,67 +0,0 @@
-$NetBSD: patch-ah,v 1.8 2004/12/29 19:41:25 jlam Exp $
-
---- perl.c.orig 2004-11-23 10:16:56.000000000 -0500
-+++ perl.c
-@@ -4314,12 +4314,33 @@ S_init_perllib(pTHX)
- }
-
- /* Use the ~-expanded versions of APPLLIB (undocumented),
-- ARCHLIB PRIVLIB SITEARCH SITELIB VENDORARCH and VENDORLIB
-+ SITEARCH SITELIB ARCHLIB PRIVLIB VENDORARCH and VENDORLIB
- */
- #ifdef APPLLIB_EXP
- incpush(APPLLIB_EXP, TRUE, TRUE, TRUE);
- #endif
-
-+#ifdef SITEARCH_EXP
-+ /* sitearch is always relative to sitelib on Windows for
-+ * DLL-based path intuition to work correctly */
-+# if !defined(WIN32)
-+ incpush(SITEARCH_EXP, FALSE, FALSE, TRUE);
-+# endif
-+#endif
-+
-+#ifdef SITELIB_EXP
-+# if defined(WIN32)
-+ /* this picks up sitearch as well */
-+ incpush(SITELIB_EXP, TRUE, FALSE, TRUE);
-+# else
-+ incpush(SITELIB_EXP, FALSE, FALSE, TRUE);
-+# endif
-+#endif
-+
-+#ifdef SITELIB_STEM /* Search for version-specific dirs below here */
-+ incpush(SITELIB_STEM, FALSE, TRUE, TRUE);
-+#endif
-+
- #ifdef ARCHLIB_EXP
- incpush(ARCHLIB_EXP, FALSE, FALSE, TRUE);
- #endif
-@@ -4353,27 +4374,6 @@ S_init_perllib(pTHX)
- incpush(PRIVLIB_EXP, FALSE, FALSE, TRUE);
- #endif
-
--#ifdef SITEARCH_EXP
-- /* sitearch is always relative to sitelib on Windows for
-- * DLL-based path intuition to work correctly */
--# if !defined(WIN32)
-- incpush(SITEARCH_EXP, FALSE, FALSE, TRUE);
--# endif
--#endif
--
--#ifdef SITELIB_EXP
--# if defined(WIN32)
-- /* this picks up sitearch as well */
-- incpush(SITELIB_EXP, TRUE, FALSE, TRUE);
--# else
-- incpush(SITELIB_EXP, FALSE, FALSE, TRUE);
--# endif
--#endif
--
--#ifdef SITELIB_STEM /* Search for version-specific dirs below here */
-- incpush(SITELIB_STEM, FALSE, TRUE, TRUE);
--#endif
--
- #ifdef PERL_VENDORARCH_EXP
- /* vendorarch is always relative to vendorlib on Windows for
- * DLL-based path intuition to work correctly */
diff --git a/lang/perl58/patches/patch-ba b/lang/perl58/patches/patch-ba
deleted file mode 100644
index 5efbca118e6..00000000000
--- a/lang/perl58/patches/patch-ba
+++ /dev/null
@@ -1,59 +0,0 @@
-$NetBSD: patch-ba,v 1.3 2005/03/19 11:56:39 kleink Exp $
-
---- hints/netbsd.sh.orig 2003-08-07 12:57:56.000000000 -0400
-+++ hints/netbsd.sh 2004-06-06 18:45:19.000000000 -0400
-@@ -78,6 +78,30 @@
- d_setreuid="$undef"
- ;;
- esac
-+case "$osvers" in
-+0.9*|1.*|2.*|3.*)
-+ d_getprotoent_r="$undef"
-+ d_getprotobyname_r="$undef"
-+ d_getprotobynumber_r="$undef"
-+ d_setprotoent_r="$undef"
-+ d_endprotoent_r="$undef"
-+ d_getservent_r="$undef"
-+ d_getservbyname_r="$undef"
-+ d_getservbyport_r="$undef"
-+ d_setservent_r="$undef"
-+ d_endservent_r="$undef"
-+ d_getprotoent_r_proto="$undef"
-+ d_getprotobyname_r_proto="$undef"
-+ d_getprotobynumber_r_proto="$undef"
-+ d_setprotoent_r_proto="$undef"
-+ d_endprotoent_r_proto="$undef"
-+ d_getservent_r_proto="$undef"
-+ d_getservbyname_r_proto="$undef"
-+ d_getservbyport_r_proto="$undef"
-+ d_setservent_r_proto="$undef"
-+ d_endservent_r_proto="$undef"
-+ ;;
-+esac
-
- # These are obsolete in any netbsd.
- d_setrgid="$undef"
-@@ -133,23 +157,6 @@
- esac
- EOCBU
-
--# Set sensible defaults for NetBSD: look for local software in
--# /usr/pkg (NetBSD Packages Collection) and in /usr/local.
--#
--loclibpth="/usr/pkg/lib /usr/local/lib"
--locincpth="/usr/pkg/include /usr/local/include"
--case "$rpathflag" in
--'')
-- ldflags=
-- ;;
--*)
-- ldflags=
-- for yyy in $loclibpth; do
-- ldflags="$ldflags $rpathflag$yyy"
-- done
-- ;;
--esac
--
- case `uname -m` in
- alpha)
- echo 'int main() {}' > try.c
diff --git a/lang/perl58/patches/patch-ca b/lang/perl58/patches/patch-ca
deleted file mode 100644
index b280b104d52..00000000000
--- a/lang/perl58/patches/patch-ca
+++ /dev/null
@@ -1,79 +0,0 @@
-$NetBSD: patch-ca,v 1.8 2005/01/18 00:56:44 jlam Exp $
-
---- Configure.orig 2004-09-10 02:25:52.000000000 -0400
-+++ Configure
-@@ -3107,11 +3107,13 @@ EOM
- dgux) osname=dgux
- osvers="$3"
- ;;
-+ dragonfly) osname=dragonfly
-+ osvers=`$uname -r | UU/tr '[A-Z]' '[a-z]'` ;;
- dynixptx*) osname=dynixptx
- osvers=`echo "$4"|sed 's/^v//'`
- ;;
- freebsd) osname=freebsd
-- osvers="$3" ;;
-+ osvers=`$uname -r | UU/tr '[A-Z]' '[a-z]'` ;;
- genix) osname=genix ;;
- gnu) osname=gnu
- osvers="$3" ;;
-@@ -3133,7 +3135,7 @@ EOM
- MiNT) osname=mint
- ;;
- netbsd*) osname=netbsd
-- osvers="$3"
-+ osvers=`$uname -r | UU/tr '[A-Z]' '[a-z]'`
- ;;
- news-os) osvers="$3"
- case "$3" in
-@@ -3144,8 +3146,8 @@ EOM
- next*) osname=next ;;
- nonstop-ux) osname=nonstopux ;;
- openbsd) osname=openbsd
-- osvers="$3"
-- ;;
-+ osvers=`$uname -r | UU/tr '[A-Z]' '[a-z]'`
-+ ;;
- os2) osname=os2
- osvers="$4"
- ;;
-@@ -7852,7 +7854,7 @@ if "$useshrplib"; then
- solaris)
- xxx="-R $shrpdir"
- ;;
-- freebsd|netbsd|openbsd)
-+ freebsd|netbsd|openbsd|dragonfly|interix)
- xxx="-Wl,-R$shrpdir"
- ;;
- bsdos|linux|irix*|dec_osf)
-@@ -8973,6 +8975,13 @@ EOCP
- ;;
- esac
-
-+: Look for a hint-file generated 'call-back-unit'. We need
-+: to set some defaults for building perl in pkgsrc.
-+if $test -f pkgsrc.cbu; then
-+ echo "Setting pkgsrc-specific hints regarding compiler/linker flags..."
-+ . ./pkgsrc.cbu
-+fi
-+
- case "$vendorprefix" in
- '') d_vendorbin="$undef"
- vendorbin=''
-@@ -17290,7 +17299,15 @@ RCAT(Rei,ser)
- ACAT(Cir,cus)
- EOCP
- $cppstdin $cppflags $cppminus <cpp_stuff.c >cpp_stuff.out 2>&1
--if $contains 'Circus' cpp_stuff.out >/dev/null 2>&1; then
-+# yuck, what a hack.
-+# MIPSPro compiler/preprocessor behaves differently if invoked on
-+# stdin vs file. Here we test for stdin, but lateron we use files.
-+# So force it to work the way we know it does:
-+if [ x"${OPSYS}" = x"IRIX" ]; then
-+ echo "Hacking MIPSPro on file vs. stdin..." >&4
-+ echo "We know we can catify or stringify, separately or together!"
-+ cpp_stuff=42
-+elif $contains 'Circus' cpp_stuff.out >/dev/null 2>&1; then
- echo "Oh! Smells like ANSI's been here." >&4
- echo "We can catify or stringify, separately or together!"
- cpp_stuff=42