I have Squirrelmail 1.4.4 installed in my server. A new version is available 1.4.4-r1. I made the upgrade with webapp-config -U, and all is ok. Then I decided to unmerge the 1.4.4 that is now useless. emerge -av unmerge "=squirrelmail-1.4.4" start by removing with webapp-config squirrelmail 1.4.4-r1 !!! Now I don't have squirrelmail anymore !!! Reproducible: Always Steps to Reproduce: 1. emerge squirrelmail-1.4.4 2. install with webapp-config 3. emerge squirrelmail-1.4.4-r1 4. update with webapp-config 5. unmerge squirrelmail-1.4.4 => webapp-config remove squirrelmail for /var/wwww Actual Results: # emerge -av unmerge "=squirrelmail-1.4.4" >>> These are the packages that I would unmerge: mail-client/squirrelmail selected: 1.4.4 protected: none omitted: 1.4.4-r1 >>> 'Selected' packages are slated for removal. >>> 'Protected' and 'omitted' packages will not be removed. Do you want me to unmerge these packages? [Yes/No] y >>> Waiting 5 seconds before starting... >>> (Control-C to abort)... >>> Unmerging in: 5 4 3 2 1 >>> Unmerging mail-client/squirrelmail-1.4.4... No package files given... Grabbing a set. * Removing squirrelmail-1.4.4-r1 from /var/www/webmail.steph/htdocs/ * Installed by root on 2005-06-20 09:53:23 * Config files owned by root:root --- cfgpro file config/config.php --- cfgpro file config/config_local.php --- !sum file include/validate.php --- cfgpro file plugins/gpg/gpg_local_prefs.txt --- cfgpro file plugins/retrieveuserdata/config.php --- cfgpro file plugins/show_ssl_link/config.php --- cfgpro file plugins/secure_login/config.php --- !empty dir plugins/show_ssl_link --- !empty dir plugins/secure_login --- !empty dir plugins/retrieveuserdata --- !empty dir plugins/gpg --- !empty dir plugins --- !empty dir locale --- !empty dir include --- !empty dir images --- !empty dir help --- !empty dir config --- !found /var/www/webmail.steph/icons --- !found /var/www/webmail.steph/error --- !found /var/www/webmail.steph/cgi-bin --- !empty dir /var/www/webmail.steph/htdocs/ * Remove whatever is listed above by hand <<< obj /var/db/webapps/squirrelmail/1.4.4/.keep ... >>> Regenerating /etc/ld.so.cache... * Caching service dependencies ... [ ok ] * GNU info directory index is up-to-date. Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5-20050130, glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r9 i686) ================================================================= System uname: 2.6.11-gentoo-r9 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz Gentoo Base System version 1.6.12 Python: dev-lang/python-2.3.5 [2.3.5 (#1, Jun 9 2005, 10:50:44)] ccache version 2.3 [enabled] dev-lang/python: 2.3.5 sys-apps/sandbox: [Not Present] sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.16 virtual/os-headers: 2.6.8.1-r1, 2.6.8.1-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O3 -march=pentium4 -fomit-frame-pointer -pipe -mmmx -msse -msse2" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -march=pentium4 -fomit-frame-pointer -pipe -mmmx -msse -msse2" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict" GENTOO_MIRRORS="ftp://ftp.proxad.net/mirrors/ftp.gentoo.org/ http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/ http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp.easynet.nl/mirror/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo" LINGUAS="fr us" MAKEOPTS="-j3" 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="x86 X a52 aac aalib acl acpi aim alsa apache2 apm arts authdaemond avi bash-completion berkdb bidi bind-mysql bitmap-fonts cdda cddb cdio cdparanoia cdr chroot crypt cups curl dga directfb divx4linux dmx dts dv dvd dvdr dvdread edl eds emboss encode enscript erandom esd fam fbcon ffmpeg flac flash font-server foomaticdb fortran fpx freetype gd gdbm gif gnome gpm graphviz gstreamer gtk gtk2 guile httpd icq ieee1394 imagemagick imap imlib insecure-drivers jabber java javascript jpeg kde lcms libg++ libwww lirc live lm_sensors lzo lzw-tiff mad maildir matroska mikmod mjpeg mmx mng motif mozdevelop mozilla mozp3p mozsvg mozxmlterm mp3 mpeg mplayer msn mysql mythtv ncurses network nls nntp nptl ogg oggvorbis opengl oscar oss pam pam-mysql pcre pda pdflib perl php pic png ppds python qt quicktime rar readline real rrdtool rtc samba sasl sdl sftplogging slang snmp speex spell sse sse2 ssl stream subtitles svg svga sysfs tcltk tcpd tga theora threads tidy tiff toolbar transcode truetype truetype-fonts type1-fonts unicode usb utf8 v4l v4l2 vcd vhosts vlm vorbis wmf wxwindows xine xinerama xml2 xmms xosd xprint xv xvid xvmc yahoo zlib video_cards_radeon linguas_fr linguas_us userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS * net-www/webapp-config Available versions: 1.9-r2 1.10-r6 1.10-r10 1.10-r11 1.10-r12 1.10-r14 1.11 Installed: 1.11 Homepage: http://www.gentoo.org/ Description: Gentoo's installer for web-based applications
Looks like a webapp-config issue. Stu, any thoughts?
Yes this is webapp-config. It got me when upgrading phpBB from 2.0.15 to 2.0.16. At this point I've learned to always make backups before running webapp-config so it was thankfully only a minor inconvenience. Basically the same as the original poster: I upgraded a directory to 2.0.16, then unmerged 2.0.15, and it printed "Removing phpBB-2.0.16 from /var/www/forums.example.com/pub/", deleting the install. I don't know if this makes a difference, but I previously I ran "webapp-config --list-installs phpBB" and it listed the following: /var/www/forums.example.com/pub/ /var/www/forums.example.com/pub I.e. the same install dir twice. Also the .webapp file had data for both the 2.0.15 and 2.0.16 installs, not sure if any of this makes a difference. Maybe I installed with "-d /" once and "-d ." another time. webapp-config should never remove an install without the user asking for it. If I try to unmerge an app that has webapp-config installations, the unmerge should *fail*, don't you think?
This just broke my www-apps/gallery installation as well, after upgrade to gallery-1.5_p1 I tried to emerge unmerge gallery-1.4.4_p6, and webapp-config uninstalled my new gallery instance... I observed that the /var/db/webapps/gallery/1.4.4_p6 directory was still existing after the 1.4.4_p6 uninstall Maybe 'webapp-config -U' doesn't do all needed stuff to the /var/db/webapps directories?
Another thought: webapp-config --list-installs give this output on my box (without #-comments and with correct <vhost> parts): /var/www/<some-vhost#1>/htdocs/ #my gallery installation /var/www/<some-vhost#2>/htdocs #my mambo installation /var/www/<some-vhost#3>/htdocs/phpmyadmin #my phpmyadmin installation /var/www/<some-vhost#4>/htdocs/ #my squirrelmail installation How is the install into the htdocs dir supposed to be specified when doing the install? I think I used '-d /' for my gallery, but what did I do to make the mambo installation show up without the '/' at end?
Can you test webapp-config v1.50, and see if it addresses this problem? Best regards, Stu
Marking as test-request.