Your message dated Fri, 04 Mar 2016 01:22:42 +0000
with message-id <[email protected]>
and subject line Bug#811441: fixed in insserv 1.14.0-5.3
has caused the Debian Bug report #811441,
regarding insserv: warn about dependencies in ignore mode
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
811441: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=811441
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: sysv-rc
Version: 2.88dsf-59.2
Severity: normal
Tags: patch
User: [email protected]
Usertags: integration

Hi,

In order to allow systems that do not require initscripts, update-rc.d
needs to cope with the services it provides being missing. Currently, if
initscripts is missing, the packages that specify a Requires-* LSB
dependency will fail to configure, as insserv will return with an error,
because it cannot compute a correct ordering sequence.

On systemd systems, however, the ordering sequence is not used, and all
that is required is that enable/disable links are present. So in systemd
systems we can force insserv to generate the links even if the ordering
is wrong.

If a systemd-only system then installs initscripts, because initscripts
calls update-rc.d in postinst, that will recompute the sequences, so the
correct ordering should be reestablished afterwards.

Allowing this change would enable many packages to drop their dependency
against initscripts, which are currently only required for this reason.

Attached is a patch that passes the -f flag to insserv when the file
/etc/init.d/mountkernfs.sh is not present. This preserves the current
behavior as long as initscripts is not purged, but allows (in the
future, when package dependencies have been corrected) a systemd without
the initscripts package. mountkernfs.sh is used as flag file to not fork
a new process, and because it is the most heavily depended-upon service
provided by initscripts.

Additional information and motivation at:

http://lists.alioth.debian.org/pipermail/pkg-systemd-maintainers/2015-November/009674.html
https://bugs.debian.org/cgi-bin/pkgreport.cgi?users=pkg-systemd-maintain...@lists.alioth.debian.org;dist=unstable;tag=initscripts-dep

Saludos

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.2.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Init: systemd (via /run/systemd/system)

Versions of packages sysv-rc depends on:
ii  debconf [debconf-2.0]  1.5.58
ii  insserv                1.14.0-5
ii  startpar               0.59-3
ii  sysvinit-utils         2.88dsf-59.2

Versions of packages sysv-rc recommends:
ii  lsb-base  9.20150917

Versions of packages sysv-rc suggests:
pn  bum  <none>

-- debconf information excluded
>From e69e187e24ba56f12a28fae85d2925bc5723780a Mon Sep 17 00:00:00 2001
From: Felipe Sateler <[email protected]>
Date: Fri, 27 Nov 2015 09:46:07 -0300
Subject: [PATCH] update-rc.d: Ensure insserv doesn't fail initscripts is not
 installed

At some point in the future, it should be possible to install a system
without initscripts package. This means that insserv should ignore any
missing Requires-* package, because that information will be discarded
in a non-initscripts system; all we care about is the enable/disable
link. So pass -f to insserv, so that it still generates the link, even
when some dependencies are missing.
---
 debian/src/sysv-rc/sbin/update-rc.d | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/debian/src/sysv-rc/sbin/update-rc.d b/debian/src/sysv-rc/sbin/update-rc.d
index a631021..59aeac2 100755
--- a/debian/src/sysv-rc/sbin/update-rc.d
+++ b/debian/src/sysv-rc/sbin/update-rc.d
@@ -168,6 +168,10 @@ sub insserv_updatercd {
 
     usage("not enough arguments") if ($#args < 1);
 
+    # Add force flag if initscripts is not installed
+    # This enables inistcripts-less systems to not fail when a facility is missing
+    unshift(@opts, '-f') unless is_initscripts_installed();
+
     $scriptname = shift @args;
     $action = shift @args;
     my $insserv = "/usr/lib/insserv/insserv";
@@ -380,3 +384,11 @@ sub insserv_toggle {
         rename($cur_lnk, join('', @new_lnk)) or error($!);
     }
 }
+
+# Try to determine if initscripts is installed
+sub is_initscripts_installed {
+    # Check if mountkernfs is available. We cannot make inferences
+    # using the running init system because we may be running in a
+    # chroot
+    return  -f '/etc/init.d/mountkernfs.sh';
+}
-- 
2.6.2


--- End Message ---
--- Begin Message ---
Source: insserv
Source-Version: 1.14.0-5.3

We believe that the bug you reported is fixed in the latest version of
insserv, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Felipe Sateler <[email protected]> (supplier of updated insserv package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Mon, 22 Feb 2016 21:22:07 -0300
Source: insserv
Binary: insserv
Architecture: source
Version: 1.14.0-5.3
Distribution: unstable
Urgency: medium
Maintainer: Petter Reinholdtsen <[email protected]>
Changed-By: Felipe Sateler <[email protected]>
Description:
 insserv    - boot sequence organizer using LSB init.d script dependency inform
Closes: 811441
Changes:
 insserv (1.14.0-5.3) unstable; urgency=medium
 .
   * Non-maintainer upload.
   * Do not suppress warnings on force mode
     (Closes: #811441)
Checksums-Sha1:
 62119923769d87512e2f54435b7c119aa2efd389 1920 insserv_1.14.0-5.3.dsc
 80fc9df9b85377ed066f3c501bd23e144b2bd28b 47724 insserv_1.14.0-5.3.debian.tar.xz
Checksums-Sha256:
 396ffec520de0c7930af39180add6a742dfc23d4c0be839a2854dcf6ec1bb4a4 1920 
insserv_1.14.0-5.3.dsc
 9a4eb42e9b955f059f97f35137973dd5ee8ab2b95e1bdaef3d0d83f41ff20e8e 47724 
insserv_1.14.0-5.3.debian.tar.xz
Files:
 6e3194c476c663e301279f31903250bc 1920 misc optional insserv_1.14.0-5.3.dsc
 1024cf7dc007fc382ed0595cca5e0e7d 47724 misc optional 
insserv_1.14.0-5.3.debian.tar.xz

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCAAGBQJWy6Y3AAoJEKO6uuJAjdbP1k0QAIMMVDWjrYqKh1lLd/+EhKYo
xN0EFMMtbxS/LDnezpX03Mk4/qVsnLdV3vgeEiSolCScc8uM/e2nSgHIfwA+APER
rHRecCLLDUT43pomjdMrv+5b1iPFD7zw/ZCMGUIIJLpKOPZf9goIt2vGkNXfQmaL
/3ozq5Qu6Gp+MljJcqUx/MxY7EA9rzS/wcDdsdxxziS0i0lElSLEg/YdTZl3JtKQ
UZyfFcktXP0hZ8FBR1IJ0NnIItJ/ApUub52hoRNmOLbcpoPCArvUZs4v3tVtdacy
iezO3qcjcxozQxF9kPaMzYtVYQu9+0GZWR7S3kYnBD1PDj8umXtWzlT22sJhdNci
iH22QLScWmVBKVRd3xOO9gqtGj49ipsfm1ibu/M2Y7GgGU9AFYors91IjA7Vzhaj
jBhxhEkyu709MLpvXyp5SVKFA+THLBq23FNN0CYXVqlnHyAMbGxhFLlpqU2FaPfP
NXZcWBNSvCJMUJPnBfvp6h0nPfc1Q8xS1VfFnA9YBb/5hPCDeTL1UTg4cgTjoNT5
YZuzYr1J9xLAHz8ReDXB13fGe8uAjGs72kAovMzYGFfSHaEQbf4RW0scylI6GymG
nLq2FjBWfGk1KUUDNkJYQc4a9INKUc1I0Ata+fI34gtTICrY8LjyAU8uMnA2bDDu
XwLKedab3+Hy6aMprw8H
=OH5B
-----END PGP SIGNATURE-----

--- End Message ---
_______________________________________________
Pkg-sysvinit-devel mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-sysvinit-devel

Reply via email to