pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/check Fix wrong parsing due to localized readelf on...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/15e07344bd83
branches:  trunk
changeset: 377784:15e07344bd83
user:      triaxx <triaxx%pkgsrc.org@localhost>
date:      Thu Mar 22 09:37:17 2018 +0000

description:
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.

diffstat:

 mk/check/check-shlibs-elf.awk |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r d5846e5c7177 -r 15e07344bd83 mk/check/check-shlibs-elf.awk
--- a/mk/check/check-shlibs-elf.awk     Thu Mar 22 08:14:51 2018 +0000
+++ b/mk/check/check-shlibs-elf.awk     Thu Mar 22 09:37:17 2018 +0000
@@ -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 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