Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#78581 - [pyenv] Doesn't work correctly after installing in different root directory

Attached to Project: Arch Linux
Opened by Joey Holtzman (jdholtz) - Wednesday, 24 May 2023, 04:00 GMT
Last edited by Toolybird (Toolybird) - Wednesday, 24 May 2023, 20:28 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
This package does not work correctly after being installed using pacman's --root flag to point to another directory besides /. This is due to the `ln -sv` command using the absolute path. Using a relative path fixes the issue: `ln -sv /usr/share/...` -> `ln -sv ../share/...`.

Steps to reproduce:
1. Make a new root directory: `mkdir -p root-dir/var/lib/pacman`
2. Install pyenv in the new root directory: `sudo pacman -Sy pyenv`
3. Attempt to run pyenv from the new root directory: `./root-dir/usr/bin/pyenv`
4. Observe the error: 'No such file or directory'
This task depends upon

Closed by  Toolybird (Toolybird)
Wednesday, 24 May 2023, 20:28 GMT
Reason for closing:  Not a bug
Additional comments about closing:  @Scimmia correctly says "Not supposed to work". If you're unsure why what you're doing is wrong, please visit the support channels (Forum/IRC/Mailing lists/Reddit/etc) to seek assistance.

Loading...