summaryrefslogtreecommitdiff
path: root/dev-python
diff options
context:
space:
mode:
authorCrucible <crucible@localhost>2026-09-22 22:22:36 -0500
committerCrucible <crucible@localhost>2026-09-22 22:22:36 -0500
commit979af70cb83395cab2f32ea1124be68ebaced6b6 (patch)
tree18b16739f860a2a652c26c5499fad05922119e31 /dev-python
parent954147f7add6ada356dec519e829e0a2437da5af (diff)
downloadbaldeagleos-repo-979af70cb83395cab2f32ea1124be68ebaced6b6.tar.gz
baldeagleos-repo-979af70cb83395cab2f32ea1124be68ebaced6b6.tar.xz
baldeagleos-repo-979af70cb83395cab2f32ea1124be68ebaced6b6.zip
Publish baldeagleos-repo candidate 0000000338-20260922-221634
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/gpgmepy/files/gpgmepy-2.0.0-swig-4.5.patch63
-rw-r--r--dev-python/gpgmepy/gpgmepy-2.0.0-r2.ebuild1
-rw-r--r--dev-python/libvirt-python/Manifest2
-rw-r--r--dev-python/libvirt-python/libvirt-python-12.7.0.ebuild64
4 files changed, 130 insertions, 0 deletions
diff --git a/dev-python/gpgmepy/files/gpgmepy-2.0.0-swig-4.5.patch b/dev-python/gpgmepy/files/gpgmepy-2.0.0-swig-4.5.patch
new file mode 100644
index 000000000000..4ab94bebc3e8
--- /dev/null
+++ b/dev-python/gpgmepy/files/gpgmepy-2.0.0-swig-4.5.patch
@@ -0,0 +1,63 @@
+https://bugs.gentoo.org/983043
+https://lists.gnupg.org/pipermail/gnupg-devel/2026-August/036421.html
+
+As of 2026/09/21 this or an equivalent hasn't been merged upstream.
+
+Description: Build with swig 4.5.0
+ Without this patch, the package FTBFS with swig 4.5.0. This is due to
+ the removal of the Python 2 compatibility macros in version 4.5.0.
+ According to the SWIG authors, these macros were retained in the
+ generated code (pyhead.swg) solely for user typemaps. All typemap
+ using these macros are updated to call the Python 3 C API
+ directly.
+Author: Rafael Laboissière <rafael@debian.org>
+Bug-Debian: https://bugs.debian.org/1145351
+Forwarded: no
+Last-Update: 2026-08-25
+
+--- gpgmepy-2.0.0.orig/gpgme.i
++++ gpgmepy-2.0.0/gpgme.i
+@@ -94,8 +94,8 @@
+ }
+ $1[i] = PyBytes_AsString(pyVector[i]);
+ }
+- else if (PyString_Check(o))
+- $1[i] = PyString_AsString(o);
++ else if (PyBytes_Check(o))
++ $1[i] = PyBytes_AsString(o);
+ else {
+ PyErr_Format(PyExc_TypeError,
+ "arg %d: list must contain only str or bytes, got %s "
+@@ -316,8 +316,8 @@
+ if (PyLong_Check($input))
+ $1 = PyLong_AsLong($input);
+ #if PY_MAJOR_VERSION < 3
+- else if (PyInt_Check($input))
+- $1 = PyInt_AsLong($input);
++ else if (PyLong_Check($input))
++ $1 = PyLong_AsLong($input);
+ #endif
+ else {
+ PyErr_SetString(PyExc_TypeError, "Numeric argument expected");
+@@ -341,8 +341,8 @@
+ $1 = PyLong_AsLong($input);
+ #endif
+ #if PY_MAJOR_VERSION < 3
+- else if (PyInt_Check($input))
+- $1 = PyInt_AsLong($input);
++ else if (PyLong_Check($input))
++ $1 = PyLong_AsLong($input);
+ #endif
+ else {
+ PyErr_SetString(PyExc_TypeError, "Numeric argument expected");
+@@ -357,8 +357,8 @@
+ if (PyLong_Check($input))
+ tmp$argnum = PyLong_AsLong($input);
+ #if PY_MAJOR_VERSION < 3
+- else if (PyInt_Check($input))
+- tmp$argnum = PyInt_AsLong($input);
++ else if (PyLong_Check($input))
++ tmp$argnum = PyLong_AsLong($input);
+ #endif
+ else
+ {
diff --git a/dev-python/gpgmepy/gpgmepy-2.0.0-r2.ebuild b/dev-python/gpgmepy/gpgmepy-2.0.0-r2.ebuild
index bf0cea406949..70cdd27b1496 100644
--- a/dev-python/gpgmepy/gpgmepy-2.0.0-r2.ebuild
+++ b/dev-python/gpgmepy/gpgmepy-2.0.0-r2.ebuild
@@ -36,6 +36,7 @@ PATCHES=(
"${FILESDIR}"/${PN}-2.0.0_pre20250603-python.patch
# https://github.com/gpg/gpgmepy/commit/a4b0c9f6e285c0a56b758f73cc4ee38c0b3e5c46
"${FILESDIR}"/${P}-test-fix.patch
+ "${FILESDIR}"/${PN}-2.0.0-swig-4.5.patch
)
src_prepare() {
diff --git a/dev-python/libvirt-python/Manifest b/dev-python/libvirt-python/Manifest
index ce0ec5d02d4d..8f0b4794da6a 100644
--- a/dev-python/libvirt-python/Manifest
+++ b/dev-python/libvirt-python/Manifest
@@ -8,3 +8,5 @@ DIST libvirt_python-12.2.0.tar.gz 244689 BLAKE2B b8591860f6cefd160535f70b17afdf1
DIST libvirt_python-12.2.0.tar.gz.asc 833 BLAKE2B 2a6365eab211414f15b55f4769fa3f7789522700266be4fc8fe852ba02c701a9f58c2b72cd3210447572c6c0e526b71405f4a19c2e5cd0f71e66445c32647776 SHA512 73edd0a887e1f5bc91f8d27c0e800d750a6005e01c726f9ff72b667a7bc6527607d98a18a5b66194d4bd35fc5b06481c34f6003c5c2c7cb882c6a9bd11765d4a
DIST libvirt_python-12.6.0.tar.gz 252693 BLAKE2B 17d0760d5f56b17ec6bd738e6a4f25d57ce411edb4db2fe3f5e0ff2fae670583973d8ab6b0eb1fe7acbcb2d781e6a628ded62e08ea2ff85695204ce144f3058c SHA512 e43a3ee2c46fdcb82c65239639e38683067fb0492c0dc26e5435138435d612277f3ab08b7e73a933b07ad9e2f411feb82e84690e82f906cfcfc9f3aa7b5f3c42
DIST libvirt_python-12.6.0.tar.gz.asc 833 BLAKE2B edf2e70a0af3ba13e2a31bad7036350ee5e0a411a87a02a15ff77e05c2d7bb451f90c343691cc3f56d2b555e83975476e1042455ffb96bae7f515c8db805ac25 SHA512 884cab9736a723b16232e6b7062cde573180c75616b080edad96ace1f0ae62a4fbca0e2dd09e3e460403f667cd0a7e942e2594b742c071a437546a7d79983a4f
+DIST libvirt_python-12.7.0.tar.gz 256560 BLAKE2B 3c03ced41b09869e1e6b5fbb9c5b7919e83e3eb3f0197dec66926e6f727fb9936ac4c872197f29800fd39768260f41f60b37df3f3d9cdbc44049fc7801d4edce SHA512 35c837491141bf8a856711991840ef7526cab26375175042d9f1326aa0217886ec6c3f3334ae60be96564b5258dd78f1504a0a841cb4c77e5bd9c813beee7a77
+DIST libvirt_python-12.7.0.tar.gz.asc 833 BLAKE2B e6bcc03a410c3f4b9b5346cbe4df7d36f6359cad2893263186c91beb8c7d2611f7811a5d6eb7149cdd2f1f81849b727d227dddfe6d09aa151386a0f04d60e1a8 SHA512 50778d6dea1dddc786cc755305f78b70ba0c8c708703f44b4e3d53ffe6294d3a7308b2d1153a505ad16596d96a951780500adc78feef03aa7462e28767a6b476
diff --git a/dev-python/libvirt-python/libvirt-python-12.7.0.ebuild b/dev-python/libvirt-python/libvirt-python-12.7.0.ebuild
new file mode 100644
index 000000000000..e7c2af787d5a
--- /dev/null
+++ b/dev-python/libvirt-python/libvirt-python-12.7.0.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+# Packages which get releases together:
+# app-emacs/nxml-libvirt-schemas
+# dev-python/libvirt-python
+# dev-perl/Sys-Virt
+# app-emulation/libvirt
+# Please bump them together!
+
+DISTUTILS_EXT=1
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{13..14} )
+inherit distutils-r1 verify-sig
+
+if [[ ${PV} == *9999* ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://gitlab.com/libvirt/libvirt-python.git"
+ RDEPEND="app-emulation/libvirt:="
+else
+ MY_P="${P/-/_}"
+ SRC_URI="https://download.libvirt.org/python/${MY_P}.tar.gz
+ verify-sig? ( https://download.libvirt.org/python/${MY_P}.tar.gz.asc )"
+ KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
+ RDEPEND="app-emulation/libvirt:0/${PV}"
+ S="${WORKDIR}/${MY_P}"
+fi
+
+DESCRIPTION="libvirt Python bindings"
+HOMEPAGE="https://www.libvirt.org"
+
+LICENSE="LGPL-2"
+SLOT="0"
+IUSE="examples test"
+RESTRICT="!test? ( test )"
+
+BDEPEND="
+ virtual/pkgconfig
+ test? (
+ dev-python/lxml[${PYTHON_USEDEP}]
+ )
+ verify-sig? ( >=sec-keys/openpgp-keys-libvirt-20260831 )
+"
+
+VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/libvirt.asc
+
+EPYTEST_PLUGINS=()
+distutils_enable_tests pytest
+
+python_compile() {
+ # setuptools is broken for C extensions, bug #907718
+ distutils-r1_python_compile -j1
+}
+
+python_install_all() {
+ if use examples; then
+ dodoc -r examples
+ docompress -x /usr/share/doc/${PF}/examples
+ fi
+
+ distutils-r1_python_install_all
+}