pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: libcroco and xz
On Fri, 15 Jun 2012 13:24:02 +0900, OBATA Akio <obache%netbsd.org@localhost>
wrote:
I see...
using *.xz archive, so marked as build depend on archive/xz,
but check-shlib claims using shlibs from build depends.
It's false alarm.
and proposed patch to fix it.
please review...
Index: check/check-shlibs-elf.awk
===================================================================
RCS file: /cvsroot/pkgsrc/mk/check/check-shlibs-elf.awk,v
retrieving revision 1.3
diff -u -r1.3 check-shlibs-elf.awk
--- check/check-shlibs-elf.awk 2 Feb 2010 23:35:36 -0000 1.3
+++ check/check-shlibs-elf.awk 15 Jun 2012 05:13:56 -0000
@@ -89,11 +89,26 @@
return 0
}
}
+ close(depends_file)
+ if (found) {
+ req_cmd = pkg_info_cmd " -qr " shquote(pkg) " 2> /dev/null"
+ while ((req_cmd | getline) > 0) {
+ dpkg = $0
+ while((getline < depends_file) > 0) {
+ if ($3 == dpkg && $1 == "full") {
+ close(depends_file)
+ close(req_cmd)
+ return 0
+ }
+ }
+ close(depends_file)
+ }
+ close(req_cmd)
+ }
if (found)
print DSO ": " pkg " is not a runtime dependency"
# Not yet:
# print DSO ": " pkg " is not a dependency"
- close(depends_file)
}
function checkshlib(DSO, needed, rpath, found, dso_rath, got_rpath) {
--
OBATA Akio / obache%NetBSD.org@localhost
Home |
Main Index |
Thread Index |
Old Index