When installing the awstats-6.1 ebuild, it fails to even start, indicating that there is a conflict between the webapp eclass and the setting of SLOT. Reproducible: Always Steps to Reproduce: 1. On an x86 system, add "net-www/awstats ~x86" to /etc/portage/package.keywords 2. emerge awstats Actual Results: The following messages appear during the build: leng root # emerge awstats Calculating dependencies ...done! >>> emerge (1 of 1) net-www/awstats-6.1 to / >>> md5 src_uri ;-) awstats-6.1.tgz !!! ERROR: net-www/awstats-6.1 failed. !!! Function webapp_pkg_setup, Line 329, Exitcode 0 !!! ebuild sets SLOT, overrides webapp.eclass Expected Results: Installed awstats This is on a mostly x86 system - specific packages have been overridden with ~x86 or -x86, specifically: dev-perl/Mail-SpamAssassin ~x86 net-fs/samba ~x86 sys-apps/baselayout ~x86 =sys-kernel/linux-headers-2.6.5 -* >=sys-apps/lm-sensors-2.8.5 -x86 net-misc/nut ~x86 dev-util/strace ~x86 media-gfx/sane-backends ~x86 net-www/awstats ~x86 Using gentoo-dev-sources-2.6.5-r1, updated to latest with NPTL.
I have same error root@work portage # emerge awstats Calculating dependencies ...done! >>> emerge (1 of 1) net-www/awstats-6.1 to / >>> md5 src_uri ;-) awstats-6.1.tgz !!! ERROR: net-www/awstats-6.1 failed. !!! Function webapp_pkg_setup, Line 331, Exitcode 0 !!! ebuild sets SLOT, overrides webapp.eclass root@work portage # emerge info Portage 2.0.50-r6 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3_pre20040420-r0, 2.6.5-gentoo-r1) ================================================================= System uname: 2.6.5-gentoo-r1 i686 Intel(R) Pentium(R) 4 CPU 1.60GHz Gentoo Base System version 1.4.15 Autoconf: sys-devel/autoconf-2.59-r3 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O2 -pipe -march=pentium4 -mcpu=pentium4 -fomit-frame-pointer -fexpensive-optimizations -ffast-math -mfpmath=sse,387" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -pipe -march=pentium4 -mcpu=pentium4 -fomit-frame-pointer -fexpensive-optimizations -ffast-math -mfpmath=sse,387" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="ftp://ftp.linux.kiev.ua/pub/Linux/Gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org.ua/gentoo-portage" USE="X alsa apm avi berkdb cdr crypt cups encode fluidsynth foomaticdb freetype gd gdbm gif gnome gpm gtk gtk2 guile imlib jack jpeg libg++ libwww mbox mikmod milter mirror mmx motif mozilla mpeg mysql ncurses nls nowin nptl oggvorbis opengl oss pam pdflib perl pic png pnp postgres quicktime readline samba sdl slang spell sse ssl svga tcltk tcpd threads truetype unicode utf8 vim-with-x x86 xml xml2 xmms xv zlib"
same here for awstats-6.1. what is this slot thing? I mean, I know what slots in portage are, but what is this slot thing here in awstats emerge?
This has now been fixed in CVS. Sorry about the slow response. This bug was assigned to the wrong team :( Best regards, Stu
I found small bug (or not) but I feel better if it be fixed in /etc/awstats/awstats.model.conf default is DirIcons="/awstats/icons" but webapp-config generate Alias /awstatsicons "/usr/share/webapps/awstats/6.1/htdocs/icon/" in /etc/awstats/awstats.model.conf StyleSheet="" but webapp-config generate Alias /awstatscss "/usr/share/webapps/awstats/6.1/htdocs/css/" it maybe not bug but I think it must reported ;) PS: and why removed me from CC ? :(
and I suggest webapp-config generate this text <Location "/awstats"> Options None AllowOverride None Order allow,deny Allow from all </Location> not <Directory "/usr/share/webapps/awstats/6.1/htdocs"> Options None AllowOverride None Order allow,deny Allow from all </Directory> because ScriptAlias /awstats/ "/usr/share/webapps/awstats/6.1/hostroot/cgi-bin/" not include to that path and it forbidden or <Directory "/usr/share/webapps/awstats/6.1">
and root@gameinside bor # ll /usr/share/webapps/awstats/6.1/hostroot/cgi-bin/ total 775 -rwxr-xr-x 1 root root 5407 May 28 02:56 awredir.pl -rwxr-xr-x 1 root root 533020 May 28 02:56 awstats.pl -rw-rw-rw- 1 root root 243295 May 28 10:11 awstats052004.gameinside.com.txt drw-r--r-- 5 root root 1424 May 28 02:56 lang drw-r--r-- 2 root root 368 May 28 02:56 lib drw-r--r-- 3 root root 472 May 28 02:56 plugins all dirs need chmod +x ;) because web server have not access to it PS: sorry for importunity but I want help make Gentoo better ;)
This ebuild (or webapp-config) is a complete mess. I think my fix will be to unmerge both and reinstall manually. Maybe I'm getting dumb as I get older, but I've been at this 4 hours already and I had this hunch that I'll finally end up loosing a whole bunch of time trying to figure this out. I also guess I'm a little grim when faced to the Microsoft approach of leveling out by the bottom, which is what webapp-config is doing, in my own humble opinion. Thank you for letting me rant.