Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 202895 - webapp.eclass lacks a sanity check for ebuilds that override webapp_pkg_setup, producing bogus warnings and broken install
Summary: webapp.eclass lacks a sanity check for ebuilds that override webapp_pkg_setup...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Web Application Packages Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-20 21:49 UTC by Justin Findlay
Modified: 2008-02-22 14:59 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
webapp.eclass.diff (webapp.eclass.diff,979 bytes, patch)
2007-12-23 23:44 UTC, Jakub Moc (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Justin Findlay 2007-12-20 21:49:48 UTC
# emerge awstats
...
 * This ebuild did not call webapp_src_install() at the end
 * of the src_install() function
 *
 * Please log a bug on http://bugs.gentoo.org
 *
 * You should use emerge -C to remove this package, as the
 * installation is incomplete

And yet a call to the function webapp_src_install is in src_install() in the awstats ebuild.

Reproducible: Always

Steps to Reproduce:
1. emerge awstats
2. fail



Portage 2.1.4_rc10 (default-linux/amd64/2006.1/no-multilib, gcc-4.1.2, glibc-2.7-r0, 2.6.19.7 x86_64)
=================================================================
System uname: 2.6.19.7 x86_64 AMD Athlon(tm) 64 Processor 3000+
Timestamp of tree: Thu, 20 Dec 2007 17:46:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.3
dev-lang/python:     2.5.1-r4
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -mtune=athlon64 -m64 -Os -fmessage-length=0 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=athlon64 -mtune=athlon64 -m64 -Os -fmessage-length=0 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache collision-protect digest distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://gentoo.mirrors.pair.com/ http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ http://cudlug.cudenver.edu/gentoo/ http://gentoo.osuosl.org/ http://gentoo.chem.wisc.edu/gentoo/"
LC_ALL="en_US.UTF-8"
LINGUAS="en en_US"
MAKEOPTS="-j2 -l3.5"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_EXTRA_OPTS="--timeout=30"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/enlightenment /usr/portage/local/custom"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi adns afs aim alsa amd64 ao apache2 audiofile bash-completion bcmath bitmap-fonts blas bonobo bzip2 cairo calendar caps cddb cdinstall cdparanoia cdr cli cracklib crypt cscope ctype cups curl curlwrappers dbus dedicated dga directfb dri dts dv dvb dvd dvdr dvdread eds encode evo exif expat fam fastcgi fbcon ffmpeg firefox flac foomaticdb fortran ftp gb gcj gd geoip gif ginac glut gmp gnutls gphoto2 gpm gps gsl gstreamer gtk gtkhtml guile hal icq imagemagick imap imlib ipv6 isdnlog jabber jack java javascript jbig jikes jpeg kdehiddenvisibility ladcca ladspa lame lapack lash lesstif libgda libsamplerate libwww lm_sensors mad maildir matroska mbox mcal memlimit mhash midi mikmod mime mmap mng mnogosearch modplug motif mp3 mpeg mplayer msn mudflap musepack ncurses nocd nptl nptlonly nsplugin ocaml ogg openal openexr opengl openmp osc oscar pam pcre pdf perl pic plotutils png portaudio posix postgres ppds pppd python qt3 quicktime readline reflection ruby sasl savedconfig scanner sdl session sharedmem slang sndfile snmp sockets sox speex spell sqlite sqlite3 ssl startup-notification svg symlink sysfs syslog sysvipc tcpd tetex theora threads tidy tiff truetype truetype-fonts type1-fonts unicode usb v4l vcd videos vim-syntax vorbis wmf x264 xattr xcomposite xine xml xmlrpc xorg xpm xscreensaver xv xvid yahoo zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US" USERLAND="GNU" VIDEO_CARDS="nv"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Comment 1 Marc Troy 2007-12-21 18:12:59 UTC
>>> Unpacking source...
>>> Unpacking awstats-6.7.tar.gz to /var/tmp/portage/net-www/awstats-6.7-r1/work
* Applying awstats-6.3-gentoo.diff ... [ ok ]
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/net-www/awstats-6.7-r1/work/awstats-6.7 ...
>>> Source compiled.
>>> Test phase [not enabled]: net-www/awstats-6.7-r1

>>> Install awstats-6.7-r1 into /var/tmp/portage/net-www/awstats-6.7-r1/image/ category net-www
install: cannot create directory `': No such file or directory
install: cannot create directory `': No such file or directory
install: cannot create directory `': No such file or directory
install: cannot create directory `': No such file or directory
install: cannot create directory `': No such file or directory
install: cannot create directory `': No such file or directory
install: cannot create directory `': No such file or directory
install: cannot create directory `': No such file or directory
 * (info) /usr/portage/net-www/awstats/files/postinst-en-r1.txt (lang: en)
install: cannot create directory `': No such file or directory
chown: invalid argument: `'
chmod: invalid argument: `'
>>> Completed installing awstats-6.7-r1 into /var/tmp/portage/net-www/awstats-6.7-r1/image/

 * 
 * The AWStats-Manual is available either inside
 * the /usr/share/doc/awstats-6.7-r1 - folder, or at
 * http://awstats.sourceforge.net/docs/index.html .
 * 
 * Copy the /etc/awstats/awstats.model.conf to
 * /etc/awstats/awstats.<yourdomain>.conf and edit it.
 * 
 * Add the following line to /etc/awstats/awstats.<yourdomain>.conf
 * to enable GeoIP plugin:
 * LoadPlugin="geoip GEOIP_STANDARD /usr/share/GeoIP/GeoIP.dat" 
 * 
 * 
 * This ebuild did not call webapp_src_install() at the end
 * of the src_install() function
 * 
 * Please log a bug on http://bugs.gentoo.org
 * 
 * You should use emerge -C to remove this package, as the
 * installation is incomplete
 * 
 * 
 * ERROR: net-www/awstats-6.7-r1 failed.
 * Call stack:
 *               ebuild.sh, line 1682:  Called qa_call 'pkg_postinst'
 *               ebuild.sh, line   44:  Called pkg_postinst
 *   awstats-6.7-r1.ebuild, line  147:  Called webapp_pkg_postinst
 *           webapp.eclass, line  462:  Called die
 * The specific snippet of code:
 *              die "Ebuild did not call webapp_src_install() - report to http://bugs.gentoo.org"
 *  The die message:
 *   Ebuild did not call webapp_src_install() - report to http://bugs.gentoo.org
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/log/portage/net-www:awstats-6.7-r1:20071221-162008.log'.
 * 
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2007-12-21 20:15:52 UTC
(In reply to comment #1)

Totally unrelated and emerge --sync before reporting bugs.
Comment 3 Marc Troy 2007-12-21 21:04:05 UTC
(In reply to comment #2)
> Totally unrelated and emerge --sync before reporting bugs.

I ran emerge --sync several two times after it and retried to emerge awstats five times with two -C cleanups to verify the issue. The post above is the contents of the first failure.

If this issue isn't related altho the same error occurs please tell me to create a new report, I'd be happy to do so.
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2007-12-21 21:09:56 UTC
(In reply to comment #3)
> If this issue isn't related altho the same error occurs please tell me to
> create a new report, I'd be happy to do so.

There's no need to create a new bug for your issue since it's FIXED; as said you need to emerge --sync before reporting bugs. Now please keep the off-topic noise outta here.
Comment 5 Chris Richards 2007-12-22 18:56:24 UTC
Ran 

emerge --sync

at 18:55 p.m. GMT on Dec 22, 2007.

Apparently this fix hasn't made it into the Portage tree yet, because I'm seeing this bug as well.
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2007-12-22 19:00:05 UTC
Once again - problem mentioned in Comment #1 is unrelated and already fixed; stop hijacking this bug for off-topic stuff.

http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-www/awstats/awstats-6.7-r1.ebuild?r1=1.1&r2=1.2
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2007-12-23 23:35:01 UTC
Fixed in 6.7-r2 (see Bug 203187), thanks and sorry.

Leaving this bug open for getting the eclass fixed to die sanely with a useful message and way sooner.
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2007-12-23 23:44:01 UTC
Created attachment 139221 [details, diff]
webapp.eclass.diff

See above.
Comment 9 Benedikt Böhm (RETIRED) gentoo-dev 2008-02-22 14:59:12 UTC
fixed