#942053 dh-runit: generates dangling symlinks

#942053#5
Date:
2019-10-09 16:01:56 UTC
From:
To:
The fix for bug #934500 has the side effect of introducing broken
symlinks[1] into packages using it, causing complaints by tools that
report such oddities, e.g. adequate(1) or symlinks(1):

,----
| $ sudo symlinks -r /etc | grep dangling
| dangling: /etc/sv/ssh/log/supervise -> /run/runit/supervise/ssh.log
| dangling: /etc/sv/ssh/supervise -> /run/runit/supervise/ssh
| $ adequate openssh-server
| openssh-server: broken-symlink /etc/sv/ssh/log/supervise -> /run/runit/supervise/ssh.log
| openssh-server: broken-symlink /etc/sv/ssh/supervise -> /run/runit/supervise/ssh
`----

I find that quite annoying.

#942053#10
Date:
2019-10-13 16:24:28 UTC
From:
To:
[2019-10-09 18:01] Sven Joachim <svenjoac@gmx.de>

As I recall, dangling symlink is not violation of Policy (correct me if
I am wrong), so the best route is to teach these tools about this
special case, like we teach lintian.

So, I think adequate(1) need to be patched. Something else?

Sorry, this is not enough. Debian strives to be universal operating
system, and pays the price for it: on every system there is something
that is not needed for how this system is used.

You can use dpkg-exclude to alleviate this particular issue somewhat.

#942053#15
Date:
2021-10-09 10:29:23 UTC
From:
To:
Hi,

Just a quick update on this bug

With the fix for #935939 I'm also considering to create the supervise
symlinks only in systems where runit is installed.

With runit-init the symlinks are not broken; also when you are using
runit under another init system (like with runit-run package) the
symlinks may be not broken.

Regards,
Lorenzo

#942053#18
Date:
2022-06-20 01:29:27 UTC
From:
To:
Hello,

Bug #942053 in dh-runit reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/debian/dh-runit/-/commit/1cfb265ba0c04f211bc157f9326092cd8677777f
------------------------------------------------------------------------
Stop creating supervise links

No longer create supervise symlinks as part of the deb package.
Supervise symlinks can be created at runtime or, if missing,
will be created automatically by runsv.

Closes: #942053
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/942053

#942053#25
Date:
2022-07-04 10:05:08 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
dh-runit, 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 942053@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Lorenzo Puliti <plorenzo@disroot.org> (supplier of updated dh-runit 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 ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Sat, 02 Jul 2022 12:09:54 +0200
Source: dh-runit
Architecture: source
Version: 2.14.0
Distribution: experimental
Urgency: medium
Maintainer: Lorenzo Puliti <plorenzo@disroot.org>
Changed-By: Lorenzo Puliti <plorenzo@disroot.org>
Closes: 935939 942053
Changes:
 dh-runit (2.14.0) experimental; urgency=medium
 .
   * Stop creating supervise links as part of
      the deb package (Closes: #942053)
   * Create supervise links at runtime with make_svlinks,
      but only when runit package is installed
      (Closes: #935939)
   * Use finish-exec instead of finish-default
   * Bump minimal required version of runit and runit-helper
   * Do not install the log service with usr option
   * Error when log service already exists and logscript
      option is given
   * Update testsuite
   * Temporary disable ghc testsuite, libghc-shake-dev
      is not installable in Sid
Checksums-Sha1:
 7bc4056dde70ac22c6bf6cfd91870cd98079641f 1731 dh-runit_2.14.0.dsc
 5dbb0c69393cded32b8292e7b8b86c33ea445537 16788 dh-runit_2.14.0.tar.xz
 eeeac587192065eaa621635bcbac5dd14707c841 5876 dh-runit_2.14.0_source.buildinfo
Checksums-Sha256:
 e49dd2f83153bd7413e718210f68e7d1dcc1d5128b73dc4559a5566d882f3c6f 1731 dh-runit_2.14.0.dsc
 f386e3a53c18f9be42f2561075eca7d5f5c12e91d5773bf63c1a0d3d4dae2662 16788 dh-runit_2.14.0.tar.xz
 ed601c1f8b218261a86afcaffbc649053527e65fed1c124ef6a89a52b1771e9c 5876 dh-runit_2.14.0_source.buildinfo
Files:
 ebc6624de3fe2601fb221642239b8811 1731 admin optional dh-runit_2.14.0.dsc
 f3be72f11982f6665fae55ee07c16cc5 16788 admin optional dh-runit_2.14.0.tar.xz
 d6b9d6fd70cbb49e23c0df32f79e7891 5876 admin optional dh-runit_2.14.0_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEkjZVexcMh/iCHArDweDZLphvfH4FAmLCuHkACgkQweDZLphv
fH7flw//VQnV74GQXAvg4U4bTHhuv8BLphtm4i1IugR5Ew6VTEC+NTUnzOr+aoRf
Oje/mlMcBPg3D13vHmi3jF8jl1G/V3sLUIJNLvk53kQGXGnv7prB+DAc2Ztlh0vZ
ByUFMT58s8LycW7kEt+gNcpyk21YlHji80JDPB/uLOjVFlEcwCAM2u70IP+I1i0B
0e1QLDvn6MXCJzjyhKSeIhQN1QSYTEjG7iTHs0hVSMdHBev+rSp7inqITnQKg5lm
j5tcMPvqLKY2GsYNl6K+yMca50ZlWjOnGfqNIxLkufr0K7V83OxCuDqF+Q5EFBHO
QkUArm7YCRZsRtW3NHg2YWMhXw9MRFwwTXif1enSB5atPBBxjLUJiA8JhYnZEj7q
aumbPJY0dJHK1DXJCC+t4/PgYWpQnYljxOYyINO42o0OQcFxNT1BmGzL6ZAMzuOW
3+vEyE1Np0GwEpp+9YdvITY+iAoDVhiRbyNcrMIYXh+RJ3dpovA+CTHlvBCPb0XR
WJhrk/OgyU8VHrNI50ZygxPGB2LJKtWyhPRDSIPUsvdTR7Mkj8hzcYGjir4JHgaJ
BwlFzJcZnCJAgcFsGatS7e7AokDbxVSYG9A4S4AVt1G9YQCgbFlwzuTqskj1iQVD
J7lGjKViBq3AOOcbZdmzwgdd1qyDVbsNTn1AAPp3plN0cffUGko=
=UBIY
-----END PGP SIGNATURE-----