Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 545324 - emerge, esearch replaced by easy_install
Summary: emerge, esearch replaced by easy_install
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-02 13:10 UTC by Gauthier Monserand
Modified: 2018-04-25 08:54 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gauthier Monserand 2015-04-02 13:10:18 UTC
After an unknown upgrade all gentoo related binary where replace by easy_install :

cat /usr/bin/emerge

#!/usr/bin/python2.7
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==12.4','console_scripts','easy_install'
__requires__ = 'setuptools==12.4'
import sys
from pkg_resources import load_entry_point

if __name__ == '__main__':
    sys.exit(
        load_entry_point('setuptools==12.4', 'console_scripts', 'easy_install')()
    )


reemerging portage didn't fix the problem.

the problem was fixed by reemerging python-exec with an old emerge main script, then emerging portage :

/mnt/oldgentoo/usr/bin/emerge --unmerge python-exec
/mnt/oldgentoo/usr/bin/emerge -av python-exec
/mnt/oldgentoo/usr/bin/emerge -av portage

irc user @DrEeevil pointed to me that I should have not run pip as root ... And that we can maybe open a bug report to prevent pip doing such things.


Reproducible: Didn't try
Comment 1 Jason Zaman gentoo-dev 2015-04-07 20:15:21 UTC
I dont really know where to assign this. but in general, updating things outside of the package manager can lead to broken systems.
Comment 2 Mike Gilbert gentoo-dev 2015-04-07 20:23:50 UTC
For future reference, if python-exec is broken like this, the way to fix it is to invoke the emerge script directly. For example:

python2.7 /usr/lib/python-exec/python2.7/emerge --oneshot dev-lang/python-exec:2
Comment 3 Mike Gilbert gentoo-dev 2015-04-07 20:34:46 UTC
I'm surprised we don't have a bug open about this already.
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2018-04-25 08:54:29 UTC
This was fixed at some point in the past by patching distutils not to rewrite files in place.