<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>224833</bug_id>
          
          <creation_ts>2008-06-04 04:49 0000</creation_ts>
          <short_desc>gentoo-x86/eclass/rox.eclass:297: - python_mod_optimize should only be run in pkg_postinst()</short_desc>
          <delta_ts>2008-06-04 13:07:40 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>AMD64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>nils@nils-andresen.de</reporter>
          <assigned_to>rox@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>nils@nils-andresen.de</who>
            <bug_when>2008-06-04 04:49:19 0000</bug_when>
            <thetext>Building rox-base/mime-editor-0.5-r2 (or -r1) fails with:

RROR: rox-base/mime-editor-0.5-r2 failed.
Call stack:
              ebuild.sh, line   49:  Called src_install
            environment, line 2987:  Called rox-0install_src_install
            environment, line 2790:  Called rox_src_install
            environment, line 2950:  Called python_mod_optimize &apos;src_install&apos;
            environment, line 2723:  Called die
The specific snippet of code:
      [[ ${EBUILD_PHASE} != postinst ]] &amp;&amp; die &quot;${FUNCNAME} should only be run in pkg_postinst()&quot;;
 The die message:
  python_mod_optimize should only be run in pkg_postinst()

The Problem would be the rox.eclass:
It calls python_mod_optimize as the last line of rox_src_install().
Afer movin the Line into rox_pkg_postinst() all is fine !


Reproducible: Always</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jer@gentoo.org</who>
            <bug_when>2008-06-04 04:57:59 0000</bug_when>
            <thetext>A bit of automated QA it seems.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>lack@gentoo.org</who>
            <bug_when>2008-06-04 12:28:50 0000</bug_when>
            <thetext>I guess so!

What&apos;s really odd is that I couldn&apos;t ever get a straight answer out of the python folks as to why python_mod_optimize should be run in pkg_postinst and not src_install.

Oh well, moot point now, I&apos;ll just have to fix everything.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>lack@gentoo.org</who>
            <bug_when>2008-06-04 12:38:54 0000</bug_when>
            <thetext>Okay, all changed (as far as I know, anyway)

Would have been nice had they mentioned somewhere they were going to start cracking down on this instead of breaking the tree, but there you go.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>lack@gentoo.org</who>
            <bug_when>2008-06-04 13:07:40 0000</bug_when>
            <thetext>Heh, turns out they did and I missed it, I rescind my previous slander :)</thetext>
          </long_desc>
      
    </bug>

</bugzilla>