diff options
| -rw-r--r-- | TODO | 3 | ||||
| -rw-r--r-- | sbopkglint.d/75-static_libs.t.sh | 6 | 
2 files changed, 6 insertions, 3 deletions
| @@ -1,3 +1,6 @@ +TODO: sbopkglint reports bad files in doc dir twice. +TODO: sbopkglint should check for stuff like /usr/lib/lv2 vs. /usr/lib64/lv2, +      according to ARCH. see audio/helm, v0.9.0, BUILD=1  TODO: sbopkglint should check for perllocal.pod, .packlist, *.bs        (see perl template).  TODO: sbopkglint could complain if the SlackBuild sets SLKCFLAGS diff --git a/sbopkglint.d/75-static_libs.t.sh b/sbopkglint.d/75-static_libs.t.sh index b0cdcdd..fab2a2b 100644 --- a/sbopkglint.d/75-static_libs.t.sh +++ b/sbopkglint.d/75-static_libs.t.sh @@ -14,11 +14,11 @@  for libdir in lib lib64 usr/lib usr/lib64; do  	if [ -d $libdir ]; then  		find_warnfiles "bad static library ownership (should be root:root):" \ -			$libdir -mindepth 1 -maxdepth 1 -name '*.a' \! \( -user root -a -group root \) +			-L $libdir -mindepth 1 -maxdepth 1 -name '*.a' \! \( -user root -a -group root \)  		find_warnfiles "bad static library permissions (should be 0644 or 0444):" \ -			$libdir -mindepth 1 -maxdepth 1 -name '*.a' \! \( -perm 444 -o -perm 644 \) +			-L $libdir -mindepth 1 -maxdepth 1 -name '*.a' \! \( -perm 444 -o -perm 644 \)  		find $libdir -mindepth 1 -maxdepth 1 -name '*.a' | while read static; do -			ftype="$( file -b --mime-type "$static" )" +			ftype="$( file -L -b --mime-type "$static" )"  			case "$ftype" in  				"application/x-archive") ;; # OK  				*) warn "$static is not a valid static library. MIME type is '$ftype'." ;; | 
