Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 229301 - Update of www-apps/horde-webmail with webapp-config breaks config files
Summary: Update of www-apps/horde-webmail with webapp-config breaks config files
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Anthony Basile
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-24 21:32 UTC by Arnaud Lech
Modified: 2013-08-03 15:33 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Arnaud Lech 2008-06-24 21:32:41 UTC
Update of www-apps/horde-webmail with webapp-config breaks config files in */config
(files in config

Reproducible: Always

Steps to Reproduce:
1. Have www-apps/horde-webmail-1.1 installed and configured
2. Emerge www-apps/horde-webmail-1.1.1
3. Update www-apps/horde-webmail-1.1
webapp-config -U horde-webmail 1.1.1
Actual Results:  
* Upgrading horde-webmail-1.1 to horde-webmail-1.1.1
*   Installed by root on 2008-06-02 22:31:07
*   Config files owned by 0:0
!time imp/config/mime_drivers.php
!time kronolith/config/conf.php
!time imp/config/servers.php
!time imp/config/trailer.txt
!time dimp/config/conf.php
!time imp/config/conf.php
!empty kronolith/config
!empty dimp/config
!empty imp/config
!empty kronolith
!empty config
!empty dimp
!empty imp
!empty /var/www/mail.bdefracte.org/cgi-bin
--- /var/www/mail.bdefracte.org/htdocs/horde
*   Creating required directories
*   Linking in required files
*     This can take several minutes for larger apps
*   Files and directories installed
* Install completed - success

Files imp/config/mime_drivers.php, kronolith/config/conf.php, imp/config/servers.php, imp/config/trailer.txt, dimp/config/conf.php, imp/config/conf.php are overriden, so all configuration is lost.


Expected Results:  
Files imp/config/mime_drivers.php, kronolith/config/conf.php, imp/config/servers.php, imp/config/trailer.txt, dimp/config/conf.php, imp/config/conf.php should have benn conf protected. (*.php and *.txt files in */config/ should be protected)


Portage 2.1.4.4 (default/linux/amd64/2008.0/server, gcc-4.1.2, glibc-2.6.1-r0, 2.6.25-gentoo-r5 x86_64)
=================================================================                                      
System uname: 2.6.25-gentoo-r5 x86_64 Intel(R) Celeron(R) CPU 220 @ 1.20GHz
Timestamp of tree: Tue, 24 Jun 2008 19:45:01 +0000
app-shells/bash:     3.2_p33
dev-lang/python:     2.4.4-r13
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.5, 1.7.9-r1, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=nocona -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.free.fr/mirrors/ftp.gentoo.org http://gentoo.modulix.net/gentoo/ "
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="acl amd64 apache2 bash-completion berkdb bzip2 calendar clamav cli cracklib crypt ctype dbx dri exif fortran ftp gd gdbm geoip hash iconv idn imagemagick imap ipv6 isdnlog jpeg maildir mailwrapper mcal memlimit midi mmx mudflap multilib mysql mysqli ncurses nls nptl nptlonly offensive openmp openssh pam pcntl pcre perl php png posix pppd python readline reflection sasl session simplexml snmp sockets spamassassin spell spl sse sse2 ssltcpd threads tidy tiff tokenizer truetype unicode vhosts vim-syntax xml xmlreader xmlrpc xmlwriter zip 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 multinull plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_file authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dir expires headers include log_config logio mem_cache mime mime_magic proxy proxy_http rewrite setenvif speling status userdir vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fbdev glint i810 mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

app-admin/webapp-config-1.50.16-r1
Comment 1 Arnaud Lech 2008-07-10 21:56:01 UTC
I guess 'src_install()' need some 'webapp_configfile'

I will try something like this on next version to protect all config files:

# Config files
for x in $(find . -path './*config/*' -not -name '*.dist' -not -name '.htaccess' -not -name 'README'); do
    webapp_configfile "${MY_HTDOCSDIR}"/${x}
done

I will provide an ebuild when I have time to test it.
Comment 2 Gunnar Wrobel (RETIRED) gentoo-dev 2008-08-07 18:51:32 UTC
Thanks for the report! I fixed this in the eclass now.
Comment 3 Arnaud Lech 2008-09-16 10:45:41 UTC
It doesn't work well.

Some files are protected (*/conf.php) but some aren't:
config/mime_drivers.php
imp/config/servers.php
imp/config/mime_drivers.php
imp/config/trailer.txt

for those I have modified.
This is very important because servers.php contains IMAP server settings.

webapp-config log:
* Upgrading horde-webmail-1.1.2 to horde-webmail-1.1.3
*   Installed by root on 2008-08-19 23:27:09
*   Config files owned by 0:0
!time config/mime_drivers.php
!time turba/config/conf.php
!time ingo/config/conf.php
!empty turba/config
!empty ingo/config
!empty config
!empty turba
!empty ingo
!empty /var/www/mail.bdefracte.org/cgi-bin
--- /var/www/mail.bdefracte.org/htdocs/horde
*   Creating required directories
*   Linking in required files
*     This can take several minutes for larger apps
^o^ hiding /ingo/config/conf.php
^o^ hiding /turba/config/conf.php
*   Files and directories installed
* One or more files have been config protected
* To complete your install, you need to run the following command(s):
* 
* CONFIG_PROTECT="/var/www/mail.bdefracte.org/htdocs/horde//ingo/config" etc-update
* CONFIG_PROTECT="/var/www/mail.bdefracte.org/htdocs/horde//turba/config" etc-update
* 
* Install completed - success
Comment 4 Anthony Basile gentoo-dev 2011-12-30 17:27:53 UTC
(In reply to comment #0)
> Files imp/config/mime_drivers.php, kronolith/config/conf.php,
> imp/config/servers.php, imp/config/trailer.txt, dimp/config/conf.php,
> imp/config/conf.php are overriden, so all configuration is lost.
> 

I wonder if this is a duplicate of bug #243260.  If the reporter is able, can you try to reproduce this error against HEAD @

http://git.overlays.gentoo.org/gitweb/?p=proj/webapp-config.git;a=summary
Comment 5 Devan Franchini (RETIRED) gentoo-dev 2013-03-14 00:08:53 UTC
I can't test this since horde-webmail isn't listed in my portage tree. Was it removed?