commit:     b6bfb7ce52d2f05ed2deda2aa94bf46e51d56844
Author:     Eli Schwartz <eschwartz93 <AT> gmail <DOT> com>
AuthorDate: Fri Mar  1 07:43:58 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Mar  3 04:00:12 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b6bfb7ce

dev-python/shiboken6: disable terrible default of forcing limited API

The python Limited API allows you to compile a native extension once for
e.g. python 3.8, create a wheel package, and then install that on any
version of python 3.8+. This is inherently non-useful to distros, which
compile the extensions for each build regardless.

The Limited API is slower than the internal API, and benefits nothing at
all for our use case. But shiboken defaults to creating one. Manually
pass the option to disable it.

The Limited API builds of shiboken also have LTO issues that the regular
builds do not. Odd. See comments at https://bugreports.qt.io/browse/PYSIDE-2619

(Note that there are other LTO issues with shiboken which are fixed in
git dev, so we can't remove filter-lto yet.)

Bug: https://bugs.gentoo.org/925479
Signed-off-by: Eli Schwartz <eschwartz93 <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../shiboken6/{shiboken6-6.6.2.ebuild => shiboken6-6.6.2-r1.ebuild}      | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dev-python/shiboken6/shiboken6-6.6.2.ebuild 
b/dev-python/shiboken6/shiboken6-6.6.2-r1.ebuild
similarity index 99%
rename from dev-python/shiboken6/shiboken6-6.6.2.ebuild
rename to dev-python/shiboken6/shiboken6-6.6.2-r1.ebuild
index 4187835e2818..181ab1d02922 100644
--- a/dev-python/shiboken6/shiboken6-6.6.2.ebuild
+++ b/dev-python/shiboken6/shiboken6-6.6.2-r1.ebuild
@@ -127,6 +127,7 @@ src_configure() {
                        -DPYTHON_CONFIG_SUFFIX="-${EPYTHON}"
                        -DPYTHON_EXECUTABLE="${PYTHON}"
                        -DUSE_PYTHON_VERSION="${EPYTHON#python}"
+                       -DFORCE_LIMITED_API=OFF
                )
                # CMakeLists.txt expects LLVM_INSTALL_DIR as an environment 
variable.
                local -x LLVM_INSTALL_DIR="$(get_llvm_prefix)"

Reply via email to