[Pkg-utopia-maintainers] Bug#732009: avahi-daemon: Require a kernel >= 3.9, break partial upgrades

Vincent Danjean vdanjean at debian.org
Thu Dec 12 10:38:35 UTC 2013


Package: avahi-daemon
Version: 0.6.31-3
Severity: serious
Justification: break partial upgrades

  Hi,

  At compilation time, in avahi-core/socket.c, if SO_REUSEPORT is defined,
setsockopt(..., SO_REUSEPORT, ..) is called.
  But, if, at runtime, SO_REUSEPORT is not available (with a kernel <= 3.9, ie
a wheezy kernel), the function fails and seems to lead to a quick exits of
avahi-daemon. Log file says :

Dec 12 11:20:48 plume avahi-daemon[22508]: Found user 'avahi' (UID 105) and group 'avahi' (GID 111).
Dec 12 11:20:48 plume avahi-daemon[22508]: Successfully dropped root privileges.
Dec 12 11:20:48 plume avahi-daemon[22508]: avahi-daemon 0.6.31 starting up.
Dec 12 11:20:48 plume avahi-daemon[22508]: Successfully called chroot().
Dec 12 11:20:48 plume avahi-daemon[22508]: Successfully dropped remaining capabilities.
Dec 12 11:20:48 plume avahi-daemon[22508]: No service file found in /etc/avahi/services.
Dec 12 11:20:48 plume avahi-daemon[22508]: SO_REUSEPORT failed: Protocol not available
Dec 12 11:20:48 plume avahi-daemon[22508]: SO_REUSEPORT failed: Protocol not available
Dec 12 11:20:48 plume avahi-daemon[22508]: Failed to create server: No suitable network protocol available
Dec 12 11:20:48 plume avahi-daemon[22508]: avahi-daemon 0.6.31 exiting.

Just upgrading the kernel (from the wheezy one to the current testing one)
fixes the problem.

Perhaps, the reuseaddr() function in avahi-core/socket.c should not fail if
setsockopt(..., SO_REUSEPORT, ..) fails (or only if errno is not set to
EINVAL)?

  Regards,
    Vincent

-- System Information:
Debian Release: jessie/sid
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (500, 'oldstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
armel
mipsel

Kernel: Linux 3.12-rc7-amd64 (SMP w/8 CPU cores)
Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages avahi-daemon depends on:
ii  adduser              3.113+nmu3
ii  bind9-host [host]    1:9.9.3.dfsg.P2-4
ii  dbus                 1.6.18-1
ii  host                 1:9.9.3.dfsg.P2-4
ii  init-system-helpers  1.13
ii  libavahi-common3     0.6.31-2
ii  libavahi-core7       0.6.31-2
ii  libc6                2.17-93
ii  libcap2              1:2.22-1.2
ii  libdaemon0           0.14-2
ii  libdbus-1-3          1.6.18-1
ii  libexpat1            2.1.0-4
ii  lsb-base             4.1+Debian12

Versions of packages avahi-daemon recommends:
ii  libnss-mdns  0.10-3.2

Versions of packages avahi-daemon suggests:
ii  avahi-autoipd  0.6.31-2

-- no debconf information



More information about the Pkg-utopia-maintainers mailing list