gentoo-php-overlay / php-overlay

Unofficial PHP Overlay for Gentoo Linux
7 stars 3 forks source link

dev-php/composer and dependencies: Ebuilds do not respect EPREFIX in generated autoload.php #21

Closed Oddegamra closed 11 months ago

Oddegamra commented 11 months ago

composer and many of its dependencies do not respect $EPREFIX when generating autoload.php. Thus, in a Prefix installation, the class loader will attempt to source the dependencies from /usr/share/php/... instead of the correct, prefix path in $EPREFIX/usr/share/php/.... Naturally, this will fail and composer will throw an error when starting up.

To actually run composer with the supplied changes applied, the ebuilds of dev-php/ca-bundle, dev-php/reactphp-promise and dev-php/theseer-Autoload also need identical fixes. I mention this only in passing since these packages are not preset in this repository.

r7l commented 11 months ago

@Oddegamra Thanks allot for the PRs. I'll have a look through it but have to find some time for the review as i don't run Gentoo Prefix myself.