Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 919472

Summary: dev-php/reactphp-promise-2.8.0: Generated autoload.php does not respect EPREFIX
Product: Gentoo/Alt Reporter: Moritz Brunner <moritz.brunner+gentoo>
Component: Prefix SupportAssignee: Gentoo Prefix <prefix>
Status: CONFIRMED ---    
Severity: normal CC: php-bugs
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Patch to include $EPREFIX in autoload.php absolute path

Description Moritz Brunner 2023-12-08 17:53:46 UTC
The generated autoload.php from the ebuild's prepare stage hardcodes library dependency paths to /usr/share/php/..., which will not be valid in a Prefix installation. 

While the package will install fine, it will not be loadable due to invalid dependency paths.

The generated file should be modified to include EPREFIX in the absolute path to its dependency.
Comment 1 Moritz Brunner 2023-12-08 17:55:04 UTC
Created attachment 878407 [details, diff]
Patch to include $EPREFIX in autoload.php absolute path
Comment 2 Fabian Groffen gentoo-dev 2023-12-25 11:20:00 UTC
@PHP: what do you think, OK to apply?