The bundled autoload.php file from the ebuild's files subdirectory hardcodes library dependency paths to /usr/share/php/..., which will not be valid in a Prefix installation. One example: > require_once '/usr/share/php/Fedora/Autoloader/autoload.php'; The file should be modified to include EPREFIX in all paths before being included in the final installation image.
Created attachment 877958 [details, diff] Patch to include $EPREFIX in autoload.php paths
I think you should be able to require prefix, and then use prefixify_ro "${FILESDIR}"/autoload.php, it will place an adapted copy in ${T}.
Created attachment 878162 [details, diff] v2 of patch, using prefix.eclass/prefixify_ro Thank you for your improvement suggestion, this is indeed less verbose and more elegant. I've adapted the patch to use prefixify_ro instead of sed.
@PHP, @Guillame: does this look acceptable? OK to apply?