Debian Bug report logs -
#878911
avahi FTBFS with debhelper 10.9.2
Reported by: Adrian Bunk <bunk@debian.org>
Date: Tue, 17 Oct 2017 16:51:02 UTC
Severity: serious
Tags: buster, sid
Merged with 879185
Found in version debhelper/10.9.2
Fixed in version debhelper/10.10
Done: Niels Thykier <niels@thykier.net>
Bug is archived. No further changes may be made.
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, Utopia Maintenance Team <pkg-utopia-maintainers@lists.alioth.debian.org>:
Bug#878911; Package src:avahi.
(Tue, 17 Oct 2017 16:51:05 GMT) (full text, mbox, link).
Acknowledgement sent
to Adrian Bunk <bunk@debian.org>:
New Bug report received and forwarded. Copy sent to Utopia Maintenance Team <pkg-utopia-maintainers@lists.alioth.debian.org>.
(Tue, 17 Oct 2017 16:51:05 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
Source: avahi
Version: 0.7-3
Severity: serious
https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/avahi.html
...
dh_systemd_start
dh_systemd_start: Could not find "avahi-daemon.socket" in the /lib/systemd/system directory of avahi-dnsconfd. This could be a typo, or using Also= with a service file from another package. Please check carefully that this message is harmless.
dh_systemd_start: Cannot open(avahi-daemon.socket) for extracting the Also= line(s)
debian/rules:4: recipe for target 'binary' failed
make: *** [binary] Error 2
19:35 < nthykier> bunk: Ideally, avahi would fix this on their end. Without the fail-on-error, debhelper will silently "not do things"
when the file is unreadable (even if only temporarily). I.e. a "fail-to-fail"-case
Information forwarded
to debian-bugs-dist@lists.debian.org, Utopia Maintenance Team <pkg-utopia-maintainers@lists.alioth.debian.org>:
Bug#878911; Package src:avahi.
(Sat, 21 Oct 2017 01:39:03 GMT) (full text, mbox, link).
Acknowledgement sent
to Michael Biebl <biebl@debian.org>:
Extra info received and forwarded to list. Copy sent to Utopia Maintenance Team <pkg-utopia-maintainers@lists.alioth.debian.org>.
(Sat, 21 Oct 2017 01:39:03 GMT) (full text, mbox, link).
Message #10 received at 878911@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
On Tue, 17 Oct 2017 19:45:11 +0300 Adrian Bunk <bunk@debian.org> wrote:
> Source: avahi
> Version: 0.7-3
> Severity: serious
>
> https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/avahi.html
>
> ...
> dh_systemd_start
> dh_systemd_start: Could not find "avahi-daemon.socket" in the /lib/systemd/system directory of avahi-dnsconfd. This could be a typo, or using Also= with a service file from another package. Please check carefully that this message is harmless.
> dh_systemd_start: Cannot open(avahi-daemon.socket) for extracting the Also= line(s)
> debian/rules:4: recipe for target 'binary' failed
> make: *** [binary] Error 2
>
>
> 19:35 < nthykier> bunk: Ideally, avahi would fix this on their end. Without the fail-on-error, debhelper will silently "not do things"
> when the file is unreadable (even if only temporarily). I.e. a "fail-to-fail"-case
>
avahi-daemon.socket is provided by avahi-daemon, a binary package which
is built from the same source package and avahi-dnsconfd depends on
avahi-daemon.
Niels, can you be a bit more specific why this fails now and what you
think is the proper fix?
A service file having an Also= line referencing a service which pulled
in via Depends seems fine to me.
Michael
--
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?
[signature.asc (application/pgp-signature, attachment)]
Information forwarded
to debian-bugs-dist@lists.debian.org, Utopia Maintenance Team <pkg-utopia-maintainers@lists.alioth.debian.org>:
Bug#878911; Package src:avahi.
(Sat, 21 Oct 2017 07:03:03 GMT) (full text, mbox, link).
Acknowledgement sent
to Niels Thykier <niels@thykier.net>:
Extra info received and forwarded to list. Copy sent to Utopia Maintenance Team <pkg-utopia-maintainers@lists.alioth.debian.org>.
(Sat, 21 Oct 2017 07:03:03 GMT) (full text, mbox, link).
Message #15 received at 878911@bugs.debian.org (full text, mbox, reply):
Control: reassign -1 debhelper 10.9.2
Michael Biebl:
> On Tue, 17 Oct 2017 19:45:11 +0300 Adrian Bunk <bunk@debian.org> wrote:
>> Source: avahi
>> Version: 0.7-3
>> Severity: serious
>>
>> https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/avahi.html
>>
>> ...
>> dh_systemd_start
>> dh_systemd_start: Could not find "avahi-daemon.socket" in the /lib/systemd/system directory of avahi-dnsconfd. This could be a typo, or using Also= with a service file from another package. Please check carefully that this message is harmless.
>> dh_systemd_start: Cannot open(avahi-daemon.socket) for extracting the Also= line(s)
>> debian/rules:4: recipe for target 'binary' failed
>> make: *** [binary] Error 2
>>
>>
>> 19:35 < nthykier> bunk: Ideally, avahi would fix this on their end. Without the fail-on-error, debhelper will silently "not do things"
>> when the file is unreadable (even if only temporarily). I.e. a "fail-to-fail"-case
>>
>
Hi,
> avahi-daemon.socket is provided by avahi-daemon, a binary package which
> is built from the same source package and avahi-dnsconfd depends on
> avahi-daemon.
Ok, when I spoke with Adrian about this, I had a different understanding
of what happened and why it broke.
> Niels, can you be a bit more specific why this fails now and what you
> think is the proper fix?
I can explain why it fails; dh_systemd_start basically reads the Also=
line and pretends it was a part of the services listed on the cmdline/in
the package. As it is now mandatory for us to be able to read the
service files, this will fail as the service is not where we expect to
find it.
The comment related to that part of the code reads:
"""
# Handle all unit files specified via Also= explicitly.
# This is not necessary for enabling, but for disabling, as we
# cannot read the unit file when disabling (it was already
# deleted).
"""
@biebl/@fsateler: when a unit has an Also= that points to a unit in a
different package can we then just ignore the relation? I assume that
we should not disable/stop services from another package on removal.
Thanks,
~Niels
Bug reassigned from package 'src:avahi' to 'debhelper'.
Request was from Niels Thykier <niels@thykier.net>
to 878911-submit@bugs.debian.org.
(Sat, 21 Oct 2017 07:03:03 GMT) (full text, mbox, link).
No longer marked as found in versions avahi/0.7-3.
Request was from Niels Thykier <niels@thykier.net>
to 878911-submit@bugs.debian.org.
(Sat, 21 Oct 2017 07:03:04 GMT) (full text, mbox, link).
Marked as found in versions debhelper/10.9.2.
Request was from Niels Thykier <niels@thykier.net>
to 878911-submit@bugs.debian.org.
(Sat, 21 Oct 2017 07:03:05 GMT) (full text, mbox, link).
Added tag(s) pending.
Request was from Niels Thykier <niels@thykier.net>
to control@bugs.debian.org.
(Sat, 21 Oct 2017 12:27:02 GMT) (full text, mbox, link).
Added tag(s) sid and buster.
Request was from Niels Thykier <niels@thykier.net>
to control@bugs.debian.org.
(Sat, 21 Oct 2017 12:33:06 GMT) (full text, mbox, link).
Merged 878911 879185
Request was from Niels Thykier <niels@thykier.net>
to control@bugs.debian.org.
(Sat, 21 Oct 2017 12:33:06 GMT) (full text, mbox, link).
Added indication that 878911 affects src:avahi and src:sane-backends
Request was from Adrian Bunk <bunk@debian.org>
to control@bugs.debian.org.
(Sat, 21 Oct 2017 13:15:02 GMT) (full text, mbox, link).
Reply sent
to Niels Thykier <niels@thykier.net>:
You have taken responsibility.
(Sat, 21 Oct 2017 18:21:09 GMT) (full text, mbox, link).
Notification sent
to Adrian Bunk <bunk@debian.org>:
Bug acknowledged by developer.
(Sat, 21 Oct 2017 18:21:09 GMT) (full text, mbox, link).
Message #34 received at 878911-close@bugs.debian.org (full text, mbox, reply):
Source: debhelper
Source-Version: 10.10
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 878911@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Niels Thykier <niels@thykier.net> (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 ftpmaster@ftp-master.debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Format: 1.8
Date: Sat, 21 Oct 2017 17:59:46 +0000
Source: debhelper
Binary: debhelper dh-systemd
Architecture: source
Version: 10.10
Distribution: unstable
Urgency: medium
Maintainer: Debhelper Maintainers <debhelper-devel@lists.alioth.debian.org>
Changed-By: Niels Thykier <niels@thykier.net>
Description:
debhelper - helper programs for debian/rules
dh-systemd - debhelper add-on to handle systemd unit files - transitional pack
Closes: 876453 878911
Changes:
debhelper (10.10) unstable; urgency=medium
.
* dh_installsystemd: Improve error messages to include the actual
error caused by attempted to open the file.
* dh_systemd_enable: Ditto.
* dh_systemd_start: Ditto.
* dh_installinit: In compat 12, error out if an upstart init file
is provided with a reminder message about how to remove the
obsolete conffile. (Closes: #876453)
* dh_systemd_enable: Permit missing explicitly requested file in
package as long as another on being acted on ships it.
(Closes: #878911)
* dh_systemd_start: Ditto.
* Dh_Lib.pm: Add support for R³ (Rules-Requires-Root field) to
enable package builds without requiring root (or only
selectively require root).
* dh_fixperms: Skip "chown" calls when R³ is set to anything but
"binary-targets".
* dh_installchangelogs: Ditto.
* dh_installdocs: Ditto.
* dh_testroot: Update check for root to support R³.
* makefile.pm: Call "make install" with DPKG_GAIN_ROOT_CMD when
R³ contains the "debhelper/upstream-make-install" keyword.
* dh_builddeb: Pass --root-owner-group to dpkg-deb in packages
with R³ (except for "binary-targets").
* dh_usrlocal: When R³ is enabled (and not "binary-targets"),
ignore the ownership/mode information on the directories.
Instead, the ownership "root:staff" and the mode 02775 is used.
* d/control: Bump (Build-)Dependency on dpkg-dev to support to
support R³.
* d/control: Set R³ to "no".
Checksums-Sha1:
b0eb65b81ea22e1e034ad7fbb9673925d2ebb2e6 1766 debhelper_10.10.dsc
97755a50cbdfd8ab6042c381d2a4eb8e6aa206cb 427004 debhelper_10.10.tar.xz
d06fa91ccbc1c5ead2d9d252bc88fe0646454b83 4519 debhelper_10.10_source.buildinfo
Checksums-Sha256:
56c3c637d8dcb43a5605092b23005866f671671c717ae339ad8ebede9dcdc0ab 1766 debhelper_10.10.dsc
61be3a7ce7000088320af83139d0a1c1f765e4e5cd2a053edc5e65433e012f19 427004 debhelper_10.10.tar.xz
173c92c1a912f81bb650aa7cbe2d148750f1269509f288592482a5c0bec00d64 4519 debhelper_10.10_source.buildinfo
Files:
6622752d41beab466a2374781d2a6876 1766 devel optional debhelper_10.10.dsc
fda6cbcfa5d15b2d35bdabeb7331528c 427004 devel optional debhelper_10.10.tar.xz
6083b2217ecf9583ef902aa85a4d66d4 4519 devel optional debhelper_10.10_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCAAdFiEEsxMaRR2/33ygW0GXBUu7n32AZEIFAlnrjFcACgkQBUu7n32A
ZELcfQ//XYNuPoUZwCJpKCmNz7HdlzqvzmUrxZQxW9+klrnTJIMZX58KQbTt8rxg
FikNuKQENrgFEIMJQfepcrVgJ5+4NG+VJ3UriQUCMl+yQJuI7tdmNzXKLCbCZWx6
4YDkqt/3rAtuIW/TIha5rhj7obQ3ARikGM6JUdPyH5Gys3KE2H7s1D0/5DrwjELG
yrCAB+JjIZFMUBLmrXRPPdHTvhGL9pdM5GUnPWektfLdQ7/vcN06sO3GgBfJN75F
wdZik8Q2wL/uowQ6/KHyyrZ6E14PZYtIFcR83aHUdKAHMWKaVJHegGfL3RrDmfvN
lBckKJkZvCJg1Jq8rSh0ohpKU4lJyXvr1XeVRSlrX2e1uzNOBtRkr8atYqSPf20M
LZLbNOk5tNwVrcP3YV+ML9Dp+gTchAW2OhUovF1ytfpRmbyu45dnYSGGbbQQIORq
lWJlQqraMuJwlMWyvYu6gjYjkmBmBdr+FqI5kC5G+wG1hmqov8FGfRWL2IQtK8Ll
oCpBDfKVjhxvPrD5k6y6rDTxVFg0p/s90VfEGoHaVrfNiyyMLDRUzxymQ56I9T02
zJd26LKn++RM5lkZGe8S0iNmbeTh6u70H18pN6NNv7umP88s34O3czCt9tTr/7VG
jPZH7R3U7p+oOXOBgQ0a4IQFdCxfSHod3iQMgW8MldiiMVnN1IY=
=3j15
-----END PGP SIGNATURE-----
Reply sent
to Niels Thykier <niels@thykier.net>:
You have taken responsibility.
(Sat, 21 Oct 2017 18:21:10 GMT) (full text, mbox, link).
Notification sent
to Adrian Bunk <bunk@debian.org>:
Bug acknowledged by developer.
(Sat, 21 Oct 2017 18:21:10 GMT) (full text, mbox, link).
Information forwarded
to debian-bugs-dist@lists.debian.org, Debhelper Maintainers <debhelper-devel@lists.alioth.debian.org>:
Bug#878911; Package debhelper.
(Mon, 23 Oct 2017 21:18:04 GMT) (full text, mbox, link).
Acknowledgement sent
to Felipe Sateler <fsateler@debian.org>:
Extra info received and forwarded to list. Copy sent to Debhelper Maintainers <debhelper-devel@lists.alioth.debian.org>.
(Mon, 23 Oct 2017 21:18:04 GMT) (full text, mbox, link).
Message #43 received at 878911@bugs.debian.org (full text, mbox, reply):
On Sat, Oct 21, 2017 at 3:44 AM, Niels Thykier <niels@thykier.net> wrote:
> Control: reassign -1 debhelper 10.9.2
>
> Michael Biebl:
>> On Tue, 17 Oct 2017 19:45:11 +0300 Adrian Bunk <bunk@debian.org> wrote:
>>> Source: avahi
>>> Version: 0.7-3
>>> Severity: serious
>>>
>>> https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/avahi.html
>>>
>>> ...
>>> dh_systemd_start
>>> dh_systemd_start: Could not find "avahi-daemon.socket" in the /lib/systemd/system directory of avahi-dnsconfd. This could be a typo, or using Also= with a service file from another package. Please check carefully that this message is harmless.
>>> dh_systemd_start: Cannot open(avahi-daemon.socket) for extracting the Also= line(s)
>>> debian/rules:4: recipe for target 'binary' failed
>>> make: *** [binary] Error 2
>>>
>>>
>>> 19:35 < nthykier> bunk: Ideally, avahi would fix this on their end. Without the fail-on-error, debhelper will silently "not do things"
>>> when the file is unreadable (even if only temporarily). I.e. a "fail-to-fail"-case
>>>
>>
>
> Hi,
>
>> avahi-daemon.socket is provided by avahi-daemon, a binary package which
>> is built from the same source package and avahi-dnsconfd depends on
>> avahi-daemon.
>
> Ok, when I spoke with Adrian about this, I had a different understanding
> of what happened and why it broke.
>
>> Niels, can you be a bit more specific why this fails now and what you
>> think is the proper fix?
>
> I can explain why it fails; dh_systemd_start basically reads the Also=
> line and pretends it was a part of the services listed on the cmdline/in
> the package. As it is now mandatory for us to be able to read the
> service files, this will fail as the service is not where we expect to
> find it.
>
> The comment related to that part of the code reads:
>
> """
> # Handle all unit files specified via Also= explicitly.
> # This is not necessary for enabling, but for disabling, as we
> # cannot read the unit file when disabling (it was already
> # deleted).
> """
>
> @biebl/@fsateler: when a unit has an Also= that points to a unit in a
> different package can we then just ignore the relation? I assume that
> we should not disable/stop services from another package on removal.
I think that in this case, the correct fix is to drop the Also= line.
1. We don't want to stop avahi-daemon socket if dnsconfd is removed
2. It appears the Also line is being treated as some form of
dependency manager (ie, to ensure that the avahi-daemon is started
when dnsconfd is started), but it is not necessary, because
avahi-daemon.socket is already Required.
So, I think we have not yet found a compelling case for dropping the
debhelper error. The Also line is not needed, and can be safely
dropped from the avahi-dnsconfd unit.
--
Saludos,
Felipe Sateler
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Tue, 21 Nov 2017 07:25:01 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Wed Jan 10 02:52:05 2018;
Machine Name:
buxtehude
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.