From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 04F341582EF for ; Sat, 15 Feb 2025 09:29:51 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id E36F534309A for ; Sat, 15 Feb 2025 09:29:50 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 468D711047C; Sat, 15 Feb 2025 09:29:30 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 416C611047C for ; Sat, 15 Feb 2025 09:29:30 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id EDAB034305A for ; Sat, 15 Feb 2025 09:29:29 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 8D33B2722 for ; Sat, 15 Feb 2025 09:29:27 +0000 (UTC) From: "Ulrich Müller" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ulrich Müller" Message-ID: <1739611597.c51606ad9813a79a8f6c8ecdb2efa3c54cdbb58a.ulm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-fs/cryfs/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-fs/cryfs/cryfs-1.0.1.ebuild X-VCS-Directories: sys-fs/cryfs/ X-VCS-Committer: ulm X-VCS-Committer-Name: Ulrich Müller X-VCS-Revision: c51606ad9813a79a8f6c8ecdb2efa3c54cdbb58a X-VCS-Branch: master Date: Sat, 15 Feb 2025 09:29:27 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 4672b836-03d3-4d84-9200-bfa6880d13f9 X-Archives-Hash: 852c4ddaeb7cbed313822fcf625469d9 commit: c51606ad9813a79a8f6c8ecdb2efa3c54cdbb58a Author: Ulrich Müller gentoo org> AuthorDate: Fri Feb 14 14:12:10 2025 +0000 Commit: Ulrich Müller gentoo org> CommitDate: Sat Feb 15 09:26:37 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c51606ad sys-fs/cryfs: Port to ver_replacing Signed-off-by: Ulrich Müller gentoo.org> sys-fs/cryfs/cryfs-1.0.1.ebuild | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/sys-fs/cryfs/cryfs-1.0.1.ebuild b/sys-fs/cryfs/cryfs-1.0.1.ebuild index e84bb6a6184c..dfbb7de32b8e 100644 --- a/sys-fs/cryfs/cryfs-1.0.1.ebuild +++ b/sys-fs/cryfs/cryfs-1.0.1.ebuild @@ -4,7 +4,7 @@ EAPI=8 PYTHON_COMPAT=( python3_{10..13} ) -inherit cmake flag-o-matic linux-info python-any-r1 +inherit cmake eapi9-ver flag-o-matic linux-info python-any-r1 if [[ ${PV} == 9999 ]] ; then inherit git-r3 @@ -165,16 +165,11 @@ src_install() { } pkg_postinst() { - if [[ -n ${REPLACING_VERSIONS} ]] ; then - for ver in "${REPLACING_VERSIONS[@]}" ; do - if ver_test "${ver}" -lt 1.0.0; then - elog "Filesystems created with CryFS 0.11.x and CryFS 1.0.0 are fully compatible with each other." - elog "This means filesystems created with 0.10.x or 0.11.x can be mounted without requiring a migration." - elog "Filesystems created with 1.0.0 or 0.11.x can be mounted by CryFS 0.10.x," - elog "but only if you configure it to use a cipher supported by CryFS 0.10.x, e.g. AES-256-GCM." - elog "The new default, XChaCha20-Poly1305, is not supported by CryFS 0.10.x." - break - fi - done + if ver_replacing -lt 1.0.0; then + elog "Filesystems created with CryFS 0.11.x and CryFS 1.0.0 are fully compatible with each other." + elog "This means filesystems created with 0.10.x or 0.11.x can be mounted without requiring a migration." + elog "Filesystems created with 1.0.0 or 0.11.x can be mounted by CryFS 0.10.x," + elog "but only if you configure it to use a cipher supported by CryFS 0.10.x, e.g. AES-256-GCM." + elog "The new default, XChaCha20-Poly1305, is not supported by CryFS 0.10.x." fi }