>>> Unmerging sci-libs/mathgl-1.10.2.1-r1... * ERROR: sci-libs/mathgl-1.10.2.1-r1 failed: * python_mod_cleanup() can be used only in pkg_postrm() phase * * Call stack: * ebuild.sh, line 56: Called pkg_prerm * environment, line 3879: Called python_mod_cleanup 'mathgl.py' * environment, line 5074: Called die * The specific snippet of code: * [[ "${EBUILD_PHASE}" != "postrm" ]] && die "${FUNCNAME}() can be used only in pkg_postrm() phase"; * * If you need support, post the output of 'emerge --info =sci-libs/mathgl-1.10.2.1-r1', * the complete build log and the output of 'emerge -pqv =sci-libs/mathgl-1.10.2.1-r1'. sed: can't read /etc/portage/package.mask/currentrun: No such file or directory * The complete build log is located at '/var/log/portage/build/sci-libs/mathgl-1.10.2.1-r1:20100922-204136.log'. * The ebuild environment file is located at '/var/tmp/binpkgs/sci-libs/mathgl-1.10.2.1-r1/temp/environment'. * S: '/var/tmp/binpkgs/sci-libs/mathgl-1.10.2.1-r1/work/mathgl-1.10.2.1' !!! FAILED prerm: 1
python_mod_cleanup has been already moved to pkg_postrm: 31 Aug 2010; Andrey Grozin <grozin@gentoo.org> mathgl-1.10.2.1-r1.ebuild: Fixed #335158 The behaviour you describe can only happen when you unmerge mathgl-1.10.2.1-r1 which was merged before Aug 31. The only clean way out is to emerge it again, and then unmerge. This should work OK, I've just checked. Closing.