Historical bug tracker for the Pacman package manager.
The pacman bug tracker has moved to gitlab:
https://gitlab.archlinux.org/pacman/pacman/-/issues
This tracker remains open for interaction with historical bugs during the transition period. Any new bugs reports will be closed without further action.
The pacman bug tracker has moved to gitlab:
https://gitlab.archlinux.org/pacman/pacman/-/issues
This tracker remains open for interaction with historical bugs during the transition period. Any new bugs reports will be closed without further action.
FS#12568 - install scriptlets do not work with a non default RootDir setting
Attached to Project:
Pacman
Opened by Yun Zheng Hu (yun) - Thursday, 25 December 2008, 03:00 GMT
Last edited by Xavier (shining) - Friday, 11 September 2009, 13:50 GMT
Opened by Yun Zheng Hu (yun) - Thursday, 25 December 2008, 03:00 GMT
Last edited by Xavier (shining) - Friday, 11 September 2009, 13:50 GMT
|
DetailsSummary and Info:
When you configure pacman's RootDir other than the directory '/' for instance '/opt/arch', the install scriptlet in packages cannot be executed. Steps to Reproduce: - Change the RootDir of pacman to something else in pacman.conf, for example: /opt/arch - Create a package that has an install scriptlet, and put a debug "echo foobar" at the top of the scriptlet for debugging output. - Install the package with pacman -U, you will notice the debug "echo foobar" is not printed. Additional info: When running pacman with --debug it shows: debug: executing post_install script... debug: . /tmp/alpm_iXE3YI/.INSTALL; post_install 1.0-1 debug: chrooting in /opt/arch/ debug: executing ". /tmp/alpm_iXE3YI/.INSTALL; post_install 1.0-1" debug: call to waitpid succeeded I think the script cannot be executed because it cannot find '/bin/sh' and other tools needed to run the script because it got chrooted. |
This task depends upon
Closed by Xavier (shining)
Friday, 11 September 2009, 13:50 GMT
Reason for closing: Duplicate
Additional comments about closing: dup of FS#1446
:)
Friday, 11 September 2009, 13:50 GMT
Reason for closing: Duplicate
Additional comments about closing: dup of
You need to setup a base environment first if you want scriptlets to be executed.