mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-08 06:48:28 +00:00
Let stage-qa detect .la libraries and warn that a port needs USES=libtool.
PR: ports/189255 Approved by: portmgr (antoine)
This commit is contained in:
parent
bcf885b42a
commit
e9ccd0e2a8
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=353084
@ -172,7 +172,18 @@ suidfiles() {
|
||||
return 0
|
||||
}
|
||||
|
||||
checks="shebang symlinks paths stripped desktopfileutils sharedmimeinfo suidfiles"
|
||||
libtool() {
|
||||
if [ -z "${USESLIBTOOL}" ]; then
|
||||
find ${STAGEDIR} -type f -name '*.la' | while read f; do
|
||||
grep -q 'libtool library' "${f}" &&
|
||||
warn ".la libraries found, port needs USES=libtool" &&
|
||||
return 0 || true
|
||||
done
|
||||
# The return above continues here.
|
||||
fi
|
||||
}
|
||||
|
||||
checks="shebang symlinks paths stripped desktopfileutils sharedmimeinfo suidfiles libtool"
|
||||
|
||||
ret=0
|
||||
cd ${STAGEDIR}
|
||||
|
@ -17,6 +17,9 @@ QA_ENV+= STAGEDIR=${STAGEDIR} \
|
||||
.if !empty(USES:Mdesktop-file-utils)
|
||||
QA_ENV+= USESDESKTOPFILEUTILS=yes
|
||||
.endif
|
||||
.if !empty(USES:Mlibtool*)
|
||||
QA_ENV+= USESLIBTOOL=yes
|
||||
.endif
|
||||
.if !empty(USES:Mshared-mime-info)
|
||||
QA_ENV+= USESSHAREDMIMEINFO=yes
|
||||
.endif
|
||||
|
Loading…
Reference in New Issue
Block a user