Bug 263935 - devel/pcre2: enable compression support in pcre2grep
Summary: devel/pcre2: enable compression support in pcre2grep
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Kirill Ponomarev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-12 09:33 UTC by David Siebörger
Modified: 2022-05-12 18:30 UTC (History)
0 users

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


Attachments
patch to enable compression support in pcre2grep (400 bytes, patch)
2022-05-12 09:33 UTC, David Siebörger
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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 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(-)