Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1938979 - Move zsh from PCRE to PCRE2
Summary: Move zsh from PCRE to PCRE2
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: zsh
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukáš Zaoral
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 2128401 (view as bug list)
Depends On:
Blocks: 2127507
TreeView+ depends on / blocked
 
Reported: 2021-03-15 11:59 UTC by Petr Pisar
Modified: 2023-08-21 08:09 UTC (History)
7 users (show)

Fixed In Version: zsh-5.9-9.fc40
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-08-21 08:09:39 UTC
Type: Feature Request
Embargoed:


Attachments (Terms of Use)

Description Petr Pisar 2021-03-15 11:59:30 UTC
This is a kindly hint that zsh-0:5.8-4.fc34 still uses PCRE library which has been superseded with PCRE2 project by PCRE upstream in 2015. PCRE upstream considers PCRE obsolete now and does not devote any resources to PCRE except of critical bugs. Please consider porting zsh from PCRE to PCRE2.

Comment 1 Kamil Dudka 2021-03-24 15:39:22 UTC
The dependency was introduced with the following commit (bug #1438009):

    https://src.fedoraproject.org/rpms/zsh/c/3174c77c

I do not have free capacity to handle the migration myself.

Jason, what is your take on this?

Comment 2 Jason Tibbitts 2021-03-24 16:35:13 UTC
It would have been nice had I included a bug reference in the changelog.  But for the record, these modules were requested here: https://bugzilla.redhat.com/show_bug.cgi?id=1438009

Will have to see what other distros are doing.  Worst case, we just drop the module, but the primary issue is that at least in 2017 some shipped completions (particularly systemd) actually used pcre and tab completion would spew errors if it was missing.  I'm not sure if that's currently the case, though.

Comment 3 Jason Tibbitts 2021-03-24 16:41:29 UTC
A quick look at Debian and Arch indicates that they have not moved away from using the old pcre library.

Since the software is still maintained upstream (as the report here says they are still fixing critical bugs) I don't see any pressing need to remove functionality, though upstream should of course be encouraged to port to the new library.  I personally have no idea how much effort is involved in porting from one library to the other.

Comment 4 Kamil Dudka 2022-09-26 06:41:16 UTC
*** Bug 2128401 has been marked as a duplicate of this bug. ***

Comment 5 Fedora Admin user for bugzilla script actions 2023-01-31 12:37:23 UTC
This package has changed maintainer in Fedora. Reassigning to the new maintainer of this component.

Comment 6 Lukas Javorsky 2023-06-01 08:17:41 UTC
Hi, do you have any update on this?

Comment 7 Lukáš Zaoral 2023-06-01 15:30:13 UTC
Hello,
I'm waiting for a new upstream release now.  The pcre module was migrated to pcre2 last month with this upstream commit: https://sourceforge.net/p/zsh/code/ci/b62e911341c8ec7446378b477c47da4256053dc0/

Regards,
Lukas

Comment 8 Fedora Update System 2023-08-21 08:06:59 UTC
FEDORA-2023-c816f07823 has been submitted as an update to Fedora 40. https://bodhi.fedoraproject.org/updates/FEDORA-2023-c816f07823

Comment 9 Fedora Update System 2023-08-21 08:09:39 UTC
FEDORA-2023-c816f07823 has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.