From 9831b5fb7b0a05f133178ec40127fc3dabaaeaff Mon Sep 17 00:00:00 2001 From: Thomas Deutschmann Date: Fri, 30 Oct 2020 17:39:58 +0100 Subject: 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 --- sys-kernel/linux-firmware/linux-firmware-99999999.ebuild | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sys-kernel/linux-firmware') diff --git a/sys-kernel/linux-firmware/linux-firmware-99999999.ebuild b/sys-kernel/linux-firmware/linux-firmware-99999999.ebuild index 6a67500e679c..620398e13c26 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" -- cgit v1.2.3-65-gdbad