apache-2.2.22_6 question
Olli Hauer
ohauer at FreeBSD.org
Thu Aug 30 18:17:06 UTC 2012
On 2012-08-30 19:40, Jason Helfman wrote:
> Hi,
>
> I was wondering what implications there are of building apache-2.2.22_6
> against pcre version of 8.02?
>
> I believe a patch addressed a deprecated function of pcre, however at the
> moment I am unable to update a snapshotted portstree to a current
> version, or even move to a newer tree.
>
> I don't know if it would build with that patch, or without the patch, and if
> that would be good, or not, and what implications there may be as a result.
>
> Many Thanks!
>
> -jgh
>
Hi Jason,
exact, the bump and patch was done because pcre removed a (long) deprecated function.
pcre-8.02 will full support the patch because the new api was in this version already
the default.
file pcre-8.02/pcreposix.c (around line 265)
--------------------------------------------
preg->re_nsub = pcre_info((const pcre *)preg->re_pcre, NULL, NULL);
return 0;
}
apache22/files/files/patch-server__util_pcre.c
----------------------------------------------
-preg->re_nsub = pcre_info((const pcre *)preg->re_pcre, NULL, NULL);
+pcre_fullinfo((const pcre *)preg->re_pcre, NULL,
+ PCRE_INFO_CAPTURECOUNT, &(preg->re_nsub));
--
Regards,
olli
More information about the freebsd-apache
mailing list