Up to [NetBSD + pkgsrc-wip] / pkgsrc / lang / perl5
Request diff between arbitrary revisions - Display revisions graphically
Keyword substitution: kv
Default branch: MAIN
Make the _PERL5_PACKLIST_MANPAGE_RE pattern match the _PLIST_REGEXP.man pattern.
Don't require "gawk". This is false positive reported by "pkglint".
Updating lang/perl5 from 5.12.1 to 5.12.1nb1 pkgsrc changes: - preparing for databases/p5-gdbm (using Makefile.common) - supporting external access to perl install dirs (dirs.mk) - fixing some errors/warnings from pkglint - adding conflict to packages of CPAN modules which are in Perl5 code on the one hand and are broken with perl-5.10+ Bumping PKGREVISION (dependencies changed, rebuild highly recommended). Recursive rebuild is not required.
Reviewed patch from pkg/42709 and apply it.
Remove @unexec ${RMDIR} generating code that is now unnecessary with latest
pkg_install.
cleanup: replaced _PKG_SILENT and _PKG_DEBUG with RUN.
Oops, forgot to add a default value for PERL5_USE_PACKLIST and to test the change at all.
Added a new variable PERL5_USE_PACKLIST that decides whether the Perl packlist is used to generate the pkgsrc PLIST. This is the case for most of the Perl modules, so the default value is "yes". Currently, there is no change in functionality. After some further testing, the default will be that a Perl module provides a packlist and needs to say if it doesn't.
Further improve packlist logic to handle DESTDIR for Perl modules as well. Perl itself is special as the DESTDIR does *not* end up in the packlist, but for normal modules it does.
DESTDIR support. Slightly refactor Perl build to avoid calling the newly build executable, either by using the same constants or by sourcing the config.sh script created by Configure. Don't create $installsitearch and don't attempt to remove $installvendorarch, the former is easy and the latter not needed.
Pluralize INSTALL_TEMPLATE and DEINSTALL_TEMPLATE variable names as per
the pkglint warning:
As {INSTALL,DEINSTALL}_TEMPLATE is modified using "+=", its name
should indicate plural.
This does make the variables a bit more suggestive of the fact that they
hold lists of values.
Fixed pkglint warnings.
Error out if the packlist isn't specified correctly, so we don't pretend to have a working PLIST and a successful installation.
Update lang/perl5 to 5.8.8. Changes from version 5.8.7 include:
* Updates of many standard Perl modules.
* Performance enhancements for loadable modules and memory usage.
* Fixed bug when running with "-w". Previously when running with
warnings enabled globally via "-w", selective disabling of specific
warning categories would actually turn off all warnings. This
is now fixed; now "no warnings 'io';" will only turn off warnings
in the "io" class. This bug fix may cause some programs to start
correctly issuing warnings.
* Perl 5.8.4 introduced a change so that assignments of "undef" to a
scalar, or of an empty list to an array or a hash, were optimised away.
As this could cause problems when "goto" jumps were involved, this
change has been backed out.
* Using the sprintf function with some formats could lead to a
buffer overflow in some specific cases. This has been fixed,
along with several other bugs, notably in bounds checking.
* Fixed bug in pkgsrc-installed perl-5.8.7 and all subsequent
PKGREVISIONs, where perl didn't look for site modules under
/usr/pkg/lib/perl5/site_perl, but only under
/usr/pkg/lib/perl5/site_perl/5.8.0, and similarly for the vendor
modules.
* Honor PKGMANDIR when installing man pages.
Modify the pkginstall framework so that it manages all aspects of
INSTALL/DEINSTALL script creation within pkgsrc.
If an INSTALL or DEINSTALL script is found in the package directory,
it is automatically used as a template for the pkginstall-generated
scripts. If instead, they should be used simply as the full scripts,
then the package Makefile should set INSTALL_SRC or DEINSTALL_SRC
explicitly, e.g.:
INSTALL_SRC= ${PKGDIR}/INSTALL
DEINSTALL_SRC= # emtpy
As part of the restructuring of the pkginstall framework internals,
we now *always* generate temporary INSTALL or DEINSTALL scripts. By
comparing these temporary scripts with minimal INSTALL/DEINSTALL
scripts formed from only the base templates, we determine whether or
not the INSTALL/DEINSTALL scripts are actually needed by the package
(see the generate-install-scripts target in bsd.pkginstall.mk).
In addition, more variables in the framework have been made private.
The *_EXTRA_TMPL variables have been renamed to *_TEMPLATE, which are
more sensible names given the very few exported variables in this
framework. The only public variables relating to the templates are:
INSTALL_SRC INSTALL_TEMPLATE
DEINSTALL_SRC DEINSTALL_TEMPLATE
HEADER_TEMPLATE
The packages in pkgsrc have been modified to reflect the changes in
the pkginstall framework.
Remove USE_PKGINSTALL from pkgsrc now that mk/install/pkginstall.mk automatically detects whether we want the pkginstall machinery to be used by the package Makefile.
Teach pkgsrc to modify the installed .packlist files so that if MANZ is "yes", then they list the compressed manpages. Implementation stolen from the PLIST MANZ-handling code in bsd.pkg.mk added by Stoned Elipot. This should fix pkg/31499.
Split out the packlist-handling code from modules.mk into a separate packlist.mk file, and replace the custom code in perl5/Makefile that duplicated the same packlist handling to just use the routines in packlist.mk.