NetBSD Problem Report #53119

From www@NetBSD.org  Wed Mar 21 11:53:22 2018
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id E6E3C7A262
	for <gnats-bugs@gnats.NetBSD.org>; Wed, 21 Mar 2018 11:53:21 +0000 (UTC)
Message-Id: <20180321115320.D53757A263@mollari.NetBSD.org>
Date: Wed, 21 Mar 2018 11:53:20 +0000 (UTC)
From: triaxx@NetBSD.org
Reply-To: triaxx@NetBSD.org
To: gnats-bugs@NetBSD.org
Subject: Checking for missing run-time failed due to locale
X-Send-Pr-Version: www-1.0

>Number:         53119
>Category:       pkg
>Synopsis:       Checking for missing run-time failed due to locale
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Mar 21 11:55:01 +0000 2018
>Last-Modified:  Thu Mar 22 19:30:01 +0000 2018
>Originator:     Frédéric Fauberteau
>Release:        pkgsrc-HEAD
>Organization:
>Environment:
Linux guardian 4.15.10-1-ARCH #1 SMP PREEMPT Thu Mar 15 12:24:34 UTC 2018 x86_64 GNU/Linu
>Description:
===> Installing for digest-20160304
[...]
=> Checking for missing run-time search paths in digest-20160304
ERROR: bin/digest: missing library:  0x0000000000000001 (NEEDED)             Bibliothèque partagée: [libc.so.6
*** Error code 1
>How-To-Repeat:
cd pkgtools/digest && bmake install
>Fix:
Quick hack, no idea to delocalized binary tools.

Index: mk/check/check-shlibs-elf.awk
===================================================================
RCS file: /cvsroot/pkgsrc/mk/check/check-shlibs-elf.awk,v
retrieving revision 1.15
diff -u -r1.15 check-shlibs-elf.awk
--- mk/check/check-shlibs-elf.awk	3 May 2017 13:46:53 -0000	1.15
+++ mk/check/check-shlibs-elf.awk	21 Mar 2018 11:43:14 -0000
@@ -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= " 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: \\[", "")

>Audit-Trail:
From: Benny Siegert <bsiegert@gmail.com>
To: gnats-bugs@netbsd.org
Cc: pkg-manager@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org
Subject: Re: pkg/53119: Checking for missing run-time failed due to locale
Date: Thu, 22 Mar 2018 09:18:53 +0000

 On Thu, Mar 22, 2018 at 7:36 AM <triaxx@netbsd.org> wrote:
 > +       cmd = "LANG= " readelf " -Wd " shquote(DSO) " 2> /dev/null"

 Should be LANG=C, and perhaps set for the entire script.

 --
 Benny

From: Joerg Sonnenberger <joerg@bec.de>
To: gnats-bugs@NetBSD.org
Cc: pkg-manager@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org
Subject: Re: pkg/53119: Checking for missing run-time failed due to locale
Date: Thu, 22 Mar 2018 20:27:03 +0100

 On Wed, Mar 21, 2018 at 11:55:01AM +0000, triaxx@NetBSD.org wrote:
 > >Fix:
 > Quick hack, no idea to delocalized binary tools.
 > 
 > Index: mk/check/check-shlibs-elf.awk

 Wrong place, if anywhere, it should be in CHECK_SHLIBS_NATIVE_ENV.

 Joerg

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.