Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 25230

Summary: include a check in glibc to check for downgrades
Product: Gentoo Linux Reporter: Marius Mauch (RETIRED) <genone>
Component: [OLD] Core systemAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED FIXED    
Severity: critical CC: dev-portage, edavison, eradicator, griffon26
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 18603    
Attachments: pkg_setup function to detect downgrades

Description Marius Mauch (RETIRED) gentoo-dev 2003-07-24 23:29:41 UTC
glibc downgrades are considered a very bad thing in most cases but portage
currently allows this without a warning. glibc ebuilds should check if they are
downgraded, print a warning and abort if that is the case. For special cases
this can be overridden with a environment flag.
Comment 1 Marius Mauch (RETIRED) gentoo-dev 2003-07-24 23:31:07 UTC
Created attachment 14986 [details]
pkg_setup function to detect downgrades

This patch is not perfect as it also aborts if only the revision number changes
but should prevent all major downgrades.
Comment 2 Jeff Paetkau 2003-07-25 00:25:18 UTC
This bug has bitten me. IT HURTS!!!! I know I am stupid and all but hey thats 
how ya learn. 
Comment 3 Marius Mauch (RETIRED) gentoo-dev 2003-11-17 16:27:46 UTC
It's mostly useful for glibc, not so important for other packages.
Comment 4 Ed Davison 2004-02-28 08:04:49 UTC
I have also just been bitten by this. I went to "upgrade" openssh and it wanted a glibc upgrade as well but it turns out that I must have assumed, without really reading the version numbers, that portage knew what it was doing and really was upgrading glibc. 

Turns out it did not and now am having to build python by hand to get emerge working again so that I can fix the glibc version!

Ouch!!

Definitely think that emerge should check the glibc version and not allow it even this is a feature only limited to glibc.
Comment 5 Seemant Kulleen (RETIRED) gentoo-dev 2004-03-26 10:46:11 UTC
portage people have ideas? maybe a DANGER="downgrade" type syntax in the ebuild or so?
Comment 6 Marius Mauch (RETIRED) gentoo-dev 2004-03-26 11:22:00 UTC
are there any other packages where this would be such important ?
Comment 7 Marius Mauch (RETIRED) gentoo-dev 2004-06-24 17:25:31 UTC
toolchain peeps, could I get at least a bit of feedback ? This is sitting here nearly for a year now. Well, if noone objects I'll add it myself at the end of next week.
Comment 8 Marius Mauch (RETIRED) gentoo-dev 2004-07-04 18:58:35 UTC
done
Comment 9 SpanKY gentoo-dev 2004-12-05 20:53:42 UTC
previous python solution caused a lot of bugs ... think we could do this now with the versionator eclass ?
Comment 10 Jeremy Huddleston (RETIRED) gentoo-dev 2005-03-10 05:09:54 UTC
*** Bug 59704 has been marked as a duplicate of this bug. ***
Comment 11 Jason Stubbs (RETIRED) gentoo-dev 2005-04-02 22:38:22 UTC
Should be fixed by portage-2.0.51.19:

# emerge -C glibc


!!! Trying to unmerge package(s) in system profile. 'sys-libs/glibc'
!!! This could be damaging to your system.

>>> Waiting 10 seconds before starting...
>>> (Control-C to abort)...
Press Ctrl-C to Stop in: 10

Exiting on signal 2