>>> Compiling source in /var/tmp/portage/dev-libs/tree-sitter-markdown-inline-0.2.3/work/tree-sitter-markdown-0.2.3/tree-sitter-markdown-inline ... make -j4 parser.o scanner.o x86_64-pc-linux-musl-gcc -O2 -pipe -march=native -fno-diagnostics-color -fPIC -I. -Itree_sitter -c -o parser.o parser.c x86_64-pc-linux-musl-gcc -O2 -pipe -march=native -fno-diagnostics-color -fPIC -I. -Itree_sitter -c -o scanner.o scanner.c * x86_64-pc-linux-musl-gcc -O2 -pipe -march=native -fno-diagnostics-color -fPIC -I. -Itree_sitter -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,--defsym=__gentoo_check_ldflags__=0 -shared parser.o scanner.o -Wl,--soname=libtree-sitter-markdown-inline.so.14 -o /var/tmp/portage/dev-libs/tree-sitter-markdown-inline-0.2.3/work/libtree-sitter-markdown-inline.so.14 * python3_12: running distutils-r1_run_phase distutils-r1_python_compile * ERROR: dev-libs/tree-sitter-markdown-inline-0.2.3::gentoo failed (compile phase): * Unable to obtain build-backend from pyproject.toml * ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 23.0_musl_hardened-20240611-170015 UNMASKED: ~dev-libs/icu-75.1 ~dev-libs/icu-layoutex-75.1 ~dev-lang/perl-5.40.0 ~virtual/perl-Archive-Tar-3.20.10_rc ~virtual/perl-CPAN-Meta-Requirements-2.143.0 ~virtual/perl-Compress-Raw-Bzip2-2.212.0 ~virtual/perl-DB_File-1.859.0 ~virtual/perl-Data-Dumper-2.189.0 ~virtual/perl-Devel-PPPort-3.720.0 ~virtual/perl-Exporter-5.780.0 ~virtual/perl-ExtUtils-CBuilder-0.280.240 ~virtual/perl-ExtUtils-Manifest-1.750.0 ~virtual/perl-File-Spec-3.900.0 ~virtual/perl-HTTP-Tiny-0.88.0 ~virtual/perl-IO-1.550.0 ~virtual/perl-IO-Compress-2.212.0 ~virtual/perl-IO-Socket-IP-0.420.0 ~virtual/perl-IO-Zlib-1.150.0 ~virtual/perl-Math-BigInt-2.3.2 ~virtual/perl-Math-BigInt-FastCalc-0.501.800 ~virtual/perl-Math-BigRat-2.3.2 ~virtual/perl-Module-CoreList-5.202.406.90 ~virtual/perl-Module-Metadata-1.0.38 ~virtual/perl-Pod-Simple-3.450.0 ~virtual/perl-Safe-2.460.0 ~virtual/perl-Socket-2.38.0 ~virtual/perl-Test-Harness-3.480.0 ~virtual/perl-Test-Simple-1.302.199 ~virtual/perl-Text-Tabs+Wrap-2024.1.0 ~virtual/perl-Time-HiRes-1.977.700 ~virtual/perl-Time-Local-1.350.0 ~virtual/perl-autodie-2.370.0 ~virtual/perl-bignum-0.670.0 ~virtual/perl-podlators-5.10.200_rc ~virtual/perl-threads-2.400.0 ~virtual/perl-threads-shared-1.690.0 ~virtual/perl-version-0.993.0 The attached etc.portage.tar.xz has all details. ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-musl-14 * clang/llvm (if any): Python 3.12.4 Available Rust versions: [1] rust-bin-1.78.0 * php cli (if any): go version go1.22.4 linux/amd64 HEAD of ::gentoo commit d080076f1ba2e822289383ec094bd2381eb05819 Author: Repository mirror & CI <repomirrorci@gentoo.org> Date: Tue Jun 11 23:33:58 2024 +0000 2024-06-11 23:33:58 UTC emerge -qpvO dev-libs/tree-sitter-markdown-inline [ebuild N ] dev-libs/tree-sitter-markdown-inline-0.2.3 USE="python -debug -test" PYTHON_TARGETS="python3_12 -python3_10 -python3_11"
Created attachment 895665 [details] emerge-info.txt
Created attachment 895666 [details] dev-libs:tree-sitter-markdown-inline-0.2.3:20240612-011642.log
Created attachment 895667 [details] emerge-history.txt
Created attachment 895668 [details] environment
Created attachment 895669 [details] etc.portage.tar.xz
Created attachment 895670 [details] qlist-info.txt
Looking at the contents of https://github.com/tree-sitter-grammars/tree-sitter-markdown/blob/split_parser/pyproject.toml the build backend that it's looking for is setuptools.build_meta Is that not available?
Same problem here, some "build_meta" crap is available: /usr/lib/python3.12/site-packages/setuptools/build_meta.py but seemingly not understood by whatever-parses-pyproject.toml.
So the problem is that the ebuild changes to the 'src/' subdir: + _tree-sitter-grammar_legacy_compile + cd /var/tmp/portage/dev-libs/tree-sitter-markdown-inline-0.2.3/work/tree-sitter-markdown-0.2.3/tree-sitter-markdown-inline/src while pyproject.toml is in the top-level directory /var/tmp/portage/dev-libs/tree-sitter-markdown-inline-0.2.3/work/tree-sitter-markdown-0.2.3 The ebuild has to be fixed.
(In reply to Claus-Justus Heine from comment #9) > So the problem is that the ebuild changes to the 'src/' subdir: > > + _tree-sitter-grammar_legacy_compile > + cd > /var/tmp/portage/dev-libs/tree-sitter-markdown-inline-0.2.3/work/tree-sitter- > markdown-0.2.3/tree-sitter-markdown-inline/src > > while pyproject.toml is in the top-level directory > > /var/tmp/portage/dev-libs/tree-sitter-markdown-inline-0.2.3/work/tree-sitter- > markdown-0.2.3 > > The ebuild has to be fixed. Possible hack-around: add the following to the ebuild: src_prepare() { tree-sitter-grammar_src_prepare cp "${WORKDIR}"/${MY_P}/pyproject.toml ${S}/src/ }
I don't have repo access, but as an end user, what would it take to get this hack added to the ebuild?