Bug#584875: fails to install

2010-06-16 Thread Jan Hauke Rahm
On Mon, Jun 07, 2010 at 11:14:14AM +0200, Holger Levsen wrote:
 during a test with piuparts I noticed your package failed to install. 
 
 From the attached log (scroll to the bottom...):
 
   Setting up libcipux-cat-web-perl (3.4.0.2-1) ...
   chmod: cannot access `/etc/cipux-cat-web/cipux-cat-web.conf': No such file 
 or directory
   dpkg: error processing libcipux-cat-web-perl (--configure):
subprocess installed post-installation script returned error exit status 1
   Errors were encountered while processing:
libcipux-cat-web-perl
   E: Sub-process /usr/bin/dpkg returned an error code (1)

I've just prepared the attached patch. It seems there is not
configuration in /etc anymore but it's possible for the admin to have
one. Thus simply testing for the file and only chmod'ing it if existent.

I didn't see this fixed in your git repository and thus uploaded it to
DELAYED/5. If you want me to push the changes to collab-maint, please
say so.

Hope you're fine with the patch.
Hauke

-- 
 .''`.   Jan Hauke Rahm j...@debian.org   www.jhr-online.de
: :'  :  Debian Developer www.debian.org
`. `'`   Member of the Linux Foundationwww.linux.com
  `- Fellow of the Free Software Foundation Europe  www.fsfe.org
From 032981be51307145c4489393d326bf9096f90251 Mon Sep 17 00:00:00 2001
From: Jan Hauke Rahm j...@debian.org
Date: Wed, 16 Jun 2010 11:46:52 +0200
Subject: [PATCH] Non-maintainer upload.

* Non-maintainer upload.
* Don't act on non-existent files; fixes installation failure (Closes:
  #584875)
---
 debian/changelog |8 
 debian/postinst  |5 -
 debian/rules |5 -
 3 files changed, 12 insertions(+), 6 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index c07b874..0ceaf99 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+cipux-cat-web (3.4.0.2-2.1) UNRELEASED; urgency=low
+
+  * Non-maintainer upload.
+  * Don't act on non-existent files; fixes installation failure (Closes:
+#584875)
+
+ -- Jan Hauke Rahm j...@debian.org  Wed, 16 Jun 2010 11:45:31 +0200
+
 cipux-cat-web (3.4.0.2-2) unstable; urgency=low
 
   * Fix include config defaults.
diff --git a/debian/postinst b/debian/postinst
index 19ff8c7..433842e 100644
--- a/debian/postinst
+++ b/debian/postinst
@@ -15,7 +15,10 @@ case $1 in
 		mkdir -p /etc/cipux-cat-web
 	fi
 	chmod 750 /etc/cipux-cat-web
-	chmod 640 /etc/cipux-cat-web/cipux-cat-web.conf
+	# Admins may have copied this file from /usr/share/...
+	# Correcting permissions if existent
+	[ -f /etc/cipux-cat-web/cipux-cat-web.conf ]  \
+		chmod 640 /etc/cipux-cat-web/cipux-cat-web.conf
 	chown -R www-data:www-data /etc/cipux-cat-web
 	;;
 abort-upgrade|abort-remove|abort-deconfigure)
diff --git a/debian/rules b/debian/rules
index d2d98ab..94756e7 100755
--- a/debian/rules
+++ b/debian/rules
@@ -69,11 +69,6 @@ binary-post-install/cipux-cat-web::
 		-name web -not -name dpkg-daemon-helper \
 		-exec mv -t debian/$(cdbs_curpkg)/usr/share/cipux-cat-web/web '{}' ';'
 
-# Override upstream default: secure connection is unneeded to localhost
-binary-fixup/libcipux-cat-web-perl::
-	perl -i -pe s|^(\h*catweb_rpc_server\h*=\h*).*,\h*(#.*)?\$$|\$$1'http://localhost:8001/RPC2',| \
-		debian/$(cdbs_curpkg)/etc/cipux-cat-web/cipux-cat-web.conf
-
 # Ensure debconf PO files is in sync with templates
 clean::
 	debconf-updatepo
-- 
1.7.1



signature.asc
Description: Digital signature


Bug#584875: fails to install

2010-06-07 Thread Holger Levsen
Package: libcipux-cat-web-perl
Version: 3.4.0.2-1
Severity: serious
User: debian...@lists.debian.org
Usertags: piuparts piuparts.d.o

Hi, 

during a test with piuparts I noticed your package failed to install. 

From the attached log (scroll to the bottom...):

  Setting up libcipux-cat-web-perl (3.4.0.2-1) ...
  chmod: cannot access `/etc/cipux-cat-web/cipux-cat-web.conf': No such file 
or directory
  dpkg: error processing libcipux-cat-web-perl (--configure):
   subprocess installed post-installation script returned error exit status 1
  Errors were encountered while processing:
   libcipux-cat-web-perl
  E: Sub-process /usr/bin/dpkg returned an error code (1)


cheers,
Holger
Start: 2010-05-26 05:08:44 UTC

Package: libcipux-cat-web-perl
Priority: optional
Section: perl
Installed-Size: 588
Maintainer: CipUX team cipux-de...@lists.alioth.debian.org
Architecture: all
Source: cipux-cat-web
Version: 3.4.0.2-1
Depends: perl, libcgi-formbuilder-perl, libcipux-perl, libdate-manip-perl, libcipux-rpc-client-perl, libtemplate-perl, libclass-std-perl, liblog-log4perl-perl, libreadonly-perl, libversion-perl
Suggests: cipux-cat-web
Filename: pool/main/c/cipux-cat-web/libcipux-cat-web-perl_3.4.0.2-1_all.deb
Size: 91996
MD5sum: b5b3610e3809b84f8c02e6ee5e8bc50c
SHA1: c2c964c39b8b3a665677ac2dd46451c488f62419
SHA256: 8534d1fe6ed4035916642b7c34bc588104eb35274e3c43559bddccec4e403038
Description: user and resource management framework CipUX - web-based admin tools
 CipUX is a modular framework for information abstraction and
 administration, primarily aimed at administration of users, groups and
 organisational resources stored in a central LDAP database.
 .
 CAT is CipUX Administration Tools, interacting with the core CipUX
 framework through XML-RPC.
 .
 Two CATs are provided officially with CipUX:
  - cipux-cat-web: generic web-based CAT
  - cipux-cat-moodle: CipUX plugin for Moodle
 These can be extended or replaced with custom tools.
 .
 This package contains CipUX::CAT::Web - functions used by the generic
 web-based CAT cipux-cat-web.
Homepage: http://www.cipux.org/
Tag: qa::low-popcon

Executing: sudo /org/piuparts.debian.org/sbin/piuparts --warn-symlinks --warn-on-others --warn-on-leftovers-after-purge --skip-logrotatefiles-test --scriptsdir /etc/piuparts/scripts/ --tmpdir /org/piuparts.debian.org/tmp -ad squeeze -b squeeze.tar.gz --mirror http://piatti.debian.org/debian/ libcipux-cat-web-perl
Guessed: debian
0m0.0s INFO: --
0m0.0s INFO: To quickly glance what went wrong, scroll down to the bottom of this logfile.
0m0.0s INFO: FAQ available at http://wiki.debian.org/piuparts/FAQ
0m0.0s INFO: --
0m0.0s INFO: piuparts version 0.39~201005220948 starting up.
0m0.0s INFO: Command line arguments: /org/piuparts.debian.org/sbin/piuparts --warn-symlinks --warn-on-others --warn-on-leftovers-after-purge --skip-logrotatefiles-test --scriptsdir /etc/piuparts/scripts/ --tmpdir /org/piuparts.debian.org/tmp -ad squeeze -b squeeze.tar.gz --mirror http://piatti.debian.org/debian/ libcipux-cat-web-perl
0m0.0s INFO: Running on: Linux piatti 2.6.32.13-dsa-amd64 #1 SMP Fri May 14 10:29:18 CEST 2010 x86_64
0m0.0s DEBUG: Created temporary directory /org/piuparts.debian.org/tmp/tmpyAxfvn
0m0.0s DEBUG: Unpacking squeeze.tar.gz into /org/piuparts.debian.org/tmp/tmpyAxfvn
0m0.0s DEBUG: Starting command: ['tar', '-C', '/org/piuparts.debian.org/tmp/tmpyAxfvn', '-zxf', 'squeeze.tar.gz']
0m1.8s DEBUG: Command ok: ['tar', '-C', '/org/piuparts.debian.org/tmp/tmpyAxfvn', '-zxf', 'squeeze.tar.gz']
0m1.8s DEBUG: Created policy-rc.d and chmodded it.
0m1.8s DEBUG: Starting command: ['chroot', '/org/piuparts.debian.org/tmp/tmpyAxfvn', 'apt-get', 'update']
0m3.7s DUMP: 
  Get:1 http://piatti.debian.org squeeze Release.gpg [835B]
  Get:2 http://piatti.debian.org squeeze Release [89.5kB]
  Ign http://piatti.debian.org squeeze/main Packages/DiffIndex
  Ign http://piatti.debian.org squeeze/contrib Packages/DiffIndex
  Ign http://piatti.debian.org squeeze/non-free Packages/DiffIndex
  Get:3 http://piatti.debian.org squeeze/main Packages [8459kB]
  Get:4 http://piatti.debian.org squeeze/contrib Packages [61.6kB]
  Get:5 http://piatti.debian.org squeeze/non-free Packages [121kB]
  Fetched 8731kB in 1s (8580kB/s)
  Reading package lists...
0m3.7s DEBUG: Command ok: ['chroot', '/org/piuparts.debian.org/tmp/tmpyAxfvn', 'apt-get', 'update']
0m3.7s DEBUG: Starting command: ['chroot', '/org/piuparts.debian.org/tmp/tmpyAxfvn', 'mount', '-t', 'proc', 'proc', '/proc']
0m3.7s DEBUG: Command ok: ['chroot', '/org/piuparts.debian.org/tmp/tmpyAxfvn', 'mount', '-t', 'proc', 'proc', '/proc']
0m3.7s DEBUG: Starting command: ['chroot', '/org/piuparts.debian.org/tmp/tmpyAxfvn', 'apt-get', '-yf', 'upgrade']
0m10.9s DUMP: 
  Reading package lists...
  Building dependency tree...
  The following packages will be upgraded: