From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Subject: [PATCH 0/2] Avoiding incompatible locale data in LOCPATH Date: Thu, 1 Oct 2015 23:58:34 +0200 Message-ID: <1443736716-8578-1-git-send-email-ludo@gnu.org> References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------2.5.0" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36535) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZhlsF-0002Gi-KY for guix-devel@gnu.org; Thu, 01 Oct 2015 17:58:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZhlsC-00028I-Dp for guix-devel@gnu.org; Thu, 01 Oct 2015 17:58:47 -0400 In-Reply-To: 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: guix-devel@gnu.org Cc: beffa@ieee.org This is a multi-part message in MIME format. --------------2.5.0 Content-Type: text/plain; charset=UTF-8; format=fixed Content-Transfer-Encoding: 8bit So, below are a couple of patches implementing ideas that were discussed here and on IRC to improve the locale mess. The first patch adds the 'GUIX_LOCPATH' environment variable, the idea being that on foreign distros, users could set this variable instead of 'LOCPATH', and the host distro's programs wouldn't break. The second patch was suggested by Mark. It basically adds "/2.22" to every directory name specified in LOCPATH, as well as to the default locale directory. The idea here is that libc would only stumble on compatible locale data. Actually with that second patch, I think 'GUIX_LOCPATH' is unneeded, because effectively Guix's libc would already be interpreting 'LOCPATH' differently. So my inclination would be to apply only the second one. Thoughts? I'd like to get that on 'core-updates' soon so we can quickly get the better fix. Thanks, Ludo'. Ludovic Courtès (2): gnu: glibc: Honor 'GUIX_LOCPATH'. gnu: glibc: Look for locale data in versioned sub-directories. doc/guix.texi | 23 +++++++---- gnu-system.am | 2 + gnu/packages/base.scm | 24 ++++++----- gnu/packages/patches/glibc-guix-locpath.patch | 38 +++++++++++++++++ gnu/packages/patches/glibc-versioned-locpath.patch | 47 ++++++++++++++++++++++ 5 files changed, 116 insertions(+), 18 deletions(-) create mode 100644 gnu/packages/patches/glibc-guix-locpath.patch create mode 100644 gnu/packages/patches/glibc-versioned-locpath.patch -- 2.5.0 --------------2.5.0--