summaryrefslogtreecommitdiff
path: root/mk/check
diff options
context:
space:
mode:
authortriaxx <triaxx@pkgsrc.org>2018-03-22 09:37:17 +0000
committertriaxx <triaxx@pkgsrc.org>2018-03-22 09:37:17 +0000
commit63f2756171cf92248f513497c8f35000ce54cc94 (patch)
treeb66d79658beaa1f260298e51b75dbedfdd5be15d /mk/check
parentad828747664d88ccec2d02922d53d33160fd2c8f (diff)
downloadpkgsrc-63f2756171cf92248f513497c8f35000ce54cc94.tar.gz
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 (limited to 'mk/check')
-rw-r--r--mk/check/check-shlibs-elf.awk4
1 files changed, 2 insertions, 2 deletions
diff --git a/mk/check/check-shlibs-elf.awk b/mk/check/check-shlibs-elf.awk
index 84bf5c1b433..d46c5331dc3 100644
--- a/mk/check/check-shlibs-elf.awk
+++ b/mk/check/check-shlibs-elf.awk
@@ -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>.
# 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: \\[", "")