From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mathieu Othacehe Subject: Re: Cross-compilation broken on canonical packages. Date: Thu, 02 Jan 2020 23:00:41 +0100 Message-ID: <877e29v7qu.fsf@gmail.com> References: <878snff7pv.fsf@gmail.com> <877e2zf7kv.fsf@gmail.com> <871rt0ntvy.fsf@gnu.org> <87fthc9vav.fsf@gmail.com> <87y2ut645u.fsf@gnu.org> <87tv5gbz0o.fsf@gmail.com> <87blrlu3zv.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:54836) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1in8WW-0005oq-UQ for guix-devel@gnu.org; Thu, 02 Jan 2020 17:00:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1in8WT-0004MJ-VS for guix-devel@gnu.org; Thu, 02 Jan 2020 17:00:55 -0500 In-reply-to: <87blrlu3zv.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" To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel@gnu.org Hi, > It=E2=80=99s more than I thought but I think it=E2=80=99s OK. (Also, how= come > bare-bones takes 1.5 GiB?!) That's one of my next subject of investigation :) >> (define %default-locale-libcs >> ;; The libcs for which we build locales by default. >> - (list (canonical-package glibc))) >> + (list glibc)) > > I would leave this bit unchanged if possible, because that way the glibc > used would really match that programs are linked against. operating-system-locale-libcs defaults to %default-locale-libcs, so keeping (canonical-package glibc) prevents cross-compilation :( We could use a thunk field to write something like: --8<---------------cut here---------------start------------->8--- (define (default-locale-libcs ...) (if target glibc (canonical-package glibc)) --8<---------------cut here---------------end--------------->8--- But I'd like to avoid that. I'll see if I can figure out something better after a good night. Thanks, Mathieu