From 293ad4b01346a98c8c79f7b2887f4dae47ee736b Mon Sep 17 00:00:00 2001 From: Moritz Brunner Date: Wed, 6 Dec 2023 19:55:48 +0100 Subject: [PATCH] dev-php/ca-bundle: 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/919376 Signed-off-by: Moritz Brunner --- dev-php/ca-bundle/ca-bundle-1.3.1.ebuild | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dev-php/ca-bundle/ca-bundle-1.3.1.ebuild b/dev-php/ca-bundle/ca-bundle-1.3.1.ebuild index e16650d74abd..a1ddef36f689 100644 --- a/dev-php/ca-bundle/ca-bundle-1.3.1.ebuild +++ b/dev-php/ca-bundle/ca-bundle-1.3.1.ebuild @@ -16,7 +16,9 @@ RDEPEND=" dev-php/fedora-autoloader" src_install() { + sed -e "s@/usr/share/php@${EPREFIX}&@g" "${FILESDIR}"/autoload.php > \ + "${T}"/autoload.php || die insinto /usr/share/php/Composer/CaBundle - doins src/CaBundle.php "${FILESDIR}/autoload.php" + doins src/CaBundle.php "${T}/autoload.php" dodoc README.md } -- 2.43.0.windows.1