Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 933497 - sci-electronics/kicad-7.0.10 thru 8.0.2-r1: blocks python 3.12 upgrade
Summary: sci-electronics/kicad-7.0.10 thru 8.0.2-r1: blocks python 3.12 upgrade
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major
Assignee: Zoltan Puskas
URL:
Whiteboard:
Keywords:
: 933750 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-06-03 23:00 UTC by Walter Stanish
Modified: 2024-06-11 23:56 UTC (History)
7 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Walter Stanish 2024-06-03 23:00:00 UTC
```
# emerge -1avUD @world

These are the packages that would be merged, in order:

Calculating dependencies \

!!! Problem resolving dependencies for sci-electronics/kicad from @selected
... done!
Dependency resolution took 1.50 s (backtrack: 0/20).


!!! The ebuild selected to satisfy "sci-electronics/kicad" has unmet requirements.
- sci-electronics/kicad-7.0.10::gentoo USE="nls openmp -doc -examples -test" ABI_X86="(64)" PYTHON_SINGLE_TARGET="-python3_10 -python3_11"

  The following REQUIRED_USE flag constraints are unsatisfied:
    exactly-one-of ( python_single_target_python3_10 python_single_target_python3_11 )

(dependency required by "@selected" [set])
(dependency required by "@world" [argument])
```

Reproducible: Always

Steps to Reproduce:
1. Follow python 3.12 upgrade procedure (eselect news read 30).

Actual Results:  
Kicad does not upgrade, so upgrade cannot complete.

Expected Results:  
Major packages like kicad and blender and whatever else people actually use to get work done are pre-audited as python 3.12 friendly before this is pushed on the users.
Comment 1 Walter Stanish 2024-06-03 23:03:37 UTC
Also fails identically with the latest versioned unstable package =sci-electronics/kicad-8.0.2-r1

```
# echo "=sci-electronics/kicad-8.0.2-r1 ~amd64" >>/etc/portage/package.accept_keywords/kicad
# emerge -av =sci-electronics/kicad-8.0.2-r1

These are the packages that would be merged, in order:

Calculating dependencies -

!!! Problem resolving dependencies for =sci-electronics/kicad-8.0.2-r1
... done!
Dependency resolution took 0.63 s (backtrack: 0/20).


!!! The ebuild selected to satisfy "=sci-electronics/kicad-8.0.2-r1" has unmet requirements.
- sci-electronics/kicad-8.0.2-r1::gentoo USE="nls openmp -doc -examples -test" ABI_X86="(64)" PYTHON_SINGLE_TARGET="-python3_10 -python3_11"

  The following REQUIRED_USE flag constraints are unsatisfied:
    exactly-one-of ( python_single_target_python3_10 python_single_target_python3_11 )

```
Comment 2 Walter Stanish 2024-06-03 23:04:32 UTC
Also reported here https://forums.gentoo.org/viewtopic-p-8828780.html
Comment 3 Mike Gilbert gentoo-dev 2024-06-07 16:08:35 UTC
*** Bug 933750 has been marked as a duplicate of this bug. ***
Comment 4 jlm 2024-06-09 18:38:39 UTC
although my bug is marked as duplicate of this one, I think the issue is not related to kicad but to the way python 3.11 is detected

in my make.conf I have PYTHON_TARGETS="python3_12 python3_11"
so I have both python 3.11 and python 3.12 installed
Comment 5 Jan Henke 2024-06-09 20:04:58 UTC
Nevertheless declares KiCAD to be compatible with Python 3.10 and 3.11 only. Since 3.12 is now the default, it breaks in the dependency resolution phase unless the user manually sets the system default back to 3.11.

Since this is open for a week now and it has quite some impact on stable system, is it possible that someone besides the maintainer updates the python compat on all in-tree kicad ebuilds?
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-06-09 20:10:13 UTC
I did ping them on IRC yesterday and they said a PR was forthcoming.
Comment 7 Larry the Git Cow gentoo-dev 2024-06-11 20:45:44 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7c38df7f779b35d4e0752863b779ca40ad51ae65

commit 7c38df7f779b35d4e0752863b779ca40ad51ae65
Author:     Paul Zander <negril.nx+gentoo@gmail.com>
AuthorDate: 2024-06-11 20:18:25 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-06-11 20:42:55 +0000

    sci-electronics/kicad: add 8.0.3, enable Python-3.12, fix qa_python
    
    `dosym` installs a symlink into $ED, we want to create a symlink inside
    $BUILD_DIR. This unbreaks the qa_python test.
    
    Bug: https://bugs.gentoo.org/931207
    Closes: https://bugs.gentoo.org/933497
    Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 sci-electronics/kicad/Manifest           |   1 +
 sci-electronics/kicad/kicad-8.0.3.ebuild | 185 +++++++++++++++++++++++++++++++
 sci-electronics/kicad/kicad-9999.ebuild  |  11 +-
 3 files changed, 194 insertions(+), 3 deletions(-)
Comment 8 Walter Stanish 2024-06-11 23:56:42 UTC
Confirmed.

For others, first edit /etc/portage/make.conf to include:

------------------------------------------------------------
PYTHON_TARGETS="python3_11 python3_12"
PYTHON_SINGLE_TARGET="python3_12"
------------------------------------------------------------

.. as per the relevant eselect news article.

Then...

------------------------------------------------------------
emerge --sync
echo "=sci-electronics/kicad-8.0.3 ~amd64" >>/etc/portage/package.accept_keywords/kicad
echo "=dev-python/wxpython-4.2.1-r1 ~amd64" >>/etc/portage/package.accept_keywords/wxpython
emerge -av =sci-electronics/kicad-8.0.3
emerge --depclean
emerge -1vUD @world
------------------------------------------------------------