commit: 9831b5fb7b0a05f133178ec40127fc3dabaaeaff
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Fri Oct 30 16:39:58 2020 +0000
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Fri Oct 30 16:45:50 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9831b5fb
sys-kernel/linux-firmware: delete broken symlinks
copy-firmware.sh can create broken symlinks when it tries to
symlink files we have removed due to set USE flags.
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
sys-kernel/linux-firmware/linux-firmware-99999999.ebuild | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/sys-kernel/linux-firmware/linux-firmware-99999999.ebuild
b/sys-kernel/linux-firmware/linux-firmware-99999999.ebuild
index 6a67500e679..620398e13c2 100644
--- a/sys-kernel/linux-firmware/linux-firmware-99999999.ebuild
+++ b/sys-kernel/linux-firmware/linux-firmware-99999999.ebuild
@@ -265,6 +265,10 @@ src_install() {
pushd "${ED}/lib/firmware" &>/dev/null || die
+ # especially use !redistributable will cause some broken symlinks
+ einfo "Removing broken symlinks ..."
+ find * -xtype l -print -delete || die
+
if use savedconfig; then
if [[ -s "${S}/${PN}.conf" ]]; then
local files_to_keep="${T}/files_to_keep.lst"