GNU bug report logs - #17840
[PATCH] libtool: Use 'file' instead of '/usr/bin/file' on GNU systems.

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: libtool; Reported by: ludo@HIDDEN (Ludovic Courtès); Keywords: patch; dated Mon, 23 Jun 2014 19:44:02 UTC; Maintainer for libtool is bug-libtool@HIDDEN.

Message received at 17840 <at> debbugs.gnu.org:


Received: (at 17840) by debbugs.gnu.org; 29 Sep 2022 01:26:48 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Sep 28 21:26:47 2022
Received: from localhost ([127.0.0.1]:35333 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1odiK7-00039A-K5
	for submit <at> debbugs.gnu.org; Wed, 28 Sep 2022 21:26:47 -0400
Received: from mail-qt1-f171.google.com ([209.85.160.171]:37829)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <maxim.cournoyer@HIDDEN>) id 1odiK4-00038t-Mq
 for 17840 <at> debbugs.gnu.org; Wed, 28 Sep 2022 21:26:46 -0400
Received: by mail-qt1-f171.google.com with SMTP id j10so9062598qtv.4
 for <17840 <at> debbugs.gnu.org>; Wed, 28 Sep 2022 18:26:44 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=content-transfer-encoding:mime-version:user-agent:message-id
 :in-reply-to:date:references:subject:cc:to:from:from:to:cc:subject
 :date; bh=7cYLQplY6ddUiEo2MFMBfSyeyTiQ8g0XyaL7jFXEoUs=;
 b=g12EcQU/kTnpSeg1Gzc9VlG134K215/a4E82jAyDwFn83sdLepQTYg1L6KZ6GaVNcU
 WCJvGQiCC36elflDe9p9SYLSvDTI06+cOIT07BfAEDy0NrTy7FZwh4iTID0Cgnbf1EqE
 dcYdHqjTodcuFEKY1IpTanWqw0fCIxOMxUlpx0KnPXZeWSbBTEHf/p43PUAOlseAloln
 cG8HXo8mJlVHyQ+7zW5fyhYeLPpyjgOpW9eHqq9+HrgMvRJ2YqecSngJjxxB9Nm9/nmG
 wASwfaiObAXH7HcJChXmIyXNUR6rRQU3hcZPJpvp7VrJWSmoUmeG6P530gWfaq0fpC2/
 IfxQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=content-transfer-encoding:mime-version:user-agent:message-id
 :in-reply-to:date:references:subject:cc:to:from:x-gm-message-state
 :from:to:cc:subject:date;
 bh=7cYLQplY6ddUiEo2MFMBfSyeyTiQ8g0XyaL7jFXEoUs=;
 b=iIS1w2siwE41v1WsU9qCXhseqyV3jnluiWrOK5THSUMl3ZxCLb6CbR33d4GvIbZOMc
 gO45XuWCukRtp/sytCwTKg8kHzaBrTlD+jdge0yMTFDXS5bG0iS6MLANVjzTetlegr9J
 g3hiCvMmsKzsCqtEbJe7DniIPazpOCXndtUaWRHGT9V99+lfgxY+NA3q0SG2to1EeuvI
 7Vykh0mjBsS3FEpbYn2F82p920S8ZSipGxyOfZyEwlH7/bToFw6CImIzXl7c5z4NUohs
 whDjw4yWvDFJcaPDnzCeOZ4v7xI/KaoxFubqsXhgDqD+xYnjJFfOk6VJcSMqhLdo6G6r
 xgSQ==
X-Gm-Message-State: ACrzQf12F/ygkYtG6/iab0l47VATaxrjU2W10rVVI2GzuivW6yyEQKEu
 qhTqlBZLwWaSOavCmIM9fLc=
X-Google-Smtp-Source: AMsMyM4G6kEFdYQGL4QSuCri0iF7GWnJLpaC/Y8srqvD8E7+2PbQAM4E4jW8RKamVx15gnGjUjCNLw==
X-Received: by 2002:a05:622a:180d:b0:35b:d283:7e65 with SMTP id
 t13-20020a05622a180d00b0035bd2837e65mr555640qtc.106.1664414799090; 
 Wed, 28 Sep 2022 18:26:39 -0700 (PDT)
Received: from hurd (dsl-148-95.b2b2c.ca. [66.158.148.95])
 by smtp.gmail.com with ESMTPSA id
 v32-20020a05622a18a000b0035cf2995ad8sm4576071qtc.51.2022.09.28.18.26.38
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Wed, 28 Sep 2022 18:26:38 -0700 (PDT)
From: Maxim Cournoyer <maxim.cournoyer@HIDDEN>
To: Sam James <sam@HIDDEN>
Subject: Re: bug#17840: [PATCH] libtool: Use 'file' instead of
 '/usr/bin/file' on GNU systems.
References: <877g478l9y.fsf@HIDDEN>
 <CAFHYt55ccdsM1qOwvQgPCfGEHd0-hw6r_ukOJ90RCPifaBtsHg@HIDDEN>
 <8890686E-E5A6-4D8D-BC1D-1643C612CBC2@HIDDEN>
Date: Wed, 28 Sep 2022 21:26:37 -0400
In-Reply-To: <8890686E-E5A6-4D8D-BC1D-1643C612CBC2@HIDDEN> (Sam James's
 message of "Wed, 28 Sep 2022 21:29:01 +0100")
Message-ID: <87leq3nf76.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 17840
Cc: peda@HIDDEN, mhw@HIDDEN, ludo@HIDDEN, rc040203@HIDDEN,
 Felix Lechner <felix.lechner@HIDDEN>, bfriesen@HIDDEN,
 17840 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hello Sam,

Sam James <sam@HIDDEN> writes:

>> On 28 Sep 2022, at 14:34, Felix Lechner via Bug-libtool via Bug reports =
for the GNU libtool shared library maintenance tool <bug-libtool@HIDDEN> w=
rote:
>>=20
>> Hi,
>>=20
>>> there are a number of different 'file' programs and libtool expects
>>> particular output from the 'file' program that it uses.
>>=20
>> I only have one kind of 'file' program installed, and Libtool cannot fin=
d it.
>>=20
>> Developing on Guix=E2=80=94which is a GNU project like Libtool=E2=80=94I=
 hope to
>> migrate the authentication logic in Linux PAM to Guile (another GNU
>> project). I presently use Autotools and Libtool. [1] When running
>> './configure' I get the error:
>>=20
>>    ./configure: line 6750: /usr/bin/file: No such file or directory
>
> Which version of libtool? Can you share the header of the configure scrip=
t too?
>
> See also https://git.savannah.gnu.org/cgit/libtool.git/commit/?id=3Dda2e3=
52735722917bf0786284411262195a6a3f6
> which landed in 2.4.7. Note that configure scripts must be regenerated us=
ing a newer libtool to use this.

I don't have a reproducer handy, but we'll soon see if it works with
2.4.7; the patch linked suggests it should!  We have 2.4.7 lined up for
the next rebuild cycle in Guix.

Thanks for sharing, that's great news!

--=20
Maxim




Information forwarded to bug-libtool@HIDDEN:
bug#17840; Package libtool. Full text available.

Message received at 17840 <at> debbugs.gnu.org:


Received: (at 17840) by debbugs.gnu.org; 28 Sep 2022 20:29:19 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Sep 28 16:29:19 2022
Received: from localhost ([127.0.0.1]:34839 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oddgE-0000jb-Ru
	for submit <at> debbugs.gnu.org; Wed, 28 Sep 2022 16:29:19 -0400
Received: from woodpecker.gentoo.org ([140.211.166.183]:45452
 helo=smtp.gentoo.org) by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <sam@HIDDEN>) id 1oddgC-0000jM-2W
 for 17840 <at> debbugs.gnu.org; Wed, 28 Sep 2022 16:29:16 -0400
Content-Type: multipart/signed;
 boundary="Apple-Mail=_EE2726E5-34BF-4CB6-B93F-5AA0A3606435";
 protocol="application/pgp-signature"; micalg=pgp-sha512
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\))
Subject: Re: bug#17840: [PATCH] libtool: Use 'file' instead of '/usr/bin/file'
 on GNU systems.
From: Sam James <sam@HIDDEN>
In-Reply-To: <CAFHYt55ccdsM1qOwvQgPCfGEHd0-hw6r_ukOJ90RCPifaBtsHg@HIDDEN>
Date: Wed, 28 Sep 2022 21:29:01 +0100
Message-Id: <8890686E-E5A6-4D8D-BC1D-1643C612CBC2@HIDDEN>
References: <877g478l9y.fsf@HIDDEN>
 <CAFHYt55ccdsM1qOwvQgPCfGEHd0-hw6r_ukOJ90RCPifaBtsHg@HIDDEN>
To: Felix Lechner <felix.lechner@HIDDEN>
X-Mailer: Apple Mail (2.3696.120.41.1.1)
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 17840
Cc: peda@HIDDEN, maxim.cournoyer@HIDDEN, mhw@HIDDEN,
 ludo@HIDDEN, rc040203@HIDDEN, bfriesen@HIDDEN,
 17840 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)


--Apple-Mail=_EE2726E5-34BF-4CB6-B93F-5AA0A3606435
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8



> On 28 Sep 2022, at 14:34, Felix Lechner via Bug-libtool via Bug =
reports for the GNU libtool shared library maintenance tool =
<bug-libtool@HIDDEN> wrote:
>=20
> Hi,
>=20
>> there are a number of different 'file' programs and libtool expects
>> particular output from the 'file' program that it uses.
>=20
> I only have one kind of 'file' program installed, and Libtool cannot =
find it.
>=20
> Developing on Guix=E2=80=94which is a GNU project like Libtool=E2=80=94I=
 hope to
> migrate the authentication logic in Linux PAM to Guile (another GNU
> project). I presently use Autotools and Libtool. [1] When running
> './configure' I get the error:
>=20
>    ./configure: line 6750: /usr/bin/file: No such file or directory

Which version of libtool? Can you share the header of the configure =
script too?

See also =
https://git.savannah.gnu.org/cgit/libtool.git/commit/?id=3Dda2e35273572291=
7bf0786284411262195a6a3f6
which landed in 2.4.7. Note that configure scripts must be regenerated =
using a newer libtool to use this.

(See also the far older =
https://lists.gnu.org/archive/html/bug-libtool/2014-06/msg00005.html but =
I don't
think that landed at a very quick glance).

Best,
sam

--Apple-Mail=_EE2726E5-34BF-4CB6-B93F-5AA0A3606435
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=signature.asc
Content-Type: application/pgp-signature;
	name=signature.asc
Content-Description: Message signed with OpenPGP

-----BEGIN PGP SIGNATURE-----

iNUEARYKAH0WIQQlpruI3Zt2TGtVQcJzhAn1IN+RkAUCYzSujV8UgAAAAAAuAChp
c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0MjVB
NkJCODhERDlCNzY0QzZCNTU0MUMyNzM4NDA5RjUyMERGOTE5MAAKCRBzhAn1IN+R
kH5NAQD3E44I24YmS/xVTVtQazDPXOviIJZWIBSOteDlhNx17AD/RpdJNd6w6AXF
+Ur0FBHCndrz+JHDIURu1blytJwNWQ8=
=+IMF
-----END PGP SIGNATURE-----

--Apple-Mail=_EE2726E5-34BF-4CB6-B93F-5AA0A3606435--




Information forwarded to bug-libtool@HIDDEN:
bug#17840; Package libtool. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 28 Sep 2022 13:35:05 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Sep 28 09:35:05 2022
Received: from localhost ([127.0.0.1]:60697 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1odXDM-0003nx-Vk
	for submit <at> debbugs.gnu.org; Wed, 28 Sep 2022 09:35:05 -0400
Received: from lists.gnu.org ([209.51.188.17]:42292)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <felix.lechner@HIDDEN>) id 1odXDJ-0003nV-Nf
 for submit <at> debbugs.gnu.org; Wed, 28 Sep 2022 09:35:03 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:45816)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <felix.lechner@HIDDEN>)
 id 1odXDJ-0002cc-0b
 for bug-libtool@HIDDEN; Wed, 28 Sep 2022 09:35:01 -0400
Received: from linode.us-core.com ([2600:3c01::f03c:93ff:fe26:6229]:44364)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <felix.lechner@HIDDEN>)
 id 1odXDG-0001kI-Cr; Wed, 28 Sep 2022 09:35:00 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=2017; bh=BbyCbYhrclb2pY/
 omWMTQ0/VRP1L2lxQh9xFSJwaxg4=; h=cc:to:subject:date:from;
 d=lease-up.com; b=bYM9jIB2FaQfxlKMVxmJPw28aNjXDR3GHZkTH4yTIZDPxhS33MJG
 fOXc35rjd8io1LeWAXT9AuICEOV00hjx6+Pv9thmlsEL0V+Vdm0RgxfotQM1fasBJvV8ZI
 JJgDsvcUOe6kRQaroy9qmSq0PBP/ZBInEaEER9xofnICNrqlg=
Received: by linode.us-core.com (OpenSMTPD) with ESMTPSA id ab916263
 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); 
 Wed, 28 Sep 2022 13:34:52 +0000 (UTC)
Received: by mail-lf1-f41.google.com with SMTP id bu25so18510296lfb.3;
 Wed, 28 Sep 2022 06:34:52 -0700 (PDT)
X-Gm-Message-State: ACrzQf2klLVfDzPuGU+XW2BIVwIF/Jh/dfKR8Fi0jp8r91NwGmqADAyV
 yIIFI4hn1CWitBzpXdBL/eEs2OC4XCX1wm8aQms=
X-Google-Smtp-Source: AMsMyM51PV6isH/R2WEjCzkMYNU15E+KFPoKWVC6+UTdbStzAG0Kxd6lwBmF7Xb5tL46K7RJf2NIkHe2Znbl4pqkcak=
X-Received: by 2002:a19:5505:0:b0:497:ad71:39f4 with SMTP id
 n5-20020a195505000000b00497ad7139f4mr13141356lfe.226.1664372090796; Wed, 28
 Sep 2022 06:34:50 -0700 (PDT)
MIME-Version: 1.0
From: Felix Lechner <felix.lechner@HIDDEN>
Date: Wed, 28 Sep 2022 06:34:14 -0700
X-Gmail-Original-Message-ID: <CAFHYt55ccdsM1qOwvQgPCfGEHd0-hw6r_ukOJ90RCPifaBtsHg@HIDDEN>
Message-ID: <CAFHYt55ccdsM1qOwvQgPCfGEHd0-hw6r_ukOJ90RCPifaBtsHg@HIDDEN>
Subject: Re: bug#17840: [PATCH] libtool: Use 'file' instead of '/usr/bin/file'
 on GNU systems.
To: 17840 <at> debbugs.gnu.org
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=2600:3c01::f03c:93ff:fe26:6229;
 envelope-from=felix.lechner@HIDDEN; helo=linode.us-core.com
X-Spam_score_int: 16
X-Spam_score: 1.6
X-Spam_bar: +
X-Spam_report: (1.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
 DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_SBL_CSS=3.335,
 RCVD_IN_XBL=0.375, SPF_HELO_PASS=-0.001,
 SPF_PASS=-0.001 autolearn=no autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 2.2 (++)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 Content preview:  Hi, > there are a number of different 'file' programs and
 libtool expects > particular output from the 'file' program that it uses.
 I only have one kind of 'file' program installed, and Libtool cannot find
 it. Content analysis details:   (2.2 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 3.6 RCVD_IN_SBL_CSS        RBL: Received via a relay in Spamhaus SBL-CSS
 [2600:3c01:0:0:f03c:93ff:fe26:6229 listed in] [zen.spamhaus.org]
 -2.3 RCVD_IN_DNSWL_MED      RBL: Sender listed at https://www.dnswl.org/,
 medium trust [209.51.188.17 listed in list.dnswl.org]
 -0.0 SPF_HELO_PASS          SPF: HELO matches SPF record
 0.9 SPF_FAIL               SPF: sender does not match SPF record (fail)
 [SPF failed: Please see http://www.openspf.org/Why?s=mfrom;
 id=felix.lechner%40lease-up.com; ip=209.51.188.17; r=debbugs.gnu.org]
X-Debbugs-Envelope-To: submit
Cc: Maxim Cournoyer <maxim.cournoyer@HIDDEN>, Mark H Weaver <mhw@HIDDEN>,
 =?UTF-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>,
 Bob Friesenhahn <bfriesen@HIDDEN>, bug-libtool@HIDDEN,
 Ralf Corsepius <rc040203@HIDDEN>, Peter Rosin <peda@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 1.2 (+)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 
 Content preview:  Hi, > there are a number of different 'file' programs and
   libtool expects > particular output from the 'file' program that it uses.
   I only have one kind of 'file' program installed, and Libtool cannot find
   it. 
 
 Content analysis details:   (1.2 points, 10.0 required)
 
  pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -2.3 RCVD_IN_DNSWL_MED      RBL: Sender listed at https://www.dnswl.org/,
                             medium trust
                             [209.51.188.17 listed in list.dnswl.org]
  3.6 RCVD_IN_SBL_CSS        RBL: Received via a relay in Spamhaus SBL-CSS
                             [2600:3c01:0:0:f03c:93ff:fe26:6229 listed in]
                             [zen.spamhaus.org]
 -0.0 SPF_HELO_PASS          SPF: HELO matches SPF record
  0.9 SPF_FAIL               SPF: sender does not match SPF record (fail)
 [SPF failed: Please see http://www.openspf.org/Why?s=mfrom;id=felix.lechner%40lease-up.com;ip=209.51.188.17;r=debbugs.gnu.org]
 -1.0 MAILING_LIST_MULTI     Multiple indicators imply a widely-seen list
                             manager

Hi,

> there are a number of different 'file' programs and libtool expects
> particular output from the 'file' program that it uses.

I only have one kind of 'file' program installed, and Libtool cannot find i=
t.

Developing on Guix=E2=80=94which is a GNU project like Libtool=E2=80=94I ho=
pe to
migrate the authentication logic in Linux PAM to Guile (another GNU
project). I presently use Autotools and Libtool. [1] When running
'./configure' I get the error:

    ./configure: line 6750: /usr/bin/file: No such file or directory

As you can see at the bottom of this message, the issue probably
originated in Libtool, at least in part. With the help of a friend, I
found this bug.

While './configure' continues after the error, my appetite for
warnings is low due to the potential security implications of my work.

> If the 'file' encountered via PATH
> is not the same as the common one available as =E2=80=98/usr/bin/file=E2=
=80=99 on GNU
> systems, then there would be a problem.

That is a hypothetical. I have a real problem=E2=80=94for some value of
$problem. More significantly the hypothetical is my problem, and mine
alone.

If I were to use another implementation of the 'file' program,
/usr/bin/file would probably point to it. The use of the absolute path
does not ensure the program is the one Libtool expects. Moreover, it
falls outside the responsibilities of the Libtool maintainers to
curate my namespace of available executables. That is the domain of
distributions and system administrators. While the concern is valid,
it is not Libtool's problem.

As a side note, the positions here in favor of the absolute path
/usr/bin/file are only half correct. In Guix, we unequivocally believe
in absolute path names, perhaps more than most. The absolute
references allow us to have multiple versions of the same program
co-installed and available at the same time. Fans of /usr/bin/file are
encouraged to explore Guix. [2] You may find happiness!

Thank you for maintaining Libtool, an old and trusted friend!

Kind regards
Felix Lechner

[1] https://codeberg.org/lechner/guile-pam
[2] https://guix.gnu.org/

* * *

$ guix shell --development --file=3Dguix.scm --check
$ autoreconf -fi
$ fgrep /usr/bin/file configure
  lt_cv_file_magic_cmd=3D'/usr/bin/file -L'
      lt_cv_file_magic_cmd=3D/usr/bin/file
  lt_cv_file_magic_cmd=3D/usr/bin/file
  lt_cv_file_magic_cmd=3D/usr/bin/file
    case `/usr/bin/file conftest.$ac_objext` in
      case `/usr/bin/file conftest.$ac_objext` in
      case `/usr/bin/file conftest.$ac_objext` in
    case `/usr/bin/file conftest.$ac_objext` in
    case `/usr/bin/file conftest.$ac_objext` in
    case `/usr/bin/file conftest.$ac_objext` in
    case `/usr/bin/file conftest.o` in
        case `/usr/bin/file conftest.o` in
    case `/usr/bin/file conftest.o` in
$ fgrep -n usr/bin -r
/gnu/store/81n58x4293zwhvydzvvnypcz7y59jqmx-libtool-2.4.6/share/aclocal/lib=
tool.m4
1295:    case `/usr/bin/file conftest.$ac_objext` in
1312:      case `/usr/bin/file conftest.$ac_objext` in
1324:      case `/usr/bin/file conftest.$ac_objext` in
1346:    case `/usr/bin/file conftest.$ac_objext` in
1354:    case `/usr/bin/file conftest.$ac_objext` in
1362:    case `/usr/bin/file conftest.$ac_objext` in
1382:    case `/usr/bin/file conftest.o` in
1389:    case `/usr/bin/file conftest.o` in
1457:    case `/usr/bin/file conftest.o` in
2661:  if test -x /usr/bin/objformat; then
2662:    objformat=3D`/usr/bin/objformat`
3226:[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$P=
ATH)
3229:    _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
3457:  lt_cv_file_magic_cmd=3D'/usr/bin/file -L'
3498:      lt_cv_file_magic_cmd=3D/usr/bin/file
3512:  lt_cv_file_magic_cmd=3D/usr/bin/file
3559:  lt_cv_file_magic_cmd=3D/usr/bin/file




Information forwarded to bug-libtool@HIDDEN:
bug#17840; Package libtool. Full text available.

Message received at 17840 <at> debbugs.gnu.org:


Received: (at 17840) by debbugs.gnu.org; 28 Sep 2022 13:34:59 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Sep 28 09:34:59 2022
Received: from localhost ([127.0.0.1]:60693 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1odXDG-0003nB-F1
	for submit <at> debbugs.gnu.org; Wed, 28 Sep 2022 09:34:58 -0400
Received: from linode.us-core.com ([23.239.4.72]:55964)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <felix.lechner@HIDDEN>) id 1odXDD-0003n0-0v
 for 17840 <at> debbugs.gnu.org; Wed, 28 Sep 2022 09:34:57 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=2017; bh=BbyCbYhrclb2pY/
 omWMTQ0/VRP1L2lxQh9xFSJwaxg4=; h=cc:to:subject:date:from;
 d=lease-up.com; b=bYM9jIB2FaQfxlKMVxmJPw28aNjXDR3GHZkTH4yTIZDPxhS33MJG
 fOXc35rjd8io1LeWAXT9AuICEOV00hjx6+Pv9thmlsEL0V+Vdm0RgxfotQM1fasBJvV8ZI
 JJgDsvcUOe6kRQaroy9qmSq0PBP/ZBInEaEER9xofnICNrqlg=
Received: by linode.us-core.com (OpenSMTPD) with ESMTPSA id fa6bc3a3
 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO) for <17840 <at> debbugs.gnu.org>;
 Wed, 28 Sep 2022 13:34:52 +0000 (UTC)
Received: by mail-lf1-f48.google.com with SMTP id a8so20365680lff.13
 for <17840 <at> debbugs.gnu.org>; Wed, 28 Sep 2022 06:34:52 -0700 (PDT)
X-Gm-Message-State: ACrzQf3EE02qKfaJONPFc1ehpmq9Dz9Tb/VbPZaujEI/c5TZOUIG1DKX
 WzOMCVrcpUn12BM/mAERoYPFods0vZkw07qPMvY=
X-Google-Smtp-Source: AMsMyM51PV6isH/R2WEjCzkMYNU15E+KFPoKWVC6+UTdbStzAG0Kxd6lwBmF7Xb5tL46K7RJf2NIkHe2Znbl4pqkcak=
X-Received: by 2002:a19:5505:0:b0:497:ad71:39f4 with SMTP id
 n5-20020a195505000000b00497ad7139f4mr13141356lfe.226.1664372090796; Wed, 28
 Sep 2022 06:34:50 -0700 (PDT)
MIME-Version: 1.0
From: Felix Lechner <felix.lechner@HIDDEN>
Date: Wed, 28 Sep 2022 06:34:14 -0700
X-Gmail-Original-Message-ID: <CAFHYt55ccdsM1qOwvQgPCfGEHd0-hw6r_ukOJ90RCPifaBtsHg@HIDDEN>
Message-ID: <CAFHYt55ccdsM1qOwvQgPCfGEHd0-hw6r_ukOJ90RCPifaBtsHg@HIDDEN>
Subject: Re: bug#17840: [PATCH] libtool: Use 'file' instead of '/usr/bin/file'
 on GNU systems.
To: 17840 <at> debbugs.gnu.org
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 17840
Cc: Maxim Cournoyer <maxim.cournoyer@HIDDEN>, Mark H Weaver <mhw@HIDDEN>,
 =?UTF-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>,
 Bob Friesenhahn <bfriesen@HIDDEN>, bug-libtool@HIDDEN,
 Ralf Corsepius <rc040203@HIDDEN>, Peter Rosin <peda@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hi,

> there are a number of different 'file' programs and libtool expects
> particular output from the 'file' program that it uses.

I only have one kind of 'file' program installed, and Libtool cannot find i=
t.

Developing on Guix=E2=80=94which is a GNU project like Libtool=E2=80=94I ho=
pe to
migrate the authentication logic in Linux PAM to Guile (another GNU
project). I presently use Autotools and Libtool. [1] When running
'./configure' I get the error:

    ./configure: line 6750: /usr/bin/file: No such file or directory

As you can see at the bottom of this message, the issue probably
originated in Libtool, at least in part. With the help of a friend, I
found this bug.

While './configure' continues after the error, my appetite for
warnings is low due to the potential security implications of my work.

> If the 'file' encountered via PATH
> is not the same as the common one available as =E2=80=98/usr/bin/file=E2=
=80=99 on GNU
> systems, then there would be a problem.

That is a hypothetical. I have a real problem=E2=80=94for some value of
$problem. More significantly the hypothetical is my problem, and mine
alone.

If I were to use another implementation of the 'file' program,
/usr/bin/file would probably point to it. The use of the absolute path
does not ensure the program is the one Libtool expects. Moreover, it
falls outside the responsibilities of the Libtool maintainers to
curate my namespace of available executables. That is the domain of
distributions and system administrators. While the concern is valid,
it is not Libtool's problem.

As a side note, the positions here in favor of the absolute path
/usr/bin/file are only half correct. In Guix, we unequivocally believe
in absolute path names, perhaps more than most. The absolute
references allow us to have multiple versions of the same program
co-installed and available at the same time. Fans of /usr/bin/file are
encouraged to explore Guix. [2] You may find happiness!

Thank you for maintaining Libtool, an old and trusted friend!

Kind regards
Felix Lechner

[1] https://codeberg.org/lechner/guile-pam
[2] https://guix.gnu.org/

* * *

$ guix shell --development --file=3Dguix.scm --check
$ autoreconf -fi
$ fgrep /usr/bin/file configure
  lt_cv_file_magic_cmd=3D'/usr/bin/file -L'
      lt_cv_file_magic_cmd=3D/usr/bin/file
  lt_cv_file_magic_cmd=3D/usr/bin/file
  lt_cv_file_magic_cmd=3D/usr/bin/file
    case `/usr/bin/file conftest.$ac_objext` in
      case `/usr/bin/file conftest.$ac_objext` in
      case `/usr/bin/file conftest.$ac_objext` in
    case `/usr/bin/file conftest.$ac_objext` in
    case `/usr/bin/file conftest.$ac_objext` in
    case `/usr/bin/file conftest.$ac_objext` in
    case `/usr/bin/file conftest.o` in
        case `/usr/bin/file conftest.o` in
    case `/usr/bin/file conftest.o` in
$ fgrep -n usr/bin -r
/gnu/store/81n58x4293zwhvydzvvnypcz7y59jqmx-libtool-2.4.6/share/aclocal/lib=
tool.m4
1295:    case `/usr/bin/file conftest.$ac_objext` in
1312:      case `/usr/bin/file conftest.$ac_objext` in
1324:      case `/usr/bin/file conftest.$ac_objext` in
1346:    case `/usr/bin/file conftest.$ac_objext` in
1354:    case `/usr/bin/file conftest.$ac_objext` in
1362:    case `/usr/bin/file conftest.$ac_objext` in
1382:    case `/usr/bin/file conftest.o` in
1389:    case `/usr/bin/file conftest.o` in
1457:    case `/usr/bin/file conftest.o` in
2661:  if test -x /usr/bin/objformat; then
2662:    objformat=3D`/usr/bin/objformat`
3226:[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$P=
ATH)
3229:    _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
3457:  lt_cv_file_magic_cmd=3D'/usr/bin/file -L'
3498:      lt_cv_file_magic_cmd=3D/usr/bin/file
3512:  lt_cv_file_magic_cmd=3D/usr/bin/file
3559:  lt_cv_file_magic_cmd=3D/usr/bin/file




Information forwarded to bug-libtool@HIDDEN:
bug#17840; Package libtool. Full text available.

Message received at 17840 <at> debbugs.gnu.org:


Received: (at 17840) by debbugs.gnu.org; 16 Jun 2021 20:26:04 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jun 16 16:26:03 2021
Received: from localhost ([127.0.0.1]:53410 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ltc6t-0003fB-L2
	for submit <at> debbugs.gnu.org; Wed, 16 Jun 2021 16:26:03 -0400
Received: from mail-qv1-f54.google.com ([209.85.219.54]:42873)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <maxim.cournoyer@HIDDEN>) id 1ltc6r-0003eh-Lo
 for 17840 <at> debbugs.gnu.org; Wed, 16 Jun 2021 16:26:02 -0400
Received: by mail-qv1-f54.google.com with SMTP id c10so423554qvo.9
 for <17840 <at> debbugs.gnu.org>; Wed, 16 Jun 2021 13:26:01 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version:content-transfer-encoding;
 bh=4w3RsHZsxQhaaCOlFN/hZwdtmOqFcT25d+fA4PTDKww=;
 b=uVW/kiICsXcOZ/vzydVQD8Bntmtc0K/u5cxZqCz4c8xvLOe2IQRMkkPqUu4GcJXSX6
 k3yGkzLEgMzyKdK1jDdr+v8zw6k/Gb0MYXpdPn40muHpmAhFZw9kGOPv7ZqJdLrLEyTc
 xDl2ke74kzmd1mu7PrBA5ICTqOwciDSCrsMLozsBExWbZE37320Tzcs/Pvg3oV1a1QH9
 ntv5JkynDu9iaLlD7Vt43VXkQOdlVh4Zb2kinGdx4meDbsjP1OXjEth/S4vArNCUCDY9
 IwjMyZhZfZuxMIew40JwBti6Y88MR5sv8sIcLZFWAPd57fx0n22MZBdcN+oIZ6jru3nL
 1K/A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to
 :message-id:user-agent:mime-version:content-transfer-encoding;
 bh=4w3RsHZsxQhaaCOlFN/hZwdtmOqFcT25d+fA4PTDKww=;
 b=jSIyrtXoK6yicZXDju/N8ClQ+5xy6CmTcOGtB7ayE+muYR0NnZ+r53cxVq6UOvW8Jv
 V2Glx8xlvr2qoi46k5b8BtsHs1p4jJyaRLNrO/abmXYoyMwDq8JKX9VDUqmWVUinM4Mk
 AD78mwE4PfNzMlVSeFxifTivx+E2uCSKrQVScykNnS4lFGIT9LQy2QY7/VNrFp+2Bc4s
 Jd4zwnvrvTd2sk3ETyzlAC/FWRYqvYEd3wLXL0vOW2jWTfNBJUq3tO6ZOIrIzGlHqA8Q
 ZJi6TOWhRS+4r5GVo2Q4OnY982SDkFB/RMM9B/WhfthlkenN7UdNsRm5VnyaIFXYmLJ+
 AqCw==
X-Gm-Message-State: AOAM530SBUXajszqRGUsc+AtQjhcRfzrEHfDRokeMfAhbM3+VgxEyCBV
 pqJmmkHXRLsz4s5STSSEOujDqBHRxFnb/cX/
X-Google-Smtp-Source: ABdhPJxY5czVmQD9QOpICWbMjkefHZ4oD5KYuKsr/nvpRIU6+8BHCEIxUW400o+8vtXxz9XVrdQQ/A==
X-Received: by 2002:a0c:c612:: with SMTP id v18mr1934539qvi.20.1623875154893; 
 Wed, 16 Jun 2021 13:25:54 -0700 (PDT)
Received: from hurd (dsl-156-35.b2b2c.ca. [66.158.156.35])
 by smtp.gmail.com with ESMTPSA id l6sm253942qkk.117.2021.06.16.13.25.54
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Wed, 16 Jun 2021 13:25:54 -0700 (PDT)
From: Maxim Cournoyer <maxim.cournoyer@HIDDEN>
To: Bob Friesenhahn <bfriesen@HIDDEN>
Subject: Re: bug#17840: [PATCH] libtool: Use 'file' instead of
 '/usr/bin/file' on GNU systems.
References: <877g478l9y.fsf@HIDDEN>
 <alpine.GSO.2.01.1406240832440.18732@HIDDEN>
 <87ionq1iho.fsf@HIDDEN>
 <alpine.GSO.2.01.1406241108470.21829@HIDDEN>
Date: Wed, 16 Jun 2021 16:25:53 -0400
In-Reply-To: <alpine.GSO.2.01.1406241108470.21829@HIDDEN>
 (Bob Friesenhahn's message of "Tue, 24 Jun 2014 11:28:25 -0500 (CDT)")
Message-ID: <871r91sgj2.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 17840
Cc: mhw@HIDDEN, Ludovic =?utf-8?Q?Court=C3=A8s?= <ludo@HIDDEN>,
 17840 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hi,

Bob Friesenhahn <bfriesen@HIDDEN> writes:

> On Tue, 24 Jun 2014, Ludovic Court=C3=A8s wrote:
>>
>>> The reason for the hard-coded path is because there are a number of
>>> different 'file' programs and libtool expects particular output from
>>> the 'file' program that it uses.  If the 'file' encountered via PATH
>>> is not the same as the common one available as =E2=80=98/usr/bin/file=
=E2=80=99 on GNU
>>> systems, then there would be a problem.
>>
>> Well, the systems I was referring to are GNU systems too.  ;-)
>>
>> Do you remember what other =E2=80=98file=E2=80=99 programs could interfe=
re?  Debian has
>> only one =E2=80=98file=E2=80=99 program, for instance:
>> <https://packages.debian.org/search?searchon=3Dcontents&keywords=3Dfile&=
mode=3Dexactfilename&suite=3Dstable&arch=3Dany>.
>
> This is the web page for the most popular and common 'file'
> command. It is not a GNU program:
>
> 	http://darwinsys.com/file/
>
>> Besides, relying on file names to identify programs seems fragile: just
>> like I can have an unrelated =E2=80=98file=E2=80=99 command in $PATH, I =
can install an
>> unrelated =E2=80=98file=E2=80=99 command in /usr/bin.
>
> Yes, it is fragile but it is more likely to encounter a wrong program
> named 'file' in the path than to encounter a wrong /usr/bin/file
> program.
>
>> If there=E2=80=99s a concrete risk of confusion with a same-named progra=
m,
>> perhaps the most robust thing to do would be to try, say, =E2=80=98file
>> --version=E2=80=99 and search for some distinguishing pattern in the out=
put.
>
> What would we do if 'file' did not respond appropriately to a
> --version argument?

It seems to me that we are looking farther than needed; unless we have
good reasons not to (which we do not seem to have), it seems reasonable
to assume 'file' to be correctly working; if the user install a 'file'
command on their PATH which behaves differently than the traditional
'file' utility, they can only blame themselves for problems.

> A simple approach would be to use /usr/bin/file if is available, or
> otherwise use the first 'file' found in the executable search path.
> This avoids the need for re-testing on exotic systems and does not
> substantially increase the level of risk.

For the non-FHS package managers such as Guix/Nix, that are able to run
on top of any GNU/Linux distribution, that would be sub-optimal as the
command would be used from the host instead of from the user's PATH;
e.g. if you 'guix install file', file wouldn't be used from Guix but
from the host distribution instead.

I hope that helps to understand the rationale for behind preferring PATH
to hard coded locations.

Maxim




Information forwarded to bug-libtool@HIDDEN:
bug#17840; Package libtool. Full text available.

Message received at 17840 <at> debbugs.gnu.org:


Received: (at 17840) by debbugs.gnu.org; 16 Jun 2021 20:16:11 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jun 16 16:16:11 2021
Received: from localhost ([127.0.0.1]:53406 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ltbxL-0003QF-KJ
	for submit <at> debbugs.gnu.org; Wed, 16 Jun 2021 16:16:11 -0400
Received: from mail-qv1-f53.google.com ([209.85.219.53]:45797)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <maxim.cournoyer@HIDDEN>) id 1ltbxK-0003Q2-69
 for 17840 <at> debbugs.gnu.org; Wed, 16 Jun 2021 16:16:10 -0400
Received: by mail-qv1-f53.google.com with SMTP id ct13so210072qvb.12
 for <17840 <at> debbugs.gnu.org>; Wed, 16 Jun 2021 13:16:10 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version:content-transfer-encoding;
 bh=q4FgciN511pU4l5FYpADQ4MPNGo8XkvdKrqOtu4hs5E=;
 b=VexYr7aS9w24LV+ZxxyUzApL+DYb/Vk20IT/rXz56jvhwcEGGpMZLXmZQyts/PE75J
 y32d5o7BYoC2WCx9EUHp1I70AJPORqQ7S/aGmPzbb1ITK7pFccGuEtMANjV5u7vZz/iV
 aic0+3Ox+z9ccILDEcAdINEU4hSLVBJA6vD6ujS6Yu9Sei1QHiI+d7ajytPVaAZBAnGO
 oUzF3nNKhlPqECuErQdLNISpIQ6QGr8xMyA4KBSafHdGKWvLGQMtyIOH9UQTbiKrRxb2
 sQ/FkZ0OItcJlKTf8OOYtir9M4asbjKKe/eJ7G/ikT9d7HeDLVlE+rFn3vDe2nhopksy
 xHgQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to
 :message-id:user-agent:mime-version:content-transfer-encoding;
 bh=q4FgciN511pU4l5FYpADQ4MPNGo8XkvdKrqOtu4hs5E=;
 b=Pf9x8OB0MkwY9jbpenRKkNeX3Vp7f4ToeuTC3PkjAb0vxIOGhsjVcIh4Vu/lYqu0/s
 +W7riF3j5Oey8oafwQwN+WKh574/wBj5RuaUP2kRwAwwn8ZFtwL3PczlrxeRxi6Y5FuV
 mDW8XFNRKLRGIVNV0l9MJrzaM4mB8xdSu1jYejTBDzpI/5N8z4flb/r3nRjckvP0uZOG
 2XrvgOKO/lMFNxtkKdtK/wC43KEvp7iKbQ8TYZrmfrGR2fI760YBk4DrINeA1770XxVa
 yh5HT4MNv4zGeW3+NYbFmN5pau9bvg/lMINoKiUAVNcCj0Jn4KFZIkKJAfsQSV5ogXrR
 oFXw==
X-Gm-Message-State: AOAM531WBmLx73KLgBb76GB/ZSoIJ9OZdGm7mzM+x54c4tGYQLsLw7RA
 WnEkVTkT1HXJj6+1A01jbVej0RUA0eDwng==
X-Google-Smtp-Source: ABdhPJxjbohG4HkraWthvmdttRWrY2OdwHoukiChfBIQy2Vp4ItOETrydYnAV26ZOu7m8phD6lCA6g==
X-Received: by 2002:ad4:50c6:: with SMTP id e6mr1948958qvq.6.1623874564532;
 Wed, 16 Jun 2021 13:16:04 -0700 (PDT)
Received: from hurd (dsl-156-35.b2b2c.ca. [66.158.156.35])
 by smtp.gmail.com with ESMTPSA id l3sm1874688qth.87.2021.06.16.13.16.04
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Wed, 16 Jun 2021 13:16:04 -0700 (PDT)
From: Maxim Cournoyer <maxim.cournoyer@HIDDEN>
To: Peter Rosin <peda@HIDDEN>
Subject: Re: bug#17840: [PATCH] libtool: Use 'file' instead of
 '/usr/bin/file' on GNU systems.
References: <877g478l9y.fsf@HIDDEN>
 <alpine.GSO.2.01.1406240832440.18732@HIDDEN>
 <87ionq1iho.fsf@HIDDEN> <53A9A260.1060302@HIDDEN>
 <53A9E10C.3080109@HIDDEN>
Date: Wed, 16 Jun 2021 16:16:03 -0400
In-Reply-To: <53A9E10C.3080109@HIDDEN> (Peter Rosin's message of "Tue, 
 24 Jun 2014 22:35:24 +0200")
Message-ID: <877ditsgzg.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 17840
Cc: Ralf Corsepius <rc040203@HIDDEN>, 17840 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hello,

Peter Rosin <peda@HIDDEN> writes:

> On 2014-06-24 18:08, Ralf Corsepius wrote:
>> On 06/24/2014 04:37 PM, Ludovic Court=C3=A8s wrote:
>>> Bob Friesenhahn <bfriesen@HIDDEN> skribis:
>>>
>>>> On Mon, 23 Jun 2014, Ludovic Court=C3=A8s wrote:
>>>>
>>>>> Hello,
>>>>>
>>>>> The patch below changes occurrences of =E2=80=98/usr/bin/file=E2=80=
=99 to just =E2=80=98file=E2=80=99.
>>>>>
>>>>> The impetus is that on systems using GNU Guix, NixOS, GoboLinux, and
>>>>> others, the =E2=80=98file=E2=80=99 command is not available as /usr/b=
in/file, so it must
>>>>> instead be taken from $PATH.
>>>>>
>>>>> (I conservatively left =E2=80=98/usr/bin/file=E2=80=99 for more centr=
alized systems such
>>>>> as BSD, IRIX, etc. where it=E2=80=99s more likely to be a valid comma=
nd.)
>>>>
>>>> Were you able to re-test on all of the impacted platforms?
>>>
>>> No, but that list is verrry long.
>>=20
>> Makes me wonder, why this issue has not come up before and what your iss=
ue actually is.
>
> I suspect this has something to do with merging /usr/bin and /bin coupled
> with some purist attempt to get rid of the compatibility symlink from one
> to the other.
>
> But that's just a guess.

Ludovic being the creator of GNU Guix, a functional package
manager/distribution, I rather suspect that it comes from the fact that
Guix does not follow the Linux Foundation's File Hierarchy Standard (for
a good reason -- to be able to refer to each input unambiguously based
on their corresponding hash).  On those systems, the only sane way to
find commands is to use the PATH.

HTH,

Maxim




Information forwarded to bug-libtool@HIDDEN:
bug#17840; Package libtool. Full text available.

Message received at 17840 <at> debbugs.gnu.org:


Received: (at 17840) by debbugs.gnu.org; 24 Jun 2014 20:35:39 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jun 24 16:35:39 2014
Received: from localhost ([127.0.0.1]:59667 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1WzXRF-0004WT-VB
	for submit <at> debbugs.gnu.org; Tue, 24 Jun 2014 16:35:38 -0400
Received: from mail.lysator.liu.se ([130.236.254.3]:41894)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <peda@HIDDEN>) id 1WzXR9-0004WC-Nw
 for 17840 <at> debbugs.gnu.org; Tue, 24 Jun 2014 16:35:32 -0400
Received: from mail.lysator.liu.se (localhost [127.0.0.1])
 by mail.lysator.liu.se (Postfix) with ESMTP id 68A9540023;
 Tue, 24 Jun 2014 22:35:26 +0200 (CEST)
Received: from [192.168.0.68] (90-227-119-221-no95.business.telia.com
 [90.227.119.221])
 (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits))
 (No client certificate requested)
 by mail.lysator.liu.se (Postfix) with ESMTPSA id 1B2FA40009;
 Tue, 24 Jun 2014 22:35:26 +0200 (CEST)
Message-ID: <53A9E10C.3080109@HIDDEN>
Date: Tue, 24 Jun 2014 22:35:24 +0200
From: Peter Rosin <peda@HIDDEN>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64;
 rv:24.0) Gecko/20100101 Thunderbird/24.5.0
MIME-Version: 1.0
To: Ralf Corsepius <rc040203@HIDDEN>, 17840 <at> debbugs.gnu.org
Subject: Re: bug#17840: [PATCH] libtool: Use 'file' instead of '/usr/bin/file'
 on GNU systems.
References: <877g478l9y.fsf@HIDDEN>	<alpine.GSO.2.01.1406240832440.18732@HIDDEN>	<87ionq1iho.fsf@HIDDEN>
 <53A9A260.1060302@HIDDEN>
In-Reply-To: <53A9A260.1060302@HIDDEN>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Virus-Scanned: ClamAV using ClamSMTP
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 17840
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

On 2014-06-24 18:08, Ralf Corsepius wrote:
> On 06/24/2014 04:37 PM, Ludovic Courtès wrote:
>> Bob Friesenhahn <bfriesen@HIDDEN> skribis:
>>
>>> On Mon, 23 Jun 2014, Ludovic Courtès wrote:
>>>
>>>> Hello,
>>>>
>>>> The patch below changes occurrences of ‘/usr/bin/file’ to just ‘file’.
>>>>
>>>> The impetus is that on systems using GNU Guix, NixOS, GoboLinux, and
>>>> others, the ‘file’ command is not available as /usr/bin/file, so it must
>>>> instead be taken from $PATH.
>>>>
>>>> (I conservatively left ‘/usr/bin/file’ for more centralized systems such
>>>> as BSD, IRIX, etc. where it’s more likely to be a valid command.)
>>>
>>> Were you able to re-test on all of the impacted platforms?
>>
>> No, but that list is verrry long.
> 
> Makes me wonder, why this issue has not come up before and what your issue actually is.

I suspect this has something to do with merging /usr/bin and /bin coupled
with some purist attempt to get rid of the compatibility symlink from one
to the other.

But that's just a guess.

Cheers,
Peter





Information forwarded to bug-libtool@HIDDEN:
bug#17840; Package libtool. Full text available.

Message received at 17840 <at> debbugs.gnu.org:


Received: (at 17840) by debbugs.gnu.org; 24 Jun 2014 19:34:25 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jun 24 15:34:25 2014
Received: from localhost ([127.0.0.1]:59600 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1WzWU1-0002cu-BX
	for submit <at> debbugs.gnu.org; Tue, 24 Jun 2014 15:34:25 -0400
Received: from hera.aquilenet.fr ([141.255.128.1]:44988)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <ludo@HIDDEN>) id 1WzWTp-0002cV-9e
 for 17840 <at> debbugs.gnu.org; Tue, 24 Jun 2014 15:34:18 -0400
Received: from localhost (localhost [127.0.0.1])
 by hera.aquilenet.fr (Postfix) with ESMTP id 5E8CE2F00;
 Tue, 24 Jun 2014 21:34:07 +0200 (CEST)
Received: from hera.aquilenet.fr ([127.0.0.1])
 by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id XpQCWliALZ5V; Tue, 24 Jun 2014 21:34:07 +0200 (CEST)
Received: from pluto (reverse-83.fdn.fr [80.67.176.83])
 by hera.aquilenet.fr (Postfix) with ESMTPSA id E6E17B0;
 Tue, 24 Jun 2014 21:34:06 +0200 (CEST)
From: ludo@HIDDEN (Ludovic =?utf-8?Q?Court=C3=A8s?=)
To: Bob Friesenhahn <bfriesen@HIDDEN>
Subject: Re: bug#17840: [PATCH] libtool: Use 'file' instead of '/usr/bin/file'
 on GNU systems.
References: <877g478l9y.fsf@HIDDEN>
 <alpine.GSO.2.01.1406240832440.18732@HIDDEN>
 <87ionq1iho.fsf@HIDDEN>
 <alpine.GSO.2.01.1406241108470.21829@HIDDEN>
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: 6 Messidor an 222 de la =?utf-8?Q?R=C3=A9volution?=
X-PGP-Key-ID: 0xEA52ECF4
X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc
X-PGP-Fingerprint: 83C4 F8E5 10A3 3B4C 5BEA  D15D 77DD 95E2 EA52 ECF4
X-OS: x86_64-unknown-linux-gnu
Date: Tue, 24 Jun 2014 21:34:06 +0200
In-Reply-To: <alpine.GSO.2.01.1406241108470.21829@HIDDEN>
 (Bob Friesenhahn's message of "Tue, 24 Jun 2014 11:28:25 -0500 (CDT)")
Message-ID: <87egyeqez5.fsf@HIDDEN>
User-Agent: Gnus/5.130009 (Ma Gnus v0.9) Emacs/24.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 17840
Cc: Mark H Weaver <mhw@HIDDEN>, bug-libtool@HIDDEN, 17840 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 1.0 (+)

Bob Friesenhahn <bfriesen@HIDDEN> skribis:

> On Tue, 24 Jun 2014, Ludovic Court=C3=A8s wrote:
>>
>>> The reason for the hard-coded path is because there are a number of
>>> different 'file' programs and libtool expects particular output from
>>> the 'file' program that it uses.  If the 'file' encountered via PATH
>>> is not the same as the common one available as =E2=80=98/usr/bin/file=
=E2=80=99 on GNU
>>> systems, then there would be a problem.
>>
>> Well, the systems I was referring to are GNU systems too.  ;-)
>>
>> Do you remember what other =E2=80=98file=E2=80=99 programs could interfe=
re?  Debian has
>> only one =E2=80=98file=E2=80=99 program, for instance:
>> <https://packages.debian.org/search?searchon=3Dcontents&keywords=3Dfile&=
mode=3Dexactfilename&suite=3Dstable&arch=3Dany>.
>
> This is the web page for the most popular and common 'file'
> command. It is not a GNU program:
>
> 	http://darwinsys.com/file/

Right.  I was asking about hypothetical unrelated =E2=80=98file=E2=80=99 co=
mmands that
would justify hard-coding /usr/bin/file.

Do we know of any?

Otherwise it=E2=80=99s no different from cat, touch, grep, etc.

Ludo=E2=80=99.




Information forwarded to bug-libtool@HIDDEN:
bug#17840; Package libtool. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 24 Jun 2014 19:34:40 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jun 24 15:34:40 2014
Received: from localhost ([127.0.0.1]:59603 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1WzWUG-0002dP-E8
	for submit <at> debbugs.gnu.org; Tue, 24 Jun 2014 15:34:40 -0400
Received: from eggs.gnu.org ([208.118.235.92]:54375)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <ludo@HIDDEN>) id 1WzWUA-0002d2-HU
 for submit <at> debbugs.gnu.org; Tue, 24 Jun 2014 15:34:34 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <ludo@HIDDEN>) id 1WzWU0-0002x3-3M
 for submit <at> debbugs.gnu.org; Tue, 24 Jun 2014 15:34:25 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD
 autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:45246)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ludo@HIDDEN>)
 id 1WzWU0-0002wy-0J
 for submit <at> debbugs.gnu.org; Tue, 24 Jun 2014 15:34:20 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:56076)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <ludo@HIDDEN>) id 1WzWTu-0006Bn-IE
 for bug-libtool@HIDDEN; Tue, 24 Jun 2014 15:34:19 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <ludo@HIDDEN>) id 1WzWTp-0002vi-E9
 for bug-libtool@HIDDEN; Tue, 24 Jun 2014 15:34:14 -0400
Received: from hera.aquilenet.fr ([2a01:474::1]:42640)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ludo@HIDDEN>)
 id 1WzWTp-0002vW-7J
 for bug-libtool@HIDDEN; Tue, 24 Jun 2014 15:34:09 -0400
Received: from localhost (localhost [127.0.0.1])
 by hera.aquilenet.fr (Postfix) with ESMTP id 5E8CE2F00;
 Tue, 24 Jun 2014 21:34:07 +0200 (CEST)
Received: from hera.aquilenet.fr ([127.0.0.1])
 by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id XpQCWliALZ5V; Tue, 24 Jun 2014 21:34:07 +0200 (CEST)
Received: from pluto (reverse-83.fdn.fr [80.67.176.83])
 by hera.aquilenet.fr (Postfix) with ESMTPSA id E6E17B0;
 Tue, 24 Jun 2014 21:34:06 +0200 (CEST)
From: ludo@HIDDEN (Ludovic =?utf-8?Q?Court=C3=A8s?=)
To: Bob Friesenhahn <bfriesen@HIDDEN>
Subject: Re: bug#17840: [PATCH] libtool: Use 'file' instead of '/usr/bin/file'
 on GNU systems.
References: <877g478l9y.fsf@HIDDEN>
 <alpine.GSO.2.01.1406240832440.18732@HIDDEN>
 <87ionq1iho.fsf@HIDDEN>
 <alpine.GSO.2.01.1406241108470.21829@HIDDEN>
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: 6 Messidor an 222 de la =?utf-8?Q?R=C3=A9volution?=
X-PGP-Key-ID: 0xEA52ECF4
X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc
X-PGP-Fingerprint: 83C4 F8E5 10A3 3B4C 5BEA  D15D 77DD 95E2 EA52 ECF4
X-OS: x86_64-unknown-linux-gnu
Date: Tue, 24 Jun 2014 21:34:06 +0200
In-Reply-To: <alpine.GSO.2.01.1406241108470.21829@HIDDEN>
 (Bob Friesenhahn's message of "Tue, 24 Jun 2014 11:28:25 -0500 (CDT)")
Message-ID: <87egyeqez5.fsf@HIDDEN>
User-Agent: Gnus/5.130009 (Ma Gnus v0.9) Emacs/24.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: submit
Cc: Mark H Weaver <mhw@HIDDEN>, bug-libtool@HIDDEN, 17840 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

Bob Friesenhahn <bfriesen@HIDDEN> skribis:

> On Tue, 24 Jun 2014, Ludovic Court=C3=A8s wrote:
>>
>>> The reason for the hard-coded path is because there are a number of
>>> different 'file' programs and libtool expects particular output from
>>> the 'file' program that it uses.  If the 'file' encountered via PATH
>>> is not the same as the common one available as =E2=80=98/usr/bin/file=
=E2=80=99 on GNU
>>> systems, then there would be a problem.
>>
>> Well, the systems I was referring to are GNU systems too.  ;-)
>>
>> Do you remember what other =E2=80=98file=E2=80=99 programs could interfe=
re?  Debian has
>> only one =E2=80=98file=E2=80=99 program, for instance:
>> <https://packages.debian.org/search?searchon=3Dcontents&keywords=3Dfile&=
mode=3Dexactfilename&suite=3Dstable&arch=3Dany>.
>
> This is the web page for the most popular and common 'file'
> command. It is not a GNU program:
>
> 	http://darwinsys.com/file/

Right.  I was asking about hypothetical unrelated =E2=80=98file=E2=80=99 co=
mmands that
would justify hard-coding /usr/bin/file.

Do we know of any?

Otherwise it=E2=80=99s no different from cat, touch, grep, etc.

Ludo=E2=80=99.




Information forwarded to bug-libtool@HIDDEN:
bug#17840; Package libtool. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 24 Jun 2014 16:34:15 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jun 24 12:34:15 2014
Received: from localhost ([127.0.0.1]:59499 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1WzTff-0005Xn-Od
	for submit <at> debbugs.gnu.org; Tue, 24 Jun 2014 12:34:15 -0400
Received: from eggs.gnu.org ([208.118.235.92]:51055)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <rc040203@HIDDEN>) id 1WzTJE-0004pk-4D
 for submit <at> debbugs.gnu.org; Tue, 24 Jun 2014 12:11:04 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <rc040203@HIDDEN>) id 1WzTJ0-0005as-Ae
 for submit <at> debbugs.gnu.org; Tue, 24 Jun 2014 12:10:54 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: *
X-Spam-Status: No, score=1.1 required=5.0 tests=BAYES_50,
 FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:33504)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <rc040203@HIDDEN>) id 1WzTJ0-0005aj-6l
 for submit <at> debbugs.gnu.org; Tue, 24 Jun 2014 12:10:46 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:52709)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <rc040203@HIDDEN>) id 1WzTIr-0006yH-Qk
 for bug-libtool@HIDDEN; Tue, 24 Jun 2014 12:10:46 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <rc040203@HIDDEN>) id 1WzTIj-0005W4-6Z
 for bug-libtool@HIDDEN; Tue, 24 Jun 2014 12:10:37 -0400
Received: from mout0.freenet.de ([195.4.92.90]:40688)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <rc040203@HIDDEN>) id 1WzTIj-0005Vj-14
 for bug-libtool@HIDDEN; Tue, 24 Jun 2014 12:10:29 -0400
Received: from [195.4.92.142] (helo=mjail2.freenet.de)
 by mout0.freenet.de with esmtpa (ID ralf.corsepius@HIDDEN) (port 25) (Exim
 4.82 #1) id 1WzTIh-0006Am-9a
 for bug-libtool@HIDDEN; Tue, 24 Jun 2014 18:10:27 +0200
Received: from localhost ([::1]:46639 helo=mjail2.freenet.de)
 by mjail2.freenet.de with esmtpa (ID ralf.corsepius@HIDDEN) (Exim 4.82 #1)
 id 1WzTIh-0007vG-5F
 for bug-libtool@HIDDEN; Tue, 24 Jun 2014 18:10:27 +0200
Received: from mx6.freenet.de ([195.4.92.16]:39679)
 by mjail2.freenet.de with esmtpa (ID ralf.corsepius@HIDDEN) (Exim 4.82 #1)
 id 1WzTGK-0006DK-Nc
 for bug-libtool@HIDDEN; Tue, 24 Jun 2014 18:08:00 +0200
Received: from hsi-kbw-46-223-132-160.hsi.kabel-badenwuerttemberg.de
 ([46.223.132.160]:39188 helo=[192.168.1.102])
 by mx6.freenet.de with esmtpsa (ID ralf.corsepius@HIDDEN)
 (TLSv1:DHE-RSA-AES128-SHA:128) (port 465) (Exim 4.82 #1)
 id 1WzTGK-0000GH-K0
 for bug-libtool@HIDDEN; Tue, 24 Jun 2014 18:08:00 +0200
Message-ID: <53A9A260.1060302@HIDDEN>
Date: Tue, 24 Jun 2014 18:08:00 +0200
From: Ralf Corsepius <rc040203@HIDDEN>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
 rv:24.0) Gecko/20100101 Thunderbird/24.6.0
MIME-Version: 1.0
To: bug-libtool@HIDDEN
Subject: Re: bug#17840: [PATCH] libtool: Use 'file' instead of '/usr/bin/file'
 on GNU systems.
References: <877g478l9y.fsf@HIDDEN>	<alpine.GSO.2.01.1406240832440.18732@HIDDEN>
 <87ionq1iho.fsf@HIDDEN>
In-Reply-To: <87ionq1iho.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Originated-At: 46.223.132.160!39188
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.7 (----)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Tue, 24 Jun 2014 12:34:10 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.7 (----)

On 06/24/2014 04:37 PM, Ludovic Courtès wrote:
> Bob Friesenhahn <bfriesen@HIDDEN> skribis:
>
>> On Mon, 23 Jun 2014, Ludovic Courtès wrote:
>>
>>> Hello,
>>>
>>> The patch below changes occurrences of ‘/usr/bin/file’ to just ‘file’.
>>>
>>> The impetus is that on systems using GNU Guix, NixOS, GoboLinux, and
>>> others, the ‘file’ command is not available as /usr/bin/file, so it must
>>> instead be taken from $PATH.
>>>
>>> (I conservatively left ‘/usr/bin/file’ for more centralized systems such
>>> as BSD, IRIX, etc. where it’s more likely to be a valid command.)
>>
>> Were you able to re-test on all of the impacted platforms?
>
> No, but that list is verrry long.

Makes me wonder, why this issue has not come up before and what your 
issue actually is.

>> The reason for the hard-coded path is because there are a number of
>> different 'file' programs and libtool expects particular output from
>> the 'file' program that it uses.  If the 'file' encountered via PATH
>> is not the same as the common one available as ‘/usr/bin/file’ on GNU
>> systems, then there would be a problem.
>
> Well, the systems I was referring to are GNU systems too.  ;-)
>
> Do you remember what other ‘file’ programs could interfere?

Any arbitrary "file" a user may have on $PATH.

Actually, in Fedora's packaging, we generally prefer absolute paths over 
plain "file names", to avoid malfunctions from arbitrary stuff people 
may have laying around on $PATH.

> Besides, relying on file names to identify programs seems fragile:
Correct. Trying to utilize "file"'s output to distinguish file types has 
a long history of breaking things and not being robust.

Ralf





Information forwarded to bug-libtool@HIDDEN:
bug#17840; Package libtool. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 24 Jun 2014 16:29:01 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jun 24 12:29:01 2014
Received: from localhost ([127.0.0.1]:59493 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1WzTae-0005Mw-OQ
	for submit <at> debbugs.gnu.org; Tue, 24 Jun 2014 12:29:01 -0400
Received: from eggs.gnu.org ([208.118.235.92]:56955)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <bfriesen@HIDDEN>) id 1WzTac-0005Mc-7N
 for submit <at> debbugs.gnu.org; Tue, 24 Jun 2014 12:28:58 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <bfriesen@HIDDEN>) id 1WzTaP-0006Gc-LM
 for submit <at> debbugs.gnu.org; Tue, 24 Jun 2014 12:28:52 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20 autolearn=disabled
 version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:42199)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <bfriesen@HIDDEN>) id 1WzTaP-0006GT-Iq
 for submit <at> debbugs.gnu.org; Tue, 24 Jun 2014 12:28:45 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:58649)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <bfriesen@HIDDEN>) id 1WzTaK-0008DW-2y
 for bug-libtool@HIDDEN; Tue, 24 Jun 2014 12:28:45 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <bfriesen@HIDDEN>) id 1WzTaE-00069q-Th
 for bug-libtool@HIDDEN; Tue, 24 Jun 2014 12:28:40 -0400
Received: from blade.simplesystems.org ([65.66.246.74]:65444)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <bfriesen@HIDDEN>)
 id 1WzTaE-000692-Ki; Tue, 24 Jun 2014 12:28:34 -0400
Received: from freddy.simplesystems.org (freddy.simplesystems.org
 [65.66.246.65])
 by blade.simplesystems.org (8.14.4+Sun/8.14.4) with ESMTP id s5OGSPCm020963;
 Tue, 24 Jun 2014 11:28:25 -0500 (CDT)
Date: Tue, 24 Jun 2014 11:28:25 -0500 (CDT)
From: Bob Friesenhahn <bfriesen@HIDDEN>
X-X-Sender: bfriesen@HIDDEN
To: =?ISO-8859-15?Q?Ludovic_Court=E8s?= <ludo@HIDDEN>
Subject: Re: bug#17840: [PATCH] libtool: Use 'file' instead of '/usr/bin/file'
 on GNU systems.
In-Reply-To: <87ionq1iho.fsf@HIDDEN>
Message-ID: <alpine.GSO.2.01.1406241108470.21829@HIDDEN>
References: <877g478l9y.fsf@HIDDEN>
 <alpine.GSO.2.01.1406240832440.18732@HIDDEN>
 <87ionq1iho.fsf@HIDDEN>
User-Agent: Alpine 2.01 (GSO 1266 2009-07-14)
MIME-Version: 1.0
Content-Type: MULTIPART/MIXED;
 BOUNDARY="-559023410-1297389768-1403627306=:21829"
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.2
 (blade.simplesystems.org [65.66.246.90]);
 Tue, 24 Jun 2014 11:28:26 -0500 (CDT)
X-detected-operating-system: by eggs.gnu.org: Solaris 10
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: submit
Cc: Mark H Weaver <mhw@HIDDEN>, bug-libtool@HIDDEN, 17840 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.

---559023410-1297389768-1403627306=:21829
Content-Type: TEXT/PLAIN; charset=utf-8; format=flowed
Content-Transfer-Encoding: quoted-printable
X-MIME-Autoconverted: from 8bit to quoted-printable by blade.simplesystems.org id s5OGSPCm020963

On Tue, 24 Jun 2014, Ludovic Court=C3=A8s wrote:
>
>> The reason for the hard-coded path is because there are a number of
>> different 'file' programs and libtool expects particular output from
>> the 'file' program that it uses.  If the 'file' encountered via PATH
>> is not the same as the common one available as =E2=80=98/usr/bin/file=E2=
=80=99 on GNU
>> systems, then there would be a problem.
>
> Well, the systems I was referring to are GNU systems too.  ;-)
>
> Do you remember what other =E2=80=98file=E2=80=99 programs could interf=
ere?  Debian has
> only one =E2=80=98file=E2=80=99 program, for instance:
> <https://packages.debian.org/search?searchon=3Dcontents&keywords=3Dfile=
&mode=3Dexactfilename&suite=3Dstable&arch=3Dany>.

This is the web page for the most popular and common 'file' command.=20
It is not a GNU program:

 	http://darwinsys.com/file/

> Besides, relying on file names to identify programs seems fragile: just
> like I can have an unrelated =E2=80=98file=E2=80=99 command in $PATH, I=
 can install an
> unrelated =E2=80=98file=E2=80=99 command in /usr/bin.

Yes, it is fragile but it is more likely to encounter a wrong program=20
named 'file' in the path than to encounter a wrong /usr/bin/file=20
program.

> If there=E2=80=99s a concrete risk of confusion with a same-named progr=
am,
> perhaps the most robust thing to do would be to try, say, =E2=80=98file
> --version=E2=80=99 and search for some distinguishing pattern in the ou=
tput.

What would we do if 'file' did not respond appropriately to a=20
--version argument?

A simple approach would be to use /usr/bin/file if is available, or=20
otherwise use the first 'file' found in the executable search path.=20
This avoids the need for re-testing on exotic systems and does not=20
substantially increase the level of risk.

Bob
--=20
Bob Friesenhahn
bfriesen@HIDDEN, http://www.simplesystems.org/users/bfriesen=
/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/
---559023410-1297389768-1403627306=:21829--




Information forwarded to bug-libtool@HIDDEN:
bug#17840; Package libtool. Full text available.

Message received at 17840 <at> debbugs.gnu.org:


Received: (at 17840) by debbugs.gnu.org; 24 Jun 2014 16:28:35 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jun 24 12:28:35 2014
Received: from localhost ([127.0.0.1]:59490 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1WzTaF-0005M0-3a
	for submit <at> debbugs.gnu.org; Tue, 24 Jun 2014 12:28:35 -0400
Received: from blade.simplesystems.org ([65.66.246.74]:65443)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <bfriesen@HIDDEN>) id 1WzTaC-0005Lh-Ae
 for 17840 <at> debbugs.gnu.org; Tue, 24 Jun 2014 12:28:33 -0400
Received: from freddy.simplesystems.org (freddy.simplesystems.org
 [65.66.246.65])
 by blade.simplesystems.org (8.14.4+Sun/8.14.4) with ESMTP id s5OGSPCm020963;
 Tue, 24 Jun 2014 11:28:25 -0500 (CDT)
Date: Tue, 24 Jun 2014 11:28:25 -0500 (CDT)
From: Bob Friesenhahn <bfriesen@HIDDEN>
X-X-Sender: bfriesen@HIDDEN
To: =?ISO-8859-15?Q?Ludovic_Court=E8s?= <ludo@HIDDEN>
Subject: Re: bug#17840: [PATCH] libtool: Use 'file' instead of '/usr/bin/file'
 on GNU systems.
In-Reply-To: <87ionq1iho.fsf@HIDDEN>
Message-ID: <alpine.GSO.2.01.1406241108470.21829@HIDDEN>
References: <877g478l9y.fsf@HIDDEN>
 <alpine.GSO.2.01.1406240832440.18732@HIDDEN>
 <87ionq1iho.fsf@HIDDEN>
User-Agent: Alpine 2.01 (GSO 1266 2009-07-14)
MIME-Version: 1.0
Content-Type: MULTIPART/MIXED;
 BOUNDARY="-559023410-1297389768-1403627306=:21829"
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.2
 (blade.simplesystems.org [65.66.246.90]);
 Tue, 24 Jun 2014 11:28:26 -0500 (CDT)
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 17840
Cc: Mark H Weaver <mhw@HIDDEN>, bug-libtool@HIDDEN, 17840 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.0 (/)

  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.

---559023410-1297389768-1403627306=:21829
Content-Type: TEXT/PLAIN; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8BIT

On Tue, 24 Jun 2014, Ludovic Courtès wrote:
>
>> The reason for the hard-coded path is because there are a number of
>> different 'file' programs and libtool expects particular output from
>> the 'file' program that it uses.  If the 'file' encountered via PATH
>> is not the same as the common one available as ‘/usr/bin/file’ on GNU
>> systems, then there would be a problem.
>
> Well, the systems I was referring to are GNU systems too.  ;-)
>
> Do you remember what other ‘file’ programs could interfere?  Debian has
> only one ‘file’ program, for instance:
> <https://packages.debian.org/search?searchon=contents&keywords=file&mode=exactfilename&suite=stable&arch=any>.

This is the web page for the most popular and common 'file' command. 
It is not a GNU program:

 	http://darwinsys.com/file/

> Besides, relying on file names to identify programs seems fragile: just
> like I can have an unrelated ‘file’ command in $PATH, I can install an
> unrelated ‘file’ command in /usr/bin.

Yes, it is fragile but it is more likely to encounter a wrong program 
named 'file' in the path than to encounter a wrong /usr/bin/file 
program.

> If there’s a concrete risk of confusion with a same-named program,
> perhaps the most robust thing to do would be to try, say, ‘file
> --version’ and search for some distinguishing pattern in the output.

What would we do if 'file' did not respond appropriately to a 
--version argument?

A simple approach would be to use /usr/bin/file if is available, or 
otherwise use the first 'file' found in the executable search path. 
This avoids the need for re-testing on exotic systems and does not 
substantially increase the level of risk.

Bob
-- 
Bob Friesenhahn
bfriesen@HIDDEN, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/
---559023410-1297389768-1403627306=:21829--




Information forwarded to bug-libtool@HIDDEN:
bug#17840; Package libtool. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 24 Jun 2014 14:38:12 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jun 24 10:38:11 2014
Received: from localhost ([127.0.0.1]:59421 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1WzRrL-00029g-GL
	for submit <at> debbugs.gnu.org; Tue, 24 Jun 2014 10:38:11 -0400
Received: from eggs.gnu.org ([208.118.235.92]:54771)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <ludo@HIDDEN>) id 1WzRrC-00028y-Pd
 for submit <at> debbugs.gnu.org; Tue, 24 Jun 2014 10:38:02 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <ludo@HIDDEN>) id 1WzRr1-0004Nq-Nj
 for submit <at> debbugs.gnu.org; Tue, 24 Jun 2014 10:37:53 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD
 autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:59536)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ludo@HIDDEN>)
 id 1WzRr1-0004Nl-Jf
 for submit <at> debbugs.gnu.org; Tue, 24 Jun 2014 10:37:47 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:56448)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <ludo@HIDDEN>) id 1WzRqv-00076a-Gt
 for bug-libtool@HIDDEN; Tue, 24 Jun 2014 10:37:47 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <ludo@HIDDEN>) id 1WzRqg-0004Jd-MZ
 for bug-libtool@HIDDEN; Tue, 24 Jun 2014 10:37:41 -0400
Received: from hera.aquilenet.fr ([2a01:474::1]:42021)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ludo@HIDDEN>)
 id 1WzRqg-0004J1-Ft
 for bug-libtool@HIDDEN; Tue, 24 Jun 2014 10:37:26 -0400
Received: from localhost (localhost [127.0.0.1])
 by hera.aquilenet.fr (Postfix) with ESMTP id B7C7E2EFB;
 Tue, 24 Jun 2014 16:37:24 +0200 (CEST)
Received: from hera.aquilenet.fr ([127.0.0.1])
 by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id D5VNfHuJgBG5; Tue, 24 Jun 2014 16:37:24 +0200 (CEST)
Received: from pluto (pluto.bordeaux.inria.fr [193.50.110.57])
 by hera.aquilenet.fr (Postfix) with ESMTPSA id 76E462EF9;
 Tue, 24 Jun 2014 16:37:24 +0200 (CEST)
From: ludo@HIDDEN (Ludovic =?utf-8?Q?Court=C3=A8s?=)
To: Bob Friesenhahn <bfriesen@HIDDEN>
Subject: Re: bug#17840: [PATCH] libtool: Use 'file' instead of '/usr/bin/file'
 on GNU systems.
References: <877g478l9y.fsf@HIDDEN>
 <alpine.GSO.2.01.1406240832440.18732@HIDDEN>
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: 6 Messidor an 222 de la =?utf-8?Q?R=C3=A9volution?=
X-PGP-Key-ID: 0xEA52ECF4
X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc
X-PGP-Fingerprint: 83C4 F8E5 10A3 3B4C 5BEA  D15D 77DD 95E2 EA52 ECF4
X-OS: x86_64-unknown-linux-gnu
Date: Tue, 24 Jun 2014 16:37:23 +0200
In-Reply-To: <alpine.GSO.2.01.1406240832440.18732@HIDDEN>
 (Bob Friesenhahn's message of "Tue, 24 Jun 2014 08:35:30 -0500 (CDT)")
Message-ID: <87ionq1iho.fsf@HIDDEN>
User-Agent: Gnus/5.130009 (Ma Gnus v0.9) Emacs/24.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: submit
Cc: Mark H Weaver <mhw@HIDDEN>, bug-libtool@HIDDEN, 17840 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

Bob Friesenhahn <bfriesen@HIDDEN> skribis:

> On Mon, 23 Jun 2014, Ludovic Court=C3=A8s wrote:
>
>> Hello,
>>
>> The patch below changes occurrences of =E2=80=98/usr/bin/file=E2=80=99 t=
o just =E2=80=98file=E2=80=99.
>>
>> The impetus is that on systems using GNU Guix, NixOS, GoboLinux, and
>> others, the =E2=80=98file=E2=80=99 command is not available as /usr/bin/=
file, so it must
>> instead be taken from $PATH.
>>
>> (I conservatively left =E2=80=98/usr/bin/file=E2=80=99 for more centrali=
zed systems such
>> as BSD, IRIX, etc. where it=E2=80=99s more likely to be a valid command.)
>
> Were you able to re-test on all of the impacted platforms?

No, but that list is verrry long.

> The reason for the hard-coded path is because there are a number of
> different 'file' programs and libtool expects particular output from
> the 'file' program that it uses.  If the 'file' encountered via PATH
> is not the same as the common one available as =E2=80=98/usr/bin/file=E2=
=80=99 on GNU
> systems, then there would be a problem.

Well, the systems I was referring to are GNU systems too.  ;-)

Do you remember what other =E2=80=98file=E2=80=99 programs could interfere?=
  Debian has
only one =E2=80=98file=E2=80=99 program, for instance:
<https://packages.debian.org/search?searchon=3Dcontents&keywords=3Dfile&mod=
e=3Dexactfilename&suite=3Dstable&arch=3Dany>.

Besides, relying on file names to identify programs seems fragile: just
like I can have an unrelated =E2=80=98file=E2=80=99 command in $PATH, I can=
 install an
unrelated =E2=80=98file=E2=80=99 command in /usr/bin.

If there=E2=80=99s a concrete risk of confusion with a same-named program,
perhaps the most robust thing to do would be to try, say, =E2=80=98file
--version=E2=80=99 and search for some distinguishing pattern in the output.

WDYT?

Thanks,
Ludo=E2=80=99.




Information forwarded to bug-libtool@HIDDEN:
bug#17840; Package libtool. Full text available.

Message received at 17840 <at> debbugs.gnu.org:


Received: (at 17840) by debbugs.gnu.org; 24 Jun 2014 14:37:37 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jun 24 10:37:37 2014
Received: from localhost ([127.0.0.1]:59417 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1WzRqm-00028G-TL
	for submit <at> debbugs.gnu.org; Tue, 24 Jun 2014 10:37:37 -0400
Received: from hera.aquilenet.fr ([141.255.128.1]:44369)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <ludo@HIDDEN>) id 1WzRqg-000281-Hx
 for 17840 <at> debbugs.gnu.org; Tue, 24 Jun 2014 10:37:30 -0400
Received: from localhost (localhost [127.0.0.1])
 by hera.aquilenet.fr (Postfix) with ESMTP id B7C7E2EFB;
 Tue, 24 Jun 2014 16:37:24 +0200 (CEST)
Received: from hera.aquilenet.fr ([127.0.0.1])
 by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id D5VNfHuJgBG5; Tue, 24 Jun 2014 16:37:24 +0200 (CEST)
Received: from pluto (pluto.bordeaux.inria.fr [193.50.110.57])
 by hera.aquilenet.fr (Postfix) with ESMTPSA id 76E462EF9;
 Tue, 24 Jun 2014 16:37:24 +0200 (CEST)
From: ludo@HIDDEN (Ludovic =?utf-8?Q?Court=C3=A8s?=)
To: Bob Friesenhahn <bfriesen@HIDDEN>
Subject: Re: bug#17840: [PATCH] libtool: Use 'file' instead of '/usr/bin/file'
 on GNU systems.
References: <877g478l9y.fsf@HIDDEN>
 <alpine.GSO.2.01.1406240832440.18732@HIDDEN>
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: 6 Messidor an 222 de la =?utf-8?Q?R=C3=A9volution?=
X-PGP-Key-ID: 0xEA52ECF4
X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc
X-PGP-Fingerprint: 83C4 F8E5 10A3 3B4C 5BEA  D15D 77DD 95E2 EA52 ECF4
X-OS: x86_64-unknown-linux-gnu
Date: Tue, 24 Jun 2014 16:37:23 +0200
In-Reply-To: <alpine.GSO.2.01.1406240832440.18732@HIDDEN>
 (Bob Friesenhahn's message of "Tue, 24 Jun 2014 08:35:30 -0500 (CDT)")
Message-ID: <87ionq1iho.fsf@HIDDEN>
User-Agent: Gnus/5.130009 (Ma Gnus v0.9) Emacs/24.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 17840
Cc: Mark H Weaver <mhw@HIDDEN>, bug-libtool@HIDDEN, 17840 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 1.0 (+)

Bob Friesenhahn <bfriesen@HIDDEN> skribis:

> On Mon, 23 Jun 2014, Ludovic Court=C3=A8s wrote:
>
>> Hello,
>>
>> The patch below changes occurrences of =E2=80=98/usr/bin/file=E2=80=99 t=
o just =E2=80=98file=E2=80=99.
>>
>> The impetus is that on systems using GNU Guix, NixOS, GoboLinux, and
>> others, the =E2=80=98file=E2=80=99 command is not available as /usr/bin/=
file, so it must
>> instead be taken from $PATH.
>>
>> (I conservatively left =E2=80=98/usr/bin/file=E2=80=99 for more centrali=
zed systems such
>> as BSD, IRIX, etc. where it=E2=80=99s more likely to be a valid command.)
>
> Were you able to re-test on all of the impacted platforms?

No, but that list is verrry long.

> The reason for the hard-coded path is because there are a number of
> different 'file' programs and libtool expects particular output from
> the 'file' program that it uses.  If the 'file' encountered via PATH
> is not the same as the common one available as =E2=80=98/usr/bin/file=E2=
=80=99 on GNU
> systems, then there would be a problem.

Well, the systems I was referring to are GNU systems too.  ;-)

Do you remember what other =E2=80=98file=E2=80=99 programs could interfere?=
  Debian has
only one =E2=80=98file=E2=80=99 program, for instance:
<https://packages.debian.org/search?searchon=3Dcontents&keywords=3Dfile&mod=
e=3Dexactfilename&suite=3Dstable&arch=3Dany>.

Besides, relying on file names to identify programs seems fragile: just
like I can have an unrelated =E2=80=98file=E2=80=99 command in $PATH, I can=
 install an
unrelated =E2=80=98file=E2=80=99 command in /usr/bin.

If there=E2=80=99s a concrete risk of confusion with a same-named program,
perhaps the most robust thing to do would be to try, say, =E2=80=98file
--version=E2=80=99 and search for some distinguishing pattern in the output.

WDYT?

Thanks,
Ludo=E2=80=99.




Information forwarded to bug-libtool@HIDDEN:
bug#17840; Package libtool. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 24 Jun 2014 13:36:24 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jun 24 09:36:24 2014
Received: from localhost ([127.0.0.1]:59088 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1WzQtY-0000JF-4R
	for submit <at> debbugs.gnu.org; Tue, 24 Jun 2014 09:36:23 -0400
Received: from eggs.gnu.org ([208.118.235.92]:37865)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <bfriesen@HIDDEN>) id 1WzQtS-0000Ip-GL
 for submit <at> debbugs.gnu.org; Tue, 24 Jun 2014 09:36:18 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <bfriesen@HIDDEN>) id 1WzQtF-0005jU-Ra
 for submit <at> debbugs.gnu.org; Tue, 24 Jun 2014 09:36:09 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20 autolearn=disabled
 version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:33704)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <bfriesen@HIDDEN>) id 1WzQtF-0005jQ-Pa
 for submit <at> debbugs.gnu.org; Tue, 24 Jun 2014 09:36:01 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:39446)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <bfriesen@HIDDEN>) id 1WzQt9-0008Qj-N6
 for bug-libtool@HIDDEN; Tue, 24 Jun 2014 09:36:01 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <bfriesen@HIDDEN>) id 1WzQt3-0005eQ-Fv
 for bug-libtool@HIDDEN; Tue, 24 Jun 2014 09:35:55 -0400
Received: from blade.simplesystems.org ([65.66.246.74]:64970)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <bfriesen@HIDDEN>)
 id 1WzQt3-0005cX-8j; Tue, 24 Jun 2014 09:35:49 -0400
Received: from freddy.simplesystems.org (freddy.simplesystems.org
 [65.66.246.65])
 by blade.simplesystems.org (8.14.4+Sun/8.14.4) with ESMTP id s5ODZUT5018241;
 Tue, 24 Jun 2014 08:35:30 -0500 (CDT)
Date: Tue, 24 Jun 2014 08:35:30 -0500 (CDT)
From: Bob Friesenhahn <bfriesen@HIDDEN>
X-X-Sender: bfriesen@HIDDEN
To: =?ISO-8859-15?Q?Ludovic_Court=E8s?= <ludo@HIDDEN>
Subject: Re: bug#17840: [PATCH] libtool: Use 'file' instead of '/usr/bin/file'
 on GNU systems.
In-Reply-To: <877g478l9y.fsf@HIDDEN>
Message-ID: <alpine.GSO.2.01.1406240832440.18732@HIDDEN>
References: <877g478l9y.fsf@HIDDEN>
User-Agent: Alpine 2.01 (GSO 1266 2009-07-14)
MIME-Version: 1.0
Content-Type: MULTIPART/MIXED;
 BOUNDARY="-559023410-952449051-1403616930=:18732"
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.2
 (blade.simplesystems.org [65.66.246.90]);
 Tue, 24 Jun 2014 08:35:30 -0500 (CDT)
X-detected-operating-system: by eggs.gnu.org: Solaris 10
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: submit
Cc: Mark H Weaver <mhw@HIDDEN>, bug-libtool@HIDDEN, 17840 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.

---559023410-952449051-1403616930=:18732
Content-Type: TEXT/PLAIN; charset=utf-8; format=flowed
Content-Transfer-Encoding: quoted-printable
X-MIME-Autoconverted: from 8bit to quoted-printable by blade.simplesystems.org id s5ODZUT5018241

On Mon, 23 Jun 2014, Ludovic Court=C3=A8s wrote:

> Hello,
>
> The patch below changes occurrences of =E2=80=98/usr/bin/file=E2=80=99 =
to just =E2=80=98file=E2=80=99.
>
> The impetus is that on systems using GNU Guix, NixOS, GoboLinux, and
> others, the =E2=80=98file=E2=80=99 command is not available as /usr/bin=
/file, so it must
> instead be taken from $PATH.
>
> (I conservatively left =E2=80=98/usr/bin/file=E2=80=99 for more central=
ized systems such
> as BSD, IRIX, etc. where it=E2=80=99s more likely to be a valid command=
.)

Were you able to re-test on all of the impacted platforms?

The reason for the hard-coded path is because there are a number of=20
different 'file' programs and libtool expects particular output from=20
the 'file' program that it uses.  If the 'file' encountered via PATH=20
is not the same as the common one available as =E2=80=98/usr/bin/file=E2=80=
=99 on GNU=20
systems, then there would be a problem.

Bob
--=20
Bob Friesenhahn
bfriesen@HIDDEN, http://www.simplesystems.org/users/bfriesen=
/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/
---559023410-952449051-1403616930=:18732--




Information forwarded to bug-libtool@HIDDEN:
bug#17840; Package libtool. Full text available.

Message received at 17840 <at> debbugs.gnu.org:


Received: (at 17840) by debbugs.gnu.org; 24 Jun 2014 13:35:49 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jun 24 09:35:49 2014
Received: from localhost ([127.0.0.1]:59084 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1WzQsz-0000Hq-2y
	for submit <at> debbugs.gnu.org; Tue, 24 Jun 2014 09:35:48 -0400
Received: from blade.simplesystems.org ([65.66.246.74]:64965)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <bfriesen@HIDDEN>) id 1WzQsq-0000HO-OO
 for 17840 <at> debbugs.gnu.org; Tue, 24 Jun 2014 09:35:40 -0400
Received: from freddy.simplesystems.org (freddy.simplesystems.org
 [65.66.246.65])
 by blade.simplesystems.org (8.14.4+Sun/8.14.4) with ESMTP id s5ODZUT5018241;
 Tue, 24 Jun 2014 08:35:30 -0500 (CDT)
Date: Tue, 24 Jun 2014 08:35:30 -0500 (CDT)
From: Bob Friesenhahn <bfriesen@HIDDEN>
X-X-Sender: bfriesen@HIDDEN
To: =?ISO-8859-15?Q?Ludovic_Court=E8s?= <ludo@HIDDEN>
Subject: Re: bug#17840: [PATCH] libtool: Use 'file' instead of '/usr/bin/file'
 on GNU systems.
In-Reply-To: <877g478l9y.fsf@HIDDEN>
Message-ID: <alpine.GSO.2.01.1406240832440.18732@HIDDEN>
References: <877g478l9y.fsf@HIDDEN>
User-Agent: Alpine 2.01 (GSO 1266 2009-07-14)
MIME-Version: 1.0
Content-Type: MULTIPART/MIXED;
 BOUNDARY="-559023410-952449051-1403616930=:18732"
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.2
 (blade.simplesystems.org [65.66.246.90]);
 Tue, 24 Jun 2014 08:35:30 -0500 (CDT)
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 17840
Cc: Mark H Weaver <mhw@HIDDEN>, bug-libtool@HIDDEN, 17840 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.0 (/)

  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.

---559023410-952449051-1403616930=:18732
Content-Type: TEXT/PLAIN; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8BIT

On Mon, 23 Jun 2014, Ludovic Courtès wrote:

> Hello,
>
> The patch below changes occurrences of ‘/usr/bin/file’ to just ‘file’.
>
> The impetus is that on systems using GNU Guix, NixOS, GoboLinux, and
> others, the ‘file’ command is not available as /usr/bin/file, so it must
> instead be taken from $PATH.
>
> (I conservatively left ‘/usr/bin/file’ for more centralized systems such
> as BSD, IRIX, etc. where it’s more likely to be a valid command.)

Were you able to re-test on all of the impacted platforms?

The reason for the hard-coded path is because there are a number of 
different 'file' programs and libtool expects particular output from 
the 'file' program that it uses.  If the 'file' encountered via PATH 
is not the same as the common one available as ‘/usr/bin/file’ on GNU 
systems, then there would be a problem.

Bob
-- 
Bob Friesenhahn
bfriesen@HIDDEN, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/
---559023410-952449051-1403616930=:18732--




Information forwarded to bug-libtool@HIDDEN:
bug#17840; Package libtool. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 23 Jun 2014 19:43:39 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jun 23 15:43:39 2014
Received: from localhost ([127.0.0.1]:58555 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1WzA9P-00007p-7O
	for submit <at> debbugs.gnu.org; Mon, 23 Jun 2014 15:43:39 -0400
Received: from eggs.gnu.org ([208.118.235.92]:38621)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <ludo@HIDDEN>) id 1WzA9K-00007T-CZ
 for submit <at> debbugs.gnu.org; Mon, 23 Jun 2014 15:43:34 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <ludo@HIDDEN>) id 1WzA99-0002AQ-Es
 for submit <at> debbugs.gnu.org; Mon, 23 Jun 2014 15:43:25 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD
 autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:49359)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ludo@HIDDEN>)
 id 1WzA99-0002AB-CJ
 for submit <at> debbugs.gnu.org; Mon, 23 Jun 2014 15:43:19 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:40294)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <ludo@HIDDEN>) id 1WzA93-00034J-RX
 for bug-libtool@HIDDEN; Mon, 23 Jun 2014 15:43:19 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <ludo@HIDDEN>) id 1WzA8y-0001zT-AZ
 for bug-libtool@HIDDEN; Mon, 23 Jun 2014 15:43:13 -0400
Received: from hera.aquilenet.fr ([2a01:474::1]:40019)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ludo@HIDDEN>)
 id 1WzA8y-0001zO-2G
 for bug-libtool@HIDDEN; Mon, 23 Jun 2014 15:43:08 -0400
Received: from localhost (localhost [127.0.0.1])
 by hera.aquilenet.fr (Postfix) with ESMTP id B51B22ECB;
 Mon, 23 Jun 2014 21:43:06 +0200 (CEST)
Received: from hera.aquilenet.fr ([127.0.0.1])
 by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id 1AujIbCzvq+H; Mon, 23 Jun 2014 21:43:06 +0200 (CEST)
Received: from pluto (reverse-83.fdn.fr [80.67.176.83])
 by hera.aquilenet.fr (Postfix) with ESMTPSA id 4CF1296D;
 Mon, 23 Jun 2014 21:43:06 +0200 (CEST)
From: ludo@HIDDEN (Ludovic =?utf-8?Q?Court=C3=A8s?=)
To: bug-libtool@HIDDEN
Subject: [PATCH] libtool: Use 'file' instead of '/usr/bin/file' on GNU systems.
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: 5 Messidor an 222 de la =?utf-8?Q?R=C3=A9volution?=
X-PGP-Key-ID: 0xEA52ECF4
X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc
X-PGP-Fingerprint: 83C4 F8E5 10A3 3B4C 5BEA  D15D 77DD 95E2 EA52 ECF4
X-OS: x86_64-unknown-linux-gnu
Date: Mon, 23 Jun 2014 21:43:05 +0200
Message-ID: <877g478l9y.fsf@HIDDEN>
User-Agent: Gnus/5.130009 (Ma Gnus v0.9) Emacs/24.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: submit
Cc: Mark H Weaver <mhw@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Hello,

The patch below changes occurrences of =E2=80=98/usr/bin/file=E2=80=99 to j=
ust =E2=80=98file=E2=80=99.

The impetus is that on systems using GNU Guix, NixOS, GoboLinux, and
others, the =E2=80=98file=E2=80=99 command is not available as /usr/bin/fil=
e, so it must
instead be taken from $PATH.

(I conservatively left =E2=80=98/usr/bin/file=E2=80=99 for more centralized=
 systems such
as BSD, IRIX, etc. where it=E2=80=99s more likely to be a valid command.)

WDYT?

Ludo=E2=80=99.


--=-=-=
Content-Type: text/x-patch
Content-Disposition: inline;
 filename=0001-libtool-Use-file-instead-of-usr-bin-file-on-GNU-syst.patch
Content-Description: the patch

From 8b4c022281a7c86c2fa604fc76297ffc1ceb2644 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= <ludo@HIDDEN>
Date: Mon, 23 Jun 2014 21:36:39 +0200
Subject: [PATCH] libtool: Use 'file' instead of '/usr/bin/file' on GNU
 systems.

* m4/libtool.m4 (_LT_ENABLE_LOCK): Use 'file' instead of '/usr/bin/file'
  on GNU- and Linux-based systems.
---
 m4/libtool.m4 | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/m4/libtool.m4 b/m4/libtool.m4
index 320d8b3..6fb67b0 100644
--- a/m4/libtool.m4
+++ b/m4/libtool.m4
@@ -1312,7 +1312,7 @@ mips64*-*linux*)
   echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
   if AC_TRY_EVAL(ac_compile); then
     emul=elf
-    case `/usr/bin/file conftest.$ac_objext` in
+    case `file conftest.$ac_objext` in
       *32-bit*)
 	emul="${emul}32"
 	;;
@@ -1320,7 +1320,7 @@ mips64*-*linux*)
 	emul="${emul}64"
 	;;
     esac
-    case `/usr/bin/file conftest.$ac_objext` in
+    case `file conftest.$ac_objext` in
       *MSB*)
 	emul="${emul}btsmip"
 	;;
@@ -1328,7 +1328,7 @@ mips64*-*linux*)
 	emul="${emul}ltsmip"
 	;;
     esac
-    case `/usr/bin/file conftest.$ac_objext` in
+    case `file conftest.$ac_objext` in
       *N32*)
 	emul="${emul}n32"
 	;;
@@ -1348,14 +1348,14 @@ s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
   # not appear in the list.
   echo 'int i;' > conftest.$ac_ext
   if AC_TRY_EVAL(ac_compile); then
-    case `/usr/bin/file conftest.o` in
+    case `file conftest.o` in
       *32-bit*)
 	case $host in
 	  x86_64-*kfreebsd*-gnu)
 	    LD="${LD-ld} -m elf_i386_fbsd"
 	    ;;
 	  x86_64-*linux*)
-	    case `/usr/bin/file conftest.o` in
+	    case `file conftest.o` in
 	      *x86-64*)
 		LD="${LD-ld} -m elf32_x86_64"
 		;;
-- 
1.8.4


--=-=-=--




Acknowledgement sent to ludo@HIDDEN (Ludovic Courtès):
New bug report received and forwarded. Copy sent to bug-libtool@HIDDEN. Full text available.
Report forwarded to bug-libtool@HIDDEN:
bug#17840; Package libtool. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Thu, 29 Sep 2022 01:30:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.