Commit graph

101 commits

Author SHA1 Message Date
Tijl Coosemans
4c5b38d680 CONFIGURE_ARGS already contains CC="${CC}". Also add LD="${CC}" so the
same compiler is used for both compiling and linking.
2018-01-11 16:22:02 +00:00
Antoine Brodin
fe4b675693 Add back a line that shouldn't have been removed in r456375
Reported by:	pkg-fallout
2017-12-15 06:34:12 +00:00
Mathieu Arnold
5d0c42cb25 Remove forgotten old compat code.
Sponsored by:	Absolight
2017-12-14 22:29:33 +00:00
Rene Ladan
0cc37c2050 Remove lang/perl5.20 and unregister it, it expired in May 2017.
Submitted by:	rene
Reviewed by:	perl (sunpoet), portmgr (mat)
Differential Revision:	https://reviews.freebsd.org/D10983
2017-06-01 02:26:53 +00:00
Mathieu Arnold
f9d0b19b04 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
2017-05-31 09:02:11 +00:00
Mathieu Arnold
136c8d5995 Enable depending on Perl only during the test phase.
Sponsored by:	Absolight
2017-05-02 15:00:12 +00:00
Mathieu Arnold
8c0401d153 Silence the commands in USES=perl do-test target.
Sponsored by:	Absolight
2017-04-25 11:28:49 +00:00
Mathieu Arnold
5acf5e722c Fixup some more Perl build problems.
Sponsored by:	Absolight
2017-03-21 23:46:20 +00:00
Mathieu Arnold
246c825068 '.' has been removed from @INC in Perl 5.25.7 and it prevented many
ports from building starting in 5.25.10, add this hack here to make
those ports buildable again.

Sponsored by:	Absolight
2017-03-21 11:33:03 +00:00
Mathieu Arnold
de636b9df7 This is actually only for Module::Build, not the ::Tiny version.
Pointy hat:	mat
Sponsored by:	Absolight
2017-01-31 16:25:48 +00:00
Mathieu Arnold
a345c5cf11 Tell Module::Build to use LOCALBASE/bin/perl and not
LOCALBASE/bin/perl5.xx.y.

Add a QA check to test for it.

Sponsored by:	Absolight
2017-01-31 16:21:22 +00:00
Mathieu Arnold
4645dcd3e0 Indent perl5.mk's .if/.for properly.
Done with:	Tools/scripts/indent_make_if.pl
Sponsored by:	Absolight
2017-01-31 16:21:18 +00:00
Rene Ladan
5b8a302787 Drop support for Perl 5.18 (infrastructure part) 2016-12-31 16:50:58 +00:00
Mathieu Arnold
eabbfd75e3 ${RM} already has -f.
PR:		213570
Submitted by:	mat
Exp-run by:	antoine
Sponsored by:	Absolight
2016-10-21 12:51:40 +00:00
Mathieu Arnold
0761532ec5 Always include bsd.default-versions.mk in bsd.port.mk.
The variable defined in it are now always available after including
bsd.port.pre.mk.

PR:		210666
Submitted by:	mat
Exp-run by:	antoine
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D6933
2016-08-03 12:09:37 +00:00
Mathieu Arnold
06b6315ce1 Starting at ExtUtils::MakeMaker 7.06 and Perl 5.25.1, the base
README.pod is no longer manified into a README.3, as the README.pod is
installed and can be read with perldoc, remove the README.3 files that
may be generated.

With hat:	perl@
Sponsored by:	Absolight
2016-05-30 15:33:44 +00:00
Mathieu Arnold
f22b34a823 Introduce Perl 5.24 and update perl5-devel to v5.25.0-8-g51f69a2.
Changes:	https://metacpan.org/pod/release/RJBS/perl-5.24.0/pod/perldelta.pod
Changes:	https://github.com/Perl/perl5/compare/v5.24.0...v5.25.0-8-g51f69a2
Sponsored by:	Absolight
2016-05-09 12:50:38 +00:00
Bryan Drewery
f09aee47eb Allow overriding PERL and PERL5.
This is needed for cross-build support.
2016-05-04 19:50:21 +00:00
Mathieu Arnold
9097255acf Try to be more helpful to our users, and keep all the possible versions
close to their default value in Mk/bsd.default-versions.mk.

Sponsored by:	Absolight
2016-04-14 13:34:25 +00:00
Jan Beich
88360e4c12 Consistently prefer ${CONFIGURE_CMD} over ./${CONFIGURE_SCRIPT}
This also fixes SET_LATE_CONFIGURE_ARGS with custom CONFIGURE_CMD.

PR:		208294
Exp-run by:	antoine
Approved by:	portmgr (antoine), perl (mat)
Differential Revision:	https://reviews.freebsd.org/D4158
2016-04-13 10:36:15 +00:00
Baptiste Daroussin
421767bd88 Remove the now unneeded ${PORTSDIR} from dependency definition in
The infrastructure Makefiles

PR:		206569
Exp run by:	antoine
Differential Revision:	D5047
2016-03-27 01:23:25 +00:00
Rene Ladan
e603983d54 Remove lang/perl5.16 and the support bits in perl5.mk, it is no longer
supported and expired today.

Approved by:	portmgr (mat), perl (sunpoet)
Differential Revision:	https://reviews.freebsd.org/D4745
2015-12-31 21:06:14 +00:00
Bryan Drewery
ab43229f76 Fix partial tree checkouts with 'all-depends-list', 'make clean', etc, after
inclusion of the ports_env feature into that handling around r399791.

With hat:	portmgr
Reported by:	ian, lev
2015-11-09 18:52:19 +00:00
Bryan Drewery
ef91c74363 Avoid redundantly looking up perl version when looking up dependencies or in sub-makes.
With hat:	portmgr
2015-10-19 20:53:15 +00:00
Baptiste Daroussin
8cea2b0147 Readd PORTSDIR for now we will only start removing them after 2016Q1 is branched
This gives more time for tools to get updated, available in packages etc before
bothering users
2015-10-15 07:36:38 +00:00
Baptiste Daroussin
9b1ed98e60 Temporary readd ${PORTSDIR} to perl5 deps as somewhow they are triggering
an issue with sanify check in poudriere that needs to be fixed first

Reported by:	adamw
2015-10-14 20:44:34 +00:00
Baptiste Daroussin
869e1f27d0 Drop the necessity to add ${PORTSDIR} to dependency line
Modify make describe to automatically prepend ${PORTSDIR} if the path for the
port is not absolute

Checked with poudriere, portmaster, portupgrade

PR:		203685
Exp-run by:	antoine
Differential Revision:	https://reviews.freebsd.org/D3866
2015-10-14 16:49:35 +00:00
Dmitry Marakasov
70a6c7d89d - Fix compatibility with fmake
Approved by:	portmgr blanket
2015-10-07 18:45:28 +00:00
Dmitry Marakasov
9a33f6f65c Do not provide empty do-test target for perl5-using ports
perl5's do-test: target should only be enabled when USE_PERL5=configure
or USE_PERL5=modbuild* are used, otherwise it'll end up being empty
and will prevent other tests from running.

Remove NO_PERL5_TEST as it isn't really needed after this fix.

Approved by:	mat, sunpoet
Differential Revision:	D3830
2015-10-07 16:19:43 +00:00
Sunpoet Po-Chuan Hsieh
d1781c2e30 - Add NO_PERL5_TEST: allow ports with USES=perl5 to run default do-test: defined in bsd.port.mk
- Fix comment
2015-10-03 17:06:52 +00:00
Dmitry Marakasov
5c57225987 Implemented complete support for test target.
You can now `make test' on any port to run test sequence, no-op by default.
If a port defines TEST_TARGET, it'll run sub-make with specified target,
usually `check' or `test', useful if upstream supports that. The port may
instead define custom do-test target, as well as usual satellite targets:

  {pre,do,post}-test, {pre,do,post}-test-OPT, {pre,do,post}-test-OPT-off

`make test' builds and stages port first, so test may use both WRKDIR and
STAGEDIR, and both BUILD and RUN depends are available for test target.
Additionally, TEST_DEPENDS is now properly supported and may be used to
define additional depends specifically for testing.

Framework may define default tests for specific cases. For instance,
perl5.mk and cran.mk already provide default test target on their own.

This commit also converts my ports which have tests to this new framework.

Approved by:	portmgr (bapt)
Differential Revision:	D3680
2015-09-28 17:20:42 +00:00
Mathieu Arnold
afae652a2a Make it so that the default Perl is always called perl5.
- Move Perl's man1 files along with its man3 files.
- Move where Perl installs its modules man1 pages.
- Convert the ports installing man1 pages.
- Make different Perl versions installable at the same time.
  Though you should note that only the default version can be used to
  install Perl modules, and the non default Perl versions cannot use the
  modules installed via ports if they contain .so as they are installed
  in a version specific directory.

Reviewed by:	bapt (the Mk bits)
Exp-run by:	antoine
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D3542
2015-09-14 12:19:48 +00:00
Mathieu Arnold
398dca09df To ease up with future upgrades, move PERL_VERSION into a separate file.
While there, remove 8.4 support, and do some cleanup.

Sponsored by:	Absolight
2015-08-31 13:17:48 +00:00
Mathieu Arnold
1118f8ad40 Bump perl5-devel's PERL_VERSION.
Pointy hat to:	mat
Sponsored by:	Absolight
2015-08-24 14:37:18 +00:00
Mathieu Arnold
e8796ef612 Rewrite the target ordering code.
The targets now have priority assigned to them, and, when the dependency
ordering magic is done at the end of bsd.port.mk, they are sorted
according to their priority.

This allows USES to add targets easily and have them run whenever they
want without touching bsd.port.mk.

To add a target that runs just before post-configure run, do:

_USES_configure+=  695:my-post-configure
my-post-configure:
	do something

To fine tune when the target is ran, look at the values in the *_SEQ
variables at the end of bsd.port.mk, and the other USES.

Allow ports Makefiles to override the priority of targets with the
TARGET_ORDER_OVERRIDE variable.  For example, to get post-install
running earlier, (its default is 700) do:

TARGET_ORDER_OVERRIDE=	  650:post-install

While there, add options target helpers for the do-* targets when they
exist.

Reviewed by:	antoine, bapt
Exp-run by:	antoine
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D3099
2015-08-17 13:31:25 +00:00
Mathieu Arnold
8e790fd161 Bump here too.
Sponsored by:	Absolight
2015-07-27 19:32:06 +00:00
Sunpoet Po-Chuan Hsieh
06278b0580 - Fix regression-test: TEST_ARGS and TEST_ENV should be overwritable 2015-07-06 17:48:04 +00:00
Mathieu Arnold
889d0db079 Forgotten bit from r390291.
Sponsored by:	Absolight
2015-06-22 13:44:52 +00:00
Mathieu Arnold
b4101d50a0 Update lang/perl5.22 to 5.22.0, and lang/perl5-devel to 5.23.0-ish.
Sponsored by:	Absolight
2015-06-01 18:55:45 +00:00
Mathieu Arnold
ec940a12b6 Welcome lang/perl5.22 to te tree, currently at 5.22.0-RC2
Changes:	https://metacpan.org/pod/release/RJBS/perl-5.22.0-RC2/pod/perldelta.pod
Sponsored by:	Absolight
2015-05-26 14:44:06 +00:00
Mathieu Arnold
14e7f7aba9 Update to v5.22.0-RC2-1-gdfd03a6.
Cleanup a bit the PKGNAMESUFFIX calculation.
Also force the PERL_PORT variable for the -devel one, in case there is more
than one with the same version.

Changes:	https://github.com/Perl/perl5/compare/v5.22.0-RC1...v5.22.0-RC2-1-gdfd03a6
Sponsored by:	Absolight
2015-05-26 12:10:11 +00:00
Mathieu Arnold
3a9ebde7bd Catch up with lang/perl5-devel, add a permanent way to ask for -devel.
Sponsored by:	Absolight
2015-05-11 14:24:21 +00:00
Mathieu Arnold
fc722249ab Forgot that when I updated Perl lang/perl5-devel.
Sponsored by:	Absolight
2015-04-27 15:44:03 +00:00
Mathieu Arnold
d7534a0d39 Add lang/perl5-devel, which will be the one from which the lang/perl5.xx ports
will come from, from now on.

Please, only use the -devel port for testing, not for production purposes.

Sponsored by:	Absolight
2015-04-16 11:44:21 +00:00
Mathieu Arnold
898d0049d2 Update Perl 5.20 to 5.20.2.
Poked by:	az
Sponsored by:	Absolight
2015-02-17 15:58:12 +00:00
Rene Ladan
0302c0c1ae Mk/Uses/perl5.mk: Unregister perl5.14 now that the port has expired.
Differential Revision:	https://reviews.freebsd.org/D1368
Approved by:	portmgr (mat), perl (sunpoet)
2014-12-31 16:04:29 +00:00
Mathieu Arnold
b461de3535 Catch other wrong occurences of SITE_PERL and SITE_ARCH.
Sponsored by:	Absolight
2014-12-23 01:42:10 +00:00
Mathieu Arnold
f5a08b399f Fix MANDIRS.
Submitted by:	John Hein
Sponsored by:	Absolight
2014-12-23 01:32:18 +00:00
Mathieu Arnold
64835f0cdc Make Perl link all .so it builds with libperl.so.
It makes upgrading from one Perl major version to another way easier.  For
binary package users, it means pkg upgrade will detect the libperl.so.x.yy
change, and reinstall the affected packages.  For users using ports, it will
save rebuild time as it's easier to detect what ports really need to be
rebuilt.

PR:		195821
Differential Revision: https://reviews.freebsd.org/D1241
Submitted by:	mat
Reviewed by:	antoine, bdrewery
Exp-run by:	antoine
With hat:	perl
Sponsored by:	Absolight
2014-12-17 13:21:56 +00:00
Mathieu Arnold
d29deb1c06 ts=8, repeat after me, ts=8.
With hat:	perl@
Sponsored by:	Absolight
2014-12-16 12:06:40 +00:00