[ZBXNEXT-4922] Consider to move to pcre2 or provide option to build zabbix binaries using pcre2 Created: 2018 Dec 17  Updated: 2024 Apr 10  Resolved: 2022 Jan 25

Status: Closed
Project: ZABBIX FEATURE REQUESTS
Component/s: Agent (G), Proxy (P), Server (S)
Affects Version/s: None
Fix Version/s: 6.0.0beta2, 6.0 (plan)

Type: Change Request Priority: Major
Reporter: Tomasz Kłoczko Assignee: Jurijs Klopovskis
Resolution: Fixed Votes: 2
Labels: pcre, regexps
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Causes
causes ZBX-20453 Agent2 compilation broken on macOS Closed
causes ZBX-20436 Agent 2 compilation issue when using ... Closed
Team: Team B
Team: Team B
Sprint: Sprint 82 (Nov 2021), Sprint 83 (Dec 2021), Sprint 84 (Jan 2022)
Story Points: 2

 Description   

Recently php moved from pcre to pcre2.

https://wiki.php.net/rfc/pcre2-migration

Seems like it is some potential to improve speed of doing regex evaluation.

Just in case wget code can be used as another example how to move to pcre2 or at lease provide on source code configuration option to choose uing pcre2



 Comments   
Comment by Oleksii Zagorskyi [ 2019 Jan 09 ]

Take into account one more possible reason - ZBX-15428

Comment by Dmitry Smirnov [ 2021 Nov 19 ]

As reported in https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=999920 pcre3 library is obsolete.

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.

[0] Historical reasons mean that old PCRE is packaged as
pcre3 in Debian 

Please consider transition to pcre2 ASAP. Thanks.

Currently Zabbix 5 FTBFS when attempted to build against `libpcre2-dev` in Debian.

Comment by Alexei Vladishev [ 2021 Nov 19 ]

onlyjob , we are working on this. Please expect more updates here soon.

Comment by Jurijs Klopovskis [ 2021 Dec 17 ]

Available in:

Documentation updated:

Generated at Fri Apr 19 22:40:56 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.