Bug 273635 - net/sngrep: update to 1.7.0
Summary: net/sngrep: update to 1.7.0
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: Robert Clausecker
URL: https://github.com/irontec/sngrep/rel...
Keywords:
Depends on:
Blocks:
 
Reported: 2023-09-08 09:55 UTC by Herbert J. Skuhra
Modified: 2023-10-04 20:06 UTC (History)
4 users (show)

See Also:
tad: maintainer-feedback+


Attachments
sngrep 1.7.0 (1.17 KB, patch)
2023-09-08 09:55 UTC, Herbert J. Skuhra
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Herbert J. Skuhra 2023-09-08 09:55:30 UTC
Created attachment 244709 [details]
sngrep 1.7.0

- Update net/sngrep to version 1.7.0.
- Add ZLIB support for gzip compressed pcap files (off by default)
Comment 1 Robert Clausecker freebsd_committer freebsd_triage 2023-09-08 14:26:47 UTC
Why is zlib support off by default?  We ship zlib in base, so it's always
available.  What benefit is there in turning it off?
Comment 2 Talal Al Dik 2023-09-08 15:47:43 UTC
thanks for the patch
Comment 3 Daniel Engberg freebsd_committer freebsd_triage 2023-09-08 17:17:50 UTC
Since zlib is in base why make it optional?
Comment 4 Herbert J. Skuhra 2023-09-09 06:55:16 UTC
(In reply to Daniel Engberg from comment #3)
Zlib support (reading compressed gzip compressed pcap files) was already added in 1.6.0. The PR 266369 (update 1.6.0) is obviously from you, right? It's also built without zlib support, because it's optional and off by default. If you think it's useful just turn it on. I've just added the missing option. I think PCRE2 support is more useful, but it is off too. :-)
Comment 5 Talal Al Dik 2023-10-03 20:27:37 UTC
what is blocking this commit?
Comment 6 Robert Clausecker freebsd_committer freebsd_triage 2023-10-03 20:30:05 UTC
(In reply to Talal Al Dik from comment #5)

A lack of conclusive answer to the zlib question.
Comment 7 Robert Clausecker freebsd_committer freebsd_triage 2023-10-03 20:32:57 UTC
If you don't mind, I'd just change the port to unconditionally enable ZLIB support as it's shipped in base and I don't see a reason to turn it off.  The only reason given was “well it was off before,” which is flimsy.  It was likely off before because it wasn't noticed that it was an option you had to turn on.

I can take care of the commit with my next batch once I have a definite response.
Comment 8 Talal Al Dik 2023-10-04 05:00:54 UTC
sounds good, this simplifies the port and makes the feature available.
Comment 9 commit-hook freebsd_committer freebsd_triage 2023-10-04 20:04:15 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=4c40691a18c5440981d3c9496c072dbc3d961f84

commit 4c40691a18c5440981d3c9496c072dbc3d961f84
Author:     Herbert J. Skuhra <herbert@gojira.at>
AuthorDate: 2023-10-04 16:58:38 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2023-10-04 20:01:39 +0000

    net/sngrep: update to 1.7.0

     - enable zlib support

    Changelog: https://github.com/irontec/sngrep/releases/tag/v1.7.0

    PR:             273635
    Approved by:    Talal Al Dik <tad@vif.com> (maintainer)

 net/sngrep/Makefile  | 3 ++-
 net/sngrep/distinfo  | 6 +++---
 net/sngrep/pkg-plist | 2 +-
 3 files changed, 6 insertions(+), 5 deletions(-)