Fri May 25 09:26:49 2018 UTC ()
check-shlibs-macho.awk: Revert revision 1.3.

It completely broke the checks, resulting in broken binary packages
being shipped, e.g. https://github.com/joyent/pkgsrc/issues/104


(jperkin)
diff -r1.3 -r1.4 pkgsrc/mk/check/check-shlibs-macho.awk

cvs diff -r1.3 -r1.4 pkgsrc/mk/check/check-shlibs-macho.awk (expand / switch to unified diff)

--- pkgsrc/mk/check/check-shlibs-macho.awk 2016/08/20 18:52:42 1.3
+++ pkgsrc/mk/check/check-shlibs-macho.awk 2018/05/25 09:26:49 1.4
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: check-shlibs-macho.awk,v 1.3 2016/08/20 18:52:42 adam Exp $ 1# $NetBSD: check-shlibs-macho.awk,v 1.4 2018/05/25 09:26:49 jperkin Exp $
2 2
3# 3#
4# Read a list of potential Mach-O binaries from stdin. 4# Read a list of potential Mach-O binaries from stdin.
5# For each, check the list of required DSOs and ensure that each of them can 5# For each, check the list of required DSOs and ensure that each of them can
6# be found correctly, and check that any pkgsrc-installed DSOs belong to a 6# be found correctly, and check that any pkgsrc-installed DSOs belong to a
7# full dependency. 7# full dependency.
8# 8#
9 9
10function shquote(IN, out) { 10function shquote(IN, out) {
11 out = IN; 11 out = IN;
12 gsub("\\\\", "\\\\", out); 12 gsub("\\\\", "\\\\", out);
13 gsub("\\\n", "\\n", out); 13 gsub("\\\n", "\\n", out);
14 gsub("\\\t", "\\t", out); 14 gsub("\\\t", "\\t", out);
@@ -109,14 +109,14 @@ function checkshlib(DSO, needed, found)  @@ -109,14 +109,14 @@ function checkshlib(DSO, needed, found)
109 if (found == 0) 109 if (found == 0)
110 print DSO ": missing library: " lib 110 print DSO ": missing library: " lib
111 } 111 }
112} 112}
113 113
114BEGIN { 114BEGIN {
115 cross_destdir = ENVIRON["CROSS_DESTDIR"] 115 cross_destdir = ENVIRON["CROSS_DESTDIR"]
116 destdir = ENVIRON["DESTDIR"] 116 destdir = ENVIRON["DESTDIR"]
117 wrkdir = ENVIRON["WRKDIR"] 117 wrkdir = ENVIRON["WRKDIR"]
118 pkg_info_cmd = ENVIRON["PKG_INFO_CMD"] 118 pkg_info_cmd = ENVIRON["PKG_INFO_CMD"]
119 depends_file = ENVIRON["DEPENDS_FILE"] 119 depends_file = ENVIRON["DEPENDS_FILE"]
120} 120}
121 121
122/\t/ { checkshlib($0); } 122{ checkshlib($0); }