Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 864430

Summary: sys-cluster/crmsh-4.2.1-r2 python_targets_python3_9 ignored
Product: Gentoo Linux Reporter: Christian R <chris>
Component: Current packagesAssignee: Gentoo Cluster Team <cluster>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 803152    
Attachments: crmsh 4.4.0 ebuild
parallax 1.0.6 ebuild with python 3.10 target

Description Christian R 2022-08-08 16:12:23 UTC
=sys-cluster/crmsh-4.2.1-r2 python_targets_python3_9

./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-silent-rules --docdir=/usr/share/doc/crmsh-4.2.1-r2 --htmldir=/usr/share/doc/crmsh-4.2.1-r2/html --libdir=/usr/lib64
checking for a BSD-compatible install... /usr/lib/portage/python3.10/ebuild-helpers/xattr/install -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking whether make supports nested variables... (cached) yes
checking for a Python interpreter with version >= 3... python
checking for python... /usr/bin/python
checking for python version... 3.10
checking for python platform... linux
checking for GNU default python prefix... ${prefix}
checking for GNU default python exec_prefix... ${exec_prefix}
checking for python script directory (pythondir)... ${PYTHON_PREFIX}/lib/python3.10/site-packages
checking for python extension module directory (pyexecdir)... ${PYTHON_EXEC_PREFIX}/lib/python3.10/site-packages


it only installs for python 3.10

when running "crm":
Fatal error:
    No module named 'parallax'



Reproducible: Always
Comment 1 Christian R 2022-08-09 11:01:38 UTC
got it working with

EPYTHON=python3.9 emerge -av crmsh

another approach is using crmsh 4.4.0 and parallax with python 3.10 support
Comment 2 Christian R 2022-08-09 11:02:19 UTC
Created attachment 798983 [details]
crmsh 4.4.0 ebuild
Comment 3 Christian R 2022-08-09 11:02:59 UTC
Created attachment 798985 [details]
parallax 1.0.6 ebuild with python 3.10 target
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-08-10 03:21:05 UTC
Oh dear.
Comment 5 Larry the Git Cow gentoo-dev 2022-08-10 03:31:14 UTC
The bug has been closed via the following commit(s):

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

commit ef3d28b9ec4691891312c63b9e411d024b1c00ac
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-08-10 03:29:52 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-08-10 03:30:54 +0000

    sys-cluster/crmsh: switch to python-single-r1
    
    It doesn't support multiple Python implementations
    right now but it wasn't using python-r1 correctly
    anyway (missing python_setup) and was ignoring
    the selected target, just going off /usr/bin/python3.
    
    Closes: https://bugs.gentoo.org/864430
    Closes: https://bugs.gentoo.org/863749
    Closes: https://bugs.gentoo.org/728152
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-cluster/crmsh/crmsh-4.2.1-r3.ebuild | 46 +++++++++++++++++++++++++++++++++
 1 file changed, 46 insertions(+)