Bug#1000114: apache2: depends on obsolete pcre3 library
On 28/12/2021 19:40, Yadd wrote: On 28/12/2021 08:25, Sebastiaan Couwenberg wrote: On Sun, 21 Nov 2021 17:17:32 + Matthew Vernon wrote: On 19/11/2021 21:46, Yadd wrote: > Sadly pcre2 does not provide /usr/bin/pcre-config, I'm unable to do this > change Well, there is pcre2-config, but that's a little beside the point - pcre2 is not a drop-in replacement for pcre, so it is likely some code work will be required, probably by upstream. There is support for pcre2 on trunk: https://github.com/apache/httpd/blob/trunk/include/ap_regex.h https://github.com/apache/httpd/blob/trunk/server/util_pcre.c See also: https://helperbyte.com/questions/457338/how-to-make-pcre2-support-for-apache-24 Kind Regards, Bas Thanks, I still have a problem with this part of the patch @@ -115,7 +127,7 @@ AP_DECLARE(void) ap_regfree(ap_regex_t *preg) { - (pcre_free)(preg->re_pcre); + pcre2_code_free(preg->re_pcre); } I don't find any pcre2_code_free function, there are many pcre2*_free functions, which one is the good ? Found, was a LDPATH problem
Bug#1000114: apache2: depends on obsolete pcre3 library
On 28/12/2021 08:25, Sebastiaan Couwenberg wrote: On Sun, 21 Nov 2021 17:17:32 + Matthew Vernon wrote: On 19/11/2021 21:46, Yadd wrote: > Sadly pcre2 does not provide /usr/bin/pcre-config, I'm unable to do this > change Well, there is pcre2-config, but that's a little beside the point - pcre2 is not a drop-in replacement for pcre, so it is likely some code work will be required, probably by upstream. There is support for pcre2 on trunk: https://github.com/apache/httpd/blob/trunk/include/ap_regex.h https://github.com/apache/httpd/blob/trunk/server/util_pcre.c See also: https://helperbyte.com/questions/457338/how-to-make-pcre2-support-for-apache-24 Kind Regards, Bas Thanks, I still have a problem with this part of the patch @@ -115,7 +127,7 @@ AP_DECLARE(void) ap_regfree(ap_regex_t *preg) { -(pcre_free)(preg->re_pcre); +pcre2_code_free(preg->re_pcre); } I don't find any pcre2_code_free function, there are many pcre2*_free functions, which one is the good ?
Bug#1000114: apache2: depends on obsolete pcre3 library
On Sun, 21 Nov 2021 17:17:32 + Matthew Vernon wrote: On 19/11/2021 21:46, Yadd wrote: > Sadly pcre2 does not provide /usr/bin/pcre-config, I'm unable to do this > change Well, there is pcre2-config, but that's a little beside the point - pcre2 is not a drop-in replacement for pcre, so it is likely some code work will be required, probably by upstream. There is support for pcre2 on trunk: https://github.com/apache/httpd/blob/trunk/include/ap_regex.h https://github.com/apache/httpd/blob/trunk/server/util_pcre.c See also: https://helperbyte.com/questions/457338/how-to-make-pcre2-support-for-apache-24 Kind Regards, Bas -- GPG Key ID: 4096R/6750F10AE88D4AF1 Fingerprint: 8182 DE41 7056 408D 6146 50D1 6750 F10A E88D 4AF1
Bug#1000114: apache2: depends on obsolete pcre3 library
On 19/11/2021 21:46, Yadd wrote: Sadly pcre2 does not provide /usr/bin/pcre-config, I'm unable to do this change Well, there is pcre2-config, but that's a little beside the point - pcre2 is not a drop-in replacement for pcre, so it is likely some code work will be required, probably by upstream. Regards, Matthew
Processed: Re: Bug#1000114: apache2: depends on obsolete pcre3 library
Processing control commands: > tags -1 + moreinfo Bug #1000114 [src:apache2] apache2: depends on obsolete pcre3 library Added tag(s) moreinfo. -- 1000114: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1000114 Debian Bug Tracking System Contact ow...@bugs.debian.org with problems
Bug#1000114: apache2: depends on obsolete pcre3 library
Control: tags -1 + moreinfo Le 18/11/2021 à 12:49, Matthew Vernon a écrit : > Source: apache2 > Severity: important > User: matthew-pcre...@debian.org > Usertags: obsolete-pcre3 > > Dear maintainer, > > Your package still depends on the old, obsolete PCRE3[0] libraries > (i.e. libpcre3-dev). This has been end of life for a while now, and > upstream do not intend to fix any further bugs in it. Accordingly, I > would like to remove the pcre3 libraries from Debian, preferably in > time for the release of Bookworm. > > The newer PCRE2 library was first released in 2015, and has been in > Debian since stretch. Upstream's documentation for PCRE2 is available > here: https://pcre.org/current/doc/html/ > > Many large projects that use PCRE have made the switch now (e.g. git, > php); it does involve some work, but we are now at the stage where > PCRE3 should not be used, particularly if it might ever be exposed to > untrusted input. > > This mass bug filing was discussed on debian-devel@ in > https://lists.debian.org/debian-devel/2021/11/msg00176.html > > Regards, > > Matthew [0] Historical reasons mean that old PCRE is packaged as > pcre3 in Debian Sadly pcre2 does not provide /usr/bin/pcre-config, I'm unable to do this change
Bug#1000114: apache2: depends on obsolete pcre3 library
Source: apache2 Severity: important User: matthew-pcre...@debian.org Usertags: obsolete-pcre3 Dear maintainer, Your package still depends on the old, obsolete PCRE3[0] libraries (i.e. libpcre3-dev). This has been end of life for a while now, and upstream do not intend to fix any further bugs in it. Accordingly, I would like to remove the pcre3 libraries from Debian, preferably in time for the release of Bookworm. The newer PCRE2 library was first released in 2015, and has been in Debian since stretch. Upstream's documentation for PCRE2 is available here: https://pcre.org/current/doc/html/ Many large projects that use PCRE have made the switch now (e.g. git, php); it does involve some work, but we are now at the stage where PCRE3 should not be used, particularly if it might ever be exposed to untrusted input. This mass bug filing was discussed on debian-devel@ in https://lists.debian.org/debian-devel/2021/11/msg00176.html Regards, Matthew [0] Historical reasons mean that old PCRE is packaged as pcre3 in Debian