Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1NvAr8-0003GE-Dv for mharc-grub-devel@gnu.org; Fri, 26 Mar 2010 10:49:50 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NvAr6-0003EW-8c for grub-devel@gnu.org; Fri, 26 Mar 2010 10:49:48 -0400 Received: from [140.186.70.92] (port=36424 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NvAr3-00034s-2G for grub-devel@gnu.org; Fri, 26 Mar 2010 10:49:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NvAnL-0002pL-1l for grub-devel@gnu.org; Fri, 26 Mar 2010 10:45:56 -0400 Received: from mail-vw0-f41.google.com ([209.85.212.41]:61549) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NvAnK-0002pB-Ts for grub-devel@gnu.org; Fri, 26 Mar 2010 10:45:54 -0400 Received: by vws20 with SMTP id 20so4551584vws.0 for ; Fri, 26 Mar 2010 07:45:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:received:message-id:subject:from:to:content-type :content-transfer-encoding; bh=yJDUmxezv7i2DEHkNLdELtLW8yTcazuGGo/pO685T3w=; b=DV1lbTnzclIBok0oU7UP/culjZO564YNSsvsUUMFRG8wQWFsk1CG6aJJFyIPTzEmGC tqcEFDwz0ywlZb9EaLfY3TSSht5YiMrWMd+XA9k8Itw4kzaSMb4dlt7wkEKGLDC/nKhf /FnUTiiiHJ4S9bkT1n3XhiRy0nuBYXAa2zckQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=NPcSNAZw1J7l5LYMS0u06B7N94cJPthFuer0VVBhtz89YiPJngxB9+nsdosjCrcSV3 gEJLDalucFyqmcL8a8d+VGmgF7gRBYS1eSYJAZ27pW9u5aaQ04SJjaecyJnvvZ9z0xaI 1lBoBbRLIYFEcFDDGrURp9WoQ6jYjI8nav0is= MIME-Version: 1.0 Received: by 10.220.124.42 with HTTP; Fri, 26 Mar 2010 07:45:52 -0700 (PDT) In-Reply-To: <4BACC5BF.40600@gmail.com> References: <4BA0FFCC.3000109@gmail.com> <20100317231211.GA30386@pina.cat> <4BA16DBB.7060704@gmail.com> <4BA17A19.60301@gmail.com> <4BACC5BF.40600@gmail.com> Date: Fri, 26 Mar 2010 09:45:52 -0500 Received: by 10.220.127.94 with SMTP id f30mr643336vcs.138.1269614752290; Fri, 26 Mar 2010 07:45:52 -0700 (PDT) Message-ID: <2e59e6971003260745y63ebb9ebvbc0ae70888c5fbb3@mail.gmail.com> From: "richardvoigt@gmail.com" To: The development of GNU GRUB Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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:49:48 -0000 2010/3/26 Vladimir '=CF=86-coder/phcoder' Serbinenko : > Bruce Dubbs wrote: >> Vladimir '=CF=86-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 >>>> :-) >>>> >>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 cd $(srcdir) && $(XGETTEXT) -ctranslate --f= rom-code=3Dutf-8 -o $@ >>> -f $< --keyword=3D_ --keyword=3DN_ >>> to >>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 cd $(srcdir) && $(XGETTEXT) -ctranslate --f= rom-code=3Dutf-8 -o $@ >>> -f po/POTFILES --keyword=3D_ --keyword=3DN_ >>> Feel free to test & commit >> >> I don't think so. > Well you have a funny way of disagreeing arriving to the same result as > I told: replace > =C2=A0 =C2=A0 =C2=A0 =C2=A0cd $(srcdir) && $(XGETTEXT) -ctranslate --from= -code=3Dutf-8 -o $@ > -f $< --keyword=3D_ --keyword=3DN_ > with > =C2=A0 =C2=A0 =C2=A0 =C2=A0cd $(srcdir) && $(XGETTEXT) -ctranslate --from= -code=3Dutf-8 -o $@ > -f po/POTFILES --keyword=3D_ --keyword=3DN_ > Have you tested it? This is still clearly wrong. When building outside the source tree, make should not create any files in the source tree. Write permission to the source tree should not be required. > >> When generated, the makefile has: >> >> $(srcdir)/po/$(PACKAGE).pot: po/POTFILES po/POTFILES-shell >> =C2=A0 =C2=A0cd $(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 >> =C2=A0 cd .. && /usr/bin/xgettext -ctranslate --from-code=3Dutf-8 \ >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0-o ../po/grub.pot -f po/POTFILE= S --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 >> =C2=A0 mkdir -p po >> =C2=A0 $(XGETTEXT) -ctranslate --from-code=3Dutf-8 -o $@ \ >> =C2=A0 -f $< --keyword=3D_ --keyword=3DN >> >> I get the error: >> >> =C2=A0 /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 >> =C2=A0 mkdir -p po >> =C2=A0 DIR=3D$PWD >> =C2=A0 cd $(srcdir) && $(XGETTEXT) -ctranslate --from-code=3Dutf-8 \ >> =C2=A0 =C2=A0 -o $(DIR)/$@ -f po/POTFILES --keyword=3D_ --keyword=3DN >> >> The use of $< is wrong here because of the cd command. This looks like a better fix, if gettext looks for files relative to the current directory.