aboutsummaryrefslogtreecommitdiffstats
path: root/Mk
diff options
context:
space:
mode:
authormat <mat@FreeBSD.org>2016-01-19 00:16:39 +0800
committermat <mat@FreeBSD.org>2016-01-19 00:16:39 +0800
commitfb2240ae77854e32a493613f6f3984c9e5f7600f (patch)
tree6ca53ff8378b73528cff8bde78ac0359244bfc4e /Mk
parent525084b3f25a69fafdf3e8e6f8cadeb46a12ad41 (diff)
downloadfreebsd-ports-gnome-fb2240ae77854e32a493613f6f3984c9e5f7600f.tar.gz
freebsd-ports-gnome-fb2240ae77854e32a493613f6f3984c9e5f7600f.tar.zst
freebsd-ports-gnome-fb2240ae77854e32a493613f6f3984c9e5f7600f.zip
Rework the logic of the libperl detection, making it a bit more simple,
and also a bit more verbose. With hat: perl Sponsored by: Absolight
Diffstat (limited to 'Mk')
-rw-r--r--Mk/Scripts/qa.sh38
1 files changed, 18 insertions, 20 deletions
diff --git a/Mk/Scripts/qa.sh b/Mk/Scripts/qa.sh
index ba5c4145acd1..eaeebe868633 100644
--- a/Mk/Scripts/qa.sh
+++ b/Mk/Scripts/qa.sh
@@ -251,26 +251,24 @@ libperl() {
/RUNPATH.*perl.*CORE/ { runpath = 0 }
END {print libperl+rpath+runpath}
"`
- # FIXME When 8.4 goes out of commission, replace the ;;
- # with ;& in the case below. Also, change the logic on
- # detecting if there was a file with libperl.so
- if [ "$found" -ne "0" ]; then
- case "$found" in
- *1)
- warn "${f} is not linked with ${LIBPERL}, not respecting lddlflags?"
- ;; #;&
- *1?)
- has_some_libperl_so=1
- warn "${f} does not have a rpath to ${LIBPERL}, not respecting lddlflags?"
- ;; #;&
- 1??)
- has_some_libperl_so=1
- warn "${f} does not have a runpath to ${LIBPERL}, not respecting lddlflags?"
- ;; #;&
- esac
- else
- has_some_libperl_so=1
- fi
+ case "${found}" in
+ *1)
+ warn "${f} is not linked with ${LIBPERL}, not respecting lddlflags?"
+ ;;
+ *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
+ ;;
+ esac
# Use heredoc to avoid losing rc from find|while subshell
done <<-EOT
$(find ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL} -name '*.so')