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:
Tijl Coosemans 2014-05-06 11:57:22 +00:00
parent bcf885b42a
commit e9ccd0e2a8
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=353084
2 changed files with 15 additions and 1 deletions

View File

@ -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}

View File

@ -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