GNU bug report logs - #18917
--disable-static breaks unittests (runpath-in-lalib.at & need_lib_prefix.at)

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: Mike Frysinger <vapier@HIDDEN>; dated Sat, 1 Nov 2014 02:56:01 UTC; Maintainer for libtool is bug-libtool@HIDDEN.

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


Received: (at 18917) by debbugs.gnu.org; 16 Feb 2015 12:45:52 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Feb 16 07:45:52 2015
Received: from localhost ([127.0.0.1]:45231 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1YNL3g-0007e3-H2
	for submit <at> debbugs.gnu.org; Mon, 16 Feb 2015 07:45:52 -0500
Received: from smtp.gentoo.org ([140.211.166.183]:37288)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <vapier@HIDDEN>) id 1YNL3e-0007dq-FH
 for 18917 <at> debbugs.gnu.org; Mon, 16 Feb 2015 07:45:51 -0500
Received: from vapier (localhost [127.0.0.1])
 by smtp.gentoo.org (Postfix) with SMTP id 03422340706;
 Mon, 16 Feb 2015 12:45:43 +0000 (UTC)
Date: Mon, 16 Feb 2015 07:45:43 -0500
From: Mike Frysinger <vapier@HIDDEN>
To: "Gary V. Vaughan" <gary@HIDDEN>
Subject: Re: bug#18917: --disable-static breaks unittests
 (runpath-in-lalib.at & need_lib_prefix.at)
Message-ID: <20150216124543.GF4359@vapier>
Mail-Followup-To: "Gary V. Vaughan" <gary@HIDDEN>, 18917 <at> debbugs.gnu.org
References: <20141101025455.GG26840@HIDDEN>
 <F21D4984-9D4E-488E-95EB-31617A6EF0FC@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
 protocol="application/pgp-signature"; boundary="1Y7d0dPL928TPQbc"
Content-Disposition: inline
In-Reply-To: <F21D4984-9D4E-488E-95EB-31617A6EF0FC@HIDDEN>
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: 18917
Cc: 18917 <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: <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: -5.0 (-----)


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

On 02 Nov 2014 18:28, Gary V. Vaughan wrote:
> > On Nov 1, 2014, at 2:54 AM, Mike Frysinger wrote:
> > in Gentoo atm, i'm hacking this by setting build_old_libs=3Dyes in the =
generated=20
> > libtool script before testing/installing.  but ideally it'd be possible=
 to=20
> > install `libtool` with settings based on what the system can do, not ho=
w the=20
> > package is building libltdl.{a,so}.
>=20
> I think it would be safer for gentoo to package the two separately then..=
=2E have a
> libltdl package, which you build using --disable-static, and a separate l=
ibtool
> package (containing libtoolize, libtool and the supporting share/libtool =
files)
> configured with --enable-shared and --enable-static.

i ended up going this route and things look happy.  thanks for the suggesti=
on!
-mike

--1Y7d0dPL928TPQbc
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBAgAGBQJU4eZ3AAoJEEFjO5/oN/WBdV4QAN791if03KBb2j8kam4YUunH
6gtI6Zb1P2UV+a66VJvKZQdHM+SfR+yHeb2zX2Eon/xkgnDxqwohYy4TyqZq4CTs
XZqPlPflFK+4xoYZHpyQRjjlJIJPInJNAO2EZfxjry2B98RoBlKGwy4rM4YsBo1F
4uAQU6qW5FvDBxHY/sn4CKkIHH3EeLYfX+d+Egkze3zejt1jVTbClReqK/2+Cj2i
Q6I0F3FUXhzymoawXet6iBXaQWsHixrYwas6hwDuNqeXqaMRMj+Bzl1kh2d+GXWt
hNU5bexn5SX1wD5E0hDbfP43L314/Fqm9CdcB3mFUFOlM8JgrlFoXfJq4vnsWRzZ
gBXEJSrGQI2oqjEdH6lU0HlvB+e71Bm6cqp9ka7oQubxPIfBs6gHiSj/NcQbVy0e
w5mna9sIOuLG4DqcSkpHjSG+hZXjOTWqJYVpXrlQh1Q8G/E6FEeTMlLmaviqXKQO
6uaSYGq06tmlzT69XobhqRrwhwxfb3zOSNDH5z/oyu712R3PtTLOxyh/0m8laBqw
CoVL0npfgVVh9VDJg7C4xLyGd04vJsQtmpGuOZVnC+detCTVshXw8T9bvpfl2R9b
ERlr8HE4h95CdR3/YWC/dHI5UTfuxaGv2myRb7yAnSvanQ6A6bQ2fjx6vpR9EvCB
gRkxkJx3OYKfjG3Dao4l
=Lguu
-----END PGP SIGNATURE-----

--1Y7d0dPL928TPQbc--




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

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


Received: (at 18917) by debbugs.gnu.org; 2 Nov 2014 19:22:49 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Nov 02 14:22:49 2014
Received: from localhost ([127.0.0.1]:46387 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Xl0jg-0004AQ-Lh
	for submit <at> debbugs.gnu.org; Sun, 02 Nov 2014 14:22:49 -0500
Received: from sub3.mail.dreamhost.com ([69.163.253.7]:51216
 helo=homiemail-a76.g.dreamhost.com)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <gary@HIDDEN>) id 1Xl0jd-0004AE-EH
 for 18917 <at> debbugs.gnu.org; Sun, 02 Nov 2014 14:22:46 -0500
Received: from homiemail-a76.g.dreamhost.com (localhost [127.0.0.1])
 by homiemail-a76.g.dreamhost.com (Postfix) with ESMTP id D81C345807B;
 Sun,  2 Nov 2014 11:22:44 -0800 (PST)
Received: from [172.20.10.3] (94.197.120.69.threembb.co.uk [94.197.120.69])
 (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
 (No client certificate requested)
 (Authenticated sender: gary@HIDDEN)
 by homiemail-a76.g.dreamhost.com (Postfix) with ESMTPSA id 5E326458079;
 Sun,  2 Nov 2014 11:22:43 -0800 (PST)
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0 (Mac OS X Mail 8.0 \(1990.1\))
Subject: Re: bug#18917: --disable-static breaks unittests (runpath-in-lalib.at
 & need_lib_prefix.at)
From: "Gary V. Vaughan" <gary@HIDDEN>
In-Reply-To: <20141101025455.GG26840@HIDDEN>
Date: Sun, 2 Nov 2014 18:28:41 +0000
Content-Transfer-Encoding: quoted-printable
Message-Id: <F21D4984-9D4E-488E-95EB-31617A6EF0FC@HIDDEN>
References: <20141101025455.GG26840@HIDDEN>
To: Mike Frysinger <vapier@HIDDEN>
X-Mailer: Apple Mail (2.1990.1)
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 18917
Cc: 18917 <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 (+)

Hi Mike,

> On Nov 1, 2014, at 2:54 AM, Mike Frysinger <vapier@HIDDEN> wrote:
>=20
> when you configure libtool with --disable-static, these two unittests =
fail:
> 	runpath-in-lalib.at
> 	need_lib_prefix
>=20
> if you hack the libtool script to set build_old_libs=3Dyes by default, =
then the=20
> unittests pass.  it looks like libtool has flags to enable building of =
either=20
> static or shared libs, but there's no way to make it build both (which =
is the=20
> default with --enable-{shared,static}).
>=20
> along those lines, it'd be nice if --disable-static didn't do this to =
the local=20
> copy of libtool that gets installed.  i understand the relationship =
between the=20
> configure flags and the generated libtool script -- normally you use =
the local=20
> libtool build the local libs and then only install those libs.  this =
is even how=20
> it's used with libltdl.  but the libtool package itself is a bit =
special in that=20
> it also installs the libtool script.

Yeah.  We're conflating the flags for building libltdl with the flags =
for the
libtool used to build it.

But, I don't see a sensible straight-forward way of fixing it.  Really, =
we need
to have libltdl build it's own libtool based on the configure flags, and =
have
libtool proper generate a separate installable libtool.  But that's a =
whole can
of worms I don't want to open, and was part of the reason I made plans =
to split
the existing libtool into 2 separately distributed packages in the next =
major
release:  Then, it would be obvious that configuring the package that =
installs
bin/libtool with --disable-static really is installing a libtool that =
has static
library building turned off by default.

> in Gentoo atm, i'm hacking this by setting build_old_libs=3Dyes in the =
generated=20
> libtool script before testing/installing.  but ideally it'd be =
possible to=20
> install `libtool` with settings based on what the system can do, not =
how the=20
> package is building libltdl.{a,so}.

I think it would be safer for gentoo to package the two separately =
then... have a
libltdl package, which you build using --disable-static, and a separate =
libtool
package (containing libtoolize, libtool and the supporting share/libtool =
files)
configured with --enable-shared and --enable-static.

I'd be very happy to receive a patch to fix things more elegantly =
(perhaps by
adding additional flags to the top-level configure, and massaging and =
filtering
what gets passed down to a sub-configure in the libltdl subdirectory), =
but I'm
afraid I don't have the time to make it happen myself in the immediate =
future :(
Especially considering that the better long term fix is to split libltdl =
out into
its own project.

Cheers,
--=20
Gary V. Vaughan (gary AT gnu DOT org)





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

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


Received: (at submit) by debbugs.gnu.org; 1 Nov 2014 02:55:25 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Oct 31 22:55:25 2014
Received: from localhost ([127.0.0.1]:44265 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1XkOqa-000075-K7
	for submit <at> debbugs.gnu.org; Fri, 31 Oct 2014 22:55:25 -0400
Received: from eggs.gnu.org ([208.118.235.92]:32979)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <vapier@HIDDEN>) id 1XkOqY-00006s-8X
 for submit <at> debbugs.gnu.org; Fri, 31 Oct 2014 22:55:23 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <vapier@HIDDEN>) id 1XkOqM-0005Jx-7T
 for submit <at> debbugs.gnu.org; Fri, 31 Oct 2014 22:55:16 -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.5 required=5.0 tests=BAYES_05 autolearn=disabled
 version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:49905)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <vapier@HIDDEN>) id 1XkOqM-0005JO-5I
 for submit <at> debbugs.gnu.org; Fri, 31 Oct 2014 22:55:10 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:34174)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <vapier@HIDDEN>) id 1XkOqG-0000w1-KO
 for bug-libtool@HIDDEN; Fri, 31 Oct 2014 22:55:10 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <vapier@HIDDEN>) id 1XkOq8-0004wo-H1
 for bug-libtool@HIDDEN; Fri, 31 Oct 2014 22:55:04 -0400
Received: from smtp.gentoo.org ([140.211.166.183]:36779)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <vapier@HIDDEN>) id 1XkOq8-0004wA-C9
 for bug-libtool@HIDDEN; Fri, 31 Oct 2014 22:54:56 -0400
Received: from vapier.wh0rd.info (localhost [127.0.0.1])
 by smtp.gentoo.org (Postfix) with SMTP id 1974E340497
 for <bug-libtool@HIDDEN>; Sat,  1 Nov 2014 02:54:55 +0000 (UTC)
Date: Fri, 31 Oct 2014 22:54:55 -0400
From: Mike Frysinger <vapier@HIDDEN>
To: bug-libtool@HIDDEN
Subject: --disable-static breaks unittests (runpath-in-lalib.at &
 need_lib_prefix.at)
Message-ID: <20141101025455.GG26840@HIDDEN>
Mail-Followup-To: bug-libtool@HIDDEN
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
 protocol="application/pgp-signature"; boundary="cyV/sMl4KAhiehtf"
Content-Disposition: inline
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.3 (----)
X-Debbugs-Envelope-To: submit
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.3 (----)


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

when you configure libtool with --disable-static, these two unittests fail:
	runpath-in-lalib.at
	need_lib_prefix

if you hack the libtool script to set build_old_libs=3Dyes by default, then=
 the=20
unittests pass.  it looks like libtool has flags to enable building of eith=
er=20
static or shared libs, but there's no way to make it build both (which is t=
he=20
default with --enable-{shared,static}).

along those lines, it'd be nice if --disable-static didn't do this to the l=
ocal=20
copy of libtool that gets installed.  i understand the relationship between=
 the=20
configure flags and the generated libtool script -- normally you use the lo=
cal=20
libtool build the local libs and then only install those libs.  this is eve=
n how=20
it's used with libltdl.  but the libtool package itself is a bit special in=
 that=20
it also installs the libtool script.

in Gentoo atm, i'm hacking this by setting build_old_libs=3Dyes in the gene=
rated=20
libtool script before testing/installing.  but ideally it'd be possible to=
=20
install `libtool` with settings based on what the system can do, not how th=
e=20
package is building libltdl.{a,so}.
-mike

--cyV/sMl4KAhiehtf
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBAgAGBQJUVEt/AAoJEEFjO5/oN/WB+KYP/2Frq5fTqqiXBD+Y3bhtZC7s
9RrKk/KsG+g3g2p02Wtd/F6cePOIx4C87Al7iR+nSAjbj6IQNrT+orTE542LHo7X
Dw2zRdRsh7bcuyHdmzMdcsnf0kq3sszZkwOumX3rSFZbbgMim6X2u3wX4KuiTpZa
GIKk3Gt2HhmRav9bjnkw+YwrbPcvieU1Jkaj2kgaZKeN9Jn4Z4ONpT8acan6Yif4
ba+332w5DEGKLS7eZqTSHWkE7OAbLDul9EUzOD0s893yGd+NUBDcGI6i+zEaOtiG
uQcrj/gqCaGK5O7eS3qgpZ1Op3rjN72LCYFaKOB4WSSJaADSwrMc87odoemS7rm0
7YxYL6f+bva+nJj74d/HzKhEfgxXBraUdTWwm2WVQMMbyheeU3BoNIP1Mwec3h1f
TADs8foLcWsz1ZTOwOqXtP5XYfyfnwJVcj3FmpPBJ5xL5zelShv/FLPzrHYOqVTC
lMJDtNsFjMKRXZ/FKzJIyc0jqNSFT1zHjLc6vNe0kAvacDy3JpXbnVud0sxoZEsC
1QtvTqJzvGTIg6C3fxecfg74sjOgAY/n0qFm2eeez/2Pq4W/eUWZ/GPM5CoUZZkT
p4BQCoNJfPzKJsGqZovmwcke13uHvZbmz1sYNVlETERYbW8ZEi27KV6+iAC1gABi
pLQio4d6/NG77QEDJrDI
=qdkq
-----END PGP SIGNATURE-----

--cyV/sMl4KAhiehtf--




Acknowledgement sent to Mike Frysinger <vapier@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-libtool@HIDDEN. Full text available.
Report forwarded to bug-libtool@HIDDEN:
bug#18917; 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: Mon, 25 Nov 2019 12:00:02 UTC

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