diff options
| author | Moritz Brunner <moritz.brunner+gentoo@posteo.de> | 2023-12-06 19:55:48 +0100 |
|---|---|---|
| committer | Fabian Groffen <grobian@gentoo.org> | 2025-12-15 15:01:05 +0100 |
| commit | c07bf106d57932968025eddb23ddb932ca35e8a0 (patch) | |
| tree | 148916c049d2c05754c79ada5194f9e0e375438f /dev-php/ca-bundle | |
| parent | 9cbfa6270aea337561e5e3cb411a2acb6ae3178c (diff) | |
| download | gentoo-c07bf106d57932968025eddb23ddb932ca35e8a0.tar.gz gentoo-c07bf106d57932968025eddb23ddb932ca35e8a0.tar.bz2 gentoo-c07bf106d57932968025eddb23ddb932ca35e8a0.zip | |
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 <moritz.brunner+gentoo@posteo.de>
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
Diffstat (limited to 'dev-php/ca-bundle')
| -rw-r--r-- | dev-php/ca-bundle/ca-bundle-1.3.1.ebuild | 5 |
1 files changed, 4 insertions, 1 deletions
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 9c2a7ab6efa0..98588f2c8b4b 100644 --- a/dev-php/ca-bundle/ca-bundle-1.3.1.ebuild +++ b/dev-php/ca-bundle/ca-bundle-1.3.1.ebuild @@ -3,6 +3,8 @@ EAPI=8 +inherit prefix + DESCRIPTION="Find the system CA bundle or fall back to the Mozilla one" HOMEPAGE="https://github.com/composer/ca-bundle" SRC_URI="https://github.com/composer/ca-bundle/archive/${PV}.tar.gz -> ${P}.tar.gz" @@ -17,6 +19,7 @@ RDEPEND=" src_install() { insinto /usr/share/php/Composer/CaBundle - doins src/CaBundle.php "${FILESDIR}/autoload.php" + doins src/CaBundle.php \ + "$(prefixify_ro "${FILESDIR}"/autoload.php)" dodoc README.md } |
