diff options
author | Tijl Coosemans <tijl@FreeBSD.org> | 2014-05-06 11:57:22 +0000 |
---|---|---|
committer | Tijl Coosemans <tijl@FreeBSD.org> | 2014-05-06 11:57:22 +0000 |
commit | e9ccd0e2a8a966f55315def2f1533d288009436b (patch) | |
tree | 0e667521b086effdd2b6f88a099e8a3e3e81fdf3 /Mk/Scripts/qa.sh | |
parent | - Support STAGEDIR (diff) |
Let stage-qa detect .la libraries and warn that a port needs USES=libtool.
PR: ports/189255
Approved by: portmgr (antoine)
Notes
Notes:
svn path=/head/; revision=353084
Diffstat (limited to 'Mk/Scripts/qa.sh')
-rw-r--r-- | Mk/Scripts/qa.sh | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/Mk/Scripts/qa.sh b/Mk/Scripts/qa.sh index c54010a15500..d9736ef03552 100644 --- a/Mk/Scripts/qa.sh +++ b/Mk/Scripts/qa.sh @@ -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} |