Hi everybody, today I did a some tests to see if (k)powersave does properly use autotools. I started with powersave and checked out powersave trunk from [1]. After running make -f Makefile.cvs I could successfully run "make distcheck" for an in-source and out-of source build. It's always a good idea to run "make distcheck" (in and out-of source) before releasing a tarball with "make dist", because it catches the most common build problems. One minor issue though, the version in configure.ac is set to CVS-HEAD, maybe TRUNK or SVN_TRUNK is more appropriate and consistent with kpowersave.
Next I did the same for kpowersave. I checked out trunk [2], created the
autotools files with "make -f admin/Makefile.common cvs" and tried an in
and out-of source build ("make" + "make install"), both succeeded.
"make dist" for an in-source build fails with
make[1]: Entering directory `/tmp/kpowersave/src'
make[1]: *** No rule to make target `kpowersave_la_dummy.cpp', needed by
`distdir'. Stop.
make[1]: Leaving directory `/tmp/kpowersave/src'
make: *** [distdir] Error 1
The referenced file kpowersave_la_dummy.cpp is never created, only a
file kpowersave_dummy.cpp.
Running "make dist" out-ouf the source tree (in a subdirectory "build",
I get:
test ! -f zh_CN.gmo || touch zh_CN.gmo
for file in cs.po pt_BR.po km.po fr.po es.po nl.po sl_SI.po pl.po it.po
hu.po sk.po uk.po pt.po da.po tr.po ru.po de.po bg.po sv.po ja.po
zh_TW.po fi.po nb.po el.po pa.po zh_CN.po; do \
cp ../../po/$file ../kpowersave-SVN_TRUNK/po; \
done
for file in cs.gmo pt_BR.gmo km.gmo fr.gmo es.gmo nl.gmo sl_SI.gmo
pl.gmo it.gmo hu.gmo sk.gmo uk.gmo pt.gmo da.gmo tr.gmo ru.gmo de.gmo
bg.gmo sv.gmo ja.gmo zh_TW.gmo fi.gmo nb.gmo el.gmo pa.gmo zh_CN.gmo; do \
cp ../../po/$file ../kpowersave-SVN_TRUNK/po; \
done
cp: cannot stat `../../po/cs.gmo': No such file or directory
.
.
.
cp: cannot stat `../../po/pa.gmo': No such file or directory
cp: cannot stat `../../po/zh_CN.gmo': No such file or directory
make[1]: *** [distdir-nls] Error 1
make[1]: Leaving directory `/tmp/kpowersave2/build/po'
make: *** [distdir] Error 1
The problem is, that the *.gmo files are created in the build directory,
but make dist looks for them in the source directory.
Used versions: automake-1.9.6
autoconf-2.59e
libtool-1.5.22
Some more points on kpowersave:
1.) It finally displays the correct warning message it is lacking the
rights to connect to powersaved or better dbus, great! Unfortunately I
discovered a minor glitch, the info dialog is not properly resized, the
Ok is button is almost truncated, most likely a problem of the i18n. A
screenshot is attached.
2.) If dbus is not running, it displays a warning message that it should
be restarted with /etc/init.d/messagebus. Several distros, including
Debian/Ubuntu/Gentoo (and probably others), call the init script
/etc/init.d/dbus though.
Cheers,
Michael
[1] https://forgesvn1.novell.com/svn/powersave/trunk/powersave
[2] https://forgesvn1.novell.com/svn/powersave/trunk/kpowersave
--
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?
signature.asc
Description: OpenPGP digital signature
_______________________________________________ powersave-devel mailing list [email protected] http://forge.novell.com/mailman/listinfo/powersave-devel

