webapp-config has been rewritten in python about two months ago and has been
masked for testing since then. It has shown to be reliable during that period
and we unmasked the new version (1.50.7) today.
Since it has been converted from bash to python all keywords were removed.
Please test if the new version runs without problems and re-add them.
The python version comes with a few doc-tests and the ebuild allows you to
easily activate those. Just run
FEATURES="maketest" emerge webapp-config
in order to run the 20 tests while emerging.
Thanks,
the wabapp team.
This is such a massive improvement! Finally I don't have to go and make a
coffee while I upgrade egroupware or gallery :) Marked ~amd64, thanks for all
the hard work - I hope this stabilises pretty soon. I have already upgraded my
servers anyway...
the ebuild fails test phase here on ~amd64:
[ebuild U ] app-admin/webapp-config-1.50.7 [1.11] 0 kB
>>> Source compiled.
* Running webapp-config doctests...
......FF..........F.
======================================================================
FAIL: Doctest: WebappConfig.db.WebappSource.get_source_directories
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib64/python2.4/doctest.py", line 2152, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for
WebappConfig.db.WebappSource.get_source_directories
File
"/var/tmp/portage/webapp-config-1.50.7/work/webapp-config-1.50.7/WebappConfig/db.py",
line 564, in get_source_directories
----------------------------------------------------------------------
File
"/var/tmp/portage/webapp-config-1.50.7/work/webapp-config-1.50.7/WebappConfig/db.py",
line 574, in WebappConfig.db.WebappSource.get_source_directories
Failed example:
[i for i in d if i != '.svn']
Expected:
['dir1', 'dir2']
Got:
['dir2', 'dir1']
======================================================================
FAIL: Doctest: WebappConfig.db.WebappSource.get_source_files
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib64/python2.4/doctest.py", line 2152, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for
WebappConfig.db.WebappSource.get_source_files
File
"/var/tmp/portage/webapp-config-1.50.7/work/webapp-config-1.50.7/WebappConfig/db.py",
line 595, in get_source_files
----------------------------------------------------------------------
File
"/var/tmp/portage/webapp-config-1.50.7/work/webapp-config-1.50.7/WebappConfig/db.py",
line 604, in WebappConfig.db.WebappSource.get_source_files
Failed example:
a.get_source_files('htdocs')
Expected:
['test1', 'test2']
Got:
['test2', 'test1']
======================================================================
FAIL: Doctest: WebappConfig.worker.WebappAdd
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib64/python2.4/doctest.py", line 2152, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for WebappConfig.worker.WebappAdd
File
"/var/tmp/portage/webapp-config-1.50.7/work/webapp-config-1.50.7/WebappConfig/worker.py",
line 170, in WebappAdd
----------------------------------------------------------------------
File
"/var/tmp/portage/webapp-config-1.50.7/work/webapp-config-1.50.7/WebappConfig/worker.py",
line 254, in WebappConfig.worker.WebappAdd
Failed example:
e.mkdirs('') #doctest: +ELLIPSIS
Expected:
* Installing from
.../tests/testfiles/share-webapps/installtest/1.0/htdocs/
* pretending to add: dir 1 default-owned "dir1"
* Installing from
.../tests/testfiles/share-webapps/installtest/1.0/htdocs/dir1
* pretending to add: sym 1 virtual "dir1/webapp_test"
* .../tests/testfiles/installtest//dir2 already exists, but is not a
directory - removing
* pretending to add: dir 1 default-owned "dir2"
* Installing from
.../tests/testfiles/share-webapps/installtest/1.0/htdocs/dir2
* pretending to add: sym 1 virtual "dir2/webapp_test"
* pretending to add: sym 1 virtual "test1"
* would have removed ".../tests/testfiles/installtest//test2" since it
is in the way for the current install. It should not be present in that
location!
* pretending to add: sym 1 virtual "test2"
^o^ hiding /test3
* pretending to add: file 1 config-owned "test3"
* pretending to add: file 1 server-owned "test4"
Got:
* Installing from
/var/tmp/portage/webapp-config-1.50.7/work/webapp-config-1.50.7/WebappConfig/tests/testfiles/share-webapps/installtest/1.0/htdocs/
*
/var/tmp/portage/webapp-config-1.50.7/work/webapp-config-1.50.7/WebappConfig/tests/testfiles/installtest//dir2
already exists, but is not a directory - removing
* pretending to add: dir 1 default-owned "dir2"
* Installing from
/var/tmp/portage/webapp-config-1.50.7/work/webapp-config-1.50.7/WebappConfig/tests/testfiles/share-webapps/installtest/1.0/htdocs/dir2
* pretending to add: sym 1 virtual "dir2/webapp_test"
* pretending to add: dir 1 default-owned "dir1"
* Installing from
/var/tmp/portage/webapp-config-1.50.7/work/webapp-config-1.50.7/WebappConfig/tests/testfiles/share-webapps/installtest/1.0/htdocs/dir1
* pretending to add: sym 1 virtual "dir1/webapp_test"
* pretending to add: file 1 server-owned "test4"
^o^ hiding /test3
* pretending to add: file 1 config-owned "test3"
* would have removed
"/var/tmp/portage/webapp-config-1.50.7/work/webapp-config-1.50.7/WebappConfig/tests/testfiles/installtest//test2"
since it is in the way for the current install. It should not be present in
that location!
* pretending to add: sym 1 virtual "test2"
* pretending to add: sym 1 virtual "test1"
----------------------------------------------------------------------
Ran 20 tests in 0.234s
FAILED (failures=3)
* DocTests failed - please submit a bug report
emerge --info:
Portage 2.1_pre3-r1 (default-linux/amd64/2005.1, gcc-3.4.5, glibc-2.3.6-r2,
2.6.14-gentoo-r7 x86_64)
=================================================================
System uname: 2.6.14-gentoo-r7 x86_64 AMD Athlon(tm) 64 Processor 3500+
Gentoo Base System version 1.12.0_pre14
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632)
[disabled]
ccache version 2.4 [enabled]
dev-lang/python: 2.4.2
sys-apps/sandbox: 1.2.17
sys-devel/autoconf: 2.13, 2.59-r7
sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils: 2.16.1-r1
sys-devel/libtool: 1.5.22
virtual/os-headers: 2.6.11-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS=" -march=athlon64 -O2 -pipe -fforce-addr -ffast-math -msse2 -ftracer
-m3dnow "
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env
/usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config
/usr/share/X11/xkb /usr/share/config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/texmf/web2c
/etc/env.d"
CXXFLAGS=" -march=athlon64 -O2 -pipe -fforce-addr -ffast-math -msse2 -ftracer
-m3dnow "
DISTDIR="/home/ftp/distfiles"
FEATURES="autoconfig ccache collision-protect confcache cvs distlocks elog
multilib-strict parallel-fetching sandbox sfperms strict stricter test
userpriv"
GENTOO_MIRRORS="ftp://mirror.switch.ch/mirror/gentoo/ http://gentoo.osuosl.org/
http://mirror.ovh.net/gentoo-distfiles/ ftp://ftp.heanet.ie/pub/gentoo/
http://www.die.unipd.it/pub/Linux/distributions/gentoo-sources/
ftp://ftp.unina.it/pub/linux/distributions/gentoo http://gentoo.ngi.it
http://mirror.switch.ch/ftp/mirror/gentoo/
ftp://mirror.switch.ch/mirror/gentoo/ "
LANG="it_IT.utf8"
LINGUAS="it"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="amd64 7zip X a52 aac aalib acl acpi alsa apache2 arts asf audiofile avi
berkdb bitmap-fonts bzip2 cairo canvas cdb cdparanoia cdr chroot cpudetection
crypt cups curl dba dbus directfb dlloader dri dts dv dvd dvdr dynagraph emboss
encode erandom esd exif expat fam ffmpeg firefox flac foomaticdb gd gdbm ggi
gif gimp gimpprint glibc-omitfp glut gmp gnome gnutls gphoto2 gpm graphviz
gstreamer gtk gtk2 gtkhtml guile hal idn ieee1394 imagemagick imlib ipv6
ithreads java jbig jikes jpeg jpeg2k junit justify kde kdeenablefinal lcms ldap
libcaca libwww linuxthreads-tls lm_sensors logitech-mouse logrotate lzo lzw
lzw-tiff mad mailwrapper mdb mhash mikmod mmap mng motif mozsvg mp3 mpeg
mpm-worker musicbrainz mysql ncurses nls nptl nptlonly numeric nvidia odbc
offensive ogg openal openexr opengl oss pam pcre pcsc-lite pdflib perl php png
ppds python qt quicktime readline rtc samba scanner sdl slang smp snmp speex
spell ssl subversion svg sysfs tcltk tcpd test tetex tga theora threads tiff
timidity truetype truetype-fonts type1-fonts udev unicode usb userlocales utf8
vcd vda vorbis wmf xine xinerama xml2 xmms xpm xv xvid zlib elibc_glibc
kernel_linux linguas_it userland_GNU"
Unset: ASFLAGS, CTARGET, LC_ALL, LDFLAGS, MAKEOPTS
Thanks for the report.
In this case it is just a sorting problem. Depending on the machine the code
runs on resulting arrays may yield a different sorting order. In that case the
doc test fails. I had hoped that I fixed these problems but it looks like I
missed a few.
I will fix these problems for the next release.