From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Ns41p-0004EE-0C for mharc-grub-devel@gnu.org; Wed, 17 Mar 2010 20:56:01 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ns41n-0004DG-Be for grub-devel@gnu.org; Wed, 17 Mar 2010 20:55:59 -0400 Received: from [140.186.70.92] (port=55995 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ns41m-0004CW-20 for grub-devel@gnu.org; Wed, 17 Mar 2010 20:55:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ns41k-0004e1-VH for grub-devel@gnu.org; Wed, 17 Mar 2010 20:55:57 -0400 Received: from mail-yx0-f194.google.com ([209.85.210.194]:39703) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ns41k-0004dv-Rs for grub-devel@gnu.org; Wed, 17 Mar 2010 20:55:56 -0400 Received: by yxe32 with SMTP id 32so878918yxe.24 for ; Wed, 17 Mar 2010 17:55:56 -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 :content-type:content-transfer-encoding; bh=TU3A9kuPCRy464IxMvl1NCFuQEXaFR0Fi3mcVZGweJU=; b=diR22EdixntI7mpobXC04jWcJAJcblbhwrrFVDsHpBMa23gVrM7r6Y5IbEIoaxDEgq lUxzCbH8FpfKRiFcNJ8oeN5fpk9Zg5T0Jgl8g2SRDMddk9LJlpBVIlTEVjxDeALg0h2F e9apZUxh7lVCO2PU8v/U8ycfj76Xj6ZGFiqG8= 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:content-type:content-transfer-encoding; b=N1Mn3bGHArwqUvQazpdxSCt1OLPohy1HdxXyi3wApj2lqB9s0NcTW3LhDLbmQKZAtk uPqqxkAqlzG7xHU2B9NRSLdbuwTCV2epPqI9OA5lRRvQJb7dIJXeeao7dP3y/lfNlO47 cTEJkHnD8K/iSe+ReBDeYdh+iZMilwibr6WEU= Received: by 10.150.47.13 with SMTP id u13mr6059482ybu.239.1268873756112; Wed, 17 Mar 2010 17:55:56 -0700 (PDT) Received: from [192.168.0.75] (cpe-24-174-180-111.satx.res.rr.com [24.174.180.111]) by mx.google.com with ESMTPS id 5sm870538yxg.10.2010.03.17.17.55.54 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 17 Mar 2010 17:55:54 -0700 (PDT) Message-ID: <4BA17A19.60301@gmail.com> Date: Wed, 17 Mar 2010 19:55:53 -0500 From: Bruce Dubbs User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.16) Gecko/20080722 SeaMonkey/1.1.11 MIME-Version: 1.0 To: The development of GNU GRUB References: <4BA0FFCC.3000109@gmail.com> <20100317231211.GA30386@pina.cat> <4BA16DBB.7060704@gmail.com> In-Reply-To: <4BA16DBB.7060704@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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: Thu, 18 Mar 2010 00:55:59 -0000 Vladimir 'φ-coder/phcoder' Serbinenko wrote: > Carles Pina i Estany wrote: >> Hi, >> >> On Mar/17/2010, Bruce Dubbs wrote: >> >>> With the addition of the internationalization code, building GRUB in >>> a separate directory fails. >>> >> 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 report >> :-) >> > cd $(srcdir) && $(XGETTEXT) -ctranslate --from-code=utf-8 -o $@ > -f $< --keyword=_ --keyword=N_ > to > cd $(srcdir) && $(XGETTEXT) -ctranslate --from-code=utf-8 -o $@ > -f po/POTFILES --keyword=_ --keyword=N_ > Feel free to test & commit I don't think so. When generated, the makefile has: $(srcdir)/po/$(PACKAGE).pot: po/POTFILES po/POTFILES-shell cd $(srcdir) && $(XGETTEXT) -ctranslate --from-code=utf-8 -o $@ -f $< --keyword=_ --keyword=N_ which when instantiated by make is: ../po/grub.pot: po/POTFILES po/POTFILES-shell cd .. && /usr/bin/xgettext -ctranslate --from-code=utf-8 \ -o ../po/grub.pot -f po/POTFILES --keyword=_ --keyword=N_ /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=utf-8 -o $@ \ -f $< --keyword=_ --keyword=N 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=$PWD cd $(srcdir) && $(XGETTEXT) -ctranslate --from-code=utf-8 \ -o $(DIR)/$@ -f po/POTFILES --keyword=_ --keyword=N The use of $< is wrong here because of the cd command. -- Bruce