[Bugs] [Bug 128] New: alternatives update should have an --ignore option

bugzilla-daemon at exherbo.org bugzilla-daemon at exherbo.org
Sun Oct 26 14:15:37 GMT 2008


           Summary: alternatives update should have an --ignore option
           Product: Hosted projects
           Version: unspecified
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Eclectic
        AssignedTo: eclectic at exherbo.org
        ReportedBy: dleverton at exherbo.org

The update action in alternatives.bash should have an --ignore option to avoid
choosing a particular provider.  This would be used in alternatives_pkg_postrm
(which would be moved to alternatives_pkg_prerm) to make sure that the symlinks
do not point to a package that is going to be removed.

This prevents the following scenario, which would occur with the current
mechanisms if we used alternatives for /bin/sh:
* User installs (say) dash
* User sets /bin/sh to dash using alternatives
* Some time later, user decides to remove dash after all
* Paludis unmerges dash's files
* Paludis tries to run pkg_postrm for dash, which would reset /bin/sh to
something valid, but can't because it needs to use /bin/sh, which is now broken
by dash's removal

This needs to wait until we have a way to distinguish in pkg_prerm between
uninstalls, upgrades and reinstalls.

Configure bugmail: https://bugs.exherbo.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.

More information about the Bugs mailing list