commit:     64c641204a261616d7a855b80ff1c6f89658fc2c
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Fri Feb 14 16:16:40 2025 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Sat Feb 22 07:57:50 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=64c64120

dev-libs/libtpms: Fix incorrect REPLACING_VERSIONS usage

Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>

 dev-libs/libtpms/libtpms-0.10.0.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev-libs/libtpms/libtpms-0.10.0.ebuild 
b/dev-libs/libtpms/libtpms-0.10.0.ebuild
index c8d8fd24e619..d6828749e312 100644
--- a/dev-libs/libtpms/libtpms-0.10.0.ebuild
+++ b/dev-libs/libtpms/libtpms-0.10.0.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-inherit autotools
+inherit autotools eapi9-ver
 
 DESCRIPTION="Library providing software emulation of a TPM"
 HOMEPAGE="https://github.com/stefanberger/libtpms";
@@ -40,7 +40,7 @@ src_install() {
 }
 
 pkg_postinst() {
-       if [[ ${REPLACING_VERSIONS} ]] && ver_test ${REPLACING_VERSIONS} -lt 
0.8.0; then
+       if ver_replacing -lt 0.8.0; then
                elog "Versions of libtpms prior to 0.8.0 generate weaker than 
expected TPM 2.0 RSA"
                elog "keys due to a flawed key creation algorithm. Because 
fixing this would render"
                elog "existing sealed data inaccessible, to use the corrected 
algorithm, the old"

Reply via email to