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:   triaxx
Date:           Thu Mar 22 09:37:17 UTC 2018

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

Log Message:
Fix wrong parsing due to localized readelf on Linux

Linux version of readelf (at least on Arch) translates output
(e.g. "Shared library") and makes the script broken.


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 pkgsrc/mk/check/check-shlibs-elf.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-elf.awk
diff -u pkgsrc/mk/check/check-shlibs-elf.awk:1.15 pkgsrc/mk/check/check-shlibs-elf.awk:1.16
--- pkgsrc/mk/check/check-shlibs-elf.awk:1.15   Wed May  3 13:46:53 2017
+++ pkgsrc/mk/check/check-shlibs-elf.awk        Thu Mar 22 09:37:17 2018
@@ -1,4 +1,4 @@
-# $NetBSD: check-shlibs-elf.awk,v 1.15 2017/05/03 13:46:53 jperkin Exp $
+# $NetBSD: check-shlibs-elf.awk,v 1.16 2018/03/22 09:37:17 triaxx Exp $
 #
 # Copyright (c) 2007 Joerg Sonnenberger <joerg%NetBSD.org@localhost>.
 # All rights reserved.
@@ -102,7 +102,7 @@ function check_pkg(DSO, pkg, found) {
 }
 
 function checkshlib(DSO, needed, rpath, found, dso_rpath, got_rpath, nrpath) {
-       cmd = readelf " -Wd " shquote(DSO) " 2> /dev/null"
+       cmd = "LANG=C" readelf " -Wd " shquote(DSO) " 2> /dev/null"
        while ((cmd | getline) > 0) {
                if ($2 == "(RPATH)" || $2 == "(RUNPATH)") {
                        sub("^[[:space:]]*0[xX][[:xdigit:]]+[[:space:]]+\\(RU?N?PATH\\)[[:space:]]+Library ru?n?path: \\[", "")



Home | Main Index | Thread Index | Old Index