Bug 280708

Summary: devel/git-repo-manager: Fails to build with libgit2 1.8.1
Product: Ports & Packages Reporter: Nuno Teixeira <eduardo>
Component: Individual Port(s)Assignee: Yuri Victorovich <yuri>
Status: Closed FIXED    
Severity: Affects Only Me CC: eduardo
Priority: --- Flags: bugzilla: maintainer-feedback? (yuri)
Version: Latest   
Hardware: Any   
OS: Any   
Bug Depends on:    
Bug Blocks: 280685    

Description Nuno Teixeira freebsd_committer freebsd_triage 2024-08-09 14:55:26 UTC
Hello,

warning: libgit2-sys@0.16.2+1.7.2: libgit2/src/libgit2/transports/smart_pkt.c:329:26: warning: implicit truncation from 'int' to a one-bit wide bit-field changes value from 1 to -1 [-Wsingle-bit-bitfield-constant-conversion]
warning: libgit2-sys@0.16.2+1.7.2:   329 |         data->seen_capabilities = 1;
warning: libgit2-sys@0.16.2+1.7.2:       |                                 ^ ~
warning: libgit2-sys@0.16.2+1.7.2: libgit2/src/libgit2/transports/ssh.c:11:10: fatal error: 'libssh2.h' file not found
warning: libgit2-sys@0.16.2+1.7.2:    11 | #include <libssh2.h>
warning: libgit2-sys@0.16.2+1.7.2:       |          ^~~~~~~~~~~
warning: libgit2-sys@0.16.2+1.7.2: 1 error generated.

log: https://people.freebsd.org/~eduardo/exp-run/libgit2-181/errors/git-repo-manager-0.7.16_2.log

exp-run: https://people.freebsd.org/~eduardo/exp-run/libgit2-181/

Any help is welcome.
Comment 1 commit-hook freebsd_committer freebsd_triage 2024-08-10 11:43:02 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=7f05ce8c311700dfeaa8799654e25b8e63ddfbe7

commit 7f05ce8c311700dfeaa8799654e25b8e63ddfbe7
Author:     Nuno Teixeira <eduardo@FreeBSD.org>
AuthorDate: 2024-08-10 11:32:38 +0000
Commit:     Nuno Teixeira <eduardo@FreeBSD.org>
CommitDate: 2024-08-10 11:42:31 +0000

    devel/git-repo-manager: Unbreak build with libgit2 1.8.1

    PR:             280708
    Approved by:    portmgr (blanket, build fix)

 devel/git-repo-manager/files/patch-libgit2-1.8.x (new) | 13 +++++++++++++
 1 file changed, 13 insertions(+)