aboutsummaryrefslogtreecommitdiffstats
path: root/Mk
diff options
context:
space:
mode:
authorlinimon <linimon@FreeBSD.org>2012-03-11 13:22:01 +0800
committerlinimon <linimon@FreeBSD.org>2012-03-11 13:22:01 +0800
commit3d2e4f8d8de40f2963e0e6faef88424186170efe (patch)
tree5582c15509f7ee34f804d6bacb2979f82e4f45f8 /Mk
parentdcc87f1c04d48fef82943432b35f348105cfee6d (diff)
downloadfreebsd-ports-gnome-3d2e4f8d8de40f2963e0e6faef88424186170efe.tar.gz
freebsd-ports-gnome-3d2e4f8d8de40f2963e0e6faef88424186170efe.tar.zst
freebsd-ports-gnome-3d2e4f8d8de40f2963e0e6faef88424186170efe.zip
Revert 1.23 to restore default value for PERL_PORT. If no value is set
for PERL_PORT by default, INDEX will often fail with dependency errors of the form "ports/lang: not found". It is possible to disagree about what that default value ought to be (e.g. 5.12 vs. 5.8), but not its existance. This reverts ports/165457 for this file. This is not actually feature safe. However, it is necessary to not violate POLA. Hat: portmgr Feature safe: yes
Diffstat (limited to 'Mk')
-rw-r--r--Mk/bsd.perl.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/Mk/bsd.perl.mk b/Mk/bsd.perl.mk
index f80ccc80a3f0..4f1a72c32b61 100644
--- a/Mk/bsd.perl.mk
+++ b/Mk/bsd.perl.mk
@@ -64,10 +64,16 @@ PERL_LEVEL=0
PERL_ARCH?= mach
+# there must always be a default to prevent dependency failures such
+# as "ports/lang: not found"
.if ${PERL_LEVEL} >= 501400
PERL_PORT?= perl5.14
.elif ${PERL_LEVEL} >= 501200
PERL_PORT?= perl5.12
+.elif ${PERL_LEVEL} >= 501000
+PERL_PORT?= perl5.10
+.else # ${PERL_LEVEL} < 501000
+PERL_PORT?= perl5.8
.endif
SITE_PERL_REL?= lib/perl5/site_perl/${PERL_VERSION}