mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-20 22:27:17 -08:00
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:
@@ -33,6 +33,10 @@ RDEPEND="
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/babl-0.1.118-respect-NM.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
gnome2_environment_reset
|
||||
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user