One of my selected packages needs dev-libs/libgit2-1.8*, that's why I have an outdated version. After I deselect this package and upgrade to dev-libs/libgit2-1.9.0, the build succeeds. The ebuild should probably require >=dev-libs/libgit2-1.9.0 Reproducible: Always error: failed to run custom build command for `libgit2-sys v0.18.0+1.9.0 (/var/tmp/portage/app-editors/zed-0.172.8/work/git2-rs-a3b90cb3756c1bb63e2317bf9cfa57838178de5c/libgit2-sys)` Caused by: process didn't exit successfully: `/var/tmp/portage/app-editors/zed-0.172.8/work/zed-0.172.8/target/release/build/libgit2-sys-896fbdb6bf9e9e0a/build-script-build` (exit status: 101) --- stdout cargo:rustc-check-cfg=cfg(libgit2_vendored,) cargo:rerun-if-env-changed=LIBGIT2_NO_VENDOR cargo:rerun-if-env-changed=LIBGIT2_NO_PKG_CONFIG cargo:rerun-if-env-changed=PKG_CONFIG_x86_64-unknown-linux-gnu cargo:rerun-if-env-changed=PKG_CONFIG_x86_64_unknown_linux_gnu cargo:rerun-if-env-changed=HOST_PKG_CONFIG cargo:rerun-if-env-changed=PKG_CONFIG cargo:rerun-if-env-changed=LIBGIT2_STATIC cargo:rerun-if-env-changed=LIBGIT2_DYNAMIC cargo:rerun-if-env-changed=PKG_CONFIG_ALL_STATIC cargo:rerun-if-env-changed=PKG_CONFIG_ALL_DYNAMIC cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64-unknown-linux-gnu cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_unknown_linux_gnu cargo:rerun-if-env-changed=HOST_PKG_CONFIG_PATH cargo:rerun-if-env-changed=PKG_CONFIG_PATH cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64-unknown-linux-gnu cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_unknown_linux_gnu cargo:rerun-if-env-changed=HOST_PKG_CONFIG_LIBDIR cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64-unknown-linux-gnu cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_unknown_linux_gnu cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR cargo:warning=failed to probe system libgit2: pkg-config exited with status code 1 > PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 x86_64-pc-linux-gnu-pkg-config --libs --cflags libgit2 libgit2 >= 1.9.0 libgit2 < 1.10.0 The system library `libgit2` required by crate `libgit2-sys` was not found. The file `libgit2.pc` needs to be installed and the PKG_CONFIG_PATH environment variable must contain its parent directory. The PKG_CONFIG_PATH environment variable is not set. HINT: if you have installed the library, try setting PKG_CONFIG_PATH to the directory containing `libgit2.pc`. cargo:rustc-cfg=libgit2_vendored --- stderr fatal: not a git repository (or any parent up to mount point /) Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set). thread 'main' panicked at /var/tmp/portage/app-editors/zed-0.172.8/work/git2-rs-a3b90cb3756c1bb63e2317bf9cfa57838178de5c/libgit2-sys/build.rs:269:39: called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" } note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
*** Bug 949516 has been marked as a duplicate of this bug. ***
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=717c11dd2cc8b40c8a75cdc493a659028ff849ed commit 717c11dd2cc8b40c8a75cdc493a659028ff849ed Author: Robert Siebeck <gentoo.2019@r123.de> AuthorDate: 2025-02-10 11:36:09 +0000 Commit: Joonas Niilola <juippis@gentoo.org> CommitDate: 2025-02-10 15:34:36 +0000 app-editors/zed: add 0.172.10 Closes: https://bugs.gentoo.org/949482 Signed-off-by: Robert Siebeck <gentoo.2019@r123.de> Signed-off-by: Joonas Niilola <juippis@gentoo.org> app-editors/zed/Manifest | 2 + app-editors/zed/zed-0.172.10.ebuild | 210 ++++++++++++++++++++++++++++++++++++ 2 files changed, 212 insertions(+)