Message ID | 320e05ebee7883556029870fcf654928724bbc4e.camel@telenet.be |
---|---|
State | Accepted |
Headers | show |
Series | [bug#49543] python-pycryptodome: Build HTML and info documentation and unbundle sphinx-rtd-theme and libtomcrypt | expand |
Context | Check | Description |
---|---|---|
cbaines/applying patch | fail | View Laminar job |
cbaines/issue | success | View issue |
Hi! Maxime Devos <maximedevos@telenet.be> skribis: > Ludovic Courtès schreef op wo 11-08-2021 om 16:35 [+0200]: [...] >> Usually, bundled software is removed from a snippet. >> >> Also, when unbundling, it’s better if we can actually reuse the package >> in question (libtomcrypt here) as opposed to reusing its source, as you >> did here. > > I have attached two new patches for unbundling libtomcrypt this way. > I left the documentation out for now, as I would prefer some kind of > generic solution that could be used by other packages using Sphinx > as well. Makes sense to me. > I had some trouble telling python to link to libtomcrypt. > I tried adding "tomcrypt" to "libraries" in ‘Extension’ forms in setup.py > but that doesn't seem to do anything, so I added > extra_link_args=['-ltomcrypt', '-ltommath']. Do you know what's up with that? No idea! > From a41b086246a5b59aab2d16eaeb91e0caafa706cc Mon Sep 17 00:00:00 2001 > From: Maxime Devos <maximedevos@telenet.be> > Date: Wed, 18 Aug 2021 00:43:16 +0200 > Subject: [PATCH 1/2] gnu: python-pycryptodome: Unbundle libtomcrypt. > > * gnu/packages/python-crypto.scm > (pycryptodome-unbundle-tomcrypt-snippet): New variable. > (python-pycryptodome)[source]{snippet}: Unbundle libtomcrypt. > (python-pycryptodome)[source]{modules}: Add (guix build utils). [...] > From 5b3366c9ebead99f0c22d612552063189bd0551c Mon Sep 17 00:00:00 2001 > From: Maxime Devos <maximedevos@telenet.be> > Date: Wed, 18 Aug 2021 12:46:51 +0200 > Subject: [PATCH 2/2] gnu: python-pycryptodomex: Unbundle libtomcrypt. > > * gnu/packages/python-crypto.scm > (python-pycryptodomex)[source]{snippet}: Unbundle libtomcrypt. > (python-pycryptodomex)[source]{modules}: Add (guix build utils). Finally applied, thanks! Ludo’.
From 5b3366c9ebead99f0c22d612552063189bd0551c Mon Sep 17 00:00:00 2001 From: Maxime Devos <maximedevos@telenet.be> Date: Wed, 18 Aug 2021 12:46:51 +0200 Subject: [PATCH 2/2] gnu: python-pycryptodomex: Unbundle libtomcrypt. * gnu/packages/python-crypto.scm (python-pycryptodomex)[source]{snippet}: Unbundle libtomcrypt. (python-pycryptodomex)[source]{modules}: Add (guix build utils). --- gnu/packages/python-crypto.scm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gnu/packages/python-crypto.scm b/gnu/packages/python-crypto.scm index 265ab6d228..0fd3c829e3 100644 --- a/gnu/packages/python-crypto.scm +++ b/gnu/packages/python-crypto.scm @@ -1034,7 +1034,9 @@ PyCryptodome variants, the other being python-pycryptodomex.") (method url-fetch) (uri (pypi-uri "pycryptodomex" version)) (sha256 - (base32 "0lbx4qk3xmwqiidhmkj8qa7bh2lf8bwzg0xjpsh2w5zqjrc7qnvv")))) + (base32 "0lbx4qk3xmwqiidhmkj8qa7bh2lf8bwzg0xjpsh2w5zqjrc7qnvv")) + (modules '((guix build utils))) + (snippet pycryptodome-unbundle-tomcrypt-snippet))) (description "PyCryptodome is a self-contained Python package of low-level cryptographic primitives. It's not a wrapper to a separate C library like -- 2.32.0