Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 25230 - include a check in glibc to check for downgrades
Summary: include a check in glibc to check for downgrades
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High critical (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
: 59704 (view as bug list)
Depends on:
Blocks: 18603
  Show dependency tree
 
Reported: 2003-07-24 23:29 UTC by Marius Mauch (RETIRED)
Modified: 2005-04-02 22:38 UTC (History)
4 users (show)

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


Attachments
pkg_setup function to detect downgrades (glibc-downgrade-detection.patch,702 bytes, text/plain)
2003-07-24 23:31 UTC, Marius Mauch (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
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