Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 338379 - sci-libs/mathgl fails to unmerge (broken python.eclass usage)
Summary: sci-libs/mathgl fails to unmerge (broken python.eclass usage)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Andrey Grozin
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-22 20:57 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2010-09-27 09:06 UTC (History)
1 user (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 Diego Elio Pettenò (RETIRED) gentoo-dev 2010-09-22 20:57:43 UTC
>>> 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
Comment 1 Andrey Grozin gentoo-dev 2010-09-27 09:06:24 UTC
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.