From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Subject: Re: [PATCH] gnu: Add glibc-locales variants for older versions of glibc. Date: Sat, 19 Jan 2019 23:58:22 +0100 Message-ID: <87tvi4p84x.fsf@gnu.org> References: <20190117131753.15696-1-rekado@elephly.net> <87a7jzh0yy.fsf@elephly.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:51855) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gkzZK-0003ix-PC for guix-devel@gnu.org; Sat, 19 Jan 2019 17:58:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gkzZJ-0001Uh-Un for guix-devel@gnu.org; Sat, 19 Jan 2019 17:58:26 -0500 Received: from hera.aquilenet.fr ([185.233.100.1]:37188) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gkzZJ-0001TZ-NV for guix-devel@gnu.org; Sat, 19 Jan 2019 17:58:25 -0500 In-Reply-To: <87a7jzh0yy.fsf@elephly.net> (Ricardo Wurmus's message of "Thu, 17 Jan 2019 14:23:33 +0100") 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: Ricardo Wurmus Cc: guix-devel@gnu.org Hi, Ricardo Wurmus skribis: > Ricardo Wurmus writes: > >> * gnu/packages/base.scm (make-glibc-locales, make-glibc-utf8-locales): N= ew >> procedures. >> (glibc-locales): Express in terms of make-glibc-locales. >> (glibc-utf8-locales): Express in terms of make-glibc-utf8-locales. >> (glibc-locales-2.27, glibc-utf8-locales-2.27): New variables. > > This is for the benefit of people who run Guix on top of a foreign > distro. On a Guix system people can simply use the =E2=80=9Clocale-libcs= =E2=80=9D field > of their operating system declaration, but on a foreign distro there is > no way to install a locales package for older versions of glibc. > > This patch generates variants for version 2.27 and overrides the name so > that both =E2=80=9Cglibc-locales=E2=80=9D and =E2=80=9Cglibc-locales-2.27= =E2=80=9D can be installed into > the same profile. (Without the name override that=E2=80=99s not possible= .) Adding the packages makes sense to me. I don=E2=80=99t like the package name trick, but I don=E2=80=99t have a bet= ter solution. Perhaps we could have a special property to explicitly allow for several versions of this package in the same profile (say =E2=80=98allow-multiple-versions?=E2=80=99), but that=E2=80=99s a bit more = work. Thanks, Ludo=E2=80=99.