commit:     198d183e506587b921438ae9ef4ae99e2dbcf4a8
Author:     Alfred Wingate <parona <AT> protonmail <DOT> com>
AuthorDate: Thu Jan 15 16:13:24 2026 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Jan 15 19:28:48 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=198d183e

media-libs/babl: backport git dep removal patch

Signed-off-by: Alfred Wingate <parona <AT> protonmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/45388
Signed-off-by: Sam James <sam <AT> gentoo.org>

 media-libs/babl/babl-0.1.118.ebuild             |  1 +
 media-libs/babl/files/babl-0.1.118-no-git.patch | 31 +++++++++++++++++++++++++
 2 files changed, 32 insertions(+)

diff --git a/media-libs/babl/babl-0.1.118.ebuild 
b/media-libs/babl/babl-0.1.118.ebuild
index 9b64f192deb1..6d529babd64e 100644
--- a/media-libs/babl/babl-0.1.118.ebuild
+++ b/media-libs/babl/babl-0.1.118.ebuild
@@ -35,6 +35,7 @@ DEPEND="${RDEPEND}"
 
 PATCHES=(
        "${FILESDIR}"/babl-0.1.118-respect-NM.patch
+       "${FILESDIR}"/babl-0.1.118-no-git.patch
 )
 
 src_prepare() {

diff --git a/media-libs/babl/files/babl-0.1.118-no-git.patch 
b/media-libs/babl/files/babl-0.1.118-no-git.patch
new file mode 100644
index 000000000000..0d35c91a0838
--- /dev/null
+++ b/media-libs/babl/files/babl-0.1.118-no-git.patch
@@ -0,0 +1,31 @@
+https://gitlab.gnome.org/GNOME/babl/-/issues/114
+https://gitlab.gnome.org/GNOME/babl/-/commit/4efc8b827e008417c4995a93ae3310697318cfab
+
+From 4efc8b827e008417c4995a93ae3310697318cfab Mon Sep 17 00:00:00 2001
+From: Bruno Lopes <[email protected]>
+Date: Thu, 11 Dec 2025 10:48:39 -0300
+Subject: [PATCH] meson: Check for repository with python (not git executable)
+
+Closes: #114
+
+As per line 415 of the Meson file, git is not a mandatory dep.
+--- a/meson.build
++++ b/meson.build
+@@ -497,11 +497,9 @@ configure_file(
+ # updated. If git is not available, don't do anything if git-version.h
+ # already exists because then we are probably working with a tarball
+ # in which case the git-version.h we ship is correct.
+-is_git_repository = run_command(
+-    git_bin,
+-    'rev-parse',
+-    '--is-inside-work-tree',
+-    check: false,
++is_git_repository = run_command(python, '-c',
++  'import sys,os; sys.exit(0 if os.path.exists(".git") else 1)',
++  check: false
+ ).returncode() == 0
+ 
+ has_version_h = run_command(python, '-c',
+-- 
+GitLab
+

Reply via email to