Bug 286627 - devel/cargo-c: bump PORTREVISION after libgit2 update
Summary: devel/cargo-c: bump PORTREVISION after libgit2 update
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Matthias Fechner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-05-06 13:26 UTC by John Hein
Modified: 2025-05-07 07:40 UTC (History)
2 users (show)

See Also:
jbeich: maintainer-feedback+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Hein 2025-05-06 13:26:10 UTC
Recently devel/libgit2 was updated (to 1.9.0).  With this update the .so file (that cargo-cbuild links with) changed from libgit2.so.1.8 to libgit2.so.1.9 which breaks run-time linking for cargo-cbuild

========
ldd /usr/local/bin/cargo-cbuild
/usr/local/bin/cargo-cbuild:
        libgit2.so.1.8 => not found (0)
        libssl.so.12 => /usr/local/lib/libssl.so.12 (0x242be1ad7000)
        libssh2.so.1 => /usr/local/lib/libssh2.so.1 (0x242be1f8f000)
        libz.so.6 => /lib/libz.so.6 (0x242be2dbd000)
        libcurl.so.4 => /usr/local/lib/libcurl.so.4 (0x242be4872000)
        libthr.so.3 => /lib/libthr.so.3 (0x242be4e52000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x242be5743000)
        libc.so.7 => /lib/libc.so.7 (0x242be714d000)
        libm.so.5 => /lib/libm.so.5 (0x242be5f9f000)
        libcrypto.so.12 => /usr/local/lib/libcrypto.so.12 (0x242be7692000)
        libnghttp2.so.14 => /usr/local/lib/libnghttp2.so.14 (0x242be6fc3000)
        libk5crypto.so.3.1 => /usr/local/lib/libk5crypto.so.3.1 (0x242be8d5d000)
        libcom_err.so.3.0 => /usr/local/lib/libcom_err.so.3.0 (0x242be86f6000)
        libzstd.so.1 => /usr/local/lib/libzstd.so.1 (0x242be97f0000)
        libkrb5.so.3.3 => /usr/local/lib/libkrb5.so.3.3 (0x242bea3c3000)
        libgssapi_krb5.so.2.2 => /usr/local/lib/libgssapi_krb5.so.2.2 (0x242beb8ee000)
        libkrb5support.so.0.1 => /usr/local/lib/libkrb5support.so.0.1 (0x242bea6c3000)
        libintl.so.8 => /usr/local/lib/libintl.so.8 (0x242beb408000)
        [vdso] (0x7ffffffff650)
========

Please bump PORTREVISION for devel/cargo-c
Comment 1 Vladimir Druzenko freebsd_committer freebsd_triage 2025-05-06 15:38:48 UTC
Same here, but I just rebuild devel/cargo-c manually.
Comment 2 Jan Beich freebsd_committer freebsd_triage 2025-05-06 17:08:58 UTC
poudriere detects such changes and rebuilds automatically, so you're probably using portmaster or manual build. Bumping PORTREVISION is fine (covered by portmgr blanket, anyway) but must[1] be done en masse for all libgit2 consumers.

I wonder if PLIST_SUB=SHLIB_VER=${DISTVERSION:R} makes it easy to miss .so.X -> .so.Y during an update.

[1] https://docs.freebsd.org/en/books/porters-handbook/makefiles/#makefile-portrevision
Comment 3 Matthias Fechner freebsd_committer freebsd_triage 2025-05-07 07:03:06 UTC
Sry for this, I will prepare a commit, that bumps all consumers of libgit2.
Comment 4 commit-hook freebsd_committer freebsd_triage 2025-05-07 07:29:25 UTC
A commit in branch main references this bug:

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

commit f22000995d61c9628eae9551dee049309e1b4e7a
Author:     Matthias Fechner <mfechner@FreeBSD.org>
AuthorDate: 2025-05-07 07:26:41 +0000
Commit:     Matthias Fechner <mfechner@FreeBSD.org>
CommitDate: 2025-05-07 07:28:26 +0000

    devel/libgit2: bump all consumers

    bump portrevision for all consumers due to libgit upgrade from
    1.8 to 1.9

    PR:             286627

 cad/horizon-eda/Makefile                  | 2 +-
 cad/kicad-devel/Makefile                  | 2 +-
 cad/kicad/Makefile                        | 2 +-
 deskutils/subsurface/Makefile             | 2 +-
 devel/R-cran-gert/Makefile                | 2 +-
 devel/R-cran-git2r/Makefile               | 2 +-
 devel/cargo-c/Makefile                    | 2 +-
 devel/cargo-generate/Makefile             | 2 +-
 devel/cargo-udeps/Makefile                | 1 +
 devel/criterion/Makefile                  | 2 +-
 devel/dura/Makefile                       | 2 +-
 devel/gbump/Makefile                      | 2 +-
 devel/geany-plugin-git-changebar/Makefile | 2 +-
 devel/geany-plugin-workbench/Makefile     | 2 +-
 devel/git-repo-manager/Makefile           | 2 +-
 devel/git-workspace/Makefile              | 2 +-
 devel/gitg/Makefile                       | 2 +-
 devel/gitui/Makefile                      | 2 +-
 devel/gnome-builder/Makefile              | 2 +-
 devel/interactive_rebase_tool/Makefile    | 2 +-
 devel/kf5-ktexteditor/Makefile            | 2 +-
 devel/kommit/Makefile                     | 1 +
 devel/sentry-cli/Makefile                 | 2 +-
 devel/spr/Makefile                        | 2 +-
 devel/tabby/Makefile                      | 2 +-
 devel/uv/Makefile                         | 1 +
 editors/amp/Makefile                      | 2 +-
 editors/calligra/Makefile                 | 2 +-
 editors/elementary-code/Makefile          | 1 +
 editors/gedit-plugins/Makefile            | 2 +-
 editors/jucipp/Makefile                   | 2 +-
 editors/lapce/Makefile                    | 2 +-
 editors/pluma-plugins/Makefile            | 2 +-
 emulators/es-de/Makefile                  | 1 +
 lang/julia/Makefile                       | 2 +-
 lang/pharo/Makefile                       | 1 +
 misc/broot/Makefile                       | 2 +-
 misc/tenere/Makefile                      | 2 +-
 sysutils/exa/Makefile                     | 2 +-
 sysutils/mise/Makefile                    | 1 +
 sysutils/nix/Makefile                     | 2 +-
 sysutils/onefetch/Makefile                | 2 +-
 www/stagit/Makefile                       | 2 +-
 43 files changed, 43 insertions(+), 36 deletions(-)
Comment 5 Matthias Fechner freebsd_committer freebsd_triage 2025-05-07 07:40:43 UTC
should be fixed now