diff options
author | mat <mat@FreeBSD.org> | 2014-12-17 21:21:56 +0800 |
---|---|---|
committer | mat <mat@FreeBSD.org> | 2014-12-17 21:21:56 +0800 |
commit | 4510900ec843d68a14effaa0b595e4a85d883311 (patch) | |
tree | 4202a3b2243a0e4544eabc8d5f6b2ecccb217330 /Mk/Uses | |
parent | b3c0bb2471d46f5bb4d5670d749c84496d53f77a (diff) | |
download | freebsd-ports-gnome-4510900ec843d68a14effaa0b595e4a85d883311.tar.gz freebsd-ports-gnome-4510900ec843d68a14effaa0b595e4a85d883311.tar.zst freebsd-ports-gnome-4510900ec843d68a14effaa0b595e4a85d883311.zip |
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
Diffstat (limited to 'Mk/Uses')
-rw-r--r-- | Mk/Uses/perl5.mk | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/Mk/Uses/perl5.mk b/Mk/Uses/perl5.mk index 01b8e1512ddc..921dbc2fafba 100644 --- a/Mk/Uses/perl5.mk +++ b/Mk/Uses/perl5.mk @@ -105,6 +105,8 @@ PERL5= ${LOCALBASE}/bin/perl${PERL_VERSION} PERL= ${LOCALBASE}/bin/perl CONFIGURE_ENV+= ac_cv_path_PERL=${PERL} ac_cv_path_PERL_PATH=${PERL} +QA_ENV+= SITE_ARCH_REL=${SITE_ARCH_REL} LIBPERL=libperl.so.${PERL_VER} + # Define the want perl first if defined .if ${USE_PERL5:M5*} want_perl_sign= ${USE_PERL5:M5*:C|^[0-9.]+||} @@ -236,15 +238,15 @@ MAN3PREFIX?= ${SITE_PERL} .if !target(do-configure) do-configure: @if [ -f ${SCRIPTDIR}/configure ]; then \ - cd ${.CURDIR} && ${SETENV} ${SCRIPTS_ENV} ${SH} \ - ${SCRIPTDIR}/configure; \ + cd ${.CURDIR} && ${SETENV} ${SCRIPTS_ENV} ${SH} \ + ${SCRIPTDIR}/configure; \ fi @cd ${CONFIGURE_WRKSRC} && \ - ${SETENV} ${CONFIGURE_ENV} \ - ${PERL5} ./${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS} + ${SETENV} ${CONFIGURE_ENV} \ + ${PERL5} ./${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS} .if !${_USE_PERL5:Mmodbuild*} @cd ${CONFIGURE_WRKSRC} && \ - ${PERL5} -pi -e 's/ doc_(perl|site|\$$\(INSTALLDIRS\))_install$$//' Makefile + ${PERL5} -pi -e 's/ doc_(perl|site|\$$\(INSTALLDIRS\))_install$$//' Makefile .endif # ! modbuild .endif # !target(do-configure) .endif # configure |