From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 8A5E5158099 for ; Sun, 26 Nov 2023 15:23:46 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AE3582BC024; Sun, 26 Nov 2023 15:23:45 +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) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 874952BC024 for ; Sun, 26 Nov 2023 15:23:45 +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) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 6FA1D340906 for ; Sun, 26 Nov 2023 15:23:44 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id CC570998 for ; Sun, 26 Nov 2023 15:23:42 +0000 (UTC) From: "Mike Pagano" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Pagano" Message-ID: <1701012136.d8f9d290054a758eaad85194c40ff7ccfce71d85.mpagano@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-kernel/linux-firmware/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-kernel/linux-firmware/linux-firmware-99999999.ebuild X-VCS-Directories: sys-kernel/linux-firmware/ X-VCS-Committer: mpagano X-VCS-Committer-Name: Mike Pagano X-VCS-Revision: d8f9d290054a758eaad85194c40ff7ccfce71d85 X-VCS-Branch: master Date: Sun, 26 Nov 2023 15:23:42 +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: 9da45c7c-ba06-4d20-8dfd-28442f196502 X-Archives-Hash: 880c9ac16fb988313a9e7c3c6bfd601f commit: d8f9d290054a758eaad85194c40ff7ccfce71d85 Author: Mike Pagano gentoo org> AuthorDate: Sun Nov 26 15:22:16 2023 +0000 Commit: Mike Pagano gentoo org> CommitDate: Sun Nov 26 15:22:16 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d8f9d290 sys-kernel/linux-firmware: upd EAPI 7->8, add dedup optional logic Move upstream's deduplication part of their script, which requires rdfind, behind a new use flag: deduplicate Patch will remove the deduplication part of the script based on use flag. Thanks to Sam for the review Closes: https://bugs.gentoo.org/917324 Signed-off-by: Mike Pagano gentoo.org> sys-kernel/linux-firmware/linux-firmware-99999999.ebuild | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/sys-kernel/linux-firmware/linux-firmware-99999999.ebuild b/sys-kernel/linux-firmware/linux-firmware-99999999.ebuild index ccaa3a11c7ef..01fe7c79c96d 100644 --- a/sys-kernel/linux-firmware/linux-firmware-99999999.ebuild +++ b/sys-kernel/linux-firmware/linux-firmware-99999999.ebuild @@ -1,7 +1,7 @@ # Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 inherit linux-info mount-boot savedconfig multiprocessing # In case this is a real snapshot, fill in commit below. @@ -29,9 +29,10 @@ LICENSE="GPL-2 GPL-2+ GPL-3 BSD MIT || ( MPL-1.1 GPL-2 ) redistributable? ( linux-fw-redistributable BSD-2 BSD BSD-4 ISC MIT ) unknown-license? ( all-rights-reserved )" SLOT="0" -IUSE="compress-xz compress-zstd initramfs +redistributable savedconfig unknown-license" +IUSE="compress-xz compress-zstd deduplicate initramfs +redistributable savedconfig unknown-license" REQUIRED_USE="initramfs? ( redistributable ) - ?? ( compress-xz compress-zstd )" + ?? ( compress-xz compress-zstd ) + savedconfig? ( !deduplicate )" RESTRICT="binchecks strip test unknown-license? ( bindist )" @@ -39,7 +40,7 @@ RESTRICT="binchecks strip test BDEPEND="initramfs? ( app-arch/cpio ) compress-xz? ( app-arch/xz-utils ) compress-zstd? ( app-arch/zstd ) - app-misc/rdfind" + deduplicate? ( app-misc/rdfind )" #add anything else that collides to this RDEPEND="!savedconfig? ( @@ -63,6 +64,7 @@ RDEPEND="!savedconfig? ( )" QA_PREBUILT="*" +PATCHES=( "${FILESDIR}/${PN}-remove-rdfind-dep-and-use.patch" ) pkg_setup() { if use compress-xz || use compress-zstd ; then @@ -98,6 +100,7 @@ src_unpack() { } src_prepare() { + use deduplicate && export LINUX_FIRMWARE_DO_DEDUPE=1 default find . -type f -not -perm 0644 -print0 \