commit:     ca7b3a0b88dadc613d6c1547aeb2b6a79d9a515c
Author:     Alfred Wingate <parona <AT> protonmail <DOT> com>
AuthorDate: Thu Jan 15 16:17:37 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=ca7b3a0b

media-gfx/gimp: respect NM

Closes: https://bugs.gentoo.org/968162
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-gfx/gimp/files/gimp-3.0.6-respect-NM.patch | 25 ++++++++++++++++++++++++
 media-gfx/gimp/gimp-3.0.6.ebuild                 |  1 +
 media-gfx/gimp/gimp-3.2.0_rc2.ebuild             |  1 +
 3 files changed, 27 insertions(+)

diff --git a/media-gfx/gimp/files/gimp-3.0.6-respect-NM.patch 
b/media-gfx/gimp/files/gimp-3.0.6-respect-NM.patch
new file mode 100644
index 000000000000..1baf9d3be257
--- /dev/null
+++ b/media-gfx/gimp/files/gimp-3.0.6-respect-NM.patch
@@ -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))
+

diff --git a/media-gfx/gimp/gimp-3.0.6.ebuild b/media-gfx/gimp/gimp-3.0.6.ebuild
index 9d9b93ff7a33..5a17b34afbc6 100644
--- a/media-gfx/gimp/gimp-3.0.6.ebuild
+++ b/media-gfx/gimp/gimp-3.0.6.ebuild
@@ -123,6 +123,7 @@ DOCS=( "AUTHORS" "NEWS" "README" "README.i18n" )
 
 PATCHES=(
        "${FILESDIR}"/gimp-3.0.6-fix-tests.patch
+       "${FILESDIR}"/gimp-3.0.6-respect-NM.patch
 )
 
 pkg_pretend() {

diff --git a/media-gfx/gimp/gimp-3.2.0_rc2.ebuild 
b/media-gfx/gimp/gimp-3.2.0_rc2.ebuild
index 87d44397300a..4101e80e9010 100644
--- a/media-gfx/gimp/gimp-3.2.0_rc2.ebuild
+++ b/media-gfx/gimp/gimp-3.2.0_rc2.ebuild
@@ -155,6 +155,7 @@ DOCS=( "AUTHORS" "NEWS" "README" "README.i18n" )
 
 PATCHES=(
        "${FILESDIR}"/gimp-3.0.6-fix-tests.patch
+       "${FILESDIR}"/gimp-3.0.6-respect-NM.patch
 )
 
 pkg_pretend() {

Reply via email to