Commit graph

441 commits

Author SHA1 Message Date
seb
d0c027c879 Update perl from version 5.10.0nb6 to version 5.10.1.
Pkgsrc changes:
- Adjust some patches
- Remove patches integrated upstream

Upstream changes:
"5.10.1 is a maintenance release for perl 5.10, incorporating various
minor bugfixes and optimisations."

Nonetheless some incompatibles changes are noteworthy and are related
to:
- flip-flop and defined-or operators behavior in switch statement
- type-based dispatch and overloading of the smart match operator
- 'use feature :5.10*' semantics
- Perl development switched to git
- internal structure of the ext/ perl source directory changed
- removal of the modules Test::Harness::Straps, ExtUtils::MakeMaker::bytes
and ExtUtils::MakeMaker::vmsish
- the Module::CoreList module no longer contains the %:patchlevel hash
- a bugfix related to the handling of the /m modifier and qr resulted
in a change of behaviour between 5.8.x and 5.10.0 (this was missing from
perl 5.10.0 perldelta).

For a complete list of changes see included perl5101delta(1) or
http://perldoc.perl.org/perl5101delta.html
2009-12-14 06:36:56 +00:00
tnn
e0499476e6 Drop MAKE_JOBS_SAFE=no. Was updated a while back; MAKE_JOBS=16 works. 2009-10-23 18:41:02 +00:00
hasso
5e69bd345d Fix thread library detection on DragonFly. From corecode via PR 42170. 2009-10-13 10:38:31 +00:00
schmonz
1ba887a821 Patch (from latest PathTools) to fix build failure on systems where
$HOME's parent directory isn't readable by an unprivileged user.
Tested on Linux with unprivileged pkgsrc (DreamHost, where the
problem was encountered) and on Mac OS X with a more typical setup.
2009-07-24 04:58:56 +00:00
sno
d5b70c5e50 adjust PERL5_LICENSE - enable both valid licenses 2009-07-17 06:44:46 +00:00
sno
bb514fcbac allow dependent modules check build options of perl5 2009-07-17 06:43:27 +00:00
wiz
29e7aed4dd Remove @unexec ${RMDIR} generating code that is now unnecessary with latest
pkg_install.
2009-06-18 05:30:24 +00:00
sno
e0001d2f8d Adding patch to allow nearly all CPAN modules can use the license of
installed perl
2009-06-11 10:35:07 +00:00
sno
eb321fc56c - enabling some tuning options to control 64-bit usage of built perl
- add support for Module::Install

Oked by joerg@
2009-06-11 10:32:29 +00:00
wiz
60f460ab01 Use standard location for LICENSE line (in MAINTAINER/HOMEPAGE/COMMENT
block). Uncomment some commented out LICENSE lines while here.
2009-05-19 08:59:00 +00:00
rillig
79a38fed91 cleanup: replaced _PKG_SILENT and _PKG_DEBUG with RUN. 2009-05-16 07:22:01 +00:00
sno
34fa524bc8 Adding patch from perl-5.10.1 upstream to fix "Unkown error bug" described
in http://rt.perl.org/rt3/Public/Bug/Display.html?id=49472

Bumping PKGREVISION
2009-05-02 19:23:44 +00:00
sno
4aa7df3e4d Apply a patch to fix the broken build reported in PR pkg/41240 2009-05-02 18:42:32 +00:00
sno
19003a0cb9 Fix PR pkg/40944 by using the Module::Build from Perl's Core as default.
Oked by tron@ and he@
2009-03-21 23:11:29 +00:00
joerg
2d1ba244e9 Simply and speed up buildlink3.mk files and processing.
This changes the buildlink3.mk files to use an include guard for the
recursive include. The use of BUILDLINK_DEPTH, BUILDLINK_DEPENDS,
BUILDLINK_PACKAGES and BUILDLINK_ORDER is handled by a single new
variable BUILDLINK_TREE. Each buildlink3.mk file adds a pair of
enter/exit marker, which can be used to reconstruct the tree and
to determine first level includes. Avoiding := for large variables
(BUILDLINK_ORDER) speeds up parse time as += has linear complexity.
The include guard reduces system time by avoiding reading files over and
over again. For complex packages this reduces both %user and %sys time to
half of the former time.
2009-03-20 19:23:50 +00:00
joerg
bb9d74ab50 Add missing \ in multiline variable assignments. Only affects AIX. 2009-02-11 15:46:28 +00:00
wiz
508598e894 Add RCS Id. 2009-01-29 10:13:05 +00:00
joerg
5ead77f7b3 Fix patch. 2009-01-29 09:41:00 +00:00
tnn
510d3ca5f9 merge upstream commit b376053de54af4268a31e5a60d1f9e57db30af11:
[perl #49003] pp_ftrread appears to use the wrong access mode for -x when
              using "use filetest 'access';"
Bump PKGREVISION. Noted by Leo R. Lundgren.
2009-01-18 11:10:50 +00:00
joerg
d0aaa12c24 Fix subst pattern to create parsable entry for XLC's cpp. 2008-12-27 15:49:31 +00:00
joerg
12cf24611d Further refine AIX support. 2008-12-21 14:02:59 +00:00
joerg
35471bc4bb Improve AIX support to the point that dynamic modules work. Bump
revision. In collaboration with Jens Rehsack.
2008-12-20 13:08:00 +00:00
tron
0c42027a9b Add fixes for CVE-2008-2827 and CVE-2008-5302 from CPAN respectively
Debian. While there also fix two check interpreter warnings.
2008-12-08 13:34:46 +00:00
schwarz
8943b09335 added fix for bug perl #57458 (relevant to FreeBSD 7.X) 2008-12-08 12:46:13 +00:00
joerg
0d00ac6963 Add rpath entries for XCOFF/AIX as well. Tested by Jens Rehsack. 2008-11-14 18:27:00 +00:00
rillig
ddfa59374a Fixed a memory leak in the qr operator. PKGREVISION++ 2008-10-21 22:46:49 +00:00
he
83670cd265 Add BUILDLINK_API_DEPENDS.perl+= perl<5.12.0 together with a comment
explaining that this should prevent a repeat of the current problem where
binary perl packages built for 5.8.8 can be installed together with
perl 5.10.0 without any warning/error.  By the perl numbering scheme,
perl 5.12.0 will be the next maintenance version which installs modules
in a different path than what's used for 5.10.0.

The contents of perl itself doesn't change as a result of this change,
so no revision bump, but a revision bump for all packages which depend
directly on perl is forthcoming, as a workaround for the 5.8.8 -> 5.10.0
transition.
2008-10-19 19:10:42 +00:00
he
72955e214b Remove some extraneous quoting which makes this package not build
on Linux under certain circumstances.  Does not change the contents
of the package for other platforms, so no revision bump.
2008-10-19 19:04:57 +00:00
he
1427a98994 Adjust PERL5_REQD from 5.8.7 to 5.10.0, so as to prevent attempts
at using p5-* packages built with the new perl from being installed
together with an older version of perl.  The p5-* packages will not
work because the new and old perls install modules in different
directories.  As a consequence, bump package revision.
2008-10-16 18:27:13 +00:00
tron
5aebb6f97d Remove patch that tries to create "hints/dragonfly.sh" which is now part
of the distribution. This fixes build problems on platforms which use
GNU patch (e.g. Mac OS X).
2008-10-11 19:36:11 +00:00
seb
6bcc8c586e WRKDIR's basename can be anything hence be a bit more generic
while removing workdir reference in "lib/Config_heavy.pl"
2008-10-11 08:59:48 +00:00
he
5c9d47f22a Update perl5 from version 5.8.8nb8 to 5.10.0.
A large number of packages have had their internal regression tests
run successfully with this update, including mod_perl for Apache.


Pkgsrc changes: a number of our local patches are no longer needed.

Upstream changes from version 5.8.8:

  # Core Enhancements

    * The feature pragma
    * New -E command-line switch
    * Defined-or operator
    * Switch and Smart Match operator
    * Regular expressions
    * say()
    * Lexical $_
    * The _ prototype
    * UNITCHECK blocks
    * New Pragma, mro
    * readdir() may return a "short filename" on Windows
    * readpipe() is now overridable
    * Default argument for readline()
    * state() variables
    * Stacked filetest operators
    * UNIVERSAL::DOES()
    * Formats
    * Byte-order modifiers for pack() and unpack()
    * no VERSION
    * chdir, chmod and chown on filehandles
    * OS groups
    * Recursive sort subs
    * Exceptions in constant folding
    * Source filters in @INC
    * New internal variables
    * Miscellaneous
    * UCD 5.0.0
    * MAD
    * kill() on Windows

  # Incompatible Changes

    * Packing and UTF-8 strings
    * Byte/character count feature in unpack()
    * The $* and $# variables have been removed
    * substr() lvalues are no longer fixed-length
    * Parsing of -f _
    * :unique
    * Effect of pragmas in eval
    * chdir FOO
    * Handling of .pmc files
    * $^V is now a version object instead of a v-string
    * @- and @+ in patterns
    * $AUTOLOAD can now be tainted
    * Tainting and printf
    * undef and signal handlers
    * strictures and dereferencing in defined()
    * (?p{}) has been removed
    * Pseudo-hashes have been removed
    * Removal of the bytecode compiler and of perlcc
    * Removal of the JPL
    * Recursive inheritance detected earlier

  # Modules and Pragmata

    * Upgrading individual core modules
    * Pragmata Changes
    * New modules
    * Selected Changes to Core Modules

  # Utility Changes
  # New Documentation
  # Performance Enhancements

    * In-place sorting
    * Lexical array access
    * XS-assisted SWASHGET
    * Constant subroutines
    * PERL_DONT_CREATE_GVSV
    * Weak references are cheaper
    * sort() enhancements
    * Memory optimisations
    * UTF-8 cache optimisation
    * Sloppy stat on Windows
    * Regular expressions optimisations

  # Installation and Configuration Improvements

    * Configuration improvements
    * Compilation improvements
    * Installation improvements
    * New Or Improved Platforms

  # Selected Bug Fixes
  # New or Changed Diagnostics
  # Changed Internals

    * Reordering of SVt_* constants
    * Elimination of SVt_PVBM
    * New type SVt_BIND
    * Removal of CPP symbols
    * Less space is used by ops
    * New parser
    * Use of const
    * Mathoms
    * AvFLAGS has been removed
    * av_* changes
    * $^H and %^H
    * B:: modules inheritance changed
    * Anonymous hash and array constructors

  ...

See 'perldoc perldelta' or http://perldoc.perl.org/perldelta.html
for explanation of each of these points.
2008-10-10 21:58:43 +00:00
ahoka
343d3b6580 Don't try to use objformat on FreeBSD 7.0 and newer. 2008-07-30 23:07:52 +00:00
he
4a2152fa65 Apply a patch from Debian to fix the security vulnerability identified
by http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-1927.

Patch fetched from
http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=26;filename=27_fix_regcomp_utf8;att=1;bug=454792
which, according to comments, is from upstream change 27688.

Revision bumped to nb8.
2008-06-01 22:04:07 +00:00
wiz
e8062cdd4e Add missing single quote. Fixes build on -current. 2008-04-28 22:24:22 +00:00
tnn
bc4d9b2fea Don't pass ABI flags on IRIX, compiler.mk already handles this through
_WRAP_EXTRA_ARGS.
2008-02-19 19:28:39 +00:00
tnn
938185d649 A nasty side effect of using TOOLS_SED here is that perl will try to
outsmart us and call the tool by name in some parts of the build.
eg just "nbsed" instead of "/usr/pkg/bin/nbsed". This can only have
worked before as long as ${PREFIX}/bin was in the user's path.
Fix this by TOOLS_ALIASES.sed+=${TOOLS_SED:T} so that an "nbsed"
is available in the PATH.
2008-02-09 13:58:46 +00:00
tnn
8878d87b25 Rewrote vars.mk so that perl is only invoked once, as opposed to once
per value to fetch.
2008-01-29 16:41:36 +00:00
joerg
fcb48c5b42 Appease pkglint^Wrillig and add a note for patch-as. 2008-01-13 00:20:22 +00:00
joerg
29c756efc4 Fix build on newer Linux systems. 2008-01-12 15:12:39 +00:00
apb
a50179c5f5 bump PKGREVISION for previous change to patch-ah. 2008-01-08 16:43:31 +00:00
apb
71e9b52b3a NetBSD's /proc/${pid}/exe is sometimes a symlink to "/" instead of to the
actual program name, so Perl's $^X or $EXECUTABLE_NAME variable was wrong.
Change a test to detect this case, and fall back to using argv[0].
2008-01-08 15:19:38 +00:00
minskim
cbe7d044cb Set LIBSWANTED for Linux as suggested by jlam in PR 31088. 2007-12-22 21:03:31 +00:00
minskim
8e00045f53 Properly fix the problem that 1.40 addressed. PERL5_REQD should be
treated as a list.
2007-11-21 22:49:45 +00:00
joerg
3931e7859f Back out 1.37 as it breaks PERL5_REQD (e.g. show-depends in
mail/p5-Email-Send).
2007-11-21 21:50:43 +00:00
obache
048777e0e3 Need to include vars.mk for ${PERL5_SUB_INSTALLARCHLIB}. 2007-11-21 14:15:11 +00:00
minskim
24ad30c540 When buildlinking perl, set PERL5 to pkgsrc perl, not the one selected
by the tools framework.
2007-11-19 03:53:10 +00:00
minskim
4fd3a33d7e Bump PKGREVISION because of the mk/tools/perl.mk changes. There was
a window during which perllink didn't work properly on Darwin.
2007-11-19 00:49:29 +00:00
minskim
8cfdb52849 If perl is buildlinked, used perl in ${BUILDLINK_PREFIX.perl} and
do not rely on the tools framework.
2007-11-18 21:44:56 +00:00
adrianp
824183de3d For the moment disable the building of a shared libperl.dylib on Darwin
=> 9.0 as it breaks the build.  This should just be considered a temporary
work around until the actual problem can be fixed as this worked for
Darwin < 9.0.

There are no changes to perl on any other platforms.

This should address PR# 37225
2007-11-18 00:42:50 +00:00
martti
9afb20a137 Added commented-out LICENSE=something. 2007-11-11 11:35:48 +00:00
drochner
498b7582af add a patch from Redhat bugzilla #323571 to fix CVE-2007-5116:
A flaw was found in Perl's regular expression engine. Specially crafted
input to a regular expression can cause Perl to improperly allocate memory,
possibly resulting in arbitrary code running with the permissions of the
user running Perl.
2007-11-06 19:54:52 +00:00
rillig
43ba2d75f0 Don't assume any pre-installed perl5. This is necessary for pbulk builds
when Perl is installed in the "outer" pkgsrc. Otherwise, references to
the pbulk directory are stored in the binary package.
2007-09-06 16:31:38 +00:00
tnn
1b4e6adfd0 A subtle change introduced in gcc-4.2.x broke perl's makedepend script.
The name of the "standard input file" in the preprocessor was changed from
<command line> to <command-line>. Make makedepend recognize this.
2007-08-04 10:27:58 +00:00
heinz
3449f06ac1 Enable installation to DESTDIR for all packages based on Module::Build. 2007-05-26 12:46:20 +00:00
tnn
f19ab3d33a patch-cn: hpux: don't use absolute path to ld(1) 2007-04-21 15:32:15 +00:00
rillig
0faa35202e The error messages on AIX are weird, but maybe someone understands them. 2007-04-21 09:41:00 +00:00
dmcmahill
f6793deab5 Commit the patch from PR pkg/35319 which should fix perl compilation on
newer versions (11) of solaris.  Verified that the 'bmake test' output
is unchanged on 32-bit solaris-2.9/sparc.
2007-02-06 19:12:09 +00:00
rillig
c6036da639 This package is not MAKE_JOBS_SAFE. 2007-01-19 14:59:06 +00:00
rillig
80770fe7e6 Oops, forgot to add a default value for PERL5_USE_PACKLIST and to test
the change at all.
2007-01-15 05:36:04 +00:00
rillig
e50e8ac3cf 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.
2007-01-15 05:32:04 +00:00
rillig
02c39c55d6 ABI is usually undefined, so a defined() check is needed. 2007-01-08 07:13:54 +00:00
joerg
5e43280b23 Replace mk/bsd.prefs.mk includes with bsd.fast.prefs.mk includes.
The redundant parsing of bsd.prefs.mk is mostly avoided now and
parse time e.g. for x11/kdebase3 gets reduced by up to 10%.
2006-12-12 21:52:34 +00:00
joerg
d5a346e1ba 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.
2006-11-03 10:48:05 +00:00
joerg
f0f238c0cf 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.
2006-11-03 07:09:45 +00:00
ben
9af81a7cb2 Remove extraneous interix change from patch-cb.
Perhaps this change was accepted upstream, and not yet removed from pkgsrc.
2006-10-08 17:48:30 +00:00
rillig
bc85a438af PERL5_CONFIGURE_DIRS may now contain directory names relative to
${WRKSRC}. This saves some keystrokes when writing Makefiles.
2006-10-04 22:24:49 +00:00
rillig
a3de4e93a9 Only do the build and test actions when NO_BUILD does not prevent them. 2006-10-04 21:31:34 +00:00
rillig
47f5af86d0 Added a debugging option to the package (disabled by default). 2006-10-01 14:48:39 +00:00
tron
79acc7c0cb Remove changes added by Perl's configure script. Problem pointed out
by Thomas Klausner.
2006-08-08 15:36:00 +00:00
tron
ed199a1141 Make this build under NetBSD 4.x. 2006-08-08 15:27:36 +00:00
jlam
ded09b6f3d Consistently use $perlprog to refer to the perl executable in the
perllink script.  This was causing errors when building perl from
pkgsrc.  The perllink script didn't create any symlinks because it
tried to invoke "perl", which silently fails with revision 1.20 of
mk/tools/perl.mk (after the pkgsrc-2006Q2 branch).

Bump the PKGREVISION to 3.
2006-07-19 18:10:32 +00:00
jlam
c16221a4db Change the format of BUILDLINK_ORDER to contain depth information as well,
and add a new helper target and script, "show-buildlink3", that outputs
a listing of the buildlink3.mk files included as well as the depth at
which they are included.

For example, "make show-buildlink3" in fonts/Xft2 displays:

	zlib
	fontconfig
	    iconv
	    zlib
	    freetype2
	    expat
	freetype2
	Xrender
	    renderproto
2006-07-08 23:10:35 +00:00
jlam
9430e49307 Track information in a new variable BUILDLINK_ORDER that informs us
of the order in which buildlink3.mk files are (recursively) included
by a package Makefile.
2006-07-08 22:38:58 +00:00
rillig
853dc340f9 Added a patch for t/io/fs.t, which handles filesystems that are mounted
with the "noatime" option on NetBSD.
2006-07-02 20:35:53 +00:00
jlam
e811379bc2 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.
2006-06-15 22:13:58 +00:00
rillig
4a96d61132 Fixed pkglint warnings. 2006-06-09 08:50:24 +00:00
rillig
560fc65286 bsd.prefs.mk only needs to be included once. 2006-06-09 08:38:53 +00:00
jlam
dc6d990317 GCC versions prior to 3.4 have a bug handling the "unused" attribute
in declarations when compiling C++ code.  Patch the perl.h and XSUB.h
headers to avoid using this attribute if using GCC<3.4 and building
C++ modules.  This fixes PR pkg/33403 by OBATA Akio.

Bump PKGREVISION to 2.
2006-05-06 12:32:20 +00:00
jlam
92f0b330ce Error out if the packlist isn't specified correctly, so we don't pretend
to have a working PLIST and a successful installation.
2006-05-02 02:28:24 +00:00
jlam
202af48c33 Put any compiled binaries into vendor- and site-specific locations to
avoid conflicts with each other.  We let the perllink script handle all
the appropriate symlinking.  Bump PKGREVISION to 1.
2006-04-11 22:51:23 +00:00
jlam
87cd0b8d86 Ensure that perl uses /bin/sh (or the appropriate functional equivalent)
for executing shell commands.  Fix from PR pkg/32812 by Anne Bennett.
2006-04-09 07:11:13 +00:00
jlam
a3aa1c0d3c 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.
2006-04-09 06:34:32 +00:00
reed
5abef9be14 Over 1200 files touched but no revisions bumped :)
RECOMMENDED is removed. It becomes ABI_DEPENDS.

BUILDLINK_RECOMMENDED.foo becomes BUILDLINK_ABI_DEPENDS.foo.

BUILDLINK_DEPENDS.foo becomes BUILDLINK_API_DEPENDS.foo.

BUILDLINK_DEPENDS does not change.

IGNORE_RECOMMENDED (which defaulted to "no") becomes USE_ABI_DEPENDS
which defaults to "yes".

Added to obsolete.mk checking for IGNORE_RECOMMENDED.

I did not manually go through and fix any aesthetic tab/spacing issues.

I have tested the above patch on DragonFly building and packaging
subversion and pkglint and their many dependencies.

I have also tested USE_ABI_DEPENDS=no on my NetBSD workstation (where I
have used IGNORE_RECOMMENDED for a long time). I have been an active user
of IGNORE_RECOMMENDED since it was available.

As suggested, I removed the documentation sentences suggesting bumping for
"security" issues.

As discussed on tech-pkg.

I will commit to revbump, pkglint, pkg_install, createbuildlink separately.

Note that if you use wip, it will fail!  I will commit to pkgsrc-wip
later (within day).
2006-04-06 06:21:32 +00:00
jlam
daad0f3d6c 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.
2006-03-14 01:14:26 +00:00
itohy
7bda48e229 Make perl5 modules build with pthread library from pkgsrc. 2006-03-09 11:10:47 +00:00
joerg
85221dcdda Use SUBST framework instead of FILES_SUBST_SED. 2006-01-19 02:09:09 +00:00
jlam
0ad8d38951 Restore binary compatibility with previous versions of perl-5.8.x that
were lost in PKGREVISION nb7.  We do this by avoiding inspecting the
value of ${WRKSRC} within the package Makefile and instead deferring
using ${WRKSRC} until we actually need the value (after extraction).
This is necessary because WRKSRC is defined in bsd.pkg.mk, which is
too late.

Bump the PKGREVISION to 8.
2006-01-15 07:40:30 +00:00
jlam
272ec6a7a1 Use the vendor-supplied set of fixes for the following security advisories:
CVE-2005-3916 - format string vulnerability in scripts using syslog()
    CVS-2005-3962 - format string vulnerability in Perl_sv_vcatpvfn()

Bump the PKGREVISION to 7.
2006-01-13 20:04:48 +00:00
jlam
b4f42ad08e Finish removing extraneous code only useful for snapshots missed in the
previous commit.
2006-01-13 19:15:11 +00:00
jlam
3290b09220 Remove snapshot and release-candidate code since they're outdated and are
no longer applicable to the current "stable" development branch.  Also,
fix the HOMEPAGE to point to perl.org instead of perl.com.
2006-01-13 16:48:11 +00:00
jlam
d12148e1c9 Ensure that the hints files are always writable before modifying them.
Fixes build problems on platforms without threads.
2005-12-30 23:16:33 +00:00
jlam
2927908735 Perl has no dependencies, so force patch the Configure script to make
library searches to start in the system directories instead of in the
pkgsrc-controlled directories.  This change is in the same spirit as
the one that caused the PKGREVISION bump to 6, but is more likely to
work on IRIX where plibpth needs to be set from the Configure script.
This time, we patch the Configure script instead of setting libpth in
the hints file because we depend on the values of variables which are
defined after the hints file is sourced by the Configure script.

XXX This breaks building perl on a platform that has native pthreads
XXX with PREFER_NATIVE_PTHREADS=no, but that's not really worthwhile
XXX to fix.
2005-12-29 17:54:45 +00:00
jlam
dc9594e09d 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.
2005-12-29 06:21:30 +00:00
jlam
0acd04a5f6 Tell the Configure script the correct LDFLAGS needed to link threaded
applications much sooner.  We do this by making every hints file create
a usethreads.cbu script that prepends the correct LDFLAGS to the
ldflags and lddlflags Perl variables.  This should fix PR pkg/31091,
which detailed a problem with building threaded perl on a platform
withat native pthreads that used GNU Pth as its pthread library.

While we're here, also fix some minor variable quoting issues.

Bump the PKGREVISION to 6.
2005-12-22 15:23:17 +00:00
jlam
f4cc8975af Fix for Perl format string vulnerability noted in CVE-2005-3962:
perl suffers from an integer wrap overflow inside the explicit
    parameter format string functionality. This has been confirmed to
    be a vector for remote code execution.

Bump PKGREVISION to 5.
2005-12-18 15:25:29 +00:00
jlam
2558c0291d Change my MAINTAINER email address to the one I've been using for
pkgsrc work.
2005-12-17 05:20:21 +00:00
rillig
579e977969 Ran "pkglint --autofix", which corrected some of the quoting issues in
CONFIGURE_ARGS.
2005-12-05 23:55:01 +00:00
rillig
b71a1d488b Fixed pkglint warnings. The warnings are mostly quoting issues, for
example MAKE_ENV+=FOO=${BAR} is changed to MAKE_ENV+=FOO=${BAR:Q}. Some
other changes are outlined in

    http://mail-index.netbsd.org/tech-pkg/2005/12/02/0034.html
2005-12-05 20:49:47 +00:00
jlam
6300e91e28 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.
2005-10-19 05:01:52 +00:00
jlam
cd4158806c 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.
2005-10-19 04:40:23 +00:00
joerg
07dbbd3e81 Bump revision since the linking changed on DragonFly. Suggested by
jlam@.
2005-10-10 17:33:15 +00:00
joerg
2e1ac9954c Nuke last chunk of patch, it got appended by configure. 2005-10-10 17:11:32 +00:00
joerg
3fa24ec5b9 Just use -pthread on DragonFly for thread linkage. 2005-10-10 17:07:36 +00:00
wiz
5c11268df7 Remove some more *LEGACY* settings that are over a month old and
thus were before 2005Q3.
2005-10-05 13:29:49 +00:00
reed
5f24b12922 Set LIBSWANTED and SYSLIBPATH for DragonFly.
Tests that failed are:

../ext/POSIX/t/posix.t

not ok 3 -     read to array element # TODO read to array element not working
# Failed at /home/reed/pkgsrc/lang/perl5/work/perl-5.8.7/ext/POSIX/t/posix.t lin
e 40
#      got undef
# expected 'perl
# '

not ok 11 - masked SIGINT received
2005-08-22 17:40:20 +00:00
jlam
f289925989 Remove the empty $sitearch directory even if it's outside of ${PREFIX} --
the perl installation will always create it and it's surprising when
it suddenly appears on your filesystem.
2005-08-18 17:26:48 +00:00
jlam
ced1a72013 Restore perllocal.pod-generating behavior of ExtUtils::MakeMaker
because some Perl modules make some (bad) assumptions about the
structure of a MakeMaker-generated Makefile.  Instead, remove the
perllocal.pod file whenever a p5-* module or perl itself is removed.

While here, rename some of the install/deinstall templates to more
descriptive names.

Bump the PKGREVISION to 3.
2005-08-12 19:59:03 +00:00
jlam
d2d692d4e6 Alter the configuration so that:
$(prefix) == $(siteprefix) == $(vendorprefix)

so that if a perl module is configured with "perl Makefile.PL PREFIX=...",
then that single PREFIX definition will override all three of the
above, and files will be properly installed into the correct relative
path.  Also, patch a test so that it understands the different behavior
of the pkgsrc ExtUtils::MakeMaker module.  Bump the PKGREVISION to 2.
2005-08-08 16:39:58 +00:00
jlam
0680c23678 Fix an error in ExtUtils::MakeMaker that didn't output the definitions
for INSTALLSITESCRIPT and INSTALLVENDORSCRIPT in MakeMaker-generated
Makefiles.  Bump the PKGREVISION to 1.
2005-08-07 21:47:24 +00:00
jlam
c3f904e0b4 Remove redundant patch. 2005-08-07 00:29:47 +00:00
jlam
86f9268481 Update lang/perl5 to 5.8.7. Changes from version 5.8.6 include updates
for many "core" modules, UTF-8 and Unicode bugfixes, and ithreads
bugfixes.

The major changes are in the pkgsrc infrastructure to handle Perl and
Perl modules.  All pkgsrc-installed Perl modules are now installed in
"vendor" directories, and the perl interpreter has been modifed to
search for libraries in the following order: site, vendor, perl.  The
Perl library is stored in a directory that is named for the Perl ABI
version associated with the Perl release, so any updates of Perl to
newer versions can be done "in-place" as long as Perl ABI version
remains the same.  All Perl scripts and man pages are stored in
locations that won't conflict between site, vendor, and perl modules,
and a new utility perllink(1) now manages symlinks to those scripts
and man pages under the usual ${LOCALBASE}/bin and ${LOCALBASE}/man/man1.

PERL5_SITEPREFIX may be set to the prefix where local, site-specific
modules will be installed, e.g. PERL5_SITEPREFIX=/usr/local.  Note
that modules installed here are completely unmanaged by pkgsrc.

Update the buildlink and tool dependencies on perl to require perl>=5.8.7
to reflect the new locations for Perl modules and the Perl shared
library.
2005-08-06 06:18:44 +00:00
jlam
3e474a90d8 Get rid of USE_PERL5. The new way to express needing the Perl executable
around at either build-time or at run-time is:

	USE_TOOLS+=	perl		# build-time
	USE_TOOLS+=	perl:run	# run-time

Also remove some places where perl5/buildlink3.mk was being included
by a package Makefile, but all that the package wanted was the Perl
executable.
2005-07-16 01:19:06 +00:00
jlam
e26a9ed756 Drop support for TOOLS_DEPMETHOD.<tool>. The new way to specify a
run-time dependency (DEPENDS) on a tool is to append a ":run" modifier
to the tool name, e.g.,

	USE_TOOLS+=	perl:run

Tools without modifiers or with an explicit ":build" modifier will
cause build dependencies (BUILD_DEPENDS) on those tools to be added.
This makes the notation a bit more compact.
2005-07-15 20:14:02 +00:00
jlam
7a6521287b Turn PERL5_PACKLIST into a relative path instead of an absolute path.
These paths are now relative to PERL5_PACKLIST_DIR, which currently
defaults to ${PERL5_SITEARCH}.  There is no change to the binary
packages.
2005-07-13 18:01:18 +00:00
jschauma
8fcc13103d sort out 32- and 64bit flags for IRIX 2005-07-13 15:20:29 +00:00
minskim
5a81300c39 Use "test -h", instead of "test", to test symlinks. This should have
been committed with the previous change.  Noted by jlam@.

Bump PKGREVISION.
2005-06-30 17:24:49 +00:00
minskim
4b5081ec4d Make sure that the path to "test" in ${TOOLS_DIR} is not embedded in
Config.pm.  Bump PKGREVISION.
2005-06-30 13:07:39 +00:00
jlam
c2fb31ba79 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.
2005-06-24 06:43:43 +00:00
jlam
c031213a0a Quoting fix. 2005-05-27 22:15:53 +00:00
jlam
df940ef30d .undef is unnecessary since the temporary variable used in the for loop
goes away by itself.
2005-05-27 22:15:34 +00:00
wiz
0ecd8e6abf Add RMD160 checksum. 2005-05-25 12:37:37 +00:00
jlam
9f94b112f0 Remove the old tools framework and references to _USE_NEW_TOOLS. 2005-05-22 19:11:12 +00:00
jlam
5a4310c9a2 Move the PLIST_SUBST lines that substitute for PERL5_* variables from
perl5/module.mk into tools/perl.mk so that the substitution occurs for
all packages that use perl.
2005-05-20 03:00:16 +00:00
jlam
5e50c57ea0 Split the conditional which seems to occasionally be malformed. This
probably has something to do with how make deals with short-circuit
evaluation of conditionals, but it's a simple matter to split the
conditional since USE_PERL5 is eventually going away.
2005-05-19 05:01:47 +00:00
jlam
c51012ebef When perl5/buildlink3.mk is included by a package Makefile, the buildlink
framework will handle adding the correct dependency.
2005-05-19 03:09:52 +00:00
jlam
d6f6120540 Goal: Remove USE_PERL5 from pkgsrc.
Plan:
	(1) Change USE_PERL5=build into USE_TOOLS+=perl.
	(2) Change all other USE_PERL5 into including perl5/buildlink3.mk.

Possibly, for packages that don't actually build anything with perl,
but merely require it for the perl interpreter, we can instead do:

	USE_TOOLS+=		perl
	TOOLS_DEPMETHOD.perl=	DEPENDS

but this is more verbose than simply including the perl5/buildlink3.mk
file.

Move the PERL5_REQD computation into a lang/perl5/version.mk file,
and only do the USE_PERL5 logic in bsd.pkg.use.mk if we're not using
the new tools framework.  This consolidates all of the perl-handling
into two places -- lang/perl5 and mk/tools/perl.mk.
2005-05-18 22:42:07 +00:00
jlam
a5cd03b385 We don't need to check for whether the variables are defined before
using them, as these values are referenced till later when the variables
will definitely have the correct value.  This removes the need to
include vars.mk here.
2005-05-12 21:01:16 +00:00
jlam
500efa9480 Allow vars.mk to be included multiple times. We avoid excessive
computation by caching the variables using MAKEVARS.
2005-05-12 20:59:29 +00:00
tv
f816d81489 Remove USE_BUILDLINK3 and NO_BUILDLINK; these are no longer used. 2005-04-11 21:44:48 +00:00
heinz
a80c501c1e BUILDING_PERL5 is _always_ defined now, so test for a specific value.
This fixes (at least) the build of mail/p5-razor-agents on NetBSD 1.6.2.
Ok'ed by jlam.
2005-04-01 22:37:44 +00:00
tv
1c339cbc89 Don't check USE_BUILDLINK3 any more. 2005-03-24 22:19:06 +00:00
jlam
45f42ddba8 Perl's Configure needs to be restricted from finding libraries that
we don't want it to find.  The usual buildlink techniques don't work
here since the Configure script uses a file existence test instead of
a linker test to see if the library exists.  For each operating system
that we support in pkgsrc, there should be corresponding
LIBSWANTED.${OPSYS} and SYSLIBPATH.${OPSYS} definitions in the Perl
package Makefiles to ensure we only get what we ask for.

In this particular case, add the appropriate definitions for OpenBSD
so that we don't pick up random libraries that may also be installed
on the system.
2005-03-24 02:33:08 +00:00
jlam
50c3906534 Forcibly set the locations for the version-specific directories.
Before, we were possibly using the values gleaned from a pre-existing
perl binary via perl5/vars.mk (pulled in by bsd.pkg.use.mk), which
would lead to the new perl using the pre-existing perl's version-specific
libraries.  Bump the PKGREVISION of lang/perl5 to 11 and lang/perl58
to 4.
2005-03-23 16:52:01 +00:00
jlam
73f10c0cf4 Enforce the values that PERL5_MODULE_TYPE can take. 2005-02-26 00:04:48 +00:00
wiz
9ed6b7d771 Depend on latest p5-Module-Build to get .packlist files. 2005-02-25 15:57:12 +00:00
jlam
cc44d0be98 * Teach devel/p5-Module-Build to write .packlists just like MakeMaker.pm
does.  This allows us to use dynamic PLISTs for Perl modules that are
  built using Module::Build.  Bump the PKGREVISION of p5-Module-Build
  to 1.

* Drop the use of PERL5_USES_MODULE_BUILD and introduce a new variable
  PERL5_MODULE_TYPE that is either "MakeMaker" or "Module::Build" that
  names the framework used to build/install the module.

* Split out the variables set in perl5/buildlink3.mk that are also used
  by perl5/module.mk into a new file perl5/vars.mk.  Move some PERL5_*
  variable definitions from pkgsrc/mk/bsd.pkg.use.mk into perl5/vars.mk.
  This just centralizes the common PERL5_* definitions into a single
  file location.

* Convert the known packages that use Module::Build to set
  PERL5_MODULE_TYPE and PERL5_PACKLIST:

	devel/p5-Class-Container
	devel/p5-Exception-Class
	devel/p5-Log-Dispatch
	devel/p5-Array-Compare
	textproc/p5-Pod-Coverage
	www/p5-Apache-Session-Wrapper
	www/p5-MasonX-Request-WithApacheSession
2005-02-24 22:38:41 +00:00
wiz
7077a89a60 Remove :Q that broke things, introduced in previous. 2005-02-23 10:42:07 +00:00
wiz
24ccacd771 Add basic Module::Build support; set PERL5_USES_MODULE_BUILD
for packages that want it.
2005-02-21 12:08:45 +00:00
jlam
192963838b Drop maintainership of perl-5.6.x. We should move pkgsrc to using
perl58 for everything, and remove this package altogether.
2005-01-03 03:37:08 +00:00
grant
4cf31e6533 actually bump PKGREVISION of perl58 and BUILDLINK_RECOMMENDED to address
PR pkg/28619. this should have been part of the PKGREVISION bump of p5-*.
2004-12-20 13:25:09 +00:00
grant
908e765695 since perl is now built with threads on most platforms, the perl archlib
module directory has changed (eg. "darwin-2level" vs.
"darwin-thread-multi-2level").

binary packages of perl modules need to be distinguishable between
being built against threaded perl and unthreaded perl, so bump the
PKGREVISION of all perl module packages and introduce
BUILDLINK_RECOMMENDED for perl as perl>=5.8.5nb5 so the correct
dependencies are registered and the binary packages are distinct.

addresses PR pkg/28619 from H. Todd Fujinaka.
2004-12-20 11:30:55 +00:00
jlam
48876679d9 Create a modifier PERL5_OPTIONS that specifies properties of the perl
installation needed when including perl5/buildlink3.mk.  The only
option currently supported is "threads", which implies that a perl
that supports threads is required.  The requirement is checked at
pre-install time using an INSTALL script template by both the package
build and the binary package.

Add PERL5_OPTIONS+=threads to both devel/p5-SDL and graphics/p5-GD
since those modules require a perl that supports threads.
2004-12-19 00:01:43 +00:00
wiz
8f84de9622 Remove duplicate "the" in comment. 2004-12-15 14:57:58 +00:00
kristerw
0d60aa9537 Change ALL_TARGET to BUILD_TARGET. 2004-12-12 03:02:36 +00:00
jlam
9518343102 Remove MIPSpro bits that added -n32 or -64 depending on the ABI; this
handling has been moved into mk/compiler/mipspro.mk.
2004-10-01 20:52:25 +00:00
jlam
ca70938428 Replace RPATH_FLAG with LINKER_RPATH_FLAG and COMPILER_RPATH_FLAG,
which are the full option names used to set rpath directives for the
linker and the compiler, respectively.  In places were we are invoking
the linker, use "${LINKER_RPATH_FLAG} <path>", where the space is
inserted in case the flag is a word, e.g. -rpath.  The default values
of *_RPATH_FLAG are set by the compiler/*.mk files, depending on the
compiler that you use.  They may be overridden on a ${OPSYS}-specific
basis by setting _OPSYS_LINKER_RPATH_FLAG and _OPSYS_COMPILER_RPATH_FLAG,
respectively.  Garbage-collect _OPSYS_RPATH_NAME and _COMPILER_LD_FLAG.
2004-08-27 06:29:06 +00:00
wiz
5a1ea1fb96 Remove references to buildlink2. 2004-07-06 22:51:34 +00:00
wiz
4237d54a34 Unused. 2004-07-06 22:41:15 +00:00
wiz
e693520bba Do not unset USE_GCC3, just complain if building
with GCC on AIX. Okayed by grant.
2004-07-03 14:13:06 +00:00