Received: by mail.netbsd.org (Postfix, from userid 605) id B59F884E08; Thu, 7 Jun 2018 04:58:48 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id AEF2584CCF for ; Thu, 7 Jun 2018 04:58:47 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([IPv6:::1]) by localhost (mail.netbsd.org [IPv6:::1]) (amavisd-new, port 10025) with ESMTP id MdOWzrKZhAR1 for ; Thu, 7 Jun 2018 04:58:47 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id DE6E784DF0 for ; Thu, 7 Jun 2018 04:58:46 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id D5BD4FBEC; Thu, 7 Jun 2018 04:58:46 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_1528347526191630" MIME-Version: 1.0 Date: Thu, 7 Jun 2018 04:58:46 +0000 From: "Darrin B. Jewell" Subject: CVS commit: pkgsrc/mk/check To: pkgsrc-changes@NetBSD.org Reply-To: dbj@netbsd.org X-Mailer: log_accum Message-Id: <20180607045846.D5BD4FBEC@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: pkgsrc-changes.NetBSD.org Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_1528347526191630 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Module Name: pkgsrc Committed By: dbj Date: Thu Jun 7 04:58:46 UTC 2018 Modified Files: pkgsrc/mk/check: check-shlibs-macho.awk Log Message: check-shlibs-macho.awk: fix support for checking modules Allow the dylib install_name to be just the library basename To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 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. --_----------=_1528347526191630 Content-Disposition: inline Content-Length: 997 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Modified files: Index: pkgsrc/mk/check/check-shlibs-macho.awk diff -u pkgsrc/mk/check/check-shlibs-macho.awk:1.5 pkgsrc/mk/check/check-shlibs-macho.awk:1.6 --- pkgsrc/mk/check/check-shlibs-macho.awk:1.5 Fri May 25 10:57:28 2018 +++ pkgsrc/mk/check/check-shlibs-macho.awk Thu Jun 7 04:58:46 2018 @@ -1,4 +1,4 @@ -# $NetBSD: check-shlibs-macho.awk,v 1.5 2018/05/25 10:57:28 jperkin Exp $ +# $NetBSD: check-shlibs-macho.awk,v 1.6 2018/06/07 04:58:46 dbj Exp $ # # Read a list of potential Mach-O binaries from stdin. @@ -70,9 +70,18 @@ function check_pkg(DSO, pkg, found) { function checkshlib(DSO, needed, found) { cmd = "otool -XL " shquote(DSO) " 2>/dev/null" + libno = 0 while ((cmd | getline) > 0) { if ($0 !~ /^\t/) continue + # + # The first lib is the "install_name". Allow it to + # be just the library basename name to support modules. + # + if (libno++ == 0 && + $1 == parts[split(DSO, parts, "/")]) { + continue + } needed[$1] = "" } close(cmd) --_----------=_1528347526191630--