From: Jan Rękorajski Date: Mon, 21 Dec 2015 18:48:02 +0000 (+0100) Subject: - sysctl is not needed on linux and breaks build on x32 X-Git-Tag: auto/th/varnish-3.0.5-3~1 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=1388570acd876829f8f3b001e60be7aac9b7fded;p=packages%2Fvarnish.git - sysctl is not needed on linux and breaks build on x32 - rel 3 --- diff --git a/no-sysctl.patch b/no-sysctl.patch new file mode 100644 index 0000000..68aa933 --- /dev/null +++ b/no-sysctl.patch @@ -0,0 +1,10 @@ +--- varnish-3.0.5/lib/libjemalloc/jemalloc_linux.c~ 2013-12-02 08:47:57.000000000 +0100 ++++ varnish-3.0.5/lib/libjemalloc/jemalloc_linux.c 2015-12-21 19:43:26.891965305 +0100 +@@ -177,7 +177,6 @@ + #include + #include + #include +-#include + #include + + #include diff --git a/varnish.spec b/varnish.spec index b0d621f..a8fa292 100644 --- a/varnish.spec +++ b/varnish.spec @@ -11,7 +11,7 @@ Summary: Varnish - a high-performance HTTP accelerator Summary(pl.UTF-8): Varnish - wydajny akcelerator HTTP Name: varnish Version: 3.0.5 -Release: 2 +Release: 3 License: BSD Group: Networking/Daemons/HTTP Source0: http://repo.varnish-cache.org/source/%{name}-%{version}.tar.gz @@ -24,6 +24,7 @@ Source6: %{name}.logrotate Source8: %{name}.tmpfiles #Patch100: branch.diff Patch0: no-ccache.patch +Patch1: no-sysctl.patch URL: http://www.varnish-cache.org/ BuildRequires: autoconf BuildRequires: automake @@ -113,6 +114,7 @@ Source code of Varnish for building VMODs. %setup -q #%patch100 -p0 %patch0 -p1 +%patch1 -p1 %{__sed} -i -e 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/' configure.ac #%{__sed} -i -e 's,$(srcdir)/,,' bin/varnishtest/Makefile.am