Package: bld
Version: 0.3.4.1-3
Severity: grave
Justification: renders package unusable

fails to install due to a problem in the post installation script
chown: cannot access `/var/run/bld': No such file or directory

occurs in ubuntu as well as debian

attached is a debdiff that moves changing ownership of /var/run/bld from the 
post install script to the init script as this is where the directory is 
created now


-- System Information:
Debian Release: squeeze/sid
  APT prefers karmic-updates
  APT policy: (500, 'karmic-updates'), (500, 'karmic-security'), (500, 
'karmic-proposed'), (500, 'karmic-backports'), (500, 'karmic')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.31-15-generic (SMP w/8 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages bld depends on:
ii  adduser                 3.110ubuntu7     add and remove users and groups
ii  libc6                   2.10.1-0ubuntu15 GNU C Library: Shared libraries

bld recommends no packages.

Versions of packages bld suggests:
pn  bld-postfix                   <none>     (no description available)
pn  bld-tools                     <none>     (no description available)

-- no debconf information
diff -u bld-0.3.4.1/debian/changelog bld-0.3.4.1/debian/changelog
--- bld-0.3.4.1/debian/changelog
+++ bld-0.3.4.1/debian/changelog
@@ -1,3 +1,11 @@
+bld (0.3.4.1-3ubuntu1) lucid; urgency=low
+
+  * debian/bld.postinst: drop creation and ownership changes of /var/run/bld,
+    this is now handled by init script
+  * debian/bld.init: add ownership change of /var/run/bld 
+
+ -- SevenMachines <sevenmachi...@yahoo.co.uk>  Tue, 17 Nov 2009 11:03:20 +0000
+
 bld (0.3.4.1-3) unstable; urgency=low
 
   * Changed priority back to optional, and changed the priority to extra
diff -u bld-0.3.4.1/debian/bld.init bld-0.3.4.1/debian/bld.init
--- bld-0.3.4.1/debian/bld.init
+++ bld-0.3.4.1/debian/bld.init
@@ -26,6 +26,7 @@
   start)
 	echo -n "Starting $DESC: "
 	mkdir -p /var/run/bld
+	chown -R $USER:$USER /var/run/bld
 	start-stop-daemon --start --quiet --pidfile /var/run/bld/$NAME.pid \
 		--exec $DAEMON --chuid $USER -- $DAEMON_OPTS
 	echo "$NAME."
diff -u bld-0.3.4.1/debian/bld.postinst bld-0.3.4.1/debian/bld.postinst
--- bld-0.3.4.1/debian/bld.postinst
+++ bld-0.3.4.1/debian/bld.postinst
@@ -15,8 +15,2 @@
 
-if ! [ -x /usr/sbin/dpkg-statoverride ] || \
-    ! dpkg-statoverride --list /var/run/$user >/dev/null
-then
-    chown -R $user:$user /var/run/$user
-fi
-
 #DEBHELPER#
diff -u bld-0.3.4.1/debian/changelog bld-0.3.4.1/debian/changelog
--- bld-0.3.4.1/debian/changelog
+++ bld-0.3.4.1/debian/changelog
@@ -1,3 +1,11 @@
+bld (0.3.4.1-3ubuntu1) lucid; urgency=low
+
+  * debian/bld.postinst: drop creation and ownership changes of /var/run/bld,
+    this is now handled by init script
+  * debian/bld.init: add ownership change of /var/run/bld 
+
+ -- SevenMachines <sevenmachi...@yahoo.co.uk>  Tue, 17 Nov 2009 11:03:20 +0000
+
 bld (0.3.4.1-3) unstable; urgency=low
 
   * Changed priority back to optional, and changed the priority to extra
diff -u bld-0.3.4.1/debian/bld.init bld-0.3.4.1/debian/bld.init
--- bld-0.3.4.1/debian/bld.init
+++ bld-0.3.4.1/debian/bld.init
@@ -26,6 +26,7 @@
   start)
 	echo -n "Starting $DESC: "
 	mkdir -p /var/run/bld
+	chown -R $USER:$USER /var/run/bld
 	start-stop-daemon --start --quiet --pidfile /var/run/bld/$NAME.pid \
 		--exec $DAEMON --chuid $USER -- $DAEMON_OPTS
 	echo "$NAME."
diff -u bld-0.3.4.1/debian/bld.postinst bld-0.3.4.1/debian/bld.postinst
--- bld-0.3.4.1/debian/bld.postinst
+++ bld-0.3.4.1/debian/bld.postinst
@@ -15,8 +15,2 @@
 
-if ! [ -x /usr/sbin/dpkg-statoverride ] || \
-    ! dpkg-statoverride --list /var/run/$user >/dev/null
-then
-    chown -R $user:$user /var/run/$user
-fi
-
 #DEBHELPER#

Reply via email to