>>> /usr/share/webapps/phpmyadmin/2.5.6-r1/postinst-en.txt * * 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: phpmyadmin-2.5.6-r1/phpmyadmin-2.5.6-r1 failed. !!! Function webapp_pkg_postinst, Line 339, Exitcode 0 !!! Ebuild did not call webapp_src_install() - report to http://bugs.gentoo.org !!! FAILED postinst: 1 Reproducible: Always Steps to Reproduce: 1. 2. 3.
quoted from http://article.gmane.org/gmane.linux.gentoo.devel/17874 [quote] Before installing, please do: emerge -C dev-db/phpmyadmin rm -Rf /var/www/localhost/htdocs/phpmyadmin [/quote]
I've been looking through this but it seems I would need to remerge apache for webapp-config to take effect. I this correct or is there some other way to let it install phpmyadmin at the correct virtual server? atm I can't use phpmyadmin simply because there are no references installed in my docroot (/var/www/localhost/htdocs) I could symlink it myself but I'm not sure that is correct and I hate to bypass the hard work the webapp-config devs have put into it... Note: I also used the vhosts USE flag when installing phpmyadmin and the postconfig of phpmyadmin has succeeded.
Lang, do you have webapp-config installed? If not, please emerge it and try again. If this fixes it then the bug is that phpmyadmin should depend on webapp-config (but currently doesn't). Thanks, Tom
you should have DEPEND="$DEPEND >=net-www/webapp-config-1.6" or 1.7 installed (this is from eclass) apache should be 2.0.49 cause of security reason (see Gentoo Linux Security Advisory GLSA 200403-04 )
Martin/Stuart, Could one of you make the change to the ebuild in CVS? I'm at work at the moment and won't be able to do it until I get home at about 1900 CET. I'll do it as soon as I get home if one of you guys hasn't already beaten me to it! Cheers, Tom
tom: not needed in ebuild, this is automatic added by the eclass
It does depend on webapp-config, it installed that first (1.7) uninstalling it and rm -rf'ing did not fix this
Okay chaps - back to basics. Please post the output of 'emerge info' into this bug. You should always do this when filing a bug on here. I'm particularly interested in which version of Portage you are running. If you have USE=vhosts, then you have to run webapp-config manually to install phpmyadmin. The following would work for you webapp-config -I -h localhost -d /phpmyadmin phpmyadmin 2.5.6-r1 Best regards, Stu
PS: Both the phpmyadmin ebuild, and the webapp eclass, appear fine. webapp.eclass contains the dependency on net-www/webapp-config - there's no need to add the dependency to the ebuild directly. Best regards, Stu
I'm having this problem on one of my boxes here too. The other one is having a seperate, but probably related problem. I'll see if I can find a bug for it. I also tried: emerge -C phpmyadmin rm -r /var/www/localhost/htdocs/phpmyadmin and it still fails with the same error. (BTW, it would be helpful if that little note was in some sort of preinst or something for those of us ordinary users that aren't subscribed to -dev) supra root # emerge info Portage 2.0.51_pre7 (default-x86-2004.0, gcc-3.3.3, glibc-2.3.3_pre20040420-r0, 2.4.24-pre2) ================================================================= System uname: 2.4.24-pre2 i686 AMD Athlon(tm) XP 1800+ Gentoo Base System version 1.4.10 distcc 2.14 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r3 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-xp -O2 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/kde/cvs/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /usr/X11R6/lib/X11/xkb /etc/env.d" CXXFLAGS="-march=athlon-xp -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs buildpkg ccache distcc sandbox" GENTOO_MIRRORS="ftp://mirror.iawnet.sandia.gov/pub/gentoo http://gentoo.chem.wisc.edu/gentoo http://adelie.polymtl.ca http://cudlug.cudenver.edu/gentoo http://gentoo.ccccom.com http://gentoo.mirrors.pair.com http://gentoo.noved.org" MAKEOPTS="-j6" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/misc /usr/portage/local/kde" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow X aalib aavm acl acpi acpi4linux alsa apache2 apm ardour-ksi arts artswrappersuid avi berkdb bonobo cdr crypt cscope cups curl dga directfb dv dvd encode esd evms2 faad fbcon fbdev ffmpeg flash foomaticdb gd gdbm gif gnome gphoto2 gtk gtk2 gtkhtml imap imlib innodb ipv6 jack jack-tmpfs java javascript jpeg kde libg++ libwww lirc mad maildir mikmod mmx mng motif mozilla mozsvg mpeg mysql ncurses nvidia oav offensive oggvorbis opengl oss pam pda pdflib perl php pic png ppds python qt quicktime radeon readline ruby samba scanner sdl slang speex spell sse ssl svga tcltk tcpd theora tiff transcode truetype type1 usagi usb v4l wxwindows x86 xine xinerama xml xml2 xmms xosd xv xvid zlib"
$ 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 Pentium III (Coppermine) Gentoo Base System version 1.4.12 distcc 2.14 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r3 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=pentium3 -O2 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /etc/tomcat /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium3 -O2 -pipe -fomit-frame-pointer" DISTDIR="/storage/distfiles" FEATURES="autoaddcvs buildpkg ccache distcc fixpackages notitles sandbox" GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://ftp.easynet.nl/mirror/gentoo/ http://ftp.gentoo.skynet.be/pub/gentoo/" MAKEOPTS="-j4" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://bismuth.skynet.be/gentoo-portage" USE="aalib alsa apache2 apm avi berkdb crypt cscope dedicated directfb encode fbcon foomaticdb gdbm gif gpm gtk2 guile imap imlib ipv6 jabber jpeg libg++ libwww mad maildir mikmod mmx motif mpeg msn mysql ncurses nls oav oggvorbis opengl oscar oss pam pdflib perl pic png postgres python quicktime readline slang slp spell sse ssl svga tcpd tiff usb x86 xml xml2 zlib" $ emerge phpmyadmin Calculating dependencies ...done! >>> emerge (1 of 2) net-www/webapp-config-1.8 to / <CUT> >>> net-www/webapp-config-1.8 merged. >>> emerge (2 of 2) dev-db/phpmyadmin-2.5.6-r1 to / <CUT> >>> /usr/share/webapps/phpmyadmin/2.5.6-r1/run-by-cgi-bin >>> /usr/share/webapps/phpmyadmin/2.5.6-r1/postinst-en.txt * * 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: phpmyadmin-2.5.6-r1/phpmyadmin-2.5.6-r1 failed. !!! Function webapp_pkg_postinst, Line 339, Exitcode 0 !!! Ebuild did not call webapp_src_install() - report to http://bugs.gentoo.org !!! FAILED postinst: $ webapp-config -I -h localhost -d /phpmyadmin phpmyadmin 2.5.6-r1 * Running with these settings: * --force-virtual is OFF * --virtual-dirs is virtual * --virtual-files is virtual * --user is root * --group is root * --hostname is localhost * --server is apache-basic * --directory is /phpmyadmin * package is phpmyadmin * version is 2.5.6-r1 * action is install * Do we have phpmyadmin-2.5.6-r1 available? * Yes, we do * Install directory is: /var/www/localhost/htdocs/phpmyadmin * Is there already a package installed in /var/www/localhost/htdocs/phpmyadmin? * Checking that the username:group 'root:root' is valid * Checking specific requirements for apache-basic * Creating installation directory '/var/www/localhost/htdocs/phpmyadmin' * Setting default permissions on '/var/www/localhost/htdocs/phpmyadmin' * Installing phpmyadmin 2.5.6-r1 ... * Creating required directories * /var/www/localhost/htdocs/phpmyadmin/. already exists as a real directory; * skipping /var/www/localhost/htdocs/phpmyadmin/. >>> dir (root-owned) css >>> dir (root-owned) lang >>> dir (root-owned) libraries >>> dir (root-owned) libraries/dbg >>> dir (root-owned) libraries/auth >>> dir (root-owned) libraries/fpdf >>> dir (root-owned) libraries/fpdf/font >>> dir (root-owned) libraries/transformations >>> dir (root-owned) libraries/export >>> dir (root-owned) scripts >>> dir (root-owned) images * /var/www/localhost/. already exists as a real directory; * skipping /var/www/localhost/. * /var/www/localhost/error already exists as a real directory; * skipping /var/www/localhost/error * /var/www/localhost/icons already exists as a real directory; * skipping /var/www/localhost/icons * /var/www/localhost/cgi-bin already exists as a real directory; * skipping /var/www/localhost/cgi-bin * /var/www/localhost/cgi-bin/. already exists as a real directory; * skipping /var/www/localhost/cgi-bin/. * /var/www/localhost/icons/. already exists as a real directory; * skipping /var/www/localhost/icons/. * /var/www/localhost/error/. already exists as a real directory; * skipping /var/www/localhost/error/. * Linking in required files * Installing from /usr/share/webapps/phpmyadmin/2.5.6-r1/htdocs >>> sym css/phpmyadmin.css.php <CUT> >>> sym tbl_relation.php * Installing from /usr/share/webapps/phpmyadmin/2.5.6-r1/hostroot To complete installation, you must 1. Update MySQL's grant tables and the pmadb database: mysql -u root -p < /usr/share/webapps/phpmyadmin/2.5.6-r1/sqlscripts/mysql/2.5.6-r1_create.sql 2. Reload MySQL: /etc/init.d/mysql restart If you are upgrading from an earlier version and are using phpMyAdmin's features for master/foreign tables be sure to read http://localhost/phpmyadmin/Documentation.html#col_com You will need to perform the ALTER TABLE step yourself. Finally, point your browser to http://localhost/phpmyadmin/. * Install completed - success
Ping! Is this bug still active? Keanu -- does this problem still exist or has it disappeared? MHolzer & Stuart -- do you need more info to fix it?
Hiya, FEATURES=buildpkg changes the way that Portage loads (and reloads) eclasses. The eclass was fixed back on May 25th, for bug 50731. I'm sorry that I hadn't updated this bug. My bad :( Best regards, Stu
yup, works now :) thanks