Accepting request 203103 from server:http

Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/203103
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/varnish?expand=0&rev=11
This commit is contained in:
Tomáš Chvátal 2013-10-14 07:32:42 +00:00 committed by Git OBS Bridge
commit 668c7351b3
3 changed files with 36 additions and 3 deletions

View File

@ -0,0 +1,27 @@
From: Piotr Jankowski <piotr.jankowski@nsn.com>
Date: 2013-09-10 10:55:57 CEST
References: http://bugzilla.novell.com/show_bug.cgi?id=839358
References: https://www.varnish-cache.org/trac/ticket/1191
"The JIT compiler is broken on some versions of PCRE, at least on
i386, so disable it by default."
---
lib/libvarnish/vre.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
Index: varnish-3.0.3/lib/libvarnish/vre.c
===================================================================
--- varnish-3.0.3.orig/lib/libvarnish/vre.c
+++ varnish-3.0.3/lib/libvarnish/vre.c
@@ -40,9 +40,8 @@ struct vre {
pcre_extra *re_extra;
};
-#ifndef PCRE_STUDY_JIT_COMPILE
+#undef PCRE_STUDY_JIT_COMPILE
#define PCRE_STUDY_JIT_COMPILE 0
-#endif
/*
* We don't want to spread or even expose the majority of PCRE options

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Oct 4 21:48:01 UTC 2013 - jengelh@inai.de
- Deactivate libpcre JIT (bnc#839358), add varnish-disable-pcrejit.diff
------------------------------------------------------------------- -------------------------------------------------------------------
Sun Sep 23 21:30:35 UTC 2012 - nmo.marques@gmail.com Sun Sep 23 21:30:35 UTC 2012 - nmo.marques@gmail.com

View File

@ -33,6 +33,7 @@ Source5: varnish.logrotate
Source6: varnishlog.init Source6: varnishlog.init
Source7: varnish.service Source7: varnish.service
Source8: varnishlog.service Source8: varnishlog.service
Patch1: varnish-disable-pcrejit.diff
BuildRoot: %_tmppath/%name-%version-build BuildRoot: %_tmppath/%name-%version-build
BuildRequires: libxslt, ncurses-devel, pcre-devel BuildRequires: libxslt, ncurses-devel, pcre-devel
@ -95,11 +96,11 @@ This package holds the development files for varnish.
%prep %prep
%setup -q %setup -q
%patch -P 1 -p1
%build %build
%if 0%{?suse_version} > 1000 # bnc#839358: Force-deactivate JIT
export CFLAGS="%optflags -fstack-protector" export CFLAGS="%optflags -fstack-protector -DPCRE_STUDY_JIT_COMPILE=0"
%endif
%configure --disable-static \ %configure --disable-static \
--localstatedir=%_localstatedir/cache/ \ --localstatedir=%_localstatedir/cache/ \
--enable-developer-warnings --enable-developer-warnings