Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 906376 - dev-python/sphinx-5.3.0, compile failed due to DISTUTILS_USE_PEP517 does not match pyproject.toml!
Summary: dev-python/sphinx-5.3.0, compile failed due to DISTUTILS_USE_PEP517 does not ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-15 07:43 UTC by Ryan Tsien
Modified: 2023-05-15 10:48 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
info.txt (info.txt,5.64 KB, text/plain)
2023-05-15 07:43 UTC, Ryan Tsien
Details
pretend-emerge.txt (pretend.txt,272 bytes, text/plain)
2023-05-15 07:44 UTC, Ryan Tsien
Details
build-log.txt (build-log.txt,5.93 KB, text/plain)
2023-05-15 07:44 UTC, Ryan Tsien
Details
environment.txt (env.txt,136.95 KB, text/plain)
2023-05-15 07:45 UTC, Ryan Tsien
Details
patch.diff (patch.txt,651 bytes, patch)
2023-05-15 08:51 UTC, Ryan Tsien
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ryan Tsien 2023-05-15 07:43:22 UTC
```
 * ERROR: dev-python/sphinx-5.3.0::gentoo failed (compile phase):                                                                                                  
 *   Unknown backend: flit_core.buildapi                                                                                                                           
 *                                                                                                                                                                 
 * Call stack:                                                                                                                                                     
 *     ebuild.sh, line  136:  Called src_compile                                                                                                                   
 *   environment, line 3455:  Called distutils-r1_src_compile                                                                                                      
 *   environment, line 1626:  Called _distutils-r1_run_foreach_impl 'distutils-r1_python_compile'                                                                  
 *   environment, line  769:  Called python_foreach_impl 'distutils-r1_run_phase' 'distutils-r1_python_compile'                                                    
 *   environment, line 3146:  Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'                
 *   environment, line 2703:  Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'                           
 *   environment, line 2701:  Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'distutils-r1_python_compile'                                             
 *   environment, line 1113:  Called distutils-r1_run_phase 'distutils-r1_python_compile'                                                                          
 *   environment, line 1608:  Called distutils-r1_python_compile                                                                                                   
 *   environment, line 1430:  Called distutils_pep517_install '/var/tmp/portage/dev-python/sphinx-5.3.0/work/sphinx-5.3.0-python3_11/install'                      
 *   environment, line 1956:  Called _distutils-r1_get_backend                                                                                                     
 *   environment, line  571:  Called _distutils-r1_backend_to_key 'flit_core.buildapi'                                                                             
 *   environment, line  442:  Called die                                                                                                                           
 * The specific snippet of code:                                                                                                                                   
 *               die "Unknown backend: ${backend}"
```

the backend name has been rename to `flit-core.buildapi`, however the `gpep517 get-backend` command returns `flit_core.buildapi`

Reproducible: Always
Comment 1 Ryan Tsien 2023-05-15 07:43:54 UTC
Created attachment 861711 [details]
info.txt
Comment 2 Ryan Tsien 2023-05-15 07:44:14 UTC
Created attachment 861712 [details]
pretend-emerge.txt
Comment 3 Ryan Tsien 2023-05-15 07:44:29 UTC
Created attachment 861713 [details]
build-log.txt
Comment 4 Ryan Tsien 2023-05-15 07:45:15 UTC
Created attachment 861714 [details]
environment.txt
Comment 5 Ryan Tsien 2023-05-15 08:43:06 UTC
dev-python/packaging-23.0-r1 has the same problem.
Comment 6 dtoch 2023-05-15 08:47:26 UTC
Have similar issue with dev-python/more-itertools-9.1.0
Comment 7 Ryan Tsien 2023-05-15 08:51:48 UTC
Created attachment 861719 [details, diff]
patch.diff

(In reply to dtoch from comment #6)
> Have similar issue with dev-python/more-itertools-9.1.0

Try this patch.
Comment 8 Larry the Git Cow gentoo-dev 2023-05-15 10:48:36 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4ef6f4496d5bf78dc92c23fcd67a6c5187d126ff

commit 4ef6f4496d5bf78dc92c23fcd67a6c5187d126ff
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2023-05-15 10:46:40 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2023-05-15 10:46:40 +0000

    distutils-r1.eclass: Fix sed mistake
    
    Closes: https://bugs.gentoo.org/906385
    Closes: https://bugs.gentoo.org/906376
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 eclass/distutils-r1.eclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)