Introduce Perl 5.26.
A few important changes: - '.' is no longer in @INC. - "do" now gives a deprecation warning when it fails to load a file which it would have loaded had "." been in @INC. - In regular expression patterns, a literal left brace "{" should be escaped. Changes: https://metacpan.org/pod/release/XSAWYERX/perl-5.26.0/pod/perldelta.pod Sponsored by: Absolight
This commit is contained in:
parent
050ee3ebee
commit
f9d0b19b04
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=442144
23 changed files with 2916 additions and 2 deletions
|
@ -57,6 +57,8 @@ THIS_IS_OLD_PERL= yes
|
|||
.include "${PORTSDIR}/lang/perl5.22/version.mk"
|
||||
. elif ${PERL5_DEFAULT} == 5.24
|
||||
.include "${PORTSDIR}/lang/perl5.24/version.mk"
|
||||
. elif ${PERL5_DEFAULT} == 5.26
|
||||
.include "${PORTSDIR}/lang/perl5.26/version.mk"
|
||||
. elif ${PERL5_DEFAULT} == devel
|
||||
.include "${PORTSDIR}/lang/perl5-devel/version.mk"
|
||||
# Force PERL_PORT here in case two identical PERL_VERSION.
|
||||
|
@ -91,7 +93,9 @@ PERL_ARCH?= mach
|
|||
# perl5_default file, or up there in the default versions selection.
|
||||
# When adding a version, please keep the comment in
|
||||
# Mk/bsd.default-versions.mk in sync.
|
||||
. if ${PERL_LEVEL} >= 502400
|
||||
. if ${PERL_LEVEL} >= 502600
|
||||
PERL_PORT?= perl5.26
|
||||
. elif ${PERL_LEVEL} >= 502400
|
||||
PERL_PORT?= perl5.24
|
||||
. elif ${PERL_LEVEL} >= 502200
|
||||
PERL_PORT?= perl5.22
|
||||
|
|
|
@ -56,7 +56,7 @@ WARNING+= "OVERRIDE_LINUX_BASE_PORT is deprecated, please use DEFAULT_VERSIONS+
|
|||
LUA_DEFAULT?= 5.2
|
||||
# Possible values: 5.1, 5.5, 5.6, 5.7, 8.0, 5.5m, 10.0m, 10.1m, 5.5p, 5.6p, 5.7p, 5.6w
|
||||
MYSQL_DEFAULT?= 5.6
|
||||
# Possible values: 5.20, 5.22, 5.24, devel
|
||||
# Possible values: 5.20, 5.22, 5.24, 5.26, devel
|
||||
.if !exists(${LOCALBASE}/bin/perl) || (!defined(_PORTS_ENV_CHECK) && \
|
||||
defined(PACKAGE_BUILDING))
|
||||
PERL5_DEFAULT?= 5.24
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
TIMESTAMP = 1496181398
|
||||
SHA256 (gnome3/accerciser-3.14.0.tar.xz) = f5a5915d475e9241396414ccd167724c88807e77e69151cf0b40b32bd57d0574
|
||||
SIZE (gnome3/accerciser-3.14.0.tar.xz) = 3213916
|
||||
|
|
|
@ -247,6 +247,7 @@
|
|||
SUBDIR += perl5.20
|
||||
SUBDIR += perl5.22
|
||||
SUBDIR += perl5.24
|
||||
SUBDIR += perl5.26
|
||||
SUBDIR += petite-chez
|
||||
SUBDIR += pfe
|
||||
SUBDIR += phantomjs
|
||||
|
|
279
lang/perl5.26/Makefile
Normal file
279
lang/perl5.26/Makefile
Normal file
|
@ -0,0 +1,279 @@
|
|||
# Created by: mat
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= perl
|
||||
DISTVERSION= ${PERL_VERSION}
|
||||
PORTREVISION= 0
|
||||
CATEGORIES= lang devel perl5
|
||||
#MASTER_SITES= CPAN/../../src/5.0/
|
||||
MASTER_SITES= CPAN/../../authors/id/X/XS/XSAWYERX/
|
||||
DIST_SUBDIR= perl
|
||||
|
||||
MAINTAINER= perl@FreeBSD.org
|
||||
COMMENT= Practical Extraction and Report Language
|
||||
|
||||
LICENSE= ART10 GPLv1
|
||||
LICENSE_COMB= dual
|
||||
LICENSE_FILE_ART10= ${WRKSRC}/Artistic
|
||||
LICENSE_FILE_GPLv1= ${WRKSRC}/Copying
|
||||
|
||||
# Uncomment when the default Perl is switched to 5.2(X+2)
|
||||
#DEPRECATED= Support end three years after .0 release, please upgrade to a more recent version of Perl
|
||||
#EXPIRATION_DATE=<Release date of .0 + 3 years>
|
||||
|
||||
TEST_TARGET= test_harness
|
||||
TEST_ENV= ${MAKE_ENV} TEST_JOBS=${MAKE_JOBS_NUMBER} \
|
||||
LD_LIBRARY_PATH=${WRKSRC}
|
||||
|
||||
OPTIONS_DEFINE= DEBUG GDBM PERL_64BITINT MULTIPLICITY SITECUSTOMIZE \
|
||||
THREADS PERL_MALLOC DTRACE DOT_INC
|
||||
OPTIONS_DEFAULT= PERL_64BITINT THREADS MULTIPLICITY DTRACE
|
||||
|
||||
OPTIONS_EXCLUDE_FreeBSD_10= DTRACE
|
||||
.if !exists(/usr/sbin/dtrace)
|
||||
OPTIONS_EXCLUDE+= DTRACE
|
||||
.endif
|
||||
.for a in aarch64 arm armeb armv6 mips mips64 mips64el mipsel mipsn32 powerpc \
|
||||
powerpc64 sparc64
|
||||
OPTIONS_EXCLUDE_${a}= DTRACE
|
||||
.endfor
|
||||
|
||||
EXCLUSIVE_DESC= Exclusive OPTIONS
|
||||
GDBM_DESC= GDBM_File extension
|
||||
PERL_MALLOC_DESC= Use Perl malloc
|
||||
PERL_64BITINT_DESC= Use 64 bit integers (on i386)
|
||||
THREADS_DESC= Build threaded perl
|
||||
MULTIPLICITY_DESC= Use multiplicity
|
||||
SITECUSTOMIZE_DESC= Run-time customization of @INC
|
||||
DOT_INC_DESC= Add '.' to @INC (unsafe)
|
||||
|
||||
OPTIONS_SUB= yes
|
||||
DEBUG_CONFIGURE_ON= -Doptimize="-g" -DDEBUGGING
|
||||
DEBUG_CONFIGURE_OFF= -Doptimize="${CFLAGS}"
|
||||
DTRACE_CONFIGURE_ON= -Dusedtrace
|
||||
DTRACE_CONFIGURE_OFF= -Uusedtrace
|
||||
GDBM_CONFIGURE_ON= -Di_gdbm
|
||||
GDBM_CONFIGURE_OFF= -Ui_gdbm
|
||||
GDBM_LIB_DEPENDS= libgdbm.so:databases/gdbm
|
||||
PERL_64BITINT_CONFIGURE_ON= -Duse64bitint
|
||||
MULTIPLICITY_CONFIGURE_ON= -Dusemultiplicity=y
|
||||
MULTIPLICITY_CONFIGURE_OFF= -Dusemultiplicity=n
|
||||
SITECUSTOMIZE_CONFIGURE_ON= -Dusesitecustomize
|
||||
THREADS_CONFIGURE_ON= -Dusethreads=y
|
||||
THREADS_CONFIGURE_OFF= -Dusethreads=n
|
||||
PERL_MALLOC_CONFIGURE_ON= -Dusemymalloc=y
|
||||
PERL_MALLOC_CONFIGURE_OFF= -Dusemymalloc=n
|
||||
DOT_INC_CONFIGURE_ON= -Ddefault_inc_excludes_dot=n
|
||||
|
||||
PORTSCOUT= limit:^${PERL_VER}.
|
||||
|
||||
.include "version.mk"
|
||||
PERL_VER?= ${PERL_VERSION:C/\.[0-9]+$//}
|
||||
PERL_ARCH= mach
|
||||
SITE_PERL_REL?= lib/perl5/site_perl
|
||||
SITE_PERL?= ${PREFIX}/${SITE_PERL_REL}
|
||||
SITE_ARCH_REL?= ${SITE_PERL_REL}/${PERL_ARCH}/${PERL_VER}
|
||||
SITE_ARCH?= ${PREFIX}/${SITE_ARCH_REL}
|
||||
SITE_MAN_PREFIX= ${SITE_PERL_REL}
|
||||
SITE_MAN3_REL?= ${SITE_MAN_PREFIX}/man/man3
|
||||
SITE_MAN3?= ${PREFIX}/${SITE_MAN3_REL}
|
||||
SITE_MAN1_REL?= ${SITE_MAN_PREFIX}/man/man1
|
||||
SITE_MAN1?= ${PREFIX}/${SITE_MAN1_REL}
|
||||
|
||||
_PRIV_LIB= lib/perl5/${PERL_VER}
|
||||
_ARCH_LIB= ${_PRIV_LIB}/${PERL_ARCH}
|
||||
|
||||
USES= cpe tar:xz
|
||||
|
||||
HAS_CONFIGURE= yes
|
||||
CONFIGURE_SCRIPT=Configure
|
||||
CONFIGURE_ARGS= -sde -Dprefix=${PREFIX} \
|
||||
-Dlibperl=libperl.so.${PERL_VERSION} \
|
||||
-Darchlib=${PREFIX}/${_ARCH_LIB} \
|
||||
-Dprivlib=${PREFIX}/${_PRIV_LIB} \
|
||||
-Dman3dir=${PREFIX}/${PERLMANPREFIX_REL}/man/man3 \
|
||||
-Dman1dir=${PREFIX}/${PERLMANPREFIX_REL}/man/man1 \
|
||||
-Dsitearch=${SITE_ARCH} \
|
||||
-Dsitelib=${SITE_PERL} -Dscriptdir=${PREFIX}/bin \
|
||||
-Dsiteman3dir=${SITE_MAN3} \
|
||||
-Dsiteman1dir=${SITE_MAN1} \
|
||||
-Ui_malloc -Ui_iconv -Uinstallusrbinperl -Dusenm=n \
|
||||
-Dcc="${CC}" -Duseshrplib -Dinc_version_list=none \
|
||||
-Dcf_by=${MAINTAINER:C,@.*,,} -Dcf_email=${MAINTAINER} \
|
||||
-Dcf_time="`${STAT} -t \"%a %b %d %T %Z %Y\" -f %Sm ${_DISTDIR}/${DISTNAME}${EXTRACT_SUFX}`"
|
||||
# Keep the following two in sync.
|
||||
# lddlflags is used for all .so linking
|
||||
# shrpldflags is used for libperl.so, so remove all the extra bits inherited from lddlflags.
|
||||
CONFIGURE_ARGS+= \
|
||||
-Alddlflags='-L${WRKSRC} -L${PREFIX}/${_ARCH_LIB}/CORE -lperl' \
|
||||
-Dshrpldflags='$$(LDDLFLAGS:N-L${WRKSRC}:N-L${PREFIX}/${_ARCH_LIB}/CORE:N-lperl) -Wl,-soname,$$(LIBPERL:R)'
|
||||
|
||||
# Give a hint of where libperl.so can be found.
|
||||
USE_LDCONFIG= ${PREFIX}/${_ARCH_LIB}/CORE
|
||||
|
||||
CONFIGURE_ENV+= UNAME_v="$$(uname -v | sed 'y/=/ /')"
|
||||
|
||||
SUB_LIST+= PERL_VERSION=${PERL_VERSION} \
|
||||
PERL_VER=${PERL_VER} \
|
||||
SITE_PERL=${SITE_PERL_REL} \
|
||||
PRIV_LIB=${_PRIV_LIB} \
|
||||
PERLMANPREFIX=${PERLMANPREFIX_REL} \
|
||||
SITEMANPREFIX=${SITE_MAN_PREFIX} \
|
||||
PERL_ARCH=${PERL_ARCH}
|
||||
|
||||
SUB_FILES= perl-man.conf
|
||||
|
||||
INSTALL_TARGET= install-strip
|
||||
|
||||
.if defined(PERL_VENDOR_PREFIX)
|
||||
CONFIGURE_ARGS+= \
|
||||
-Dvendorprefix=${PERL_VENDOR_PREFIX} \
|
||||
-Dvendorarch=${PERL_VENDOR_PREFIX}/${_ARCH_LIB} \
|
||||
-Dvendorbin=${PERL_VENDOR_PREFIX}/bin \
|
||||
-Dvendorlib=${PERL_VENDOR_PREFIX}/${_PRIV_LIB} \
|
||||
-Dvendorman3dir=${PERL_VENDOR_PREFIX}/${_PRIV_LIB}/man/man3 \
|
||||
-Dvendorman1dir=${PERL_VENDOR_PREFIX}/man/man1
|
||||
.endif
|
||||
|
||||
# http://perl5.git.perl.org/perl.git/commit/b83080de5c4254
|
||||
# PERLIOBUF_DEFAULT_BUFSIZ size in bytes (default: 8192 bytes)
|
||||
.if defined(PERLIOBUF_DEFAULT_BUFSIZ)
|
||||
CONFIGURE_ARGS+= \
|
||||
-Accflags=-DPERLIOBUF_DEFAULT_BUFSIZ=${PERLIOBUF_DEFAULT_BUFSIZ}
|
||||
.endif
|
||||
|
||||
PERLMANPREFIX_REL= ${_PRIV_LIB}/perl
|
||||
PERLMANPREFIX= ${PREFIX}/${PERLMANPREFIX_REL}
|
||||
MANDIRS+= ${PERLMANPREFIX}/man
|
||||
|
||||
PLIST_SUB+= PERL_VERSION=${PERL_VERSION} \
|
||||
PERL_VER=${PERL_VER} \
|
||||
PERL_ARCH=${PERL_ARCH} \
|
||||
PERL_ARCH_regex=\b${PERL_ARCH}\b \
|
||||
MAN1=${PERLMANPREFIX_REL}/man/man1 \
|
||||
MAN3=${PERLMANPREFIX_REL}/man/man3 \
|
||||
PERLMANPREFIX=${PERLMANPREFIX_REL} \
|
||||
PERLMANPREFIX_regex=${PERLMANPREFIX_REL}\b \
|
||||
SITEMANPREFIX=${SITE_MAN_PREFIX} \
|
||||
SITE_PERL=${SITE_PERL_REL} \
|
||||
SITE_ARCH=${SITE_ARCH_REL} \
|
||||
PRIV_LIB=${_PRIV_LIB} \
|
||||
PKGNAMESUFFIX=${PKGNAMESUFFIX} \
|
||||
ARCH_LIB=${_ARCH_LIB}
|
||||
|
||||
_PERL5_DEFAULT_FILE= /tmp/PERL5_DEFAULT
|
||||
|
||||
# bsd.default-versions.mk needs to know LOCALBASE for Perl, so
|
||||
# bsd.port.options.mk is needed before including it.
|
||||
.include <bsd.port.options.mk>
|
||||
.sinclude "${_PERL5_DEFAULT_FILE}"
|
||||
.include "${.CURDIR}/../../Mk/bsd.default-versions.mk"
|
||||
|
||||
# if this port is default due PERL5_DEFAULT
|
||||
# change PKGNAME to reflect this
|
||||
.if ${PERL_VER} == ${PERL5_DEFAULT}
|
||||
PKGNAMESUFFIX= 5
|
||||
IAMDEFAULTPERL= yes
|
||||
.else
|
||||
# make PKGNAME unique among other lang/perl5.x
|
||||
PKGNAMESUFFIX= ${PERL_VER}
|
||||
.endif
|
||||
|
||||
# Am I building the default Perl ?
|
||||
.if defined(IAMDEFAULTPERL)
|
||||
PLIST_SUB+= DEFAULT="" BINSUFFIX=""
|
||||
.else
|
||||
BINSUFFIX= ${PERL_VERSION}
|
||||
PLIST_SUB+= DEFAULT="@comment " BINSUFFIX=${PERL_VERSION}
|
||||
CONFIGURE_ARGS+=-Dversiononly
|
||||
.endif
|
||||
|
||||
.if !defined(IAMDEFAULTPERL)
|
||||
pre-everything::
|
||||
@${ECHO_MSG} "##################################################"
|
||||
@${ECHO_MSG} ""
|
||||
@${ECHO_MSG} " This is *NOT* the DEFAULT perl version"
|
||||
@${ECHO_MSG} ""
|
||||
@${ECHO_MSG} "It will *NOT* install ${PREFIX}/bin/perl"
|
||||
@${ECHO_MSG} ""
|
||||
@${ECHO_MSG} "It will *ONLY* install ${PREFIX}/bin/perl${PERL_VERSION}"
|
||||
@${ECHO_MSG} ""
|
||||
@${ECHO_MSG} "The default Perl version currently is ${PERL5_DEFAULT}."
|
||||
@${ECHO_MSG} ""
|
||||
@${ECHO_MSG} "If you want to use this version as the default,"
|
||||
@${ECHO_MSG} "stop the build now, add this line to your"
|
||||
@${ECHO_MSG} "/etc/make.conf, and then restart the build."
|
||||
@${ECHO_MSG} ""
|
||||
@${ECHO_MSG} "DEFAULT_VERSIONS+=perl5=${PERL_VER}"
|
||||
@${ECHO_MSG} ""
|
||||
@${ECHO_MSG} "##################################################"
|
||||
. if !(defined(PACKAGE_BUILDING) || defined(BATCH))
|
||||
@sleep 30
|
||||
. endif
|
||||
.endif
|
||||
|
||||
# Put a symlink to the future libperl.so.x.yy so that -lperl works.
|
||||
# Also, save PERL5_DEFAULT in case someone is not using the default Perl
|
||||
# version whilst not having set DEFAULT_VERSIONS=perl5=blah. While upgrading,
|
||||
# portmaster/portupgrade will remove the installed Perl version, and it will
|
||||
# remove any way to guess what the default Perl version is needed.
|
||||
post-extract:
|
||||
${LN} -s libperl.so.${PERL_VERSION} ${WRKSRC}/libperl.so
|
||||
${LN} -s libperl.so.${PERL_VERSION} ${WRKSRC}/libperl.so.${PERL_VER}
|
||||
.if !defined(PACKAGE_BUILDING)
|
||||
@${ECHO_CMD} "PERL5_DEFAULT=${PERL5_DEFAULT}" > ${_PERL5_DEFAULT_FILE}
|
||||
.endif
|
||||
|
||||
.if !defined(PACKAGE_BUILDING)
|
||||
post-clean:
|
||||
@${RM} ${_PERL5_DEFAULT_FILE}
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \
|
||||
${WRKSRC}/Configure ${WRKSRC}/hints/freebsd.sh
|
||||
.if !defined(IAMDEFAULTPERL)
|
||||
${REINPLACE_CMD} -e '/do_installprivlib = 0 if .versiononly/d; \
|
||||
/^if.*nopods.*versiononly || /s/.*/if (1) {/' \
|
||||
${WRKSRC}/installperl
|
||||
.endif
|
||||
|
||||
post-install:
|
||||
@${REINPLACE_CMD} -e '/^lddlflags/s|-L${WRKSRC} ||' \
|
||||
${STAGEDIR}${PREFIX}/${_ARCH_LIB}/Config_heavy.pl
|
||||
@${TOUCH} -r ${STAGEDIR}${PREFIX}/${_ARCH_LIB}/Config_heavy.pl.bak ${STAGEDIR}${PREFIX}/${_ARCH_LIB}/Config_heavy.pl
|
||||
@${RM} ${STAGEDIR}${PREFIX}/${_ARCH_LIB}/Config_heavy.pl.bak
|
||||
.if ${CC} == /nxb-bin/usr/bin/cc
|
||||
@${REINPLACE_CMD} -e 's=/nxb-bin==' \
|
||||
${STAGEDIR}${PREFIX}/${_ARCH_LIB}/Config.pm ${STAGEDIR}${PREFIX}/${_ARCH_LIB}/Config_heavy.pl
|
||||
# Restore Config.pm's timestamp so that Perl's build system does not think it
|
||||
# needs to rebuild everything.
|
||||
@${TOUCH} -r ${STAGEDIR}${PREFIX}/${_ARCH_LIB}/Config.pm.bak ${STAGEDIR}${PREFIX}/${_ARCH_LIB}/Config.pm
|
||||
@${TOUCH} -r ${STAGEDIR}${PREFIX}/${_ARCH_LIB}/Config_heavy.pl.bak ${STAGEDIR}${PREFIX}/${_ARCH_LIB}/Config_heavy.pl
|
||||
@${RM} ${STAGEDIR}${PREFIX}/${_ARCH_LIB}/Config.pm.bak ${STAGEDIR}${PREFIX}/${_ARCH_LIB}/Config_heavy.pl.bak
|
||||
.endif
|
||||
|
||||
${MKDIR} ${STAGEDIR}${SITE_MAN1} ${STAGEDIR}${SITE_MAN3}
|
||||
${MKDIR} ${STAGEDIR}${SITE_ARCH}/auto
|
||||
${MKDIR} ${STAGEDIR}${SITE_PERL}/auto
|
||||
${LN} ${STAGEDIR}${PREFIX}/bin/perl${PERL_VERSION} ${STAGEDIR}${PREFIX}/bin/perl5
|
||||
${LN} -sf libperl.so.${PERL_VERSION} ${STAGEDIR}${PREFIX}/${_ARCH_LIB}/CORE/libperl.so
|
||||
${LN} -sf libperl.so.${PERL_VERSION} ${STAGEDIR}${PREFIX}/${_ARCH_LIB}/CORE/libperl.so.${PERL_VER}
|
||||
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/perl${PERL_VERSION}
|
||||
${MKDIR} ${STAGEDIR}${SITE_ARCH}/machine
|
||||
${MKDIR} ${STAGEDIR}${SITE_ARCH}/sys
|
||||
# h2ph needs perl, but perl is not installed, it's only
|
||||
# staged, so, use the one in WRKDIR
|
||||
(cd /usr/include && ${SETENV} LD_LIBRARY_PATH=${WRKSRC} \
|
||||
${WRKSRC}/perl -I ${WRKSRC}/lib ${STAGEDIR}${PREFIX}/bin/h2ph${BINSUFFIX} \
|
||||
-d ${STAGEDIR}${SITE_ARCH} *.h machine/*.h sys/*.h >/dev/null)
|
||||
@${FIND} ${STAGEDIR}${SITE_ARCH} -name '*.ph' | sed -e 's|${STAGEDIR}||' >> ${TMPPLIST}
|
||||
${FIND} ${STAGEDIR} -name '*.so*' -type f | while read f; \
|
||||
do \
|
||||
${CHMOD} 644 $$f; \
|
||||
${STRIP_CMD} $$f; \
|
||||
${CHMOD} 444 $$f; \
|
||||
done
|
||||
${INSTALL_DATA} ${WRKDIR}/perl-man.conf ${STAGEDIR}${PREFIX}/etc/man.d/perl${PKGNAMESUFFIX}.conf
|
||||
|
||||
.include <bsd.port.mk>
|
3
lang/perl5.26/distinfo
Normal file
3
lang/perl5.26/distinfo
Normal file
|
@ -0,0 +1,3 @@
|
|||
TIMESTAMP = 1496218881
|
||||
SHA256 (perl/perl-5.26.0.tar.xz) = 9bf2e3d0d72aad77865c3bdbc20d3b576d769c5c255c4ceb30fdb9335266bf55
|
||||
SIZE (perl/perl-5.26.0.tar.xz) = 11961692
|
33
lang/perl5.26/files/patch-Configure
Normal file
33
lang/perl5.26/files/patch-Configure
Normal file
|
@ -0,0 +1,33 @@
|
|||
--- Configure.orig 2017-05-22 10:22:21 UTC
|
||||
+++ Configure
|
||||
@@ -3879,7 +3879,10 @@ esac
|
||||
. ./posthint.sh
|
||||
|
||||
: who configured the system
|
||||
-cf_time=`LC_ALL=C; LANGUAGE=C; export LC_ALL; export LANGUAGE; $date 2>&1`
|
||||
+case "$cf_time" in
|
||||
+"")
|
||||
+ cf_time=`LC_ALL=C; LANGUAGE=C; export LC_ALL; export LANGUAGE; $date 2>&1` ;;
|
||||
+esac
|
||||
case "$cf_by" in
|
||||
"")
|
||||
cf_by=`(logname) 2>/dev/null`
|
||||
@@ -5060,7 +5063,7 @@ esac
|
||||
: Now check and see which directories actually exist, avoiding duplicates
|
||||
for xxx in $dlist
|
||||
do
|
||||
- if $test -d $xxx; then
|
||||
+ if $test -d $xxx || [ $xxx = $prefix/lib ]; then
|
||||
case " $libpth " in
|
||||
*" $xxx "*) ;;
|
||||
*) libpth="$libpth $xxx";;
|
||||
@@ -9655,8 +9658,7 @@ prefixvar=siteman3dir
|
||||
|
||||
: determine where add-on public executable scripts go
|
||||
case "$sitescript" in
|
||||
-'') dflt=$siteprefix/script
|
||||
- $test -d $dflt || dflt=$sitebin ;;
|
||||
+'') dflt=$sitebin ;;
|
||||
*) dflt="$sitescript" ;;
|
||||
esac
|
||||
fn=d~+
|
10
lang/perl5.26/files/patch-Makefile.SH
Normal file
10
lang/perl5.26/files/patch-Makefile.SH
Normal file
|
@ -0,0 +1,10 @@
|
|||
--- Makefile.SH.orig 2015-09-08 05:21:36 UTC
|
||||
+++ Makefile.SH
|
||||
@@ -40,7 +40,6 @@ esac
|
||||
pwd="`pwd`"
|
||||
linklibperl='$(LIBPERL)'
|
||||
linklibperl_nonshr=''
|
||||
-shrpldflags='$(LDDLFLAGS)'
|
||||
ldlibpth=''
|
||||
DPERL_EXTERNAL_GLOB='-DPERL_EXTERNAL_GLOB'
|
||||
DPERL_IS_MINIPERL='-DPERL_IS_MINIPERL'
|
|
@ -0,0 +1,11 @@
|
|||
--- cpan/ExtUtils-Install/lib/ExtUtils/Install.pm.orig 2015-06-22 12:55:33 UTC
|
||||
+++ cpan/ExtUtils-Install/lib/ExtUtils/Install.pm
|
||||
@@ -809,7 +809,7 @@ sub install { #XXX OS-SPECIFIC
|
||||
utime($atime,$mtime + $Is_VMS,$targetfile) unless $dry_run>1;
|
||||
|
||||
|
||||
- $mode = 0444 | ( $mode & 0111 ? 0111 : 0 );
|
||||
+ $mode = 0644 | ( $mode & 0111 ? 0111 : 0 );
|
||||
$mode = $mode | 0222
|
||||
if $realtarget ne $targetfile;
|
||||
_chmod( $mode, $targetfile, $verbose );
|
20
lang/perl5.26/files/patch-cpan_ExtUtils-Install_t_Install.t
Normal file
20
lang/perl5.26/files/patch-cpan_ExtUtils-Install_t_Install.t
Normal file
|
@ -0,0 +1,20 @@
|
|||
--- cpan/ExtUtils-Install/t/Install.t.orig 2015-10-14 14:27:14 UTC
|
||||
+++ cpan/ExtUtils-Install/t/Install.t
|
||||
@@ -240,7 +240,7 @@ SKIP: {
|
||||
},
|
||||
]);
|
||||
|
||||
- ok( !writeable("$bigdir/DummyHard.pm"), 'DummyHard.pm not writeable' );
|
||||
+ ok( writeable("$bigdir/DummyHard.pm"), 'DummyHard.pm writeable' );
|
||||
|
||||
use File::Compare;
|
||||
ok(compare("$bigdir/Dummy.pm", "$bigdir/DummyHard.pm"),
|
||||
@@ -264,7 +264,7 @@ SKIP: {
|
||||
},
|
||||
]);
|
||||
|
||||
- ok( !writeable("$bigdir/DummyOrig.pm"), 'DummyOrig.pm not writeable' );
|
||||
+ ok( writeable("$bigdir/DummyOrig.pm"), 'DummyOrig.pm writeable' );
|
||||
ok( !-l "$bigdir/Dummy.pm", 'Dummy.pm not a link' );
|
||||
ok(compare("$bigdir/Dummy.pm", "$bigdir/DummyOrig.pm"),
|
||||
"orig file should be different");
|
|
@ -0,0 +1,18 @@
|
|||
--- cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_Any.pm.orig 2016-05-29 22:48:24 UTC
|
||||
+++ cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_Any.pm
|
||||
@@ -2018,13 +2018,14 @@ sub init_INSTALL_from_PREFIX {
|
||||
('$(PREFIX)') x 3;
|
||||
}
|
||||
else {
|
||||
+ $self->{PREFIX} ||= $iprefix;
|
||||
$self->{PERLPREFIX} ||= $iprefix;
|
||||
$self->{SITEPREFIX} ||= $sprefix;
|
||||
$self->{VENDORPREFIX} ||= $vprefix;
|
||||
|
||||
# Lots of MM extension authors like to use $(PREFIX) so we
|
||||
# put something sensible in there no matter what.
|
||||
- $self->{PREFIX} = '$('.uc $self->{INSTALLDIRS}.'PREFIX)';
|
||||
+ #$self->{PREFIX} = '$('.uc $self->{INSTALLDIRS}.'PREFIX)';
|
||||
}
|
||||
|
||||
my $arch = $Config{archname};
|
|
@ -0,0 +1,20 @@
|
|||
--- cpan/ExtUtils-MakeMaker/t/INST_PREFIX.t.orig 2016-05-29 22:48:24 UTC
|
||||
+++ cpan/ExtUtils-MakeMaker/t/INST_PREFIX.t
|
||||
@@ -10,7 +10,7 @@ BEGIN {
|
||||
}
|
||||
|
||||
use strict;
|
||||
-use Test::More tests => 52;
|
||||
+use Test::More tests => 51;
|
||||
use MakeMaker::Test::Utils;
|
||||
use MakeMaker::Test::Setup::BFD;
|
||||
use ExtUtils::MakeMaker;
|
||||
@@ -64,7 +64,7 @@ like( $stdout->read, qr{
|
||||
(?:Writing\ MYMETA.yml\ and\ MYMETA.json\n)?
|
||||
}x );
|
||||
|
||||
-is( $mm->{PREFIX}, '$(SITEPREFIX)', 'PREFIX set based on INSTALLDIRS' );
|
||||
+## is( $mm->{PREFIX}, '$(SITEPREFIX)', 'PREFIX set based on INSTALLDIRS' );
|
||||
|
||||
isa_ok( $mm, 'ExtUtils::MakeMaker' );
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
--- cpan/Pod-Perldoc/lib/Pod/Perldoc/ToMan.pm.orig 2017-04-03 07:28:44 UTC
|
||||
+++ cpan/Pod-Perldoc/lib/Pod/Perldoc/ToMan.pm
|
||||
@@ -108,6 +108,8 @@ sub _get_columns_from_manwidth {
|
||||
|
||||
return 0 unless defined $ENV{MANWIDTH};
|
||||
|
||||
+ if ($ENV{MANWIDTH} eq 'tty') { return 0; }
|
||||
+
|
||||
unless( $ENV{MANWIDTH} =~ m/\A\d+\z/ ) {
|
||||
$self->warn( "Ignoring non-numeric MANWIDTH ($ENV{MANWIDTH})\n" );
|
||||
return 0;
|
|
@ -0,0 +1,11 @@
|
|||
--- cpan/Pod-Perldoc/lib/Pod/Perldoc/ToTerm.pm.orig 2017-04-03 07:28:44 UTC
|
||||
+++ cpan/Pod-Perldoc/lib/Pod/Perldoc/ToTerm.pm
|
||||
@@ -69,6 +69,8 @@ sub _get_columns_from_manwidth {
|
||||
|
||||
return 0 unless defined $ENV{MANWIDTH};
|
||||
|
||||
+ if ($ENV{MANWIDTH} eq 'tty') { return 0; }
|
||||
+
|
||||
unless( $ENV{MANWIDTH} =~ m/\A\d+\z/ ) {
|
||||
$self->warn( "Ignoring non-numeric MANWIDTH ($ENV{MANWIDTH})\n" );
|
||||
return 0;
|
22
lang/perl5.26/files/patch-hints_freebsd.sh
Normal file
22
lang/perl5.26/files/patch-hints_freebsd.sh
Normal file
|
@ -0,0 +1,22 @@
|
|||
--- hints/freebsd.sh.orig 2016-12-05 10:28:13 UTC
|
||||
+++ hints/freebsd.sh
|
||||
@@ -88,6 +88,8 @@ case "$osvers" in
|
||||
esac
|
||||
libswanted=`echo $libswanted | sed 's/ malloc / /'`
|
||||
libswanted=`echo $libswanted | sed 's/ bind / /'`
|
||||
+ libswanted=`echo $libswanted | sed 's/ dl / /'`
|
||||
+ libswanted=`echo $libswanted | sed 's/ c / /'`
|
||||
# iconv gone in Perl 5.8.1, but if someone compiles 5.8.0 or earlier.
|
||||
libswanted=`echo $libswanted | sed 's/ iconv / /'`
|
||||
d_setregid='define'
|
||||
@@ -102,6 +104,10 @@ case "$osvers" in
|
||||
;;
|
||||
esac
|
||||
libswanted=`echo $libswanted | sed 's/ malloc / /'`
|
||||
+ libswanted=`echo $libswanted | sed 's/ bind / /'`
|
||||
+ libswanted=`echo $libswanted | sed 's/ dl / /'`
|
||||
+ libswanted=`echo $libswanted | sed 's/ iconv / /'`
|
||||
+ libswanted=`echo $libswanted | sed 's/ c / /'`
|
||||
;;
|
||||
esac
|
||||
|
26
lang/perl5.26/files/patch-perl.c
Normal file
26
lang/perl5.26/files/patch-perl.c
Normal file
|
@ -0,0 +1,26 @@
|
|||
--- perl.c.orig 2017-02-20 08:31:27 UTC
|
||||
+++ perl.c
|
||||
@@ -1870,23 +1870,7 @@ S_Internals_V(pTHX_ CV *cv)
|
||||
PUSHs(Perl_newSVpvn_flags(aTHX_ non_bincompat_options,
|
||||
sizeof(non_bincompat_options) - 1, SVs_TEMP));
|
||||
|
||||
-#ifndef PERL_BUILD_DATE
|
||||
-# ifdef __DATE__
|
||||
-# ifdef __TIME__
|
||||
-# define PERL_BUILD_DATE __DATE__ " " __TIME__
|
||||
-# else
|
||||
-# define PERL_BUILD_DATE __DATE__
|
||||
-# endif
|
||||
-# endif
|
||||
-#endif
|
||||
-
|
||||
-#ifdef PERL_BUILD_DATE
|
||||
- PUSHs(Perl_newSVpvn_flags(aTHX_
|
||||
- STR_WITH_LEN("Compiled at " PERL_BUILD_DATE),
|
||||
- SVs_TEMP));
|
||||
-#else
|
||||
PUSHs(&PL_sv_undef);
|
||||
-#endif
|
||||
|
||||
for (i = 1; i <= local_patch_count; i++) {
|
||||
/* This will be an undef, if PL_localpatches[i] is NULL. */
|
10
lang/perl5.26/files/patch-t_porting_customized.dat
Normal file
10
lang/perl5.26/files/patch-t_porting_customized.dat
Normal file
|
@ -0,0 +1,10 @@
|
|||
--- t/porting/customized.dat.orig 2017-03-19 18:51:10 UTC
|
||||
+++ t/porting/customized.dat
|
||||
@@ -1,6 +1,7 @@
|
||||
Digest cpan/Digest/Digest.pm 43f7f544cb11842b2f55c73e28930da50774e081
|
||||
Encode cpan/Encode/Unicode/Unicode.pm 9749692c67f7d69083034de9184a93f070ab4799
|
||||
ExtUtils::Constant cpan/ExtUtils-Constant/t/Constant.t a0369c919e216fb02767a637666bb4577ad79b02
|
||||
+ExtUtils::MakeMaker cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_Any.pm ac29a8dc1c7d6f0aca4abff0730c05bde1dab3ad
|
||||
File::Path cpan/File-Path/lib/File/Path.pm fd8ce4420a0c113d3f47dd3223859743655c1da8
|
||||
File::Path cpan/File-Path/t/Path_win32.t 94b9276557ce7f80b91f6fd9bfa7a0cd9bf9683e
|
||||
JSON::PP cpan/JSON-PP/bin/json_pp a7b8de6c201ef177ee82624ee4ca6a47cc1a3b4f
|
11
lang/perl5.26/files/patch-vutil.h
Normal file
11
lang/perl5.26/files/patch-vutil.h
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- vutil.h.orig 2015-04-15 07:47:18 UTC
|
||||
+++ vutil.h
|
||||
@@ -115,7 +115,7 @@ S_croak_xs_usage(pTHX_ const CV *const c
|
||||
Perl_croak_nocontext("Usage: %s(%s)", gvname, params);
|
||||
} else {
|
||||
/* Pants. I don't think that it should be possible to get here. */
|
||||
- Perl_croak_nocontext("Usage: CODE(0x%"UVxf")(%s)", PTR2UV(cv), params);
|
||||
+ Perl_croak_nocontext("Usage: CODE(0x%" UVxf ")(%s)", PTR2UV(cv), params);
|
||||
}
|
||||
}
|
||||
|
2
lang/perl5.26/files/perl-man.conf.in
Normal file
2
lang/perl5.26/files/perl-man.conf.in
Normal file
|
@ -0,0 +1,2 @@
|
|||
MANPATH %%PREFIX%%/%%SITEMANPREFIX%%/man
|
||||
MANPATH %%PREFIX%%/%%PERLMANPREFIX%%/man
|
6
lang/perl5.26/pkg-descr
Normal file
6
lang/perl5.26/pkg-descr
Normal file
|
@ -0,0 +1,6 @@
|
|||
Perl is a language that combines some of the features of C, sed, awk and
|
||||
shell. See the manual page for more hype. There are also many books
|
||||
published by O'Reilly & Assoc. See pod/perlbook.pod for more
|
||||
information.
|
||||
|
||||
WWW: http://www.perl.org/
|
11
lang/perl5.26/pkg-message
Normal file
11
lang/perl5.26/pkg-message
Normal file
|
@ -0,0 +1,11 @@
|
|||
The /usr/bin/perl symlink has been removed starting with Perl 5.20.
|
||||
For shebangs, you should either use:
|
||||
|
||||
#!/usr/local/bin/perl
|
||||
|
||||
or
|
||||
|
||||
#!/usr/bin/env perl
|
||||
|
||||
The first one will only work if you have a /usr/local/bin/perl,
|
||||
the second will work as long as perl is in PATH.
|
2402
lang/perl5.26/pkg-plist
Normal file
2402
lang/perl5.26/pkg-plist
Normal file
File diff suppressed because it is too large
Load diff
2
lang/perl5.26/version.mk
Normal file
2
lang/perl5.26/version.mk
Normal file
|
@ -0,0 +1,2 @@
|
|||
PERL_VERSION= 5.26.0
|
||||
PERL5_DEPEND= perl5>=5.26<5.27
|
Loading…
Reference in a new issue