[Bug other/13485] [3.4 regression] Generated files no longer get messages extracted

jsm at polyomino dot org dot uk gcc-bugzilla@gcc.gnu.org
Wed Jan 14 14:16:00 GMT 2004


------- Additional Comments From jsm at polyomino dot org dot uk  2004-01-14 14:16 -------
Subject: Re:  [3.4 regression] Generated files no longer
 get messages extracted

On Wed, 14 Jan 2004, steven at gcc dot gnu dot org wrote:

> # Make-lang.in should add dependencies of po-generated on any generated 
> # files which need to be scanned by gettext (usually Yacc-generated parsers). 
> po-generated: $(parsedir)/c-parse.c options.c 
>  
> And the Make-lang.ins have a po-generated target too. 
>  
> Joseph, isn't this what proposed we should do? 

po-generated has the *dependencies* - but the lists of files in
po-generated's dependency lists never get passed to exgettext.  When the
generated files were in the source directory, the dependencies meant they
were generated before exgettext was called, which was enough as it
searches the source directory for files to extract messages from.  Now the
generated files aren't in the source directory, exgettext needs to know
which generated files from the build directory to search for messages.  
At present options.c is hard-coded in exgettext, but passing a last of all
the relevant files on the command line (rather than hardcoding options.c)
is the right solution.



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13485



More information about the Gcc-bugs mailing list