From 1b3eeaed8182ecc53945870e8d54c48258cfe8c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ulrich=20M=C3=BCller?= Date: Fri, 14 Feb 2025 15:12:12 +0100 Subject: [PATCH] sys-kernel/linux-firmware: Port to ver_replacing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ulrich Müller --- .../linux-firmware-20250211.ebuild | 18 +++++++----------- .../linux-firmware-99999999.ebuild | 18 +++++++----------- 2 files changed, 14 insertions(+), 22 deletions(-) diff --git a/sys-kernel/linux-firmware/linux-firmware-20250211.ebuild b/sys-kernel/linux-firmware/linux-firmware-20250211.ebuild index 814b93f23383c..0cdf75b4cb21b 100644 --- a/sys-kernel/linux-firmware/linux-firmware-20250211.ebuild +++ b/sys-kernel/linux-firmware/linux-firmware-20250211.ebuild @@ -3,7 +3,7 @@ EAPI=8 PYTHON_COMPAT=( python3_{10..13} ) -inherit dist-kernel-utils linux-info mount-boot python-any-r1 savedconfig +inherit dist-kernel-utils eapi9-ver linux-info mount-boot python-any-r1 savedconfig # In case this is a real snapshot, fill in commit below. # For normal, tagged releases, leave blank @@ -374,16 +374,12 @@ pkg_postinst() { elog "If you are only interested in particular firmware files, edit the saved" elog "configfile and remove those that you do not want." - local ver - for ver in ${REPLACING_VERSIONS}; do - if ver_test ${ver} -lt 20190514; then - elog - elog 'Starting with version 20190514, installation of many firmware' - elog 'files is controlled by USE flags. Please review your USE flag' - elog 'and package.license settings if you are missing some files.' - break - fi - done + if ver_replacing -lt 20190514; then + elog + elog 'Starting with version 20190514, installation of many firmware' + elog 'files is controlled by USE flags. Please review your USE flag' + elog 'and package.license settings if you are missing some files.' + fi if use initramfs; then if use dist-kernel; then diff --git a/sys-kernel/linux-firmware/linux-firmware-99999999.ebuild b/sys-kernel/linux-firmware/linux-firmware-99999999.ebuild index e81d2971c4761..8627d8cf57ca7 100644 --- a/sys-kernel/linux-firmware/linux-firmware-99999999.ebuild +++ b/sys-kernel/linux-firmware/linux-firmware-99999999.ebuild @@ -3,7 +3,7 @@ EAPI=8 PYTHON_COMPAT=( python3_{10..13} ) -inherit dist-kernel-utils linux-info mount-boot python-any-r1 savedconfig +inherit dist-kernel-utils eapi9-ver linux-info mount-boot python-any-r1 savedconfig # In case this is a real snapshot, fill in commit below. # For normal, tagged releases, leave blank @@ -368,16 +368,12 @@ pkg_postinst() { elog "If you are only interested in particular firmware files, edit the saved" elog "configfile and remove those that you do not want." - local ver - for ver in ${REPLACING_VERSIONS}; do - if ver_test ${ver} -lt 20190514; then - elog - elog 'Starting with version 20190514, installation of many firmware' - elog 'files is controlled by USE flags. Please review your USE flag' - elog 'and package.license settings if you are missing some files.' - break - fi - done + if ver_replacing -lt 20190514; then + elog + elog 'Starting with version 20190514, installation of many firmware' + elog 'files is controlled by USE flags. Please review your USE flag' + elog 'and package.license settings if you are missing some files.' + fi if use initramfs; then if use dist-kernel; then