From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: [PATCH] Add libiberty. Date: Mon, 29 Jun 2015 08:27:51 +0200 Message-ID: <87h9prxc48.fsf@elephly.net> References: <871tgxzdji.fsf@elephly.net> <87y4j4xkw5.fsf@gnu.org> <87lhf4xgxg.fsf@elephly.net> <87d20ftwbz.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39341) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9SXz-0002K9-0z for guix-devel@gnu.org; Mon, 29 Jun 2015 02:28:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z9SXx-0001lQ-W3 for guix-devel@gnu.org; Mon, 29 Jun 2015 02:28:02 -0400 In-reply-to: <87d20ftwbz.fsf@gnu.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: Guix-devel >>>> +(define-public libiberty >>>> + (make-libiberty gcc)) >>> >>> s/gcc/gcc-4.8/ if 4.8 is the last package installing it. >> >> I wanted to provide a default libiberty package for the default “gcc”. >> Otherwise any change to the default GCC version would require packages >> to update their libiberty input. >> >> GCC 4.8 actually installs libiberty somewhere in the “lib” output of >> gcc-4.8, but GCC 4.9 does not, nor does GCC 5.1. Is there a problem >> with “libiberty” as defined above, following whatever GCC version is set >> as the default? > > Oh you mean that 4.9 and 5.1 install it as well, just not in the “lib” > output, right? No, I mean that although 4.9 and 5.1 include the sources of libiberty neither of them install it as a library in *any* of their outputs. With 4.8 a package depending on libiberty could add ("gcc" ,gcc-4.8 "lib") as an input, but with 4.9 and 5.1 there does not seem to be any way to get libiberty but to explicitly install it. This is what the new “libiberty” package is supposed to do. Following the GCC version automatically dependent on whatever value the variable "gcc" has is just a bonus to simplify upgrades to the default version of GCC (as the recent move from 4.8 to 4.9). ~~ Ricardo