After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 144527 - dia: "make distcheck" doesn't work
dia: "make distcheck" doesn't work
Status: RESOLVED FIXED
Product: dia
Classification: Other
Component: general
CVS head
Other Linux
: Normal normal
: ---
Assigned To: Dia maintainers
Dia maintainers
Depends on:
Blocks:
 
 
Reported: 2004-06-17 12:35 UTC by Roland Stigge
Modified: 2005-06-19 08:21 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Roland Stigge 2004-06-17 12:35:57 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".
Comment 1 Lars Clausen 2004-06-17 20:31:48 UTC
Thank you, that apparently got triggerede by the move to XML docbook.  Fixed in CVS.
Comment 2 Roland Stigge 2004-06-18 09:00:36 UTC
Just checked out again, and the problem is still present.
Comment 3 Lars Clausen 2004-11-01 17:59:27 UTC
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.
Comment 4 Roland Stigge 2005-02-27 22:01:14 UTC
$ ./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
Comment 5 Hans Breuer 2005-06-11 17:29:02 UTC
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
Comment 6 Roland Stigge 2005-06-14 20:58:20 UTC
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.
=============================================================================
Comment 7 Roland Stigge 2005-06-18 19:24:45 UTC
Removing diaconv.c from po/POTFILES.in fixes the problem for me.
Comment 8 Hans Breuer 2005-06-18 19:41:27 UTC
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 )

Comment 9 Roland Stigge 2005-06-19 07:48:03 UTC
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.
Comment 10 Hans Breuer 2005-06-19 08:21:48 UTC
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