Bug 265722 - textproc/bat: Update to 0.21.0
Summary: textproc/bat: Update to 0.21.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: Luca Pizzamiglio
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-08-08 18:25 UTC by Adam Weinberger
Modified: 2022-08-20 15:30 UTC (History)
0 users

See Also:
pizzamig: maintainer-feedback+


Attachments
0.21.0 (22.50 KB, patch)
2022-08-08 18:25 UTC, Adam Weinberger
pizzamig: maintainer-approval-
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Weinberger freebsd_committer freebsd_triage 2022-08-08 18:25:36 UTC
Created attachment 235781 [details]
0.21.0

Attached patch updates bat to v0.21.0.

As far as I can tell, the libgit2 dependency is unused; bat builds and exclusively uses an internally-built libgit2. I've removed that dependency in this patch.
Comment 1 Luca Pizzamiglio freebsd_committer freebsd_triage 2022-08-13 19:13:43 UTC
Thanks for opening the PR.

I'm investigating the libgit stuff.
The libgit2-sys crate is configured by Uses/cargo.mk to use the installed libgit2 library, not the bundle one.

The wanted behavior is to use the shared library, not to compile an internal one.
Comment 2 Luca Pizzamiglio freebsd_committer freebsd_triage 2022-08-13 20:02:28 UTC
I've found the reason: libgit2 in ports is on the 1.3.x stable release path.
libgit2-sys needs libgit2 1.4 or 1.5

I'm reaching out to libgit2 maintainer to decide what to do next.
However, I would keep the libgit2 dependency as it is, waiting for a fix.
Comment 3 Luca Pizzamiglio freebsd_committer freebsd_triage 2022-08-13 20:03:15 UTC
Comment on attachment 235781 [details]
0.21.0

libgit2 is not used, but it should, so I would keep the dependency to make it explicit
Comment 4 Adam Weinberger freebsd_committer freebsd_triage 2022-08-13 22:25:10 UTC
(In reply to Luca Pizzamiglio from comment #3)

OK, other than adding in libgit2 and bumping PORTREVISION when libgit2 is updated, is the patch ready for commit?
Comment 5 Luca Pizzamiglio freebsd_committer freebsd_triage 2022-08-19 13:52:45 UTC
yes, the patch is good to land
Comment 6 Adam Weinberger freebsd_committer freebsd_triage 2022-08-20 15:30:08 UTC
Well, in my brilliance I forgot to include the PR in the commit. But, this is committed.

https://cgit.freebsd.org/ports/commit/?id=b6c5a286dc27f3cd2ddbe7d7653936bb7c847925

I'm closing out this PR. Thanks for the review, Luca!