FreeBSD Bugzilla – Attachment 169782 Details for
Bug 209123
lang/perl5*, change a bit how libperl.so is found, and use USE_LDCONFIG
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch-v1
libperl.diff (text/plain), 5.19 KB, created by
Mathieu Arnold
on 2016-04-28 12:24:15 UTC
(
hide
)
Description:
patch-v1
Filename:
MIME Type:
Creator:
Mathieu Arnold
Created:
2016-04-28 12:24:15 UTC
Size:
5.19 KB
patch
obsolete
>diff --git Mk/Scripts/qa.sh Mk/Scripts/qa.sh >index aca3df2..ffcb3c4 100644 >--- Mk/Scripts/qa.sh >+++ Mk/Scripts/qa.sh >@@ -255,16 +255,19 @@ libperl() { > ;; > *0) > has_some_libperl_so=1 >- case "${found}" in >- *1?) >- warn "${f} does not have a rpath to ${LIBPERL}, not respecting lddlflags?" >- ;; >- esac >- case "${found}" in >- 1??) >- warn "${f} does not have a runpath to ${LIBPERL}, not respecting lddlflags?" >- ;; >- esac >+ # Older Perl did not USE_LDCONFIG. >+ if [ ! -f ${LOCALBASE}/${LDCONFIG_DIR}/perl5 ]; then >+ case "${found}" in >+ *1?) >+ warn "${f} does not have a rpath to ${LIBPERL}, not respecting lddlflags?" >+ ;; >+ esac >+ case "${found}" in >+ 1??) >+ warn "${f} does not have a runpath to ${LIBPERL}, not respecting lddlflags?" >+ ;; >+ esac >+ fi > ;; > esac > # Use heredoc to avoid losing rc from find|while subshell >diff --git Mk/bsd.port.mk Mk/bsd.port.mk >index e8fe347..98ac247 100644 >--- Mk/bsd.port.mk >+++ Mk/bsd.port.mk >@@ -1520,6 +1520,7 @@ QA_ENV+= STAGEDIR=${STAGEDIR} \ > LOCALBASE=${LOCALBASE} \ > "STRIP=${STRIP}" \ > TMPPLIST=${TMPPLIST} \ >+ LDCONFIG_DIR="${LDCONFIG_DIR}" \ > PKGBASE=${PKGBASE} > .if !empty(USES:Mdesktop-file-utils) > QA_ENV+= USESDESKTOPFILEUTILS=yes >diff --git lang/perl5-devel/Makefile lang/perl5-devel/Makefile >index f845724..9acf3dd 100644 >--- lang/perl5-devel/Makefile >+++ lang/perl5-devel/Makefile >@@ -107,8 +107,11 @@ CONFIGURE_ARGS= -sde -Dprefix=${PREFIX} \ > # shrpldflags is used for libperl.so, so remove all the extra bits inherited from lddlflags. > # XXX change the soname to $$(LIBPERL:R) > CONFIGURE_ARGS+= \ >- -Alddlflags='-L${WRKSRC} -L${PREFIX}/${_ARCH_LIB}/CORE -Wl,-rpath=${PREFIX}/${_ARCH_LIB}/CORE -lperl' \ >- -Dshrpldflags='$$(LDDLFLAGS:N-L${WRKSRC}:N-L${PREFIX}/${_ARCH_LIB}/CORE:N-Wl,-rpath=${PREFIX}/${_ARCH_LIB}/CORE:N-lperl) -Wl,-soname,$$(LIBPERL)' >+ -Alddlflags='-L${WRKSRC} -L${PREFIX}/${_ARCH_LIB}/CORE -lperl' \ >+ -Dshrpldflags='$$(LDDLFLAGS:N-L${WRKSRC}:N-L${PREFIX}/${_ARCH_LIB}/CORE:N-lperl) -Wl,-soname,$$(LIBPERL)' >+ >+# Give a hint of where libperl.so can be found. >+USE_LDCONFIG= ${PREFIX}/${_ARCH_LIB}/CORE > > # XXX Remove > CONFIGURE_ARGS+= -Dusedevel -Uversiononly >diff --git lang/perl5.18/Makefile lang/perl5.18/Makefile >index 8ec037e..112fce2 100644 >--- lang/perl5.18/Makefile >+++ lang/perl5.18/Makefile >@@ -98,8 +98,12 @@ CONFIGURE_ARGS= -sde -Dprefix=${PREFIX} \ > # lddlflags is used for all .so linking > # shrpldflags is used for libperl.so, so remove all the extra bits inherited from lddlflags. > CONFIGURE_ARGS+= \ >- -Alddlflags='-L${WRKSRC} -L${PREFIX}/${_ARCH_LIB}/CORE -Wl,-rpath=${PREFIX}/${_ARCH_LIB}/CORE -lperl' \ >- -Dshrpldflags='$$(LDDLFLAGS:N-L${WRKSRC}:N-L${PREFIX}/${_ARCH_LIB}/CORE:N-Wl,-rpath=${PREFIX}/${_ARCH_LIB}/CORE:N-lperl) -Wl,-soname,$$(LIBPERL:R)' >+ -Alddlflags='-L${WRKSRC} -L${PREFIX}/${_ARCH_LIB}/CORE -lperl' \ >+ -Dshrpldflags='$$(LDDLFLAGS:N-L${WRKSRC}:N-L${PREFIX}/${_ARCH_LIB}/CORE:N-lperl) -Wl,-soname,$$(LIBPERL:R)' >+ >+# Give a hint of where libperl.so can be found. >+USE_LDCONFIG= ${PREFIX}/${_ARCH_LIB}/CORE >+ > LOCALE_CLEANUP= LANG="" LC_ALL="" LC_COLLATE="" LC_CTYPE="" \ > LC_MESSAGES="" LC_MONETARY="" LC_NUMERIC="" \ > LC_TIME="" >diff --git lang/perl5.20/Makefile lang/perl5.20/Makefile >index 4a49f5f..c2c5372 100644 >--- lang/perl5.20/Makefile >+++ lang/perl5.20/Makefile >@@ -92,8 +92,11 @@ CONFIGURE_ARGS= -sde -Dprefix=${PREFIX} \ > # lddlflags is used for all .so linking > # shrpldflags is used for libperl.so, so remove all the extra bits inherited from lddlflags. > CONFIGURE_ARGS+= \ >- -Alddlflags='-L${WRKSRC} -L${PREFIX}/${_ARCH_LIB}/CORE -Wl,-rpath=${PREFIX}/${_ARCH_LIB}/CORE -lperl' \ >- -Dshrpldflags='$$(LDDLFLAGS:N-L${WRKSRC}:N-L${PREFIX}/${_ARCH_LIB}/CORE:N-Wl,-rpath=${PREFIX}/${_ARCH_LIB}/CORE:N-lperl) -Wl,-soname,$$(LIBPERL:R)' >+ -Alddlflags='-L${WRKSRC} -L${PREFIX}/${_ARCH_LIB}/CORE -lperl' \ >+ -Dshrpldflags='$$(LDDLFLAGS:N-L${WRKSRC}:N-L${PREFIX}/${_ARCH_LIB}/CORE:N-lperl) -Wl,-soname,$$(LIBPERL:R)' >+ >+# Give a hint of where libperl.so can be found. >+USE_LDCONFIG= ${PREFIX}/${_ARCH_LIB}/CORE > > LOCALE_CLEANUP= LANG="" LC_ALL="" LC_COLLATE="" LC_CTYPE="" \ > LC_MESSAGES="" LC_MONETARY="" LC_NUMERIC="" \ >diff --git lang/perl5.22/Makefile lang/perl5.22/Makefile >index ec52c00..5c38922 100644 >--- lang/perl5.22/Makefile >+++ lang/perl5.22/Makefile >@@ -91,8 +91,11 @@ CONFIGURE_ARGS= -sde -Dprefix=${PREFIX} \ > # lddlflags is used for all .so linking > # shrpldflags is used for libperl.so, so remove all the extra bits inherited from lddlflags. > CONFIGURE_ARGS+= \ >- -Alddlflags='-L${WRKSRC} -L${PREFIX}/${_ARCH_LIB}/CORE -Wl,-rpath=${PREFIX}/${_ARCH_LIB}/CORE -lperl' \ >- -Dshrpldflags='$$(LDDLFLAGS:N-L${WRKSRC}:N-L${PREFIX}/${_ARCH_LIB}/CORE:N-Wl,-rpath=${PREFIX}/${_ARCH_LIB}/CORE:N-lperl) -Wl,-soname,$$(LIBPERL:R)' >+ -Alddlflags='-L${WRKSRC} -L${PREFIX}/${_ARCH_LIB}/CORE -lperl' \ >+ -Dshrpldflags='$$(LDDLFLAGS:N-L${WRKSRC}:N-L${PREFIX}/${_ARCH_LIB}/CORE:N-lperl) -Wl,-soname,$$(LIBPERL:R)' >+ >+# Give a hint of where libperl.so can be found. >+USE_LDCONFIG= ${PREFIX}/${_ARCH_LIB}/CORE > > LOCALE_CLEANUP= LANG="" LC_ALL="" LC_COLLATE="" LC_CTYPE="" \ > LC_MESSAGES="" LC_MONETARY="" LC_NUMERIC="" \
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 209123
: 169782