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