From: Jacek Konieczny Date: Thu, 18 Dec 2014 09:48:40 +0000 (+0100) Subject: Fix crash on compile/runtime kernel version mismatch X-Git-Tag: auto/th/unbound-1.5.1-2~1 X-Git-Url: https://git.pld-linux.org/?p=packages%2Funbound.git;a=commitdiff_plain;h=7371929d9131b878fa38e0508ad7fcea3ba3df1c Fix crash on compile/runtime kernel version mismatch 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 --- diff --git a/unbound.spec b/unbound.spec index c77bdbe..54115ba 100644 --- a/unbound.spec +++ b/unbound.spec @@ -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 \