Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 34245 - alternatives.eclass should use `ln -sf` instead of just `ln -s`
Summary: alternatives.eclass should use `ln -sf` instead of just `ln -s`
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Alastair Tse (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-24 01:59 UTC by Mamoru KOMACHI (RETIRED)
Modified: 2003-11-24 02:58 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mamoru KOMACHI (RETIRED) gentoo-dev 2003-11-24 01:59:18 UTC
Hi,

I'm using alternatives.eclass in a couple of ebuilds and think it is
handy to manipulate symlinks in pkg_postinst (good job!).  However, I
think alternatives.eclass should use `ln -sf` instead of `ln -s`
because `ln -s` fails if there exists a binary in destination.
alternatives_makesym/alternatives_auto_makesym is typically called
from pkg_postinst, and when you upgrade ebuilds it is likely that
there is a binary from previous version and symlink fails.
Comment 1 Alastair Tse (RETIRED) gentoo-dev 2003-11-24 02:58:34 UTC
thanks, thats a good idea. i've changed alternatives.eclass to use ln -sf