added patch to work with older kernel (e.g. 3.4) which don't have SO_REUSEADDR [release 0.6.31-9mamba;Fri Dec 05 2014]
This commit is contained in:
parent
ae9a06347a
commit
2a1dde3f7e
@ -0,0 +1,30 @@
|
|||||||
|
https://bugs.gentoo.org/484212
|
||||||
|
|
||||||
|
Description: SO_REUSEPORT may not exist in running kernel
|
||||||
|
When userspace defines SO_REUSEPORT we will attempt to enable socket
|
||||||
|
port number reuse. However if the running kernel does not support
|
||||||
|
this call it will fail preventing daemon startup. If this call is
|
||||||
|
present but fails ENOPROTOOPT then we know that actually the kernel
|
||||||
|
does not support it and we should continue as if we did not have the
|
||||||
|
call at all. (LP: #1228204)
|
||||||
|
.
|
||||||
|
This patch could be removed from the debian package after jessie release.
|
||||||
|
Author: Andy Whitcroft <apw@canonical.com>
|
||||||
|
Bug-Ubuntu: https://bugs.launchpad.net/bugs/1228204
|
||||||
|
Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=732009
|
||||||
|
Last-Update: 2013-09-20
|
||||||
|
|
||||||
|
Index: avahi-0.6.31/avahi-core/socket.c
|
||||||
|
===================================================================
|
||||||
|
--- avahi-0.6.31.orig/avahi-core/socket.c 2013-09-20 16:36:50.000000000 +0100
|
||||||
|
+++ avahi-0.6.31/avahi-core/socket.c 2013-09-20 16:38:23.781863644 +0100
|
||||||
|
@@ -177,7 +177,8 @@
|
||||||
|
yes = 1;
|
||||||
|
if (setsockopt(fd, SOL_SOCKET, SO_REUSEPORT, &yes, sizeof(yes)) < 0) {
|
||||||
|
avahi_log_warn("SO_REUSEPORT failed: %s", strerror(errno));
|
||||||
|
- return -1;
|
||||||
|
+ if (errno != ENOPROTOOPT)
|
||||||
|
+ return -1;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
Name: avahi
|
Name: avahi
|
||||||
Version: 0.6.31
|
Version: 0.6.31
|
||||||
Release: 8mamba
|
Release: 9mamba
|
||||||
Summary: A system which facilitates service discovery on a local network
|
Summary: A system which facilitates service discovery on a local network
|
||||||
Group: Applications/Networking
|
Group: Applications/Networking
|
||||||
Vendor: openmamba
|
Vendor: openmamba
|
||||||
@ -14,6 +14,7 @@ Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|||||||
URL: http://avahi.org
|
URL: http://avahi.org
|
||||||
Source: http://avahi.org/download/avahi-%{version}.tar.gz
|
Source: http://avahi.org/download/avahi-%{version}.tar.gz
|
||||||
Patch0: avahi-0.6.31-gtk-3.12.patch
|
Patch0: avahi-0.6.31-gtk-3.12.patch
|
||||||
|
Patch1: avahi-0.6.31-SO_REUSEPORT_may_not_exist_in_running_kernel.patch
|
||||||
License: LGPL
|
License: LGPL
|
||||||
## AUTOBUILDREQ-BEGIN
|
## AUTOBUILDREQ-BEGIN
|
||||||
BuildRequires: glibc-devel
|
BuildRequires: glibc-devel
|
||||||
@ -245,6 +246,7 @@ Header files for development with the Apple Bonjour mDNSResponder compatibility
|
|||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
|
%patch1 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure \
|
%configure \
|
||||||
@ -556,6 +558,9 @@ fi
|
|||||||
%{_libdir}/pkgconfig/libdns_sd.pc
|
%{_libdir}/pkgconfig/libdns_sd.pc
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Dec 05 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 0.6.31-9mamba
|
||||||
|
- added patch to work with older kernel (e.g. 3.4) which don't have SO_REUSEADDR
|
||||||
|
|
||||||
* Sat Nov 15 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 0.6.31-8mamba
|
* Sat Nov 15 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 0.6.31-8mamba
|
||||||
- removed sysv5 initscripts
|
- removed sysv5 initscripts
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user