summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Deutschmann <whissi@gentoo.org>2020-10-30 17:39:58 +0100
committerThomas Deutschmann <whissi@gentoo.org>2020-10-30 17:45:50 +0100
commit9831b5fb7b0a05f133178ec40127fc3dabaaeaff (patch)
tree787c207d85b7984af7da9d75be4eb9a77f7961f0 /sys-kernel/linux-firmware
parentsys-kernel/linux-firmware: keep misc files (diff)
downloadgentoo-9831b5fb7b0a05f133178ec40127fc3dabaaeaff.tar.gz
gentoo-9831b5fb7b0a05f133178ec40127fc3dabaaeaff.tar.bz2
gentoo-9831b5fb7b0a05f133178ec40127fc3dabaaeaff.zip
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@gentoo.org>
Diffstat (limited to 'sys-kernel/linux-firmware')
-rw-r--r--sys-kernel/linux-firmware/linux-firmware-99999999.ebuild4
1 files changed, 4 insertions, 0 deletions
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"