Package: libsepol1
Version: 2.0.37-1
Severity: normal
Tags: patch

Hi,

debootstrap just fails, while trying to setup unstable chroot.

So I did install lenny into chroot and upgraded which gave me:

sh-4.0# dpkg --configure -a
Setting up libsepol1 (2.0.37-1) ...
telinit: timeout opening/writing control channel /dev/initctl
dpkg: error processing libsepol1 (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 libsepol1

I propose following patch:

--- /srv/chroot/unstable/var/lib/dpkg/info/libsepol1.postinst.orig      
2009-08-24 14:16:22.000000000 +0200
+++ /srv/chroot/unstable/var/lib/dpkg/info/libsepol1.postinst           
2009-08-24 14:16:26.000000000 +0200
@@ -153,7 +153,7 @@ case "$1" in
 
     ### done! now we'll just clear up our cruft.
     #rm -f $tempfile
-    if [ -x /sbin/init ] && [ -x /bin/readlink ]; then
+    if [ -x /sbin/init ] && [ -x /bin/readlink ] && [ ! -f /etc/debian_chroot 
]; then
         if [ "$(readlink /proc/1/exe 2>/dev/null)" = "/sbin/init" ]; then
             # Use telinit if available, it is better form, according
             # to the sysvinit maintainer.


After applying this patch everything went ok:

sh-4.0# dpkg --configure -a
Setting up libsepol1 (2.0.37-1) ...

Ondrej

-- System Information:
Debian Release: squeeze/sid (sid chroot for sbuild)
  APT prefers sid
  APT policy: (500, 'sid')
Architecture: amd64

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

Versions of packages libsepol1 depends on:
ii  libc6                    2.9-25 GNU C Library: Shared libraries

libsepol1 recommends no packages.

libsepol1 suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to