GNOME Bugzilla – Bug 144527
dia: "make distcheck" doesn't work
Last modified: 2005-06-19 08:21:48 UTC
I tried to build a tarball according to the instructions in RELEASE-PROCESS with "make distcheck". The latter one yields: ======================================================================== [...] make[2]: Entering directory `/home/ernie/temp/test/dia/doc/en' /bin/bash ../../mkinstalldirs ../../dia-0.93+cvs/doc/en/../.. ../../dia-0.93+cvs/doc/en/graphics mkdir -p -- ../../dia-0.93+cvs/doc/en/graphics make \ top_distdir="." distdir="../../dia-0.93+cvs/doc/en" \ dist-hook make[3]: Entering directory `/home/ernie/temp/test/dia/doc/en' if test "graphics"; then \ /bin/bash ../../mkinstalldirs ../../dia-0.93+cvs/doc/en/graphics; \ for file in ./graphics/*.png; do \ basefile=`echo $file | sed -e 's,^.*/,,'`; \ /usr/bin/install -c -m 644 $file ../../dia-0.93+cvs/doc/en/graphics/$basefile; \ done \ fi make[3]: Leaving directory `/home/ernie/temp/test/dia/doc/en' make[2]: Leaving directory `/home/ernie/temp/test/dia/doc/en' make[2]: Entering directory `/home/ernie/temp/test/dia/doc/pl' make[2]: *** No rule to make target `usage-objects-basic.xml', needed by `distdir'. Stop. make[2]: Leaving directory `/home/ernie/temp/test/dia/doc/pl' make[1]: *** [distdir] Error 1 make[1]: Leaving directory `/home/ernie/temp/test/dia/doc' make: *** [distdir] Error 1 ernie@atari:~/temp/test/dia$ ======================================================================== I also tried with "make dist".
Thank you, that apparently got triggerede by the move to XML docbook. Fixed in CVS.
Just checked out again, and the problem is still present.
Are you sure you've recreated the Makefile since the change? That file is only mentioned in comments now. If the error persists after a make distclean, let me know.
$ ./autogen.sh && ./configure && make distcheck yields: make: *** No rule to make target `THANKS', needed by `distdir'. Stop. while $ ./autogen.sh && ./configure --enable-maintainer-mode --enable-db2html && make distcheck results in: ... make[4]: Entering directory `/home/ernie/temp/dia/dia-0.94/_build/po' INTLTOOL_EXTRACT=../intltool-extract srcdir=../../po ../intltool-update --gettext-package dia --pot /usr/bin/xgettext: error while opening "../../po/../app/diaconv.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[4]: *** [dia.pot] Error 1 make[4]: Leaving directory `/home/ernie/temp/dia/dia-0.94/_build/po' make[3]: *** [po/dia.pot] Error 2 make[3]: Leaving directory `/home/ernie/temp/dia/dia-0.94/_build' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/ernie/temp/dia/dia-0.94/_build' make[1]: *** [all] Error 2 make[1]: Leaving directory `/home/ernie/temp/dia/dia-0.94/_build' make: *** [distcheck] Error 2
Current cvs should have finally fixed the mess: 2005-06-11 Hans Breuer <hans@breuer.org> [ WANT_AUTOMAKE=1.7 ./autogen.sh && ./conifugre --enable-maintatiner-mode && make distcheck finally passes again ] * app/app_procs.c : force use of POPT for the GNOME case, otherwise app/run_dia.sh --credits > THANKS => Segmentation fault * app/pixmaps/Makefile.am : added group.png and ungroup.png * Makefile.am : work around scrollkeeper bug * doc/en/Makefile.am : explicit list DISTCLEANFILES = dia.1
With a fresh checkout and the stated command (WANT_AUTOMAKE=1.7 ./autogen.sh && ./configure --enable-maintainer-mode && make distcheck), I get the following: ============================================================================= make[4]: Nothing to be done for `all-am'. make[4]: Leaving directory `/home/ernie/temp/dia/dia-0.94+cvs/_build/doc' make[3]: Leaving directory `/home/ernie/temp/dia/dia-0.94+cvs/_build/doc' make[3]: Entering directory `/home/ernie/temp/dia/dia-0.94+cvs/_build' LC_ALL=C ./intltool-merge -d -u -c ./po/.intltool-merge-cache ../po ../dia.desktop.in dia.desktop Generating and caching the translation database WARNING: ../po/da.po is not in UTF-8 but ISO-8859-1, converting... WARNING: ../po/ro.po is not in UTF-8 but ISO-8859-2, converting... WARNING: ../po/ko.po is not in UTF-8 but euc-kr, converting... WARNING: ../po/it.po is not in UTF-8 but ISO-8859-1, converting... Merging translations into dia.desktop. sed -e 's^\@icondir\@^/home/ernie/temp/dia/dia-0.94+cvs/_inst/share/pixmaps^g' ../dia.keys.in > dia.keys.tmp \ && mv dia.keys.tmp dia.keys (cd po ; make dia.pot) make[4]: Entering directory `/home/ernie/temp/dia/dia-0.94+cvs/_build/po' INTLTOOL_EXTRACT=../intltool-extract srcdir=../../po ../intltool-update --gettext-package dia --pot /usr/bin/xgettext: error while opening "../../po/../app/diaconv.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. =============================================================================
Removing diaconv.c from po/POTFILES.in fixes the problem for me.
Thanks for the hint, commited. 2005-06-18 Hans Breuer <hans@breuer.org> * po/POTFILES.in : removed app/diaconv.c which isn't referenced by app/Makefile.am anymore either. Should finally fix 'make distcheck' for others, too. ( Roland Stigge, bug #144527 )
Unfortunately, that change is not reflected in the CVS repository. Maybe you forgot to actually remove the line? BTW: Both web interfaces for the CVS repository (referenced from http://www.gnome.org/projects/dia/), bonsai and lxr, show 404's when trying to look up this file.
Bonsai and lxr are broken for years. IIRC anoncvs is synced once a day. What about: http://cvs.gnome.org/viewcvs/dia/po/POTFILES.in?r1=1.58&r2=1.59