]> git.pld-linux.org Git - packages/unbound.git/commitdiff
Fix crash on compile/runtime kernel version mismatch
authorJacek Konieczny <j.konieczny@eggsoft.pl>
Thu, 18 Dec 2014 09:48:40 +0000 (10:48 +0100)
committerJacek Konieczny <j.konieczny@eggsoft.pl>
Thu, 18 Dec 2014 09:48:40 +0000 (10:48 +0100)
When unbound was built with linux-libc-headers-3.17 and run under kernel
3.14 it would fail with 'error: setsockopt(..., IP_MTU_DISCOVER,
IP_PMTUDISC_OMIT...) failed: Invalid argument'

Patch added to try IP_PMTUDISC_DONT when IP_PMTUDISC_OMIT fails.

https://www.nlnetlabs.nl/bugs-script/show_bug.cgi?id=634

unbound.spec

index c77bdbec46495cebc8f71bfb3645cfe4a9538689..54115ba7525e6aa5d9b66fa20466bd8e8ea18973 100644 (file)
@@ -6,7 +6,7 @@ Summary:        Recursive, validating DNS resolver
 Summary(pl.UTF-8):     Rekurencyjny, weryfikujÄ…cy resolver DNS
 Name:          unbound
 Version:       1.5.1
-Release:       1
+Release:       2
 License:       BSD
 Group:         Applications/Network
 Source0:       http://www.unbound.net/downloads/%{name}-%{version}.tar.gz
@@ -18,6 +18,7 @@ Source3:      https://data.iana.org/root-anchors/icannbundle.pem
 Source4:       ftp://ftp.internic.net/domain/named.cache
 # Source4-md5: 89241448b08af70dd5715e7ef12d71f6
 Patch0:                %{name}-default_trust_anchor.patch
+Patch1:                %{name}-IP_PMTUDISC_OMIT.patch
 URL:           http://unbound.net/
 BuildRequires: expat-devel
 BuildRequires: libevent-devel
@@ -114,6 +115,7 @@ Pythonowy interfejs do biblioteki unbound.
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
 %build
 %configure \
This page took 0.218602 seconds and 4 git commands to generate.