[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#866587: debian-edu-config: Please drop Pre-Depends on initscripts



Package: debian-edu-config
Version: 1.907
Severity: important
Tags: patch
User: pkg-systemd-maintainers@lists.alioth.debian.org
Usertags: initscripts-dep

Hi,

your package debian-edu-config declares a pre-depends on initscripts.

On a system using systemd, the initscripts package is not longer
required. Removing the dependency from your package will allow
users to remove the initscripts package from their system.

I notice the pre-depends was added for 

* Add package initscripts to Pre-Depends, as share/d-e-c/d-i/pre-pkgsel
  relies on /etc/init.d/hostname.sh

Please solve this differently, e.g. by simply running hostname directly
on the target system instead of calling the legacy SysV init script.

I suppose the attach patch should work. It's untested though, so please
review carefully.


Michael



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

Kernel: Linux 4.9.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8), LANGUAGE=de_DE.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages debian-edu-config depends on:
ii  bind9-host [host]                1:9.10.3.dfsg.P4-12.3
pn  cfengine2                        <none>
ii  debconf [debconf-2.0]            1.5.61
pn  debconf-utils                    <none>
pn  debian-edu-artwork               <none>
pn  desktop-profiles                 <none>
pn  education-tasks                  <none>
pn  fping                            <none>
pn  initscripts                      <none>
pn  isenkram-cli                     <none>
pn  ldap-utils                       <none>
pn  libconfig-inifiles-perl          <none>
ii  libfilesys-df-perl               0.92-6+b1
pn  libhtml-fromtext-perl            <none>
ii  libio-socket-ssl-perl            2.049-1
pn  libnet-ldap-perl                 <none>
pn  libnet-netmask-perl              <none>
pn  libpam-python                    <none>
pn  libproxy-tools                   <none>
pn  libproxy1-plugin-kconfig         <none>
pn  libproxy1-plugin-mozjs           <none>
pn  libproxy1-plugin-networkmanager  <none>
ii  libterm-readkey-perl             2.37-1
pn  libtext-unaccent-perl            <none>
pn  lockfile-progs                   <none>
ii  lsb-base                         9.20161125
ii  lsb-release                      9.20161125
ii  mime-support                     3.60
ii  net-tools                        1.60+git20161116.90da8a0-1
ii  netcat-openbsd [netcat]          1.178-2
ii  netcat-traditional [netcat]      1.10-41.1
pn  ng-utils                         <none>
ii  openssl                          1.1.0f-3
ii  patch                            2.7.5-1+b2
ii  python                           2.7.13-2
ii  python-notify                    0.1.1-4
pn  smbldap-tools                    <none>
ii  ssl-cert                         1.0.39
pn  swaks                            <none>
pn  tftp | tftp-hpa                  <none>
ii  uuid                             1.6.2-1.5+b4

Versions of packages debian-edu-config recommends:
ii  binutils       2.28-6
pn  ddccontrol     <none>
ii  libnotify-bin  0.7.7-2
ii  lsof           4.89+dfsg-0.1
pn  memtest86+     <none>
pn  resolvconf     <none>
pn  syslinux       <none>

Versions of packages debian-edu-config suggests:
pn  atftpd | tftpd-hpa  <none>
diff --git a/debian/control b/debian/control
index c5b850d..2bc8c41 100644
--- a/debian/control
+++ b/debian/control
@@ -16,7 +16,6 @@ Vcs-Git: git://anonscm.debian.org/debian-edu/debian-edu-config.git
 
 Package: debian-edu-config
 Architecture: all
-Pre-Depends: ${misc:Pre-Depends}, initscripts
 Depends: ${misc:Depends},
          lsb-base (>= 3.0-6),
          cfengine2,
diff --git a/share/debian-edu-config/d-i/pre-pkgsel b/share/debian-edu-config/d-i/pre-pkgsel
index fac2ead..b17aa1b 100644
--- a/share/debian-edu-config/d-i/pre-pkgsel
+++ b/share/debian-edu-config/d-i/pre-pkgsel
@@ -179,7 +179,7 @@ EOF
 
     if [ ! -z "$HOSTNAME" ] ; then
         echo "$HOSTNAME" > /target/etc/hostname
-        in-target /etc/init.d/hostname.sh start
+        in-target /bin/hostname "$HOSTNAME"
     fi
 
     # Update hostname based on reverse DNS entry of current IP or

Reply to: