ports/189255: [patch] Mk/Scripts/qa.sh: look for libtool libraries

Tijl Coosemans tijl at FreeBSD.org
Fri May 2 16:30:00 UTC 2014


>Number:         189255
>Category:       ports
>Synopsis:       [patch] Mk/Scripts/qa.sh: look for libtool libraries
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri May 02 16:30:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     Tijl Coosemans
>Release:        FreeBSD 11.0-CURRENT i386
>Organization:
>Environment:
>Description:
- Print an error message in stage-qa when libtool libraries are found
  and USES=libtool is missing.
- Fix the condition for USESSHAREDMIMEINFO in Mk/bsd.stage.mk.
>How-To-Repeat:
>Fix:
--- stage-qa.patch begins here ---
Index: Mk/bsd.stage.mk
===================================================================
--- Mk/bsd.stage.mk	(revision 352745)
+++ Mk/bsd.stage.mk	(working copy)
@@ -17,7 +17,10 @@ QA_ENV+=	STAGEDIR=${STAGEDIR} \
 .if !empty(USES:Mdesktop-file-utils)
 QA_ENV+=	USESDESKTOPFILEUTILS=yes
 .endif
-.if !empty(USES:Mdesktop-file-utils)
+.if !empty(USES:Mlibtool*)
+QA_ENV+=	USESLIBTOOL=yes
+.endif
+.if !empty(USES:Mshared-mime-info)
 QA_ENV+=	USESSHAREDMIMEINFO=yes
 .endif
 CO_ENV+=	STAGEDIR=${STAGEDIR} \
Index: Mk/Scripts/qa.sh
===================================================================
--- Mk/Scripts/qa.sh	(revision 352745)
+++ Mk/Scripts/qa.sh	(working copy)
@@ -172,7 +172,17 @@ suidfiles() {
 	return 0
 }
 
-checks="shebang symlinks paths stripped desktopfileutils sharedmimeinfo suidfiles"
+ltlibraries() {
+	if [ -z "${USESLIBTOOL}" ]; then
+		find ${STAGEDIR} -type f -name '*.la' | while read f; do
+			grep -q 'libtool library' "${f}" &&
+				err "you need USES=libtool" && return 1
+		done
+	fi
+	return 0
+}
+
+checks="shebang symlinks paths stripped desktopfileutils sharedmimeinfo suidfiles ltlibraries"
 
 ret=0
 cd ${STAGEDIR}
--- stage-qa.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-ports-bugs mailing list