Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.gentoo.dev > #70461
| From | Eli Schwartz <eschwartz@gentoo.org> |
|---|---|
| Newsgroups | linux.gentoo.dev |
| Subject | [gentoo-dev] [PATCH v3 5/5] rpm.eclass: make RPM_COMPRESS_TYPE mandatory in EAPI 9 |
| Date | 2026-04-24 16:50 +0200 |
| Message-ID | <MNq0V-4DW-13@gated-at.bofh.it> (permalink) |
| References | <MMGKt-h9hY-3@gated-at.bofh.it> <MNq0V-4DW-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Without setting it, there are cases where rpm doesn't work, and cases
where rpm2targz doesn't work. So we eqawarn if not set. For backwards
compat it isn't required... but we can fix that in new EAPI, so do so!
Signed-off-by: Eli Schwartz <eschwartz@gentoo.org>
---
eclass/rpm.eclass | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/eclass/rpm.eclass b/eclass/rpm.eclass
index 6a096aba78bd..920f11262bdd 100644
--- a/eclass/rpm.eclass
+++ b/eclass/rpm.eclass
@@ -22,8 +22,8 @@ inherit estack toolchain-funcs
# @DEFAULT_UNSET
# @DESCRIPTION:
# Comma-separated list of app-arch/rpm compression formats. If set,
-# app-arch/rpm will be allowed as a BDEPEND to unpack distfiles. Supported
-# types:
+# app-arch/rpm will be allowed as a BDEPEND to unpack distfiles. Must be set
+# for EAPI 9. Supported types:
#
# - none (rpm is supported but distfile is uncompressed or builtin zlib)
#
@@ -37,6 +37,9 @@ inherit estack toolchain-funcs
# - zstd (.zst)
#
# - "" (empty -- the ebuild hasn't been updated to resolve deprecations)
+if [[ ${EAPI} != [78] && -z ${RPM_COMPRESS_TYPE} ]]; then
+ die "RPM_COMPRESS_TYPE= must be defined starting with EAPI 9"
+fi
_rpm_set_globals() {
local rpmdep= rpmuse= rpm2tar="true" t= types=()
--
2.52.0
Back to linux.gentoo.dev | Previous | Next — Previous in thread | Next in thread | Find similar
[gentoo-dev] [PATCH 1/5] rpm.eclass: rework app-arch/rpm support into pre-inherit variable Eli Schwartz <eschwartz@gentoo.org> - 2026-04-22 16:30 +0200
[gentoo-dev] [PATCH 4/5] x11-themes/leonidas-backgrounds: set rpm.eclass var for reference rpm support Eli Schwartz <eschwartz@gentoo.org> - 2026-04-22 16:30 +0200
Re: [gentoo-dev] [PATCH 1/5] rpm.eclass: rework app-arch/rpm support into pre-inherit variable Nowa Ammerlaan <nowa@gentoo.org> - 2026-04-22 17:20 +0200
Re: [gentoo-dev] [PATCH 1/5] rpm.eclass: rework app-arch/rpm support into pre-inherit variable Eli Schwartz <eschwartz@gentoo.org> - 2026-04-23 00:20 +0200
Re: [gentoo-dev] [PATCH 1/5] rpm.eclass: rework app-arch/rpm support into pre-inherit variable Sam James <sam@gentoo.org> - 2026-04-22 18:20 +0200
Re: [gentoo-dev] [PATCH 1/5] rpm.eclass: rework app-arch/rpm support into pre-inherit variable Eli Schwartz <eschwartz@gentoo.org> - 2026-04-23 00:20 +0200
Re: [gentoo-dev] [PATCH 1/5] rpm.eclass: rework app-arch/rpm support into pre-inherit variable Sam James <sam@gentoo.org> - 2026-04-23 02:10 +0200
[gentoo-dev] [PATCH v2 1/5] rpm.eclass: rework app-arch/rpm support into pre-inherit variable Eli Schwartz <eschwartz@gentoo.org> - 2026-04-23 02:50 +0200
Re: [gentoo-dev] [PATCH v2 1/5] rpm.eclass: rework app-arch/rpm support into pre-inherit variable Sam James <sam@gentoo.org> - 2026-04-23 03:20 +0200
Re: [gentoo-dev] [PATCH v2 1/5] rpm.eclass: rework app-arch/rpm support into pre-inherit variable Nicolas PARLANT <nicolas.parlant@parhuet.fr> - 2026-04-23 06:30 +0200
Re: [gentoo-dev] [PATCH v2 1/5] rpm.eclass: rework app-arch/rpm support into pre-inherit variable Eli Schwartz <eschwartz@gentoo.org> - 2026-04-23 07:00 +0200
[gentoo-dev] [PATCH v3 0/5] rpm.eclass: rework app-arch/rpm support into pre-inherit variable Eli Schwartz <eschwartz@gentoo.org> - 2026-04-24 16:50 +0200
[gentoo-dev] [PATCH v3 4/5] x11-themes/leonidas-backgrounds: set rpm.eclass var for reference rpm support Eli Schwartz <eschwartz@gentoo.org> - 2026-04-24 16:50 +0200
[gentoo-dev] [PATCH v3 1/5] rpm.eclass: rework app-arch/rpm support into pre-inherit variable Eli Schwartz <eschwartz@gentoo.org> - 2026-04-24 16:50 +0200
[gentoo-dev] [PATCH v3 3/5] app-backup/tsm: set rpm.eclass var for reference rpm support Eli Schwartz <eschwartz@gentoo.org> - 2026-04-24 16:50 +0200
[gentoo-dev] [PATCH v3 5/5] rpm.eclass: make RPM_COMPRESS_TYPE mandatory in EAPI 9 Eli Schwartz <eschwartz@gentoo.org> - 2026-04-24 16:50 +0200
[gentoo-dev] [PATCH v3 2/5] app-office/libreoffice-l10n: set rpm.eclass var for reference rpm support Eli Schwartz <eschwartz@gentoo.org> - 2026-04-24 16:50 +0200
csiph-web