media-libs/babl: respect NM

Closes: https://bugs.gentoo.org/968162
Signed-off-by: Alfred Wingate <parona@protonmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/45388
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Alfred Wingate
2026-01-15 19:28:47 +00:00
committed by Sam James
parent 87a3eaa9e4
commit 3e40484cf0
3 changed files with 33 additions and 0 deletions
+4
View File
@@ -33,6 +33,10 @@ RDEPEND="
"
DEPEND="${RDEPEND}"
PATCHES=(
"${FILESDIR}"/babl-0.1.118-respect-NM.patch
)
src_prepare() {
default
gnome2_environment_reset
+4
View File
@@ -33,6 +33,10 @@ RDEPEND="
"
DEPEND="${RDEPEND}"
PATCHES=(
"${FILESDIR}"/babl-0.1.118-respect-NM.patch
)
src_prepare() {
default
gnome2_environment_reset
@@ -0,0 +1,25 @@
https://bugs.gentoo.org/968162
diff --git a/tools/defcheck.py b/tools/defcheck.py
index 3103481..30d875f 100644
--- a/tools/defcheck.py
+++ b/tools/defcheck.py
@@ -31,7 +31,7 @@ Needs the tool "nm" to work
import sys, subprocess
-from os import path
+from os import getenv, path
def_files = sys.argv[1:]
@@ -65,7 +65,7 @@ for df in def_files:
# unsortindex = i+1
# break;
- status, nm = subprocess.getstatusoutput ("nm --defined-only --extern-only " +
+ status, nm = subprocess.getstatusoutput (getenv("NM", default="nm") + " --defined-only --extern-only " +
libname)
if status != 0:
print("trouble reading {} - has it been compiled?".format(libname))