From 97a97a135ea37d49aa28dfc4b817a1722f1706d2 Mon Sep 17 00:00:00 2001 From: Yiyang Wu Date: Sun, 8 Feb 2026 14:20:38 +0800 Subject: [PATCH] app-portage/command-not-found: proper prefixify for RAP Do not prefixify command-not-found python script because the search path should remain without prefix. Signed-off-by: Yiyang Wu Part-of: https://codeberg.org/gentoo/gentoo/pulls/37 Merges: https://codeberg.org/gentoo/gentoo/pulls/37 Signed-off-by: Nowa Ammerlaan --- ...nd-0.0.7.ebuild => command-not-found-0.0.7-r1.ebuild} | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) rename app-portage/command-not-found/{command-not-found-0.0.7.ebuild => command-not-found-0.0.7-r1.ebuild} (88%) diff --git a/app-portage/command-not-found/command-not-found-0.0.7.ebuild b/app-portage/command-not-found/command-not-found-0.0.7-r1.ebuild similarity index 88% rename from app-portage/command-not-found/command-not-found-0.0.7.ebuild rename to app-portage/command-not-found/command-not-found-0.0.7-r1.ebuild index 0a5be8ad99491..ac7404aac3585 100644 --- a/app-portage/command-not-found/command-not-found-0.0.7.ebuild +++ b/app-portage/command-not-found/command-not-found-0.0.7-r1.ebuild @@ -1,11 +1,11 @@ -# Copyright 2019-2025 Gentoo Authors +# Copyright 2019-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 PYTHON_COMPAT=( python3_{10..13} ) -inherit optfeature python-r1 +inherit optfeature prefix python-r1 DESCRIPTION="Command-not-found handler for Gentoo" HOMEPAGE="https://github.com/Nowa-Ammerlaan/command-not-found-gentoo" @@ -21,6 +21,11 @@ REQUIRED_USE="${PYTHON_REQUIRED_USE}" RDEPEND="${PYTHON_DEPS}" +src_prepare() { + default + hprefixify command-not-found.sh +} + src_install() { python_foreach_impl python_doscript command-not-found