Bug 245173 - misc/broot: Update to 0.13.5b
Summary: misc/broot: Update to 0.13.5b
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: Tobias Kortkamp
URL: https://github.com/Canop/broot/releas...
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-29 19:46 UTC by Lewis Cook
Modified: 2020-03-31 19:14 UTC (History)
0 users

See Also:


Attachments
broot-0.13.5.diff (1.38 KB, patch)
2020-03-29 19:46 UTC, Lewis Cook
lcook: maintainer-approval+
Details | Diff
broot-0.13.5.log (139.83 KB, text/plain)
2020-03-29 19:47 UTC, Lewis Cook
no flags Details
broot-0.13.5b.diff (3.29 KB, patch)
2020-03-31 17:29 UTC, Lewis Cook
lcook: maintainer-approval+
Details | Diff
broot-0.13.5b.diff (142.93 KB, text/plain)
2020-03-31 17:30 UTC, Lewis Cook
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lewis Cook freebsd_committer freebsd_triage 2020-03-29 19:46:48 UTC
Created attachment 212844 [details]
broot-0.13.5.diff

Changes:
	* Bump DISTVERSION to 0.13.5 and update distinfo.

Testing:
	* No errors reported with portlint, built in Poudriere and
	  application works as expected (logs attached).
Comment 1 Lewis Cook freebsd_committer freebsd_triage 2020-03-29 19:47:28 UTC
Created attachment 212845 [details]
broot-0.13.5.log

* Poudriere build log.
Comment 2 Tobias Kortkamp freebsd_committer freebsd_triage 2020-03-30 08:23:53 UTC
Comment on attachment 212845 [details]
broot-0.13.5.log

====> Running Q/A tests (stage-qa)
Error: /usr/local/bin/broot is linked to /usr/local/lib/libgit2.so.28 from devel/libgit2 but it is not declared as a dependency
Warning: you need LIB_DEPENDS+=libgit2.so:devel/libgit2

The release notes mention a new man page.  Maybe install it too.
Comment 3 Tobias Kortkamp freebsd_committer freebsd_triage 2020-03-30 08:26:46 UTC
It would probably be best to test this with the latest lang/rust and
devel/libgit2.
Comment 4 Tobias Kortkamp freebsd_committer freebsd_triage 2020-03-30 08:29:00 UTC
It seems they have rerolled the release: https://github.com/Canop/broot/releases/tag/v0.13.5b
Comment 5 Lewis Cook freebsd_committer freebsd_triage 2020-03-30 17:13:51 UTC
(In reply to Tobias Kortkamp from comment #2)

Thanks for the informative response.

Addressing the warning of libgit2, it's mentioned in the crate that 'the source for libgit2 is included in the libgit2-sys crate so there's no need to pre-install the libgit2 library' [1]. Considering what you've said, granted the option between the included source or natively installed library I'm assuming the latter is preferred for rust applications? I erroneously glanced over the stage-qa message giving priority to the source included via libgit2-sys in this instance.

I'll get round to building both lang/rust and devel/libgit2 in Poudriere to the latest. If there's anything else worth mentioning, I'm more than happy to make the appropriate changes. :)

Cheers!

[1] https://github.com/rust-lang/git2-rs#version-of-libgit2
Comment 6 Tobias Kortkamp freebsd_committer freebsd_triage 2020-03-30 18:03:05 UTC
I think the warning is pretty clear and a no-brainer to address.
The stage-qa warning is not for nothing.  Currently the broot package
is actually broken if you do not have libgit2 installed too (and
installing it is not automatic because the dependency is missing):

Shared object "libgit2.so.0.99" not found, required by "broot"

It is best to not overthink it when you see these kinds of stage-qa
warnings and suggestions.

We prefer system libraries over bundled ones and cargo.mk enforces
this in a couple of cases by exporting the appropriate environment
variables.  Many of *-sys crates offer these kind of knobs.
Comment 7 Lewis Cook freebsd_committer freebsd_triage 2020-03-30 19:01:15 UTC
(In reply to Tobias Kortkamp from comment #6)

Great clarification. I shall take this into account and apply where needed. Once again thanks for your time, understanding and pushing me in the right direction—currently rebuilding rust so unsure when I may get back with a patch, knowing my setup it could be a number of hours. Stay safe!
Comment 8 Lewis Cook freebsd_committer freebsd_triage 2020-03-31 17:29:24 UTC
Created attachment 212903 [details]
broot-0.13.5b.diff

* Remove 'DISTVERSION/PREFIX' and use 'PORTVERSION' instead for the version naming;
* Add libgit2 lib dependency via 'LIB_DEPENDS';
* Bump 'CARGO_CRATES' dependencies and update distinfo;
* Amend 'PLIST_FILES' to included manpage and include pre-build target for replacing appropriate date/version in the manpage. Account for in post-install too.
Comment 9 Lewis Cook freebsd_committer freebsd_triage 2020-03-31 17:30:42 UTC
Created attachment 212904 [details]
broot-0.13.5b.diff

* Poudriere build log with latest lang/rust and devel/libgit2.
Comment 10 Tobias Kortkamp freebsd_committer freebsd_triage 2020-03-31 19:13:37 UTC
Committed without GH_TAGNAME. Thanks.
Comment 11 commit-hook freebsd_committer freebsd_triage 2020-03-31 19:14:01 UTC
A commit references this bug:

Author: tobik
Date: Tue Mar 31 19:13:29 UTC 2020
New revision: 530005
URL: https://svnweb.freebsd.org/changeset/ports/530005

Log:
  misc/broot: Update to 0.13.5b

  - Install new manual
  - Add missing libgit2 dependency

  Changes:	https://github.com/Canop/broot/releases/tag/v0.13.5b
  PR:		245173
  Submitted by:	Lewis Cook <vulcan@wired.sh> (maintainer)

Changes:
  head/misc/broot/Makefile
  head/misc/broot/distinfo