1 |
commit: b4a816d5c143c0a79c9853221860918484cdcab4 |
2 |
Author: Till Schäfer <till2.schaefer <AT> uni-dortmund <DOT> de> |
3 |
AuthorDate: Wed Jun 9 09:39:31 2021 +0000 |
4 |
Commit: Mike Pagano <mpagano <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jun 9 11:54:33 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b4a816d5 |
7 |
|
8 |
eclass/kernel-2: fix USE=symlink |
9 |
|
10 |
the symlink to /usr/src/linux is longer removed bofore linking |
11 |
(see 7446cb850c5e0412e4d88b3aa5d207751241fb02). the latter ln -sf |
12 |
does not replace existing symlinks, since destination is a |
13 |
directory. |
14 |
|
15 |
Closes: https://bugs.gentoo.org/795057 |
16 |
Signed-off-by: Till Schäfer <till2.schaefer <AT> uni-dortmund.de> |
17 |
Closes: https://bugs.gentoo.org/795057 |
18 |
Closes: https://github.com/gentoo/gentoo/pull/21171 |
19 |
Signed-off-by: Mike Pagano <mpagano <AT> gentoo.org> |
20 |
|
21 |
eclass/kernel-2.eclass | 2 +- |
22 |
1 file changed, 1 insertion(+), 1 deletion(-) |
23 |
|
24 |
diff --git a/eclass/kernel-2.eclass b/eclass/kernel-2.eclass |
25 |
index 4c25ff3aef8..20c83b37c1f 100644 |
26 |
--- a/eclass/kernel-2.eclass |
27 |
+++ b/eclass/kernel-2.eclass |
28 |
@@ -962,7 +962,7 @@ postinst_sources() { |
29 |
die "${EROOT%/}/usr/src/linux exist and is not a symlink" |
30 |
fi |
31 |
|
32 |
- ln -sf linux-${KV_FULL} "${EROOT%/}"/usr/src/linux || die |
33 |
+ ln -snf linux-${KV_FULL} "${EROOT%/}"/usr/src/linux || die |
34 |
fi |
35 |
|
36 |
# Don't forget to make directory for sysfs |