From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.62) (envelope-from ) id 1HiRf2-0004Dr-Fu for garchives@archives.gentoo.org; Mon, 30 Apr 2007 08:55:08 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.0/8.14.0) with SMTP id l3U8rLKu032608; Mon, 30 Apr 2007 08:53:21 GMT Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by robin.gentoo.org (8.14.0/8.14.0) with ESMTP id l3U8npJ4026713 for ; Mon, 30 Apr 2007 08:49:51 GMT Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 2FEC164961 for ; Mon, 30 Apr 2007 08:49:51 +0000 (UTC) X-Virus-Scanned: amavisd-new at gentoo.org X-Spam-Score: -1.253 X-Spam-Level: X-Spam-Status: No, score=-1.253 required=5.5 tests=[AWL=-1.253] Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BH3Tti4Y1HLF for ; Mon, 30 Apr 2007 08:49:49 +0000 (UTC) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id 34BBD6415B for ; Mon, 30 Apr 2007 08:49:48 +0000 (UTC) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1HiRZd-0003yS-V6 for gentoo-dev@gentoo.org; Mon, 30 Apr 2007 10:49:33 +0200 Received: from ip68-230-67-248.ph.ph.cox.net ([68.230.67.248]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 30 Apr 2007 10:49:33 +0200 Received: from 1i5t5.duncan by ip68-230-67-248.ph.ph.cox.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 30 Apr 2007 10:49:33 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-dev@lists.gentoo.org From: Duncan <1i5t5.duncan@cox.net> Subject: [gentoo-dev] Re: gentoo: static/dynamic linking libraries Date: Mon, 30 Apr 2007 08:49:24 +0000 (UTC) Message-ID: References: <200704291032.06932.mereandor@gmail.com> <200704300507.10429.mereandor@gmail.com> <20070430053520.608278f5@sheridan.genone.homeip.net> <200704300928.20427.mereandor@gmail.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Reply-to: gentoo-dev@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: ip68-230-67-248.ph.ph.cox.net User-Agent: Pan/0.128 (SR/CL: Leitmotiv: Toynbee Idea) Sender: news X-Archives-Salt: 8a9e4174-d455-4466-a78b-88a74ac40773 X-Archives-Hash: 3752e5e10a5672a7f4154419c967d5c5 Roman Zimmermann posted 200704300928.20427.mereandor@gmail.com, excerpted below, on Mon, 30 Apr 2007 09:28:16 +0200: > Am Montag 30 April 2007 05:35 schrieb Marius Mauch: >> [snip] >> builds being irrelevant in many cases is wrong, just that the claim of >> "only 2 packages needing it" is bogus. > > Surely this was meant in the context of the previous thread: 2 out of > 845 packages on my system would be right. That's about 0,237%. Either > way this is a small percentage to argue that 100% should be built with > static libs. (And there is still the question whether those two would > really _need_ those static libs or it's just due to the deficiency of > the EXTRA_ECONF-method.) > > When I have time I will take a look on how some other distributions > handle this. What other distributions (which are binary) do doesn't apply, because they aren't designed for the end-user to be constantly compiling stuff as is assumed on Gentoo. Most other distributions can (and probably do) split most libraries into main-package and -dev package, the -dev version containing headers and likely static versions of the libraries, while the dynamically linked binaries, config, etc, is in the main package. That makes no sense for an end-user compiled distribution, where if a library is installed, it's assumed it will be used, and to use it headers and the like must be installed as well. Statically linked library binaries won't always be needed, true, but IMO the same idea should apply -- they should be installed by default as it'll be impossible to link something statically against them if they aren't, and where end-user compiling must be assumed, it's entirely reasonable to assume those same end-users may wish some of those compilations to be statically built. Sure, if it's not too much of a hassle, give those users a USE flag (since we're talking per-package enabling), that can of course be set globally in make.conf if desired, and that defaults to installing static as well as dynamic for most profiles. Embedded may wish to disable it by default, and users may do so if desired, but in the general case, the static libs should be there by default just in case. However, if it's too much hassle, having both installed is the sane default, and there's certainly INSTALL_MASK for those such as embedded that might be tight-up on space or the required additional compiling resources. -- Duncan - List replies preferred. No HTML msgs. "Every nonfree program has a lord, a master -- and if you use the program, he is your master." Richard Stallman -- gentoo-dev@gentoo.org mailing list