From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: [PATCH] gnu: gettext: Enable "xgettext --language=glade" Date: Mon, 18 Nov 2013 00:19:24 +0100 Message-ID: <877gc639c3.fsf@gnu.org> References: <20131117122546.GA32131@debian> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44819) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ViBcq-0005Jj-Un for guix-devel@gnu.org; Sun, 17 Nov 2013 18:19:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ViBck-0002hp-Qo for guix-devel@gnu.org; Sun, 17 Nov 2013 18:19:32 -0500 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:42388) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ViBck-0002hk-Jv for guix-devel@gnu.org; Sun, 17 Nov 2013 18:19:26 -0500 In-Reply-To: <20131117122546.GA32131@debian> (Andreas Enge's message of "Sun, 17 Nov 2013 13:25:46 +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-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Andreas Enge Cc: guix-devel@gnu.org Andreas Enge skribis: > `(#:phases (alist-cons-before > + 'configure 'link-expat > + (lambda _ > + (substitute* "gettext-tools/configure" > + (("LIBEXPAT=3D\"-ldl\"") "LIBEXPAT=3D\"-ldl -lexpat= \"") > + (("LTLIBEXPAT=3D\"-ldl\"") "LTLIBEXPAT=3D\"-ldl -le= xpat\""))) Actually, it seems to be solvable without adding the dependency: --8<---------------cut here---------------start------------->8--- $ xgettext -L glade /dev/null=20 xgettext: Language "glade" is not supported. xgettext relies on expat. This version was built without expat. $ LD_LIBRARY_PATH=3D$(guix build expat)/lib xgettext -L glade /dev/null=20 xgettext: /dev/null:1:1: no element found --8<---------------cut here---------------end--------------->8--- (The error message is misleading because it=E2=80=99s not a build-time issu= e.) Would it work for you to just use that LD_LIBRARY_PATH trick where it=E2=80= =99s needed? That way we avoid making gettext =E2=80=9Cfatter=E2=80=9D. I suppose we=E2= =80=99ll seldom need to do that trick anyway. WDYT? Ludo=E2=80=99.