apache and pcre
Lukasz Dobrek
dobrek at dobrek.de
Sun Dec 5 18:31:08 CET 2004
Hallo:
According to this bug report:
http://issues.apache.org/bugzilla/show_bug.cgi?id=27550
there exist a problem of apache linking itself with internal pcre
instead off with external one. This would not be a problem if
the symbols of this internal pcre ( version 3.9) weren't exported.
This renders unusable all modules which require pcre in newer version,
in case of my particular interest it is mod_caml.
The following patch on apache.spec adds bcond (with_external_pcre )
to pld spec which when turned on applies the following minimally
modified patch:
http://issues.apache.org/bugzilla/attachment.cgi?id=13377
Both patch on apache.spec and patch which shall be put to
SOURCES are attached to this letter.
What do you thing about it? Is it sense full? I did it because
I wanted to play with mod_caml but I am very definitely not
an apache expert so it is more than probable that all of it is
bullshit.
Nice evening
Lukasz Dobrek
-------------- next part --------------
--- apache.spec 2004-12-05 17:58:55.228222000 +0100
+++ apache.spec-pcre 2004-12-05 17:58:21.645327376 +0100
@@ -19,6 +19,8 @@
# 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 look at http://issues.apache.org/bugzilla/show_bug.cgi?id=27550
+ # includes patch26.
#
%include /usr/lib/rpm/macros.perl
# this is internal macro, don't change to %%apache_modules_api
@@ -87,6 +89,8 @@
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
@@ -695,6 +699,7 @@
%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 at BUILD_SUBDIRS.*@BUILD_SUBDIRS =@g" srclib/Makefile.in
@@ -781,7 +786,8 @@
--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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: apache2-pcre-patch.diff
Type: text/x-patch
Size: 14943 bytes
Desc: not available
Url : /mailman/pipermail/pld-devel-en/attachments/20041205/6783a472/apache2-pcre-patch-0002.bin
More information about the pld-devel-en
mailing list