Control: found -1 pyenv/2.5.5-1
On Wed, 07 May 2025 14:16:12 +0200 Nicolas Frattaroli <
[email protected]> wrote:
Hello,
this bug was ultimately caused by /etc/profile.d/pyenv.sh, which Debian ships.
It sets the PYENV_ROOT to a directory that the user cannot actually write to, in the users environment.
[...]
Hello Nicolas,
thanks for spotting this, which really seems to be the root cause of
the "cannot rehash" error.
However, file '/etc/profile.d/pyenv.sh' still seems to be shipped in the pyenv/2.5.5-1 Debian package.
I am thus reopening this bug report.
Josenilson,
please drop '/etc/profile.d/pyenv.sh' from the Debian package.
Moreover, the man page now suggests:
[...]
| 1. Append the following to $HOME/.bashrc
|
| if command -v pyenv 1>/dev/null 2>&1; then
| export PYENV_ROOT="$HOME/.pyenv"
| export PATH="$PYENV_ROOT/bin:$PATH"
| eval "$(pyenv init - bash)"
| fi
[...]
This suggestion is better than it was in the pyenv/2.5.4-1 Debian
package, but now suggests to add a path that does not seem to
exist ("$PYENV_ROOT/bin").
I would say that a better suggestion would more simply be:
[...]
| 1. Append the following to $HOME/.bashrc
|
| if command -v pyenv 1>/dev/null 2>&1; then
| export PYENV_ROOT="$HOME/.pyenv"
| eval "$(pyenv init - bash)"
| fi
[...]
Please enhance the man page.
Thanks for your time and dedication.
--
http://www.inventati.org/frx/
There's not a second to spare! To the laboratory! ..................................................... Francesco Poli .
GnuPG key fpr == CA01 1147 9CD2 EFDF FB82 3925 3E1C 27E1 1F69 BFFE
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEygERR5zS79/7gjklPhwn4R9pv/4FAmh+cwwACgkQPhwn4R9p v/5/zRAAtoGRe3iELRyrrk40ap/vxtrzOgLQMyd3CZkVWXNq9mdphW1P0nznTafc RNvvUNyCJFtj6m6fmdOKH0yZh2HweFkk2kLqsjZxzvmeq5ApJHRwfJwJ99PYxa27 S9V1zpWSuKW6xAkiOrghfA4HVs/FadyxwRQrPBsEgDFZrBDyxJ2mdVNe5aefvEdh /7Em4NwsTE4TOlkqK23eIh8Mya6AUDcuWraZYmNJDmitKds7HM3TuCsRwR3XTNLQ sH2FY6KvAY6TjSoQtsoIbZueAxEQPcYKd7DDWn6MqPRLis4uTm8NoTgj/Nw9QV59 Lv5U+2QLMMHRwRr2nWa8q4uIW67HAJl9sRnfDEuywu9MVENmipGb9+YGZ4VZmoG3 SPTSVIIi3Tdy6KcCFXcD3xBI3EjqayiIqoDHUo/z6NmrWWuGYEEDhn8GFX7cdHv2 VOfWGHBbdzdcbC6Bu7aWOEU8UTwFGOv2iiPeNOGlmIDpAMU5esomG1zOHSNyWW5L aOzQWrT90ac+HEDF4Y/RnQRp8lup+8MjZ1gIgJy1Ds+tLp1zNmFw9DDE+eGttD9f pTPwxrsoldoAIpTTMSMuVZrk3+ZUCpwlFNatJt3Tk+czL6oBgKWvjfEeZcQrEjHT 2rVS+6syAyISsYz/2ohMiz2CuhGK8wCZ