1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-04-06 21:20:33 +02:00

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 <rutherther@ditigal.xyz>
This commit is contained in:
Andreas Enge
2025-12-13 21:29:05 +01:00
parent b3e75b5e75
commit 5980f1cfe9
3 changed files with 24 additions and 0 deletions

View File

@@ -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 \

View File

@@ -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"))))

View File

@@ -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')