tarball POTFILE.in errors;
1.9.0 next Sunday proposed (was: Proposal: Release 1.9.0 today)
Chris Shoemaker
c.shoemaker at cox.net
Wed Feb 1 09:37:20 EST 2006
On Wed, Feb 01, 2006 at 10:56:24AM +0100, Christian Stimming wrote:
> >
> >make[3]: Entering directory
> >`/home/chris/cvs/gnucash-test/gnucash-1.9.0/_build/po'
> >INTLTOOL_EXTRACT=../intltool-extract srcdir=../../po ../intltool-update
> >--gettext-package gnucash --pot
> >can't
> >open
> >../../po/../src/gnome/schemas/apps_gnucash_dialog_scheduled_transctions.schemas.in: No such file or directory at ../intltool-extract line 204.
> >/usr/bin/xgettext: error while opening
> >"../../po/../src/backend/dwi/qofmap.c" for reading: No such file or
> >directory
> >ERROR: xgettext failed to generate PO template file. Please consult
> > error message above if there is any.
> >make[3]: *** [gnucash.pot] Error 1
> >make[3]: Leaving directory
> >`/home/chris/cvs/gnucash-test/gnucash-1.9.0/_build/po'
> >make[2]: *** [check-recursive] Error 1
>
> *sigh* Now this is the generated po/POTFILES.in striking back. There are
> obviously some files in SVN that don't make it into the tarball and
> nobody noticed so far. The generated po/POTFILES.in cannot distinguish
> those from the correct ones. Both
> src/gnome/schemas/apps_gnucash_dialog_scheduled_transctions.schemas.in
> and src/backend/dwi/qofmap.c are not included in the dist target, but
> are included into POTFILES.in by make-gnucash-potfiles because they are
> found in a SVN checkout.
>
> (I wonder why the rule for po/gnucash.pot triggers at all -- it
> shouldn't in the tarball. But anyway, it should be allowed to call this
> rule in the tarball, so POTFILES.in needs to be fixed.)
>
> Here's what we can do:
>
> #1. Include po/POTFILES.in into SVN again; don't let it be generated
> automatically, but only on the manual rule "make pot"; remove those
> non-distributed files from the SVN version of POTFILES.in. Problem solved.
>
> #2. Add those non-distributed files into the @ignorepatterns in
> make-gnucash-potfiles. This will fix this particular error from the
> generates POTFILES.in.
>
> #3. Add some wonderful magic into make-gnucash-potfiles which will be
> able to tell apart the non-distributed files from the distributed ones.
>
What about:
#4. Any source file we version control but don't distribute, we
also don't want to translate. According to intltool-update, those
files should be listed in POTFILES.skip. This makes the --maintain
mode of intltool-update more useful. And, the only magic needed in
make-gnucash-potfiles is "ignore the files listed in POTFILES.skip."
-chris
More information about the gnucash-devel
mailing list