From 6d9549ea156dbf0a976ac17cd798270e131b4260 Mon Sep 17 00:00:00 2001 From: radek Date: Sun, 5 Dec 2004 20:26:28 +0000 Subject: [PATCH] - added --with external_pcre on behalf of dobrek; fix for Apache bug #27550 Changed files: apache.spec -> 1.362 --- apache.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/apache.spec b/apache.spec index 69e3879..48f4b82 100644 --- a/apache.spec +++ b/apache.spec @@ -18,6 +18,7 @@ # Conditional build: %bcond_without ssl # build without SSL support %bcond_without ldap # build without LDAP support +%bcond_with external_pcre # build with external PCRE support (Apache bug #27550) # %include /usr/lib/rpm/macros.perl # this is internal macro, don't change to %%apache_modules_api @@ -86,6 +87,8 @@ Patch22: httpd-2.0.50-peruser-r3.patch Patch23: %{name}-apr1.patch Patch24: %{name}-normalize-path.patch Patch25: %{name}-CAN-2004-0942.patch +# http://issues.apache.org/bugzilla/attachment.cgi?id=13377 external pcre +Patch26: %{name}2-pcre-patch.diff URL: http://httpd.apache.org/ BuildRequires: automake BuildRequires: apr-devel >= 1:1.0.0 @@ -97,6 +100,7 @@ BuildRequires: libtool >= 2:1.5 %{?with_ldap:BuildRequires: openldap-devel} %{?with_ssl:BuildRequires: openssl-devel >= 0.9.7d} %{?with_ssl:BuildRequires: openssl-tools >= 0.9.7d} +%{?with_external_pcre:BuildRequires: pcre-devel} BuildRequires: perl-devel >= 1:5.6 BuildRequires: rpm-perlprov >= 4.1-13 BuildRequires: rpmbuild(macros) >= 1.159 @@ -694,6 +698,7 @@ Modu %patch23 -p1 %patch24 -p1 %patch25 -p1 +%{?with_external_pcre:%patch26 -p2} %{__perl} -pi -e "s@/usr/local/bin/perl@%{__perl}@" $(grep -rl "/usr/local/bin/perl" *) %{__perl} -pi -e "s@BUILD_SUBDIRS.*@BUILD_SUBDIRS =@g" srclib/Makefile.in @@ -780,7 +785,8 @@ install -d "buildmpm-${mpm}"; cd "buildmpm-${mpm}" --with-suexec-gidmin=500 \ --with-suexec-umask=077 \ --with-apr=%{_bindir}/apr-1-config \ - --with-apr-util=%{_bindir}/apu-1-config + --with-apr-util=%{_bindir}/apu-1-config \ + %{?_with_external_pcre:--with-external-pcre} %{__make} ./httpd.${mpm} -l | grep -v "${mpm}" > modules-inside -- 2.44.0