Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 272897 - sys-libs/libsmbios-2.2.16 calls python_mod_optimize in pkg_postrm
Summary: sys-libs/libsmbios-2.2.16 calls python_mod_optimize in pkg_postrm
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Cédric Krier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-06 14:33 UTC by Erik Zeek
Modified: 2009-06-29 15:19 UTC (History)
3 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 Erik Zeek 2009-06-06 14:33:33 UTC
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.
Comment 1 Cédric Krier gentoo-dev 2009-06-21 21:03:18 UTC
Fix in CVS
Comment 2 Balazs Nemeth 2009-06-27 19:35:55 UTC
(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
}
Comment 3 Erik Zeek 2009-06-29 15:19:07 UTC
(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