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

Bug 874618

Summary: app-eselect/eselect-python: "eselect python set N" should output a confirmation of the selected option
Product: Gentoo Linux Reporter: Andrew Church <achurch+gentoo>
Component: Current packagesAssignee: Python Gentoo Team <python>
Status: UNCONFIRMED ---    
Severity: enhancement CC: gentoo, ionen
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 874351    
Attachments: Trivial patch to add set feedback

Description Andrew Church 2022-10-03 10:20:42 UTC
"eselect python set N" should output a confirmation of the selected option, as (for example) gcc-config does:

$ gcc-config 2
 * Switching native-compiler to x86_64-pc-linux-gnu-12.2.0 ... [ ok ]

See also bug 874351.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-10-04 01:05:00 UTC
eselect-python is pretty much in "serious bugs only" maintenance mode now (see news items from a while ago). Patches welcome.
Comment 2 Andrew Church 2022-10-04 03:17:50 UTC
I'm not familiar with the inner workings of eselect, but if this functionality is added to eselect-wine (bug 874612), I'll see if I can do the same here.
Comment 3 Ionen Wolkens gentoo-dev 2022-11-15 11:43:04 UTC
(In reply to Andrew Church from comment #2)
> I'm not familiar with the inner workings of eselect, but if this
> functionality is added to eselect-wine (bug 874612), I'll see if I can do
> the same here.
eselect doesn't have a designated command for set feedback (only warning, error, and list display), so as far as eselect-wine goes this is just going to be "echo $this happened" to be simple

gcc-config has different toys to play with (like ebegin/eend) given it loads /lib/gentoo/functions.sh (gcc's eselect module is just a wrapper to gcc-config)

That aside, eselect-python is not really used anymore so I'm not sure if it makes sense to improve it (guess some users still like the list and not having to edit python-exec.conf by hand, fwiw).
Comment 4 Andrew Church 2023-01-01 08:31:50 UTC
Created attachment 846346 [details, diff]
Trivial patch to add set feedback

A bit belated since I only just found time to get back to this, but it looks like this trivial patch should do what I was looking for.