Changeset View
Changeset View
Standalone View
Standalone View
Mk/Scripts/qa.sh
Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Lines | $(find ${STAGEDIR}${PREFIX}/bin ${STAGEDIR}${PREFIX}/sbin \ | ||||
-type l -exec stat -f "%N${LF}%Y" {} + 2>/dev/null) | -type l -exec stat -f "%N${LF}%Y" {} + 2>/dev/null) | ||||
EOF | EOF | ||||
return ${rc} | return ${rc} | ||||
} | } | ||||
baselibs() { | baselibs() { | ||||
local rc | local rc | ||||
local found_openssl | |||||
[ "${PKGBASE}" = "pkg" -o "${PKGBASE}" = "pkg-devel" ] && return | [ "${PKGBASE}" = "pkg" -o "${PKGBASE}" = "pkg-devel" ] && return | ||||
while read f; do | while read f; do | ||||
case ${f} in | case ${f} in | ||||
*NEEDED*\[libarchive.so.[56]]) | *NEEDED*\[libarchive.so.[56]]) | ||||
err "Bad linking on ${f##* } please add USES=libarchive" | err "Bad linking on ${f##* } please add USES=libarchive" | ||||
rc=1 | rc=1 | ||||
;; | ;; | ||||
*NEEDED*\[libedit.so.7]) | *NEEDED*\[libedit.so.7]) | ||||
err "Bad linking on ${f##* } please add USES=libedit" | err "Bad linking on ${f##* } please add USES=libedit" | ||||
rc=1 | rc=1 | ||||
;; | ;; | ||||
*NEEDED*\[libcrypto.so.*]|*NEEDED*\[libssl.so.*]) | |||||
found_openssl=1 | |||||
;; | |||||
esac | esac | ||||
done <<-EOF | done <<-EOF | ||||
$(find ${STAGEDIR}${PREFIX}/bin ${STAGEDIR}${PREFIX}/sbin \ | $(find ${STAGEDIR}${PREFIX}/bin ${STAGEDIR}${PREFIX}/sbin \ | ||||
${STAGEDIR}${PREFIX}/lib ${STAGEDIR}${PREFIX}/libexec \ | ${STAGEDIR}${PREFIX}/lib ${STAGEDIR}${PREFIX}/libexec \ | ||||
-type f -exec readelf -d {} + 2>/dev/null) | -type f -exec readelf -d {} + 2>/dev/null) | ||||
EOF | EOF | ||||
if [ -z "${USESSSL}" -a -n "${found_openssl}" ]; then | |||||
warn "you need USES=nssl" | |||||
elif [ -n "${USESSSL}" -a -z "${found_openssl}" ]; then | |||||
warn "you may not need USES=ssl" | |||||
fi | |||||
return ${rc} | return ${rc} | ||||
} | } | ||||
symlinks() { | symlinks() { | ||||
local rc | local rc | ||||
rc=0 | rc=0 | ||||
▲ Show 20 Lines • Show All 493 Lines • Show Last 20 Lines |