-
Notifications
You must be signed in to change notification settings - Fork 62
Install extension in specific folder using INSTALL_ROOT= #481
Copy link
Copy link
Labels
enhancementNew feature or requestNew feature or requestmaintainer investigatingThis ticket is being investigated by maintainers. Please check with us before contributing PRs etc!This ticket is being investigated by maintainers. Please check with us before contributing PRs etc!needs reporter feedbackNeeds details or feedback to be added by reporterNeeds details or feedback to be added by reporter
Milestone
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestmaintainer investigatingThis ticket is being investigated by maintainers. Please check with us before contributing PRs etc!This ticket is being investigated by maintainers. Please check with us before contributing PRs etc!needs reporter feedbackNeeds details or feedback to be added by reporterNeeds details or feedback to be added by reporter
Type
Fields
Give feedbackNo fields configured for Feature.
Bug
Currently it's not possible to install an extension in specific folder by defining
INSTALL_ROOT=, e.g.:After that you get following:
In UnixInstall.php line 70: [RuntimeException] Install failed, /usr/local/lib/php/extensions/no-debug-non-zts-20250925/apcu.so was not installed. Exception trace: at phar:///usr/bin/pie/src/Installing/UnixInstall.php:70See following line of code:
https://github.com/php/pie/blob/1.4.x/src/Installing/UnixInstall.php#L69
Reason
The variable
INSTALL_ROOTis already working fine with the extensions (while build-process), just pie throws the exception above because it does not handle any installation folders.In my opinion there should be a pie command option
--install-dir|--prefix(prefix should then also be used for the php binary paths) defining an installation directory and bypassing this value to the sys envINSTALL_ROOTbefore running the builds.Workaround
My current workaround is building twice:
Works like a charm, but yeah, I'm building twice...