From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1R3EQX-0005ZJ-A2 for garchives@archives.gentoo.org; Mon, 12 Sep 2011 21:52:29 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 36B7221C133; Mon, 12 Sep 2011 21:52:15 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 1581621C03E for ; Mon, 12 Sep 2011 21:51:51 +0000 (UTC) Received: from localhost (24-179-244-217.dhcp.roch.mn.charter.com [24.179.244.217]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: dberkholz) by smtp.gentoo.org (Postfix) with ESMTPSA id 1507E1B400E for ; Mon, 12 Sep 2011 21:51:49 +0000 (UTC) Date: Mon, 12 Sep 2011 16:51:48 -0500 From: Donnie Berkholz To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] [PATCH] autotools-utils.eclass: punt unnecessary .la files even w/ USE=static-libs. Message-ID: <20110912215148.GB31178@comet> References: <1315857465-8179-1-git-send-email-mgorny@gentoo.org> <20110912210020.GA31178@comet> <4E6E7DCD.7060404@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="TakKZr9L6Hm6aLOc" Content-Disposition: inline In-Reply-To: <4E6E7DCD.7060404@gentoo.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-Archives-Salt: X-Archives-Hash: 7e949c570fd8c2c4e44e23b241eb97d4 --TakKZr9L6Hm6aLOc Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 00:46 Tue 13 Sep , Samuli Suominen wrote: > > If I understand correctly, this will break for any packages that=20 > > don't use pkg-config to link. The maintainers will manually need to=20 > > add pkg-config calls to the ebuilds of anything that could=20 > > statically link against a library using only libtool and not=20 > > pkg-config. Is that accurate? >=20 > Yes, seems accurate. >=20 > I can think of 'export PKG_CONFIG=3D"$($(tc-getPKG_CONFIG) --static)' or= =20 > something like 'export FOO_LIBS=3D"$($(tc-getPKG_CONFIG) --libs --static= =20 > foo)"' to accomplish getting static flags from an ebuild using=20 > toolchain-funcs.eclass if required. >=20 > Or they do it like lvm2 and cryptsetup at upstream level and add=20 > support for statically linking the tools in the build-system. >=20 > The .la files are not helping packages not using libtool in any case,=20 > for example, those using cmake as build-system. >=20 > And I've yet to see a real, in portage residing, example of where this=20 > would really break anything and when I will, I'll gladly help=20 > migrating it to the example mentioned above... Overall, corner cases=20 > that can be easily worked around, yet punting the *harmful* .la files. That's rather shocking. All it would take is trying to statically build=20 a package not using pkg-config that links against anything X11-related=20 (since all of them have .pc files). It's probably more that "nobody" cares about static building than that=20 there aren't packages that would break. --=20 Thanks, Donnie Donnie Berkholz Council Member / Sr. Developer Gentoo Linux Blog: http://dberkholz.com --TakKZr9L6Hm6aLOc Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (GNU/Linux) iEYEABECAAYFAk5ufvQACgkQXVaO67S1rtsRlwCaAp/UxOSoRpO3VIxUkUXouPwR 5GkAoP3ZKvj0twYokcFOGRVBlF1Q1QLj =PZVz -----END PGP SIGNATURE----- --TakKZr9L6Hm6aLOc--