Bug 263935

Summary: devel/pcre2: enable compression support in pcre2grep
Product: Ports & Packages Reporter: David Siebörger <drs-freebsd>
Component: Individual Port(s)Assignee: Kirill Ponomarev <krion>
Status: Closed FIXED    
Severity: Affects Only Me Flags: bugzilla: maintainer-feedback? (krion)
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
patch to enable compression support in pcre2grep none

Description David Siebörger 2022-05-12 09:33:42 UTC
Created attachment 233867 [details]
patch to enable compression support in pcre2grep

pcre2grep can automatically decompress gzip/bzip2-compressed files, but only if  configure was run with the --enable-pcre2grep-libz and --enable-pcre2grep-libbz2 options.  Doing so would add functionality and, since libz and libbz2 are already in base, would not add any dependencies to the port.

I've attached a trivial patch to add those options to CONFIGURE_ARGS.  I've tested and it's working for me on 12.3-RELEASE and 13.0-RELEASE.

All of the above applies to pcregrep in devel/pcre, too, except that the options in question are --enable-pcregrep-libz and --enable-pcregrep-libbz2 (obviously).
Comment 1 commit-hook freebsd_committer freebsd_triage 2022-05-12 18:22:37 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=7de2d9ab3d9a54300b874077cf96f57912247b64

commit 7de2d9ab3d9a54300b874077cf96f57912247b64
Author:     Kirill Ponomarev <krion@FreeBSD.org>
AuthorDate: 2022-05-12 18:20:07 +0000
Commit:     Kirill Ponomarev <krion@FreeBSD.org>
CommitDate: 2022-05-12 18:20:07 +0000

    devel/pcre2: enable compression support for pcre2grep

    PR:             263935
    Reported by:    David Siebörger <drs-freebsd@sieborger__dot__nom__dot__za>

 devel/pcre2/Makefile | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)