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

Bug 212912

Summary: >=sys-libs/glibc-2.6.1 downgrade sanity check is broken
Product: Gentoo Linux Reporter: Jakub Moc (RETIRED) <jakub>
Component: New packagesAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: VERIFIED FIXED    
Severity: normal    
Priority: High    
Version: 2007.0   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Jakub Moc (RETIRED) gentoo-dev 2008-03-10 10:26:26 UTC
<snip>
# prevent native builds from downgrading ... maybe update to allow people
# to change between diff -r versions ? (2.3.6-r4 -> 2.3.6-r2)
if [[ ${ROOT} != "/" ]] && ! tc-is-cross-compiler ; then
        if has_version '>'${CATEGORY}/${PF} ; then
                ...
                die "aborting to save your system"
                fi
        fi
</snip>

This is supposed to be if [[ ${ROOT} == "/" ]] for sure? The above happily lets you downgrade your glibc and kill your box. :(
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2008-03-10 18:42:17 UTC
Thanks!