On Sun, 03 Feb 2013 14:02:39 +0200, Alan McKinnon wrote:

>  Nor does it make it wrong. I'm all for Gentoo allowing you to shoot
> > yourself in the foot, I just think it's a good idea to let you know
> > the gun is pointing at your foot before you pull the trigger.
> > Updating udev without the correct kernel options WILL break the
> > currently running system.   
> 
> And that is the problem.
> 
> WHICH kernel config and for WHICH kernel? The ebuild has no way of
> knowing and there is no sane mechanism for the user to indicate which
> one the ebuild should use.

The current kernel, the one it already uses to determine whether to print
the warning. All I'm asking is the the warning says "I'm going to break
your computer" instead of "I've just broken your computer and let's hope
you can fix it before anything causes a reboot".

> Any solution you come up with is going to be fraught with difficulties.
> Remember that kernel ebuilds are unique, it is the one packages where
> nothing is built or put into a runnable state, the ebuild only unpacks
> the tarball. So the ebuild cannot know what the config is going to be,
> it cannot know what kernel is going to run, it cannot fix any flag
> errors it finds, it cannot even know where your sources are or even if
> you have a kernel package installed at all. You quite possibly do not
> have a /boot/.config and you might not have enabled /proc/config.gz.
> 
> See how deep this goes?

Oh yes, and I don't see how it is possible to cover all situations. But
if the ebuild can detect that a warning is needed, it should give that
warning in time to avoid breakage.
 
> In short, there is absolutely no sane approach the ebuild could follow
> to protect you from yourself.

This sin;t about protecting the user from themself. They have a perfectly
working system which portage then renders unbootable with absolutely no
warning

> Yes, it might help YOU in YOUR particular
> setup, whilst infuriating others who do it differently.

There are already ways to skip warnings, like $I_KNOW_WHAT_I_AM_DOING.

> Think it through logically, the only thing you are left with that works
> is to inform the user of what is found and suggest approaches to take.

My criticism is not of that approach, it is of WHEN the warning is given.

This isn't about a lack of convenience, this upgrade WILL break a
computer that was working beforehand, and not tell the user about it
until after the damage is done. I'm not saying it is easy to find a
solution that helps avoid breaking while not inconveniencing others, but
that is no reason to not try.


-- 
Neil Bothwick

IBM - Incredibly Bastardized Multitasking...

Attachment: signature.asc
Description: PGP signature

Reply via email to