From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1NvAbg-0004B9-Ro for mharc-grub-devel@gnu.org; Fri, 26 Mar 2010 10:33:52 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NvAbe-0004B0-VW for grub-devel@gnu.org; Fri, 26 Mar 2010 10:33:50 -0400 Received: from [140.186.70.92] (port=49197 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NvAbd-0004Aq-Ee for grub-devel@gnu.org; Fri, 26 Mar 2010 10:33:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NvAbc-0001Ps-GJ for grub-devel@gnu.org; Fri, 26 Mar 2010 10:33:49 -0400 Received: from mail-bw0-f219.google.com ([209.85.218.219]:39738) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NvAbc-0001Pf-8h for grub-devel@gnu.org; Fri, 26 Mar 2010 10:33:48 -0400 Received: by bwz19 with SMTP id 19so238164bwz.26 for ; Fri, 26 Mar 2010 07:33:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :x-enigmail-version:content-type; bh=4JaE2447Z0E3Y3kdKsfXt1uyOU2H2wFfPjZhZonwSTc=; b=PAnbEVivpouCMoaftU5iYzvfGxR4GeQnGwYlymH1r5YiG2PmGlxZ68wx1o8doMG/0P t2RXYo47ZVbO0/L5r2VauufBu/W4L+OMaFcagapjmAbfftWVpwv7t2oAU0TB2eztQBEG e/2d/e8P4YRuwt99JuW7NCz9ifnTDdFny+vZc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type; b=FAmYcIS5+5MZBs+awqJb8oeaZAQWCcb7p+LmQoHLAa1hASjiRMRVp4pdUsocqq4ktT ywtD8etp28vmaf/Z0xR8U1x/bF240H/7Sa+pQUabCuZ+mF8Ffb10wLLj1CPfajI4RO2A yPWk7qpfd4knsQayqkAJYblSrTSXs5K26N6bg= Received: by 10.204.151.71 with SMTP id b7mr1652730bkw.104.1269614026997; Fri, 26 Mar 2010 07:33:46 -0700 (PDT) Received: from debian.bg45.phnet (gprs29.swisscom-mobile.ch [193.247.250.29]) by mx.google.com with ESMTPS id 13sm549791bwz.11.2010.03.26.07.33.44 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 26 Mar 2010 07:33:45 -0700 (PDT) Message-ID: <4BACC5BF.40600@gmail.com> Date: Fri, 26 Mar 2010 15:33:35 +0100 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla-Thunderbird 2.0.0.22 (X11/20091109) MIME-Version: 1.0 To: The development of GNU GRUB References: <4BA0FFCC.3000109@gmail.com> <20100317231211.GA30386@pina.cat> <4BA16DBB.7060704@gmail.com> <4BA17A19.60301@gmail.com> In-Reply-To: <4BA17A19.60301@gmail.com> X-Enigmail-Version: 0.95.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enigD64D7D3AE05F12AAC9947253" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: Broken build X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Mar 2010 14:33:51 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigD64D7D3AE05F12AAC9947253 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Bruce Dubbs wrote: > Vladimir '=CF=86-coder/phcoder' Serbinenko wrote: >> Carles Pina i Estany wrote: >>> Hi, >>> >>> On Mar/17/2010, Bruce Dubbs wrote: >>> =20 >>>> With the addition of the internationalization code, building GRUB in= >>>> a separate directory fails. >>>> =20 >>> I'll take a look into it "soon" (next days or next week) >>> >>> Probably it's an easy thing, if someone checks it before please repor= t >>> :-) >>> =20 >> cd $(srcdir) && $(XGETTEXT) -ctranslate --from-code=3Dutf-8 -o= $@ >> -f $< --keyword=3D_ --keyword=3DN_ >> to >> cd $(srcdir) && $(XGETTEXT) -ctranslate --from-code=3Dutf-8 -o= $@ >> -f po/POTFILES --keyword=3D_ --keyword=3DN_ >> Feel free to test & commit > > I don't think so. =20 Well you have a funny way of disagreeing arriving to the same result as I told: replace cd $(srcdir) && $(XGETTEXT) -ctranslate --from-code=3Dutf-8 -o $@= -f $< --keyword=3D_ --keyword=3DN_ with cd $(srcdir) && $(XGETTEXT) -ctranslate --from-code=3Dutf-8 -o $@= -f po/POTFILES --keyword=3D_ --keyword=3DN_ Have you tested it? > When generated, the makefile has: > > $(srcdir)/po/$(PACKAGE).pot: po/POTFILES po/POTFILES-shell > cd $(srcdir) && $(XGETTEXT) -ctranslate --from-code=3Dutf-8 -o $@ -f= > $< --keyword=3D_ --keyword=3DN_ > > which when instantiated by make is: > > ../po/grub.pot: po/POTFILES po/POTFILES-shell > cd .. && /usr/bin/xgettext -ctranslate --from-code=3Dutf-8 \ > -o ../po/grub.pot -f po/POTFILES --keyword=3D_ --keyword=3DN= _ > > /usr/bin/xgettext: cannot create output file "../po/grub.pot": No such > file or directory > > If I change this to: > > po/grub.pot: $(srcdir)/po/POTFILES $(srcdir)/po/POTFILES-shell > mkdir -p po > $(XGETTEXT) -ctranslate --from-code=3Dutf-8 -o $@ \ > -f $< --keyword=3D_ --keyword=3DN > > I get the error: > > /usr/bin/xgettext: error while opening "commands/acpi.c" for > reading: No such file or directory > > We need something like: > > po/grub.pot: $(srcdir)/po/POTFILES $(srcdir)/po/POTFILES-shell > mkdir -p po > DIR=3D$PWD > cd $(srcdir) && $(XGETTEXT) -ctranslate --from-code=3Dutf-8 \ > -o $(DIR)/$@ -f po/POTFILES --keyword=3D_ --keyword=3DN > > The use of $< is wrong here because of the cd command. > > > -- Bruce > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel > --=20 Regards Vladimir '=CF=86-coder/phcoder' Serbinenko --------------enigD64D7D3AE05F12AAC9947253 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iF4EAREKAAYFAkusxcYACgkQNak7dOguQglFbQD+OZwFVo9R/j5sVS3gv9nCGCNP jnBfkjDH3MTCTYd/gGMBAIelD3pgoXkqHckHTBcPWXH5vGLm75ZTXwNEG9de8L7l =ROx5 -----END PGP SIGNATURE----- --------------enigD64D7D3AE05F12AAC9947253--