Traceback (most recent call last): File "/usr/bin/emerge", line 35, in ? import emergehelp, xpak, commands, errno, re, socket, time, types ImportError: Bad magic number in /usr/lib/portage/bin/emergehelp.pyo rockhopper portage # emerge sync Traceback (most recent call last): File "/usr/bin/emerge", line 35, in ? import emergehelp, xpak, commands, errno, re, socket, time, types ImportError: Bad magic number in /usr/lib/portage/bin/emergehelp.pyo rockhopper portage # emerge "=portage-2.1.1-r2" --newuse -vp Traceback (most recent call last): File "/usr/bin/emerge", line 35, in ? import emergehelp, xpak, commands, errno, re, socket, time, types ImportError: Bad magic number in /usr/lib/portage/bin/emergehelp.pyo Reproducible: Always Steps to Reproduce: [ebuild U ] sys-apps/portage-2.1.2.12 [2.1.1-r2] USE="-build -doc -epydoc% (-selinux)" LINGUAS="-pl" 0 kB rockhopper portage # emerge -uv portage Calculating dependencies... done! >>> >>> Emerging (1 of 5) sys-apps/portage-2.1.2.12 to / * portage-2.1.2.12.tar.bz2 MD5 ;-) ... [ ok ] * portage-2.1.2.12.tar.bz2 RMD160 ;-) ... [ ok ] * portage-2.1.2.12.tar.bz2 SHA1 ;-) ... [ ok ] * portage-2.1.2.12.tar.bz2 SHA256 ;-) ... [ ok ] * portage-2.1.2.12.tar.bz2 size ;-) ... [ ok ] * checking ebuild checksums ;-) ... [ ok ] * checking auxfile checksums ;-) ... [ ok ] * checking miscfile checksums ;-) ... [ ok ] * checking portage-2.1.2.12.tar.bz2 ;-) ... [ ok ] >>> >>> Unpacking source... >>> >>> Unpacking portage-2.1.2.12.tar.bz2 to /var/tmp/portage/portage-2.1.2.12/work * Setting portage.VERSION to 2.1.2.12 ... [ ok ] >>> >>> Source unpacked. >>> >>> Compiling source in /var/tmp/portage/portage-2.1.2.12/work/portage-2.1.2.12 ... >>> >>> Source compiled. >>> >>> Test phase [not enabled]: sys-apps/portage-2.1.2.12 >>> >>> Install portage-2.1.2.12 into /var/tmp/portage/portage-2.1.2.12/image/ category sys-apps patching file make.conf >>> >>> Completed installing portage-2.1.2.12 into /var/tmp/portage/portage-2.1.2.12/image/ man: gzipping man page: etc-update.1 gzipping man page: emaint.1 gzipping man page: dispatch-conf.1 gzipping man page: env-update.1 gzipping man page: emerge.1 gzipping man page: quickpkg.1 gzipping man page: repoman.1 gzipping man page: ebuild.1 gzipping man page: portage.5 gzipping man page: ebuild.5 gzipping man page: make.conf.5 strip: i686-pc-linux-gnu-strip --strip-unneeded usr/lib/portage/bin/tbz2tool >>> >>> Merging sys-apps/portage-2.1.2.12 to / --- /etc/ >>> >>> /etc/._cfg0000_make.globals >>> >>> /etc/._cfg0000_dispatch-conf.conf --- /etc/env.d/ >>> >>> /etc/env.d/05portage.envd --- /etc/portage/ >>> >>> /etc/portage/.keep_sys-apps_portage-0 >>> >>> /etc/._cfg0000_etc-update.conf >>> >>> /etc/._cfg0000_make.conf.example --- /usr/ --- /usr/lib/ --- /usr/lib/portage/ --- /usr/lib/portage/pym/ >>> >>> /usr/lib/portage/pym/portage_data.py >>> >>> /usr/lib/portage/pym/getbinpkg.py >>> >>> /usr/lib/portage/pym/portage_checksum.py >>> >>> /usr/lib/portage/pym/portage_debug.py >>> >>> /usr/lib/portage/pym/portage_selinux.py >>> >>> /usr/lib/portage/pym/xpak.py --- /usr/lib/portage/pym/cache/ >>> >>> /usr/lib/portage/pym/cache/cache_errors.py >>> >>> /usr/lib/portage/pym/cache/template.py >>> >>> /usr/lib/portage/pym/cache/__init__.py >>> >>> /usr/lib/portage/pym/cache/fs_template.py >>> >>> /usr/lib/portage/pym/cache/flat_list.py >>> >>> /usr/lib/portage/pym/cache/flat_hash.py >>> >>> /usr/lib/portage/pym/cache/mappings.py >>> >>> /usr/lib/portage/pym/cache/volatile.py >>> >>> /usr/lib/portage/pym/cache/sqlite.py >>> >>> /usr/lib/portage/pym/cache/metadata.py >>> >>> /usr/lib/portage/pym/cache/metadata_overlay.py >>> >>> /usr/lib/portage/pym/cache/util.py >>> >>> /usr/lib/portage/pym/cache/anydbm.py >>> >>> /usr/lib/portage/pym/cache/sql_template.py >>> >>> /usr/lib/portage/pym/portage_dep.py >>> >>> /usr/lib/portage/pym/dispatch_conf.py >>> >>> /usr/lib/portage/pym/portage_localization.py >>> >>> /usr/lib/portage/pym/portage.py >>> >>> /usr/lib/portage/pym/portage_mail.py >>> >>> /usr/lib/portage/pym/portage_update.py >>> >>> /usr/lib/portage/pym/cvstree.py >>> >>> /usr/lib/portage/pym/portage_versions.py >>> >>> /usr/lib/portage/pym/portage_manifest.py --- /usr/lib/portage/pym/elog_modules/ >>> >>> /usr/lib/portage/pym/elog_modules/mod_custom.py >>> >>> /usr/lib/portage/pym/elog_modules/mod_save.py >>> >>> /usr/lib/portage/pym/elog_modules/mod_mail.py >>> >>> /usr/lib/portage/pym/elog_modules/__init__.py >>> >>> /usr/lib/portage/pym/elog_modules/mod_save_summary.py >>> >>> /usr/lib/portage/pym/elog_modules/mod_mail_summary.py >>> >>> /usr/lib/portage/pym/elog_modules/mod_syslog.py >>> >>> /usr/lib/portage/pym/eclass_cache.py >>> >>> /usr/lib/portage/pym/portage_exception.py >>> >>> /usr/lib/portage/pym/emergehelp.py >>> >>> /usr/lib/portage/pym/portage_util.py >>> >>> /usr/lib/portage/pym/output.py >>> >>> /usr/lib/portage/pym/portage_const.py >>> >>> /usr/lib/portage/pym/portage_exec.py >>> >>> /usr/lib/portage/pym/portage_gpg.py >>> >>> /usr/lib/portage/pym/portage_locks.py --- /usr/lib/portage/bin/ >>> >>> /usr/lib/portage/bin/portage_gpg_update.sh >>> >>> /usr/lib/portage/bin/emaint >>> >>> /usr/lib/portage/bin/isolated-functions.sh >>> >>> /usr/lib/portage/bin/prepstrip >>> >>> /usr/lib/portage/bin/dosym >>> >>> /usr/lib/portage/bin/newsbin >>> >>> /usr/lib/portage/bin/find-requires >>> >>> /usr/lib/portage/bin/dosbin >>> >>> /usr/lib/portage/bin/env-update >>> >>> /usr/lib/portage/bin/md5check.sh >>> >>> /usr/lib/portage/bin/doconfd >>> >>> /usr/lib/portage/bin/fixpackages >>> >>> /usr/lib/portage/bin/misc-functions.sh >>> >>> /usr/lib/portage/bin/prepallman >>> >>> /usr/lib/portage/bin/emerge >>> >>> /usr/lib/portage/bin/domo >>> >>> /usr/lib/portage/bin/newbin >>> >>> /usr/lib/portage/bin/prepalldocs >>> >>> /usr/lib/portage/bin/fperms >>> >>> /usr/lib/portage/bin/prepallinfo >>> >>> /usr/lib/portage/bin/fix-db.py >>> >>> /usr/lib/portage/bin/dohtml >>> >>> /usr/lib/portage/bin/archive-conf >>> >>> /usr/lib/portage/bin/fixdbentries >>> >>> /usr/lib/portage/bin/doinfo >>> >>> /usr/lib/portage/bin/env-update.sh >>> >>> /usr/lib/portage/bin/dodir >>> >>> /usr/lib/portage/bin/prepman >>> >>> /usr/lib/portage/bin/ecompress >>> >>> /usr/lib/portage/bin/newdoc >>> >>> /usr/lib/portage/bin/etc-update >>> >>> /usr/lib/portage/bin/xpak >>> >>> /usr/lib/portage/bin/dodoc >>> >>> /usr/lib/portage/bin/dobin >>> >>> /usr/lib/portage/bin/ecompressdir >>> >>> /usr/lib/portage/bin/doexe >>> >>> /usr/lib/portage/bin/dolib.so >>> >>> /usr/lib/portage/bin/prepinfo >>> >>> /usr/lib/portage/bin/ebuild.sh >>> >>> /usr/lib/portage/bin/quickpkg >>> >>> /usr/lib/portage/bin/dolib.a >>> >>> /usr/lib/portage/bin/newinitd >>> >>> /usr/lib/portage/bin/fowners >>> >>> /usr/lib/portage/bin/tbz2tool >>> >>> /usr/lib/portage/bin/portageq >>> >>> /usr/lib/portage/bin/doenvd >>> >>> /usr/lib/portage/bin/regenworld >>> >>> /usr/lib/portage/bin/pkgname >>> >>> /usr/lib/portage/bin/doins >>> >>> /usr/lib/portage/bin/newlib.a >>> >>> /usr/lib/portage/bin/dolib >>> >>> /usr/lib/portage/bin/check-implicit-pointer-usage.py >>> >>> /usr/lib/portage/bin/clean_locks >>> >>> /usr/lib/portage/bin/donewins -> newins >>> >>> /usr/lib/portage/bin/newexe >>> >>> /usr/lib/portage/bin/newlib.so >>> >>> /usr/lib/portage/bin/emerge-webrsync >>> >>> /usr/lib/portage/bin/prepall >>> >>> /usr/lib/portage/bin/dispatch-conf >>> >>> /usr/lib/portage/bin/newconfd >>> >>> /usr/lib/portage/bin/dohard >>> >>> /usr/lib/portage/bin/ebuild >>> >>> /usr/lib/portage/bin/newman >>> >>> /usr/lib/portage/bin/newenvd >>> >>> /usr/lib/portage/bin/doinitd >>> >>> /usr/lib/portage/bin/preplib >>> >>> /usr/lib/portage/bin/prepallstrip >>> >>> /usr/lib/portage/bin/newins >>> >>> /usr/lib/portage/bin/repoman >>> >>> /usr/lib/portage/bin/dosed >>> >>> /usr/lib/portage/bin/doman >>> >>> /usr/lib/portage/bin/emake >>> >>> /usr/lib/portage/bin/chkcontents >>> >>> /usr/lib/portage/bin/md5check.py --- /usr/sbin/ >>> >>> /usr/sbin/emaint -> ../lib/portage/bin/emaint >>> >>> /usr/sbin/env-update -> ../lib/portage/bin/env-update >>> >>> /usr/sbin/fixpackages -> ../lib/portage/bin/fixpackages >>> >>> /usr/sbin/update-etc -> etc-update >>> >>> /usr/sbin/archive-conf -> ../lib/portage/bin/archive-conf >>> >>> /usr/sbin/etc-update -> ../lib/portage/bin/etc-update >>> >>> /usr/sbin/quickpkg -> ../lib/portage/bin/quickpkg >>> >>> /usr/sbin/regenworld -> ../lib/portage/bin/regenworld >>> >>> /usr/sbin/emerge-webrsync -> ../lib/portage/bin/emerge-webrsync >>> >>> /usr/sbin/dispatch-conf -> ../lib/portage/bin/dispatch-conf >>> >>> /usr/sbin/update-env -> env-update --- /usr/bin/ >>> >>> /usr/bin/emerge -> ../lib/portage/bin/emerge >>> >>> /usr/bin/xpak -> ../lib/portage/bin/xpak >>> >>> /usr/bin/tbz2tool -> ../lib/portage/bin/tbz2tool >>> >>> /usr/bin/portageq -> ../lib/portage/bin/portageq >>> >>> /usr/bin/ebuild -> ../lib/portage/bin/ebuild >>> >>> /usr/bin/repoman -> ../lib/portage/bin/repoman --- /usr/share/ --- /usr/share/man/ --- /usr/share/man/man1/ >>> >>> /usr/share/man/man1/quickpkg.1.gz >>> >>> /usr/share/man/man1/emerge.1.gz >>> >>> /usr/share/man/man1/repoman.1.gz >>> >>> /usr/share/man/man1/dispatch-conf.1.gz >>> >>> /usr/share/man/man1/etc-update.1.gz >>> >>> /usr/share/man/man1/env-update.1.gz >>> >>> /usr/share/man/man1/emaint.1.gz >>> >>> /usr/share/man/man1/ebuild.1.gz --- /usr/share/man/man5/ >>> >>> /usr/share/man/man5/ebuild.5.gz >>> >>> /usr/share/man/man5/portage.5.gz >>> >>> /usr/share/man/man5/make.conf.5.gz --- /usr/share/doc/ >>> >>> /usr/share/doc/portage-2.1.2.12/ >>> >>> /usr/share/doc/portage-2.1.2.12/NEWS.gz >>> >>> /usr/share/doc/portage-2.1.2.12/RELEASE-NOTES.gz >>> >>> /usr/share/doc/portage-2.1.2.12/ChangeLog.gz * In portage-2.1.2, installation actions do not necessarily pull in build time * dependencies that are not strictly required. This behavior is adjustable * via the new --with-bdeps option that is documented in the emerge(1) man page. * For more information regarding this change, please refer to bug #148870. * See NEWS and RELEASE-NOTES for further changes. * * For help with using portage please consult the Gentoo Handbook * at http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=3 * >>> >>> Regenerating /etc/ld.so.cache... >>> >>> sys-apps/portage-2.1.2.12 merged. To correct system: ebuild portage-2.1.1-r2.ebuild merge
rm -f /usr/lib/portage/bin/emergehelp.pyo *** This bug has been marked as a duplicate of bug 153905 ***