From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 0DNoJQ7f8V9TMwAA0tVLHw (envelope-from ) for ; Sun, 03 Jan 2021 15:13:18 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id WJMgIQ7f8V9ZBAAAbx9fmQ (envelope-from ) for ; Sun, 03 Jan 2021 15:13:18 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 2F8E6940481 for ; Sun, 3 Jan 2021 15:13:18 +0000 (UTC) Received: from localhost ([::1]:57582 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kw54H-00054f-5R for larch@yhetil.org; Sun, 03 Jan 2021 10:13:17 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:53930) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kw542-00054X-4D for guix-patches@gnu.org; Sun, 03 Jan 2021 10:13:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:55034) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kw541-0002zA-Rl for guix-patches@gnu.org; Sun, 03 Jan 2021 10:13:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kw541-00047n-Nv for guix-patches@gnu.org; Sun, 03 Jan 2021 10:13:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#45368] [PATCH core-updates 0/3] Help2man updates Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 03 Jan 2021 15:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45368 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Miguel =?UTF-8?Q?=C3=81ngel?= Arruga Vivas Received: via spool by 45368-submit@debbugs.gnu.org id=B45368.160968676015825 (code B ref 45368); Sun, 03 Jan 2021 15:13:01 +0000 Received: (at 45368) by debbugs.gnu.org; 3 Jan 2021 15:12:40 +0000 Received: from localhost ([127.0.0.1]:38347 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kw53g-00047B-AJ for submit@debbugs.gnu.org; Sun, 03 Jan 2021 10:12:40 -0500 Received: from eggs.gnu.org ([209.51.188.92]:60742) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kw53e-00046y-Rz for 45368@debbugs.gnu.org; Sun, 03 Jan 2021 10:12:39 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:43530) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kw53Z-0002qi-EJ; Sun, 03 Jan 2021 10:12:33 -0500 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=33266 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kw53Y-0002oi-UA; Sun, 03 Jan 2021 10:12:33 -0500 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <875z4uyoz5.fsf@gmail.com> Date: Sun, 03 Jan 2021 16:12:31 +0100 In-Reply-To: <875z4uyoz5.fsf@gmail.com> ("Miguel =?UTF-8?Q?=C3=81ngel?= Arruga Vivas"'s message of "Tue, 22 Dec 2020 14:01:02 +0100") Message-ID: <877dou12cg.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 45368@debbugs.gnu.org Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -2.83 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 2F8E6940481 X-Spam-Score: -2.83 X-Migadu-Scanner: scn0.migadu.com X-TUID: W3bIuDS68j8i =C2=A1Hola! Miguel =C3=81ngel Arruga Vivas skribis: > The following patches do some work on help2man, namely: > 1. Allow the generation of localized manual pages. > 2. Update the package to the latest version. > > To perform the first objective, the library perl-gettext was imported > from CPAN. Its path is encoded directly on the resulting binary to > ensure it is loaded, as perl and the library should be propagated to the > environment in order to achieve the same result with PERL5LIB. Nice. > Nonetheless, currently there are two open issues with this approach: > > - The library used for a cross compilation could be different, but the > generated version is used for its own documentation generation. Are > the inputs correctly placed? Should it be patched on a later stage to > the final input? If the problem is just the generation of help2man=E2=80=99s own documentati= on when cross-compiling, perhaps we need to add itself as a native input when cross-compiling? Anyhow that doesn=E2=80=99t sound like a showstopper to me. > - The compilation tries to generate translated man pages and sets LC_ALL > to values not available on glibc-utf8-locales, therefore only > languages available there have their manual page properly translated, > such as french. You can see the following lines (and more) on the > build log, which warn about this issue: > --------------------------------8<-------------------------------- sh: > warning: setlocale: LC_ALL: cannot change locale (uk_UA.UTF-8) sh: > warning: setlocale: LC_ALL: cannot change locale (vi_VN.UTF-8) > -------------------------------->8-------------------------------- > > IMHO, a change on gnu-build-system to allow the selection of the locales > used for the build could be the best way forward, but I haven't > implemented it yet. WDYT? Yes, that=E2=80=99s a good idea. There=E2=80=99s already a procedure to ge= nerate a locale package IIRC. We just have to make sure its result is properly memoized so that performance doesn=E2=80=99t suffer. Thanks! Ludo=E2=80=99.