diff options
author | Till Schäfer <till2.schaefer@uni-dortmund.de> | 2021-06-09 11:39:31 +0200 |
---|---|---|
committer | Mike Pagano <mpagano@gentoo.org> | 2021-06-09 07:54:33 -0400 |
commit | b4a816d5c143c0a79c9853221860918484cdcab4 (patch) | |
tree | e3bde1e2fdf978b3aec7510eef89ea22f9fcbb21 /eclass/kernel-2.eclass | |
parent | games-puzzle/biniax2: add missing overlooked EPREFIX (diff) | |
download | gentoo-b4a816d5c143c0a79c9853221860918484cdcab4.tar.gz gentoo-b4a816d5c143c0a79c9853221860918484cdcab4.tar.bz2 gentoo-b4a816d5c143c0a79c9853221860918484cdcab4.zip |
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@uni-dortmund.de>
Closes: https://bugs.gentoo.org/795057
Closes: https://github.com/gentoo/gentoo/pull/21171
Signed-off-by: Mike Pagano <mpagano@gentoo.org>
Diffstat (limited to 'eclass/kernel-2.eclass')
-rw-r--r-- | eclass/kernel-2.eclass | 2 |
1 files changed, 1 insertions, 1 deletions
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 |