grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Broken build


From: address@hidden
Subject: Re: Broken build
Date: Fri, 26 Mar 2010 09:45:52 -0500

2010/3/26 Vladimir 'φ-coder/phcoder' Serbinenko <address@hidden>:
> Bruce Dubbs wrote:
>> 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.
> Well you have a funny way of disagreeing arriving to the same result as
> I told: replace
>        cd $(srcdir) && $(XGETTEXT) -ctranslate --from-code=utf-8 -o $@
> -f $< --keyword=_ --keyword=N_
> with
>        cd $(srcdir) && $(XGETTEXT) -ctranslate --from-code=utf-8 -o $@
> -f po/POTFILES --keyword=_ --keyword=N_
> 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
>>    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.

This looks like a better fix, if gettext looks for files relative to
the current directory.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]