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