From 9cbfa6270aea337561e5e3cb411a2acb6ae3178c Mon Sep 17 00:00:00 2001 From: Moritz Brunner Date: Wed, 6 Dec 2023 19:47:01 +0100 Subject: [PATCH] dev-php/theseer-Autoload: Do not symlink outside of EPREFIX During the prepare step of the ebuild, symlinks are created to previously installed PHP dependencies in the vendor subdirectory to bootstap phpab. These symlinks lead to the real root filesystem in /usr/share/php/... instead of the portage prefix $EPREFIX/usr/share/php, thus being essentially broken in a Prefix installation. By adding $EPREFIX to the link directory, the link is now correct both inside and outside of Prefix installations. Closes: https://bugs.gentoo.org/918933 Signed-off-by: Moritz Brunner Signed-off-by: Fabian Groffen --- dev-php/theseer-Autoload/theseer-Autoload-1.26.3-r1.ebuild | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dev-php/theseer-Autoload/theseer-Autoload-1.26.3-r1.ebuild b/dev-php/theseer-Autoload/theseer-Autoload-1.26.3-r1.ebuild index c0580ee326b2..4cb9011bfb66 100644 --- a/dev-php/theseer-Autoload/theseer-Autoload-1.26.3-r1.ebuild +++ b/dev-php/theseer-Autoload/theseer-Autoload-1.26.3-r1.ebuild @@ -57,9 +57,9 @@ src_prepare() { vendor/zetacomponents/console-tools \ || die - ln -s /usr/share/php/TheSeer/DirectoryScanner vendor/theseer/directoryscanner/src || die - ln -s /usr/share/php/ezc/Base vendor/zetacomponents/base/src || die - ln -s /usr/share/php/ezc/ConsoleTools vendor/zetacomponents/console-tools/src || die + ln -s "${EPREFIX}"/usr/share/php/TheSeer/DirectoryScanner vendor/theseer/directoryscanner/src || die + ln -s "${EPREFIX}"/usr/share/php/ezc/Base vendor/zetacomponents/base/src || die + ln -s "${EPREFIX}"/usr/share/php/ezc/ConsoleTools vendor/zetacomponents/console-tools/src || die ./phpab.php \ --output src/autoload.php \