guix_mirror_bot pushed a commit to branch ungraft
in repository guix.

commit 60f06b5301475660209d464da13acb3eccb61c67
Author: Andreas Enge <[email protected]>
AuthorDate: Sat Dec 13 21:29:05 2025 +0100

    gnu: python-gpg: Fix build.
    
    * gnu/packages/patches/python-gpg-setup-72.patch: New file.
    * gnu/local.mk (dist_patch_DATA): Register patch.
    * gnu/packages/gnupg.scm (python-gpg)[source]: Use patch.
    
    Change-Id: I13ea8c28082bf9288aad7995eadf7f17d4b3cd9d
    Signed-off-by: Rutherther <[email protected]>
---
 gnu/local.mk                                   |  1 +
 gnu/packages/gnupg.scm                         |  1 +
 gnu/packages/patches/python-gpg-setup-72.patch | 22 ++++++++++++++++++++++
 3 files changed, 24 insertions(+)

diff --git a/gnu/local.mk b/gnu/local.mk
index 79f07f8824..7f15dd7218 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -2050,6 +2050,7 @@ dist_patch_DATA =                                         
\
   %D%/packages/patches/python-clarabel-blas.patch              \
   %D%/packages/patches/python-docrepr-fix-tests.patch          \
   %D%/packages/patches/python-feedparser-missing-import.patch  \
+  %D%/packages/patches/python-gpg-setup-72.patch                \
   %D%/packages/patches/python-hdmedians-replace-nose.patch     \
   %D%/packages/patches/python-louvain-fix-test.patch           \
   %D%/packages/patches/python-matplotlib-fix-legend-loc-best-test.patch        
\
diff --git a/gnu/packages/gnupg.scm b/gnu/packages/gnupg.scm
index 5a1c74b07a..535b3b2813 100644
--- a/gnu/packages/gnupg.scm
+++ b/gnu/packages/gnupg.scm
@@ -584,6 +584,7 @@ interface (FFI) of Guile.")
     (source (origin
               (method url-fetch)
               (uri (pypi-uri "gpg" version))
+              (patches (search-patches "python-gpg-setup-72.patch"))
               (sha256
                (base32
                 "1ji3ynhp36m1ccx7bmaq75dhij9frpn19v9mpi4aajn8csl194il"))))
diff --git a/gnu/packages/patches/python-gpg-setup-72.patch 
b/gnu/packages/patches/python-gpg-setup-72.patch
new file mode 100644
index 0000000000..af1699bc35
--- /dev/null
+++ b/gnu/packages/patches/python-gpg-setup-72.patch
@@ -0,0 +1,22 @@
+Inspired by
+https://github.com/gentoo/gentoo/commit/2ad1ddf9b8b0e0b1f91fc3dd9412ad2f9c1346c3
+see also
+https://dev.gnupg.org/rMecd0c86d62351d267bdc9566286c532a394c711b
+Gemeinsame Unterverzeichnisse: gpg-1.10.0.alt/examples und gpg-1.10.0/examples.
+Gemeinsame Unterverzeichnisse: gpg-1.10.0.alt/gpg und gpg-1.10.0/gpg.
+diff -u gpg-1.10.0.alt/setup.py gpg-1.10.0/setup.py
+--- gpg-1.10.0.alt/setup.py    2025-12-13 21:18:02.595203761 +0100
++++ gpg-1.10.0/setup.py        2025-12-13 21:19:42.624197460 +0100
+@@ -220,9 +220,9 @@
+     def run(self):
+         self._generate()
+ 
+-        swig_sources.extend((self._in_build_base('gpgme.i'), 
self._in_build_base('helpers.c')))
+-        swig_opts.extend(['-I' + self.build_base,
+-                          '-outdir', os.path.join(self.build_lib, 'gpg')])
++        swige.sources.extend((self._in_build_base('gpgme.i'), 
self._in_build_base('helpers.c')))
++        swige.swig_opts.extend(['-I' + self.build_base,
++                               '-outdir', os.path.join(self.build_lib, 
'gpg')])
+         include_dirs.insert(0, self.build_base)
+ 
+         self.run_command('build_ext')

Reply via email to