From db4990a0afcc21a70eeccdfe8e4dd2929ac7ac6e Mon Sep 17 00:00:00 2001 From: Ionen Wolkens Date: Mon, 7 Aug 2023 08:01:50 -0400 Subject: [PATCH 1/2] media-libs/nv-codec-headers: fix double prefix Closes: https://bugs.gentoo.org/911852 Signed-off-by: Ionen Wolkens --- .../nv-codec-headers/nv-codec-headers-11.1.5.1-r1.ebuild | 4 ++-- media-libs/nv-codec-headers/nv-codec-headers-11.1.5.2.ebuild | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/media-libs/nv-codec-headers/nv-codec-headers-11.1.5.1-r1.ebuild b/media-libs/nv-codec-headers/nv-codec-headers-11.1.5.1-r1.ebuild index 9d32e6417079f..b25e327d0ffc9 100644 --- a/media-libs/nv-codec-headers/nv-codec-headers-11.1.5.1-r1.ebuild +++ b/media-libs/nv-codec-headers/nv-codec-headers-11.1.5.1-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -16,7 +16,7 @@ src_compile() { } src_install() { - emake PREFIX="${EPREFIX}"/usr LIBDIR="$(get_libdir)" DESTDIR="${ED}" install + emake PREFIX="${EPREFIX}"/usr LIBDIR="$(get_libdir)" DESTDIR="${D}" install mkdir -p "${ED}"/usr/share || die mv "${ED}/usr/$(get_libdir)/pkgconfig" "${ED}"/usr/share/ || die diff --git a/media-libs/nv-codec-headers/nv-codec-headers-11.1.5.2.ebuild b/media-libs/nv-codec-headers/nv-codec-headers-11.1.5.2.ebuild index 8dc1a3f71262f..b25e327d0ffc9 100644 --- a/media-libs/nv-codec-headers/nv-codec-headers-11.1.5.2.ebuild +++ b/media-libs/nv-codec-headers/nv-codec-headers-11.1.5.2.ebuild @@ -16,7 +16,7 @@ src_compile() { } src_install() { - emake PREFIX="${EPREFIX}"/usr LIBDIR="$(get_libdir)" DESTDIR="${ED}" install + emake PREFIX="${EPREFIX}"/usr LIBDIR="$(get_libdir)" DESTDIR="${D}" install mkdir -p "${ED}"/usr/share || die mv "${ED}/usr/$(get_libdir)/pkgconfig" "${ED}"/usr/share/ || die From 01e4a638c3decc74baa52975043bb4af89ae2c70 Mon Sep 17 00:00:00 2001 From: James Le Cuirot Date: Mon, 7 Aug 2023 12:59:34 +0100 Subject: [PATCH 2/2] Revert "python-utils-r1.eclass: Remove old EAPI hack for exporting PYTHON" This reverts commit 9e4dc068a3066434bfbfa3a0f979ec5d6d8020eb. It fixed cross-prefix but inadvertently broke regular prefix. Both were ultimately affected by the same PMS + Portage bug where BROOT was not set in pkg_preinst. This has now been fixed, but regular prefix users need to be able to update Portage without hitting the issue. Cross-prefix users are safe because the BROOT Portage can be updated without hitting the issue. Closes: https://bugs.gentoo.org/911797 Signed-off-by: James Le Cuirot --- eclass/python-utils-r1.eclass | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/eclass/python-utils-r1.eclass b/eclass/python-utils-r1.eclass index 27157a003ab2d..690b8ba8c79b5 100644 --- a/eclass/python-utils-r1.eclass +++ b/eclass/python-utils-r1.eclass @@ -338,7 +338,9 @@ _python_export() { debug-print "${FUNCNAME}: EPYTHON = ${EPYTHON}" ;; PYTHON) - export PYTHON=${BROOT}/usr/bin/${impl} + # Under EAPI 7+, this should just use ${BROOT}, but Portage + # <3.0.50 was buggy, and prefix users need this to update. + export PYTHON=${BROOT-${EPREFIX}}/usr/bin/${impl} debug-print "${FUNCNAME}: PYTHON = ${PYTHON}" ;; PYTHON_SITEDIR)