https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/ Issue: dev-python/tlsh-4.8.2 fails to compile. Discovered on: amd64 (internal ref: tinderbox_musl) System: MUSL-SYSTEM (https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#MUSL) Info about the issue: https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#CF0014
Created attachment 887668 [details] build.log build log and emerge --info
gcc 13 produces a warning that looks like the same issue: gcc -fno-strict-overflow -Wsign-compare -O2 -march=x86-64 -pipe -pipe -frecord-gcc-switches -fno-diagnostics-color -fmessage-length=0 -UNDEBUG -I/usr/include/python3.12 -c tlshmodule.cpp -o tlshmodule.o tlshmodule.cpp:353:1: warning: converting to non-pointer type ‘long int’ from NULL [-Wconversion-null] 353 | }; | ^ I tried to figure out which fields in the PyTypeObject struct need to be set to 0, but the ones I could identify appear to be set properly already. I'm unsure which field is causing the issue.
Check out https://github.com/breezy-team/patiencediff/pull/14 as an example and the docs I link to there. Note that C++ doesn't have designated initialisers (or didn't until C++20, rather) so it's a bit annoying there.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0831a84172d0ee0499070a8c1212ef9780197b1f commit 0831a84172d0ee0499070a8c1212ef9780197b1f Author: Thomas Bracht Laumann Jespersen <t@laumann.xyz> AuthorDate: 2024-04-19 10:18:15 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-06-02 00:38:30 +0000 dev-python/tlsh: fix build for python 3.12 + musl Closes: https://bugs.gentoo.org/927058 Signed-off-by: Thomas Bracht Laumann Jespersen <t@laumann.xyz> Closes: https://github.com/gentoo/gentoo/pull/36321 Signed-off-by: Sam James <sam@gentoo.org> dev-python/tlsh/Manifest | 1 + dev-python/tlsh/files/tlsh-4.8.2-r1-py312.patch | 25 +++++++++++++++++++++ dev-python/tlsh/tlsh-4.8.2-r1.ebuild | 30 +++++++++++++++++++++++++ 3 files changed, 56 insertions(+)