Bug 280711

Summary: devel/rubygem-rugged: Fails to build with libgit2 1.8.1
Product: Ports & Packages Reporter: Nuno Teixeira <eduardo>
Component: Individual Port(s)Assignee: Nuno Teixeira <eduardo>
Status: Closed FIXED    
Severity: Affects Only Me CC: eduardo
Priority: --- Flags: bugzilla: maintainer-feedback? (mfechner)
Version: Latest   
Hardware: Any   
OS: Any   
See Also: https://github.com/libgit2/rugged/issues/978
Bug Depends on:    
Bug Blocks: 280685    

Description Nuno Teixeira freebsd_committer freebsd_triage 2024-08-09 15:11:43 UTC
checking for gmake... no
checking for make... yes
Building Rugged using system libraries.
libgit2 version is not compatible, expected ~> 1.7.0

log: https://people.freebsd.org/~eduardo/exp-run/libgit2-181/errors/rubygem-rugged-1.7.2.log

exp-run: https://people.freebsd.org/~eduardo/exp-run/libgit2-181/
Comment 1 Nuno Teixeira freebsd_committer freebsd_triage 2024-10-19 10:43:21 UTC
Use patch to remove broken libgit2 detection:
https://gitlab.archlinux.org/archlinux/packaging/packages/ruby-rugged/-/blob/main/ruby-rugged-1.6.2-remove_broken_libgit2_detection.patch?ref_type=heads

doing poudriere testports...
Comment 2 commit-hook freebsd_committer freebsd_triage 2024-10-19 11:09:46 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=782c642c8a10cdaeff59df09f00990e76d0392d5

commit 782c642c8a10cdaeff59df09f00990e76d0392d5
Author:     Nuno Teixeira <eduardo@FreeBSD.org>
AuthorDate: 2024-10-19 11:08:21 +0000
Commit:     Nuno Teixeira <eduardo@FreeBSD.org>
CommitDate: 2024-10-19 11:09:23 +0000

    devel/rubygem-rugged: Unbreak with libgit2 1.8.1

    Remove broken libgit2 detection

    PR:             280711

 .../files/patch-ext_rugged_extconf.rb (new)        | 37 ++++++++++++++++++++++
 1 file changed, 37 insertions(+)