pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/mk/check



Module Name:    pkgsrc
Committed By:   jperkin
Date:           Fri May 25 10:57:28 UTC 2018

Modified Files:
        pkgsrc/mk/check: check-shlibs-macho.awk

Log Message:
check-shlibs-macho.awk: Implement revision 1.3 correctly.

Skip any lines of otool output that do not start with a tab, ensuring we
only check valid files and ignore e.g. shell scripts.  Older versions of
otool would simply print no output on such files, whereas newer releases
print "is not an object file".


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 pkgsrc/mk/check/check-shlibs-macho.awk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/mk/check/check-shlibs-macho.awk
diff -u pkgsrc/mk/check/check-shlibs-macho.awk:1.4 pkgsrc/mk/check/check-shlibs-macho.awk:1.5
--- pkgsrc/mk/check/check-shlibs-macho.awk:1.4  Fri May 25 09:26:49 2018
+++ pkgsrc/mk/check/check-shlibs-macho.awk      Fri May 25 10:57:28 2018
@@ -1,4 +1,4 @@
-# $NetBSD: check-shlibs-macho.awk,v 1.4 2018/05/25 09:26:49 jperkin Exp $
+# $NetBSD: check-shlibs-macho.awk,v 1.5 2018/05/25 10:57:28 jperkin Exp $
 
 #
 # Read a list of potential Mach-O binaries from stdin.
@@ -71,6 +71,8 @@ function check_pkg(DSO,       pkg, found) {
 function checkshlib(DSO,       needed, found) {
        cmd = "otool -XL " shquote(DSO) " 2>/dev/null"
        while ((cmd | getline) > 0) {
+               if ($0 !~ /^\t/)
+                       continue
                needed[$1] = ""
        }
        close(cmd)



Home | Main Index | Thread Index | Old Index