commit: 1e43bb001bc0bc61603fd35ce4da7f2d2597e002
Author: Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
AuthorDate: Thu Aug 7 04:44:09 2025 +0000
Commit: Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
CommitDate: Mon Aug 11 05:35:27 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1e43bb00
sec-keys.eclass: for SLOT= packages, add slot to filename
Seen for example with apache-tomcat. It has separate keys per major
version, parallel installable, with different release managers.
Although that ebuild doesn't use "apache-tomcat" as the filename base,
handling SLOT is necessary before considering to do so.
Signed-off-by: Eli Schwartz <eschwartz <AT> gentoo.org>
eclass/sec-keys.eclass | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/eclass/sec-keys.eclass b/eclass/sec-keys.eclass
index ed53adb5dbae..ccc9dfcccfe1 100644
--- a/eclass/sec-keys.eclass
+++ b/eclass/sec-keys.eclass
@@ -198,7 +198,11 @@ sec-keys_src_test() {
# installed to the standard /usr/share/openpgp-keys.
sec-keys_src_install() {
insinto /usr/share/openpgp-keys
- doins ${PN#openpgp-keys-}.asc
+
+ case ${SLOT} in
+ 0) doins ${PN#openpgp-keys-}.asc;;
+ *) newins ${PN#openpgp-keys-}.asc
${PN#openpgp-keys-}-${SLOT}.asc;;
+ esac
}
fi