Control: tags -1 + patch sid trixie
Please find attached a patch which I admit I could not test properly.
This package is fairly specialized and I'm absolutely unfamiliar with
it. It requires some extra knowledge and right configuration in order
to expose the functionality that has to be tested. Also, some of the
affected plugins fail to load due to #1020989.
The testsuite passes, and the server runs and loads some of the
pcre-based global plugins. I also tested loading of the remap plugins
with a hack to workaround #1020989 (I'll follow-up there with more
details).
Description: Port to PCRE2.
Bug-Debian:
https://bugs.debian.org/bug=999938
Bug:
https://github.com/apache/trafficserver/issues/8780
Author: Yavor Doganov <
yavor@gnu.org>
Forwarded: no
Last-Update: 2023-12-29
---
--- trafficserver-9.2.3+ds.orig/build/pcre.m4
+++ trafficserver-9.2.3+ds/build/pcre.m4
@@ -45,12 +45,12 @@
fi
],
[
- AC_CHECK_PROG(PCRE_CONFIG, pcre-config, pcre-config)
+ AC_CHECK_PROG(PCRE_CONFIG, pcre2-config, pcre2-config)
if test "x$PCRE_CONFIG" != "x"; then
enable_pcre=yes
pcre_base_dir="`$PCRE_CONFIG --prefix`"
pcre_include="`$PCRE_CONFIG --cflags | sed -es/-I//`"
- pcre_ldflags="`$PCRE_CONFIG --libs | sed -es/-lpcre// -es/-L//`"
+ pcre_ldflags="`$PCRE_CONFIG --libs8 | sed -es/-lpcre2-8// -es/-L//`"
fi
])
@@ -58,7 +58,7 @@
AC_MSG_CHECKING([for pcre location])
AC_CACHE_VAL(ats_cv_pcre_dir,[
for dir in /usr/local /usr ; do
- if test -d $dir && ( test -f $dir/include/pcre.h || test -f $dir/include/pcre/pcre.h ); then
+ if test -d $dir && ( test -f $dir/include/pcre2.h ); then
ats_cv_pcre_dir=$dir
break
fi
@@ -76,7 +76,7 @@
fi
else
AC_MSG_CHECKING(for pcre headers in $pcre_include)
- if test -