Bug 267957 - net-mgmt/zabbix6-server: add option to select between PCRE1 and PCRE2
Summary: net-mgmt/zabbix6-server: add option to select between PCRE1 and PCRE2
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Juraj Lutter
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-11-24 08:24 UTC by Michael Osipov
Modified: 2022-11-27 21:53 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (otis)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Osipov 2022-11-24 08:24:35 UTC
PCRE(1) has been deprecated for quite some time now and superseded by PCRE2. All users are advised to switch to it.

http://pcre.org/ says:
======================
There are two major versions of the PCRE library. The current version, PCRE2, released in 2015, is now at version 10.39.

The older, but still widely deployed PCRE library, originally released in 1997, is at version 8.45. This version of PCRE is now at end of life, and is no longer being actively maintained. Version 8.45 is expected to be the final release of the older PCRE library, and new projects should use PCRE2 instead.
======================

Proposal: Add option to choose between PCRE1 and PCRE2. According to the Zabbix Upgrade Guide not all regex statements might be compatible. Future Zabbix 6.x should only use PCRE2. Current (6.0.x, not 6.2.x because it is shortlived) might migrate somewhere in the future.

See:
* https://support.zabbix.com/browse/ZBXNEXT-4922
* https://www.zabbix.com/documentation/6.0/en/manual/installation/upgrade_notes_600#pcre2-support
Comment 1 Michael Osipov 2022-11-24 08:24:59 UTC
This actually applies to agentd and proxy likely as well since the Makefile is shared.
Comment 2 commit-hook freebsd_committer 2022-11-27 21:32:17 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=0715efc3ee3d45c75f2c1ae3d451f557b49553ab

commit 0715efc3ee3d45c75f2c1ae3d451f557b49553ab
Author:     Juraj Lutter <otis@FreeBSD.org>
AuthorDate: 2022-11-27 21:25:23 +0000
Commit:     Juraj Lutter <otis@FreeBSD.org>
CommitDate: 2022-11-27 21:31:17 +0000

    net-mgmt/zabbix62-server: Add PCRE2 support

    - Add pcre2 support, making it the default (bumping PORTREVISION)
    - Small Makefile tweaks (no functional changes intended)

    Suggested by:   Michael Osipov <michael.osipov@siemens.com>
    PR:             267957

 net-mgmt/zabbix62-server/Makefile  | 85 ++++++++++++++++++++------------------
 net-mgmt/zabbix62-server/pkg-plist |  2 +
 2 files changed, 47 insertions(+), 40 deletions(-)
Comment 3 commit-hook freebsd_committer 2022-11-27 21:32:19 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=13d643f5d19762157ecd93e4c82712d73679db8d

commit 13d643f5d19762157ecd93e4c82712d73679db8d
Author:     Juraj Lutter <otis@FreeBSD.org>
AuthorDate: 2022-11-27 21:16:11 +0000
Commit:     Juraj Lutter <otis@FreeBSD.org>
CommitDate: 2022-11-27 21:31:17 +0000

    net-mgmt/zabbix6-server: Add PCRE2 support

    - Add pcre2 support, making it the default (bumping PORTREVISION)
    - Small Makefile tweaks (no functional changes intended)

    Suggested by:   Michael Osipov <michael.osipov@siemens.com>
    PR:             267957

 net-mgmt/zabbix6-server/Makefile  | 89 +++++++++++++++++++++------------------
 net-mgmt/zabbix6-server/pkg-plist |  2 +
 2 files changed, 49 insertions(+), 42 deletions(-)
Comment 4 Juraj Lutter freebsd_committer 2022-11-27 21:53:22 UTC
Committed, thanks.