commit:     29bce68743b352b04ebbdaf82ca73a6f526a7fad
Author:     Moritz Brunner <moritz.brunner+gentoo <AT> posteo <DOT> de>
AuthorDate: Thu Dec  7 18:26:23 2023 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Mon Dec 15 14:02:38 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=29bce687

dev-php/reactphp-promise: Respect EPREFIX in autoload.php

The provided autoload.php file hardcodes library PHP paths to
/usr/share/php/..., which is invalid in Prefix installations, since the
path will most likely not exist.

This commit modifies autoload.php during the installation to include
the correct EPREFIX before the file is copied to the final image
destination.

Closes: https://bugs.gentoo.org/919472
Signed-off-by: Moritz Brunner <moritz.brunner+gentoo <AT> posteo.de>
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>

 dev-php/reactphp-promise/reactphp-promise-2.8.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-php/reactphp-promise/reactphp-promise-2.8.0.ebuild 
b/dev-php/reactphp-promise/reactphp-promise-2.8.0.ebuild
index 3126e02ce036..3737fbb4c5bf 100644
--- a/dev-php/reactphp-promise/reactphp-promise-2.8.0.ebuild
+++ b/dev-php/reactphp-promise/reactphp-promise-2.8.0.ebuild
@@ -35,7 +35,7 @@ cat >> src/autoload.php <<EOF || die "failed to extend 
autoload.php"
 
 // Dependencies
 \Fedora\Autoloader\Dependencies::required([
-       '/usr/share/php/React/Promise/functions.php'
+       '${EPREFIX}/usr/share/php/React/Promise/functions.php'
 ]);
 EOF
 }

Reply via email to