This causes the error below. It should call "python_mod_cleanup." Thanks, Erik --- replaced dir /etc/libsmbios --- replaced dir /etc * * ERROR: sys-libs/libsmbios-2.2.16 failed. * Call stack: * ebuild.sh, line 49: Called pkg_postrm * environment, line 851: Called python_mod_optimize '/usr/share/smbios-utils' * environment, line 968: Called die * The specific snippet of code: * [[ ${EBUILD_PHASE} != postinst ]] && die "${FUNCNAME} should only be run in pkg_postinst()"; * The die message: * python_mod_optimize should only be run in pkg_postinst() * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/log/portage/sys-libs:libsmbios-2.2.16:20090606-043718.log'. * The ebuild environment file is located at '/gentoo/tmp/binpkgs/sys-libs/libsmbios-2.2.16/temp/environment'. * !!! FAILED postrm: 1 * The 'postrm' phase of the 'sys-libs/libsmbios-2.2.16' package has failed * with exit value 1. * * The problem occurred while executing the ebuild file named * 'libsmbios-2.2.16.ebuild' located in the '/var/db/pkg/sys- * libs/libsmbios-2.2.16' directory. If necessary, manually remove the * environment.bz2 file and/or the ebuild file located in that directory. * * Removal of the environment.bz2 file is preferred since it may allow the * removal phases to execute successfully. The ebuild will be sourced and * the eclasses from the current portage tree will be used when necessary. * Removal of the ebuild file will cause the pkg_prerm() and pkg_postrm() * removal phases to be skipped entirely.
Fix in CVS
(In reply to comment #1) > Fix in CVS > I'm still getting this error. :( * * ERROR: sys-libs/libsmbios-2.2.16 failed. * Call stack: * ebuild.sh, line 49: Called pkg_postrm * environment, line 906: Called python_mod_optimize '/usr/share/smbios-utils' * environment, line 1023: Called die * The specific snippet of code: * [[ ${EBUILD_PHASE} != postinst ]] && die "${FUNCNAME} should only be run in pkg_postinst()"; * The die message: * python_mod_optimize should only be run in pkg_postinst() * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/home/gentoo/log/sys-libs:libsmbios-2.2.16:20090627-192836.log'. * The ebuild environment file is located at '/home/gentoo/tmp/binpkgs/sys-libs/libsmbios-2.2.16/temp/environment'. * * The 'postrm' phase of the 'sys-libs/libsmbios-2.2.16' package has failed * with exit value 1. * * The problem occurred while executing the ebuild file named * 'libsmbios-2.2.16.ebuild' located in the '/var/db/pkg/sys- * libs/libsmbios-2.2.16' directory. If necessary, manually remove the * environment.bz2 file and/or the ebuild file located in that directory. * * Removal of the environment.bz2 file is preferred since it may allow the * removal phases to execute successfully. The ebuild will be sourced and * the eclasses from the current portage tree will be used when necessary. * Removal of the ebuild file will cause the pkg_prerm() and pkg_postrm() * removal phases to be skipped entirely. I see this in the ebuild. Is it ok? --------------- pkg_postinst() { use python && python_mod_optimize /usr/share/smbios-utils } pkg_postrm() { use python && python_mod_cleanup /usr/share/smbios-utils }
(In reply to comment #2) > (In reply to comment #1) > > Fix in CVS > > > > I'm still getting this error. :( > <snip/> > I see this in the ebuild. > Is it ok? > --------------- > > pkg_postinst() { > use python && python_mod_optimize /usr/share/smbios-utils > } > > pkg_postrm() { > use python && python_mod_cleanup /usr/share/smbios-utils > } > I believe that the *old* ebuild is saved to remove the old package, which would not have the change yet. Erik