Bug 280708 - devel/git-repo-manager: Fails to build with libgit2 1.8.1
Summary: devel/git-repo-manager: Fails to build with libgit2 1.8.1
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: Yuri Victorovich
URL:
Keywords:
Depends on:
Blocks: 280685
  Show dependency treegraph
 
Reported: 2024-08-09 14:55 UTC by Nuno Teixeira
Modified: 2024-08-10 11:43 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (yuri)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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(+)