Package: sympa
Version: 5.2.3-0.5
Severity: wishlist
Tags: patch

While installing sympa with /var/lib/sympa/ imported from an netapp :

Installing new version of config file /etc/logrotate.d/sympa ...                
chown: changing ownership of `/var/lib/sympa/.snapshot': Read-only              
file system                                                                     

dpkg: error processing sympa (--configure):                                     
subprocess post-installation script returned error exit status 1                
Errors were encountered while processing:                                       
sympa                                                                

One solution is to ignore chown and chmod exit value :
--- debian/postinst     (revision 2089)
+++ debian/postinst     (working copy)
@@ -81,10 +81,10 @@
 perl -pi.old -e "s/^\s*listmaster.*$/listmaster\t\t$listmaster/;" 
/etc/sympa/sympa.conf
 rm -f /etc/sympa/sympa.conf.old

-## ensure permissions and ownerships are right
-chown -R root:root /usr/lib/sympa
-chown -R sympa:sympa /var/spool/sympa /var/lib/sympa /var/run/sympa
-chmod -R ug=rwX,o=X /var/spool/sympa /var/lib/sympa /var/run/sympa
+## ensure permissions and ownerships are right but don't clash at it
+chown -R root:root /usr/lib/sympa || true
+chown -R sympa:sympa /var/spool/sympa /var/lib/sympa /var/run/sympa || true
+chmod -R ug=rwX,o=X /var/spool/sympa /var/lib/sympa /var/run/sympa || true
 if [ -e /var/log/sympa.log ] && [ ! -f /var/log/sympa.log ]; then
     echo "Problem: /var/log/sympa.log already exists and it isn't a file !"
 fi
@@ -364,9 +364,9 @@
        exit 0
     fi

-    # Ensure permissions and ownerships are right
-    chown -R sympa.sympa /var/spool/sympa/wws* /var/lib/sympa/wws*
-    chmod -R ug=rwX,o=X /var/spool/sympa/wws* /var/lib/sympa/wws*
+    # Ensure permissions and ownerships are right but don't clash at it
+    chown -R sympa.sympa /var/spool/sympa/wws* /var/lib/sympa/wws* || true
+    chmod -R ug=rwX,o=X /var/spool/sympa/wws* /var/lib/sympa/wws* || true
  
     ## Upgrade workaround problem in case of the old web archive
     ## directory does not contain any archive file and was


-- System Information:
Debian Release: 4.0
  APT prefers testing
  APT policy: (900, 'testing'), (200, 'unstable'), (10, 'experimental')
Architecture: i386 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-3-xen-amd64
Locale: LANG=fr_FR, LC_CTYPE=fr_FR (charmap=ISO-8859-1)

Versions of packages sympa depends on:
ii  adduser                      3.100       Add and remove users and groups
ii  debconf [debconf-2.0]        1.5.8       Debian configuration management sy
ii  libarchive-zip-perl          1.16-1      Module for manipulation of ZIP arc
ii  libc6                        2.3.6.ds1-8 GNU C Library: Shared libraries
ii  libcgi-fast-perl             5.8.8-6.1   CGI::Fast Perl module
ii  libcrypt-ciphersaber-perl    0.61-4      Perl module implementing CipherSab
ii  libdbd-mysql-perl            3.0008-1    A Perl5 database interface to the 
ii  libdbi-perl                  1.53-1      Perl5 database interface by Tim Bu
ii  libfcgi-perl                 0.67-2      FastCGI Perl module
ii  libintl-perl                 1.16-1      Uniforum message translations syst
ii  libio-stringy-perl           2.110-1     Perl5 modules for IO from scalars 
ii  libmailtools-perl            1.74-1      Manipulate email in perl programs
ii  libmd5-perl                  2.03-1      backwards-compatible wrapper for D
ii  libmime-perl                 5.420-0.1   Perl5 modules for MIME-compliant m
ii  libmsgcat-perl               1.03-3      Locale::Msgcat perl module
ii  libnet-ldap-perl             1:0.33-2    A Client interface to LDAP servers
ii  libtemplate-perl             2.14-1      template processing system written
ii  libxml-libxml-perl           1.59-2      Perl module for using the GNOME li
ii  mhonarc                      2.6.16-1    Mail to HTML converter
ii  perl [libmime-base64-perl]   5.8.8-6.1   Larry Wall's Practical Extraction 
ii  perl-suid                    5.8.8-6.1   Runs setuid Perl scripts
ii  postfix [mail-transport-agen 2.3.4-3     A high-performance mail transport 
ii  sysklogd [system-log-daemon] 1.4.1-18    System Logging Daemon

Versions of packages sympa recommends:
ii  doc-base                      0.7.21     utilities to manage online documen
ii  logrotate                     3.7.1-3    Log rotation utility

-- debconf information:
* wwsympa/webserver_type: Apache
* sympa/listmaster: [EMAIL PROTECTED]
* wwsympa/wwsympa_url: http://test.u-picardie.fr/wws
* wwsympa/webserver_restart: true
* sympa/hostname: test.u-picardie.fr
* sympa/db_options:
  sympa/wwsympa_configured: true
* sympa/db_name: sympa
* sympa/db_type: MySQL
* sympa/db_configured: true
* sympa/db_hostname: localhost
* sympa/language: en_US
* sympa/use_db: true
  sympa/db_removeonpurge: false
* wwsympa/remove_spool: true
* sympa/db_user: sympa
* wwsympa/fastcgi: false
* sympa/use_wwsympa: true
  sympa/db_authtype: Ident-based
  sympa/db_port:
  sympa/remove_spool: false
* sympa/smime_support: false
Index: debian/postinst
===================================================================
--- debian/postinst     (revision 2089)
+++ debian/postinst     (working copy)
@@ -81,10 +81,10 @@
 perl -pi.old -e "s/^\s*listmaster.*$/listmaster\t\t$listmaster/;" 
/etc/sympa/sympa.conf
 rm -f /etc/sympa/sympa.conf.old
 
-## ensure permissions and ownerships are right
-chown -R root:root /usr/lib/sympa
-chown -R sympa:sympa /var/spool/sympa /var/lib/sympa /var/run/sympa
-chmod -R ug=rwX,o=X /var/spool/sympa /var/lib/sympa /var/run/sympa
+## ensure permissions and ownerships are right but don't clash at it
+chown -R root:root /usr/lib/sympa || true
+chown -R sympa:sympa /var/spool/sympa /var/lib/sympa /var/run/sympa || true
+chmod -R ug=rwX,o=X /var/spool/sympa /var/lib/sympa /var/run/sympa || true
 if [ -e /var/log/sympa.log ] && [ ! -f /var/log/sympa.log ]; then
     echo "Problem: /var/log/sympa.log already exists and it isn't a file !"
 fi
@@ -364,9 +364,9 @@
        exit 0
     fi
 
-    # Ensure permissions and ownerships are right
-    chown -R sympa.sympa /var/spool/sympa/wws* /var/lib/sympa/wws*
-    chmod -R ug=rwX,o=X /var/spool/sympa/wws* /var/lib/sympa/wws*
+    # Ensure permissions and ownerships are right but don't clash at it
+    chown -R sympa.sympa /var/spool/sympa/wws* /var/lib/sympa/wws* || true
+    chmod -R ug=rwX,o=X /var/spool/sympa/wws* /var/lib/sympa/wws* || true
 
     ## Upgrade workaround problem in case of the old web archive
     ## directory does not contain any archive file and was

Reply via email to