-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Python configures broken symlinks for idle and 2to3 #54154
Comments
This is placed in the wrong place: void-packages/srcpkgs/python3/template Lines 34 to 36 in 187f554
AFAIK 2to3 diff --git a/srcpkgs/python3-tkinter/template b/srcpkgs/python3-tkinter/template
index 73cc637cd..650f271cb 100644
--- a/srcpkgs/python3-tkinter/template
+++ b/srcpkgs/python3-tkinter/template
@@ -30,6 +30,8 @@ license="Python-2.0"
distfiles="https://www.python.org/ftp/python/${version%rc*}/Python-${version}.tar.xz"
checksum=9cf9427bee9e2242e3877dd0f6b641c1853ca461f39d6503ce260a59c80bf0d9
+alternatives="python:idle:/usr/bin/idle${version%.*}"
+
if [ "$XBPS_TARGET_LIBC" = "glibc" ]; then
makedepends+=" libxcrypt-devel"
fi
diff --git a/srcpkgs/python3/template b/srcpkgs/python3/template
index b4f2829f0..1b974c759 100644
--- a/srcpkgs/python3/template
+++ b/srcpkgs/python3/template
@@ -32,8 +32,6 @@ checksum="9cf9427bee9e2242e3877dd0f6b641c1853ca461f39d6503ce260a59c80bf0d9
skip_extraction="${_bluez}.tar.xz"
alternatives="
- python:idle:/usr/bin/idle${version%.*}
- python:2to3:/usr/bin/2to3-${version%.*}
python:pydoc:/usr/bin/pydoc${version%.*}
python:python:/usr/bin/python${version%.*}
python:python.1:/usr/share/man/man1/python${version%.*}.1" Can you confirm this? @ahesford |
Temporary solution: sudo rm /usr/bin/idle /usr/bin/2to3 |
We can certainly drop the dead Handling I suggest we just drop both symlinks from the alternative group and, rather than make a new group just for Eventually, we should drop the whole alternative group and force py2 users to use versioned executables exclusively. This probably breaks some ancient workflow and would merit an |
is it necessary to split the python2 tkinter packages anymore? |
Probably not. We can just have an omnibus py2 that omits the idle symlink. |
Is this a new report?
Yes
System Info
Void 6.12.11_1 x86_64 GenuineIntel uptodate rrmFFFFF
Package(s) Affected
python3-3.13.1_1
Does a report exist for this bug with the project's home (upstream) and/or another distro?
No response
Description
The
python3
package configures, through the "alternatives" system, the executablesidle
and2to3
:This happens even if you don't have these tools installed:
This results in the creation of broken symlinks in your
PATH
, which generates a lot of warnings when you run a program launcher like Fuzzel.Fuzzel maintainer dnkl told me there's nothing they can do to fix this on their end, and that this is a Void problem.
Since the alternatives system is responsible for creating the symlinks every time the package is updated, I need to figure out how to disable these symlinks:
I could also install these executables. While there is a package that provides IDLE (
idle-python3
), I could not find any package for2to3
in the repository.After reading the
xbps-alternatives
manpage and help info, it doesn't seem to be possible to change these specific entries. Any ideas on how to solve this?The text was updated successfully, but these errors were encountered: