Your message dated Sun, 28 Oct 2018 16:20:26 +0000
with message-id <[email protected]>
and subject line Bug#899983: fixed in debhelper 11.5
has caused the Debian Bug report #899983,
regarding dh_installsystemd: Possible improvement to documentation?
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.)


-- 
899983: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=899983
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: debhelper
Version: 11.3.2
Severity: important

Dear Maintainer,

I am trying to convert SysV init script to systemd unit files for the nss-pam-
ldapd packages. Multiple packages are built out of this nss-pam-ldapd sources.
There are two packages with daemons which needs systemd unit files : nslcd and
pynslcd.

I was able to do systemd conversion on Debian 9.4 with the following section in
debian/rules file:

override_dh_installinit:
        dh_systemd_enable -pnslcd --name=k5start-nslcd k5start-nslcd.service
        dh_systemd_enable -pnslcd --name=nslcd nslcd.service
        dh_installinit  -pnslcd --name=k5start-nslcd --no-start --noscripts
        dh_installinit  -pnslcd --name=nslcd --no-start --noscripts
        dh_systemd_start -pnslcd --name=k5start-nslcd --no-restart-on-upgrade
        dh_systemd_start -pnslcd --name=nslcd --no-restart-on-upgrade
        dh_systemd_enable -ppynslcd --name=k5start-pynslcd k5start-
pynslcd.service
        dh_systemd_enable -ppynslcd --name=pynslcd pynslcd.service
        dh_installinit  -ppynslcd --name=k5start-pynslcd --no-start --noscripts
        dh_installinit  -ppynslcd --name=pynslcd --no-start --noscripts
        dh_systemd_start -ppynslcd --name=k5start-pynslcd --no-restart-on-
upgrade
        dh_systemd_start -ppynslcd --name=pynslcd --no-restart-on-upgrade

Now I am trying to move this to unstable where I have to use the new
dh_installsystemd. On unstable, I have changed the above section as:

override_dh_installsystemd:
        dh_installsystemd -pnslcd --name=k5start-nslcd k5start-nslcd.service
        dh_installsystemd -pnslcd --name=nslcd nslcd.service
        dh_installsystemd -ppynslcd --name=k5start-pynslcd k5start-
pynslcd.service
        dh_installsystemd -ppynslcd --name=pynslcd pynslcd.service

Running debuild -us -uc I get the following error message:

dh_installsystemd -ppynslcd --name=k5start-pynslcd k5start-pynslcd.service
dh_installsystemd: Could not find "k5start-pynslcd.service" in the
/lib/systemd/system directory of pynslcd. This could be a typo, or using Also=
with a service file from another package. Please check carefully that this
message is harmless.

Looking at the whole output deeper, I can see that dh_installsystemd creates
the proper directories for the first package:

dh_installsystemd -pnslcd --name=k5start-nslcd k5start-nslcd.service
        install -d debian/nslcd/lib/systemd/system
        install -p -m0644 debian/k5start-nslcd.service
           debian/nslcd/lib/systemd/system/k5start-
           nslcd.service

However, it appears to fail to create them for the second package.



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

Kernel: Linux 4.16.0-1-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages debhelper depends on:
ii  autotools-dev            20180224.1
ii  dh-autoreconf            19
ii  dh-strip-nondeterminism  0.041-1
ii  dpkg                     1.19.0.5+b1
ii  dpkg-dev                 1.19.0.5
ii  dwz                      0.12-2
ii  file                     1:5.33-2
ii  libdpkg-perl             1.19.0.5
ii  man-db                   2.8.3-2
ii  perl                     5.26.2-5
ii  po-debconf               1.0.20

debhelper recommends no packages.

Versions of packages debhelper suggests:
pn  dh-make  <none>

-- no debconf information
#!/usr/bin/make -f

export DH_VERBOSE=1

# multiarch support
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)

# enable hardening options
export DEB_BUILD_MAINT_OPTIONS=hardening=+all

%:
        dh $@ --with python2

# pass extra flags to configure
override_dh_auto_configure:
        dh_auto_configure -- \
                    --libdir=/lib/$(DEB_HOST_MULTIARCH) \
                    --with-pam-seclib-dir=/lib/$(DEB_HOST_MULTIARCH)/security \
                    --enable-warnings \
                    --enable-pynslcd

# run the tests but ignore the results
override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
        -chmod o-rwx tests/nslcd-test.conf
        -dh_auto_test
        -cat tests/test-suite.log
endif

override_dh_installsystemd:
        dh_installsystemd -pnslcd --name=k5start-nslcd k5start-nslcd.service
        dh_installsystemd -pnslcd --name=nslcd nslcd.service
        dh_installsystemd -ppynslcd --name=k5start-pynslcd 
k5start-pynslcd.service 
        dh_installsystemd -ppynslcd --name=pynslcd pynslcd.service

--- End Message ---
--- Begin Message ---
Source: debhelper
Source-Version: 11.5

We believe that the bug you reported is fixed in the latest version of
debhelper, 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.
Niels Thykier <[email protected]> (supplier of updated debhelper 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: SHA512

Format: 1.8
Date: Sun, 28 Oct 2018 16:07:01 +0000
Source: debhelper
Binary: debhelper dh-systemd
Architecture: source
Version: 11.5
Distribution: unstable
Urgency: medium
Maintainer: Debhelper Maintainers <[email protected]>
Changed-By: Niels Thykier <[email protected]>
Description:
 debhelper  - helper programs for debian/rules
 dh-systemd - debhelper add-on to handle systemd unit files - transitional pack
Closes: 764678 899983
Changes:
 debhelper (11.5) unstable; urgency=medium
 .
   [ Daniele Nicolodi ]
   * dh_installsystemduser: New helper responsible for istalling package
     maintainer supplied systemd user instance units and to produce
     postinst and postrm maintiner scripts code blocks to appropriately
     enable, mask and disable units when the package is installed,
     upgraded, or removed.  (Closes: #764678)
 .
   [ Niels Thykier ]
   * dh_installsystemd.1: Improve the documentation for --name to make
     it more clear that it also changes the name of the source files in
     the debian directory.  Thanks to Emel Hasdal for reporting the
     issue and reviewing the change.  (Closes: #899983)
Checksums-Sha1:
 d35b98b72821aa52f1932298c7dcda1a57a12fcf 1681 debhelper_11.5.dsc
 7ccb36040fde766f9495fde5f1df5fe1aa59d87f 477084 debhelper_11.5.tar.xz
 914119b634d77aecc8b4ab980cc701cda26cc060 4575 debhelper_11.5_source.buildinfo
Checksums-Sha256:
 bb9875d8fce231ac4e02e87890e69a20ec6cffb42c22d4aae32c1295ccef8fee 1681 
debhelper_11.5.dsc
 50958e1a0b3a6a7aa4aad8c42c7f91f7f6f41c38b0cde55bff5d402bdec45840 477084 
debhelper_11.5.tar.xz
 159b811493e96c178a81880e6af82b2c5acc09c5559f64a93158c9985958eedf 4575 
debhelper_11.5_source.buildinfo
Files:
 db12e28220056654308a0d6a8c474af2 1681 devel optional debhelper_11.5.dsc
 aef0aee0d7fe307d0fd51cdd3e9bee01 477084 devel optional debhelper_11.5.tar.xz
 7296d5572099136e01e08c48ac1394f0 4575 devel optional 
debhelper_11.5_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEE8f9dDX4ALfD+VfsMplt42+Z8eqwFAlvV4FoACgkQplt42+Z8
eqwEhg/+Kqy2wDu1nY4SvCV1ecVXwwiz5x9ZfmDghTUDbxOZnsTwCBC8JaPngSJF
FSzPv3lpD1h8MvIwCwsFEDvEpoH7OXs3pE4lrtAoN9wmmBW+SYlmtVvsrC59N2cN
UjzlwKEE/b7ZAeYimfsJsGIyOpcqrTbLvJYqo4OSQcz+UnkMglb98L7BmA/3Yuil
VH57Z94e5JOBxYF/y9d5kdiHmYrQjDXU1tkqzcZVMAb1PIShihqWsM8viVy00C87
5ipBxHVgI8tHSEOFIFdxg+CfvAqHOSz1U2jK6IEGv8/uMGVQDo3xAw5HzrbxNXbD
bC8cL/QogKRvwgm+LEGt+gV0gGr+nBLyi9MRWVGoYw9EWz+yjigVidIZozuyvyUH
iOudEhJPm2Aw8u3kkA2aZn2GD7o6ExoGV0UQKsdIPLQWLk0fRr8ra0i4lv4krv3p
X7pds12NBZicrI/k0CDG4OiBm+9dmDkwjDxiCcB6Hc65QCgTfSElNMERHXe6mmvw
bnu/HGkURyjcBJ6UzQCN0fCtCKNl7zIYLfkyGZUdkkn/gH/RRfaEOiCkknRuqsGM
3E8IqrjdCP5cMVfP2BgUaBLlz1vkBlXuwtE4oF9u8ThvuDBFishYhACsI/OBoexK
kX1Tp5oHnkU2TZwRpHHH/HqH6wEAfAIXC35pHBWMv7JVZITdJD4=
=A3pv
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to