From b4a816d5c143c0a79c9853221860918484cdcab4 Mon Sep 17 00:00:00 2001 From: Till Schäfer Date: Wed, 9 Jun 2021 11:39:31 +0200 Subject: eclass/kernel-2: fix USE=symlink MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Closes: https://bugs.gentoo.org/795057 Closes: https://github.com/gentoo/gentoo/pull/21171 Signed-off-by: Mike Pagano --- eclass/kernel-2.eclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'eclass') diff --git a/eclass/kernel-2.eclass b/eclass/kernel-2.eclass index 4c25ff3aef88..20c83b37c1fd 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 -- cgit v1.2.3-65-gdbad