<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>2993</bug_id>
          
          <creation_ts>2012-08-22 17:04:31 +0000</creation_ts>
          <short_desc>python-curl and python-images fail QA tests</short_desc>
          <delta_ts>2012-09-25 21:03:50 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>devtools / tool chain</component>
          <version>1.4</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>(autobuilder)</status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.3 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ross Burton">ross.burton</reporter>
          <assigned_to name="Matthew McClintock">msm-oss</assigned_to>
          <cc>laurentiu.serban</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>msm-oss</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>24347</commentid>
    <comment_count>0</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2012-08-22 17:04:31 +0000</bug_when>
    <thetext>On the autobuilder: http://autobuilder.yoctoproject.org:8010/builders/nightly-world/builds/242/steps/shell_34/logs/stdio


ERROR: QA Issue: non debug package contains .debug directory: python-pycurl path /work/i586-poky-linux/python-pycurl-7.19.0-r3/packages-split/python-pycurl/usr/lib/python2.7/.debug/pycurl.so
ERROR: QA run found fatal errors. Please consider fixing them.
ERROR: Function failed: do_package_qa
ERROR: Logfile of failure stored in: /srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-world/build/build/tmp/work/i586-poky-linux/python-pycurl-7.19.0-r3/temp/log.do_package.25979
NOTE: recipe python-pycurl-7.19.0-r3: task do_package: Failed


ERROR: QA Issue: non debug package contains .debug directory: python-imaging path /work/i586-poky-linux/python-imaging-1.1.7-r4/packages-split/python-imaging/usr/lib/python2.7/PIL/.debug/_imagingft.so
ERROR: QA Issue: non debug package contains .debug directory: python-imaging path /work/i586-poky-linux/python-imaging-1.1.7-r4/packages-split/python-imaging/usr/lib/python2.7/PIL/.debug/_imagingmath.so
ERROR: QA Issue: non debug package contains .debug directory: python-imaging path /work/i586-poky-linux/python-imaging-1.1.7-r4/packages-split/python-imaging/usr/lib/python2.7/PIL/.debug/_imaging.so
ERROR: QA run found fatal errors. Please consider fixing them.
ERROR: Function failed: do_package_qa
ERROR: Logfile of failure stored in: /srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-world/build/build/tmp/work/i586-poky-linux/python-imaging-1.1.7-r4/temp/log.do_package.28092
NOTE: recipe python-imaging-1.1.7-r4: task do_package: Failed
ERROR: Task 7139 (/srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-world/build/meta/recipes-devtools/python/python-imaging_1.1.7.bb, do_package) failed with exit code &apos;1&apos;

Could this be caused by the recent distutils changes?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24348</commentid>
    <comment_count>1</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2012-08-22 17:05:37 +0000</bug_when>
    <thetext>CCing Matthew McClintock who wrote the distutils patches.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24381</commentid>
    <comment_count>2</comment_count>
    <who name="Matthew McClintock">msm-oss</who>
    <bug_when>2012-08-23 04:34:35 +0000</bug_when>
    <thetext>These should be picking up these .debug and putting them in the right package.

meta/classes/distutils-common-base.bbclass:  ${PYTHON_SITEPACKAGES_DIR}/.debug \
meta/classes/distutils-common-base.bbclass:  ${PYTHON_SITEPACKAGES_DIR}/*/.debug \
meta/classes/distutils-common-base.bbclass:  ${PYTHON_SITEPACKAGES_DIR}/*/*/.debug \

Still looking for more possibilities...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24382</commentid>
    <comment_count>3</comment_count>
    <who name="Matthew McClintock">msm-oss</who>
    <bug_when>2012-08-23 04:53:16 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; These should be picking up these .debug and putting them in the right
&gt; package.
&gt; 
&gt; meta/classes/distutils-common-base.bbclass: 
&gt; ${PYTHON_SITEPACKAGES_DIR}/.debug \
&gt; meta/classes/distutils-common-base.bbclass: 
&gt; ${PYTHON_SITEPACKAGES_DIR}/*/.debug \
&gt; meta/classes/distutils-common-base.bbclass: 
&gt; ${PYTHON_SITEPACKAGES_DIR}/*/*/.debug \
&gt; 
&gt; Still looking for more possibilities...

Actually, I&apos;m wrong... I think it&apos;s possible my previous change to install-lib should be using ${PYTHON_SITEPACKAGES_DIR}

I&apos;m really sort of at a loss for the correct installation location for these python modules. Is there another person we can check with on this?

All I am sure of is that certain python modules were installed in /usr/lib instead of /usr/lib64.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24383</commentid>
    <comment_count>4</comment_count>
    <who name="Matthew McClintock">msm-oss</who>
    <bug_when>2012-08-23 05:56:16 +0000</bug_when>
    <thetext>(In reply to comment #3)
&gt; (In reply to comment #2)
&gt; &gt; These should be picking up these .debug and putting them in the right
&gt; &gt; package.
&gt; &gt; 
&gt; &gt; meta/classes/distutils-common-base.bbclass: 
&gt; &gt; ${PYTHON_SITEPACKAGES_DIR}/.debug \
&gt; &gt; meta/classes/distutils-common-base.bbclass: 
&gt; &gt; ${PYTHON_SITEPACKAGES_DIR}/*/.debug \
&gt; &gt; meta/classes/distutils-common-base.bbclass: 
&gt; &gt; ${PYTHON_SITEPACKAGES_DIR}/*/*/.debug \
&gt; &gt; 
&gt; &gt; Still looking for more possibilities...
&gt; 
&gt; Actually, I&apos;m wrong... I think it&apos;s possible my previous change to
&gt; install-lib should be using ${PYTHON_SITEPACKAGES_DIR}
&gt; 
&gt; I&apos;m really sort of at a loss for the correct installation location for these
&gt; python modules. Is there another person we can check with on this?
&gt; 
&gt; All I am sure of is that certain python modules were installed in /usr/lib
&gt; instead of /usr/lib64.

Rather:

diff --git a/meta/classes/distutils-common-base.bbclass b/meta/classes/distutils-common-base.bbclass
index f66a5cd..e650d93 100644
--- a/meta/classes/distutils-common-base.bbclass
+++ b/meta/classes/distutils-common-base.bbclass
@@ -18,4 +18,7 @@ FILES_${PN}-dbg += &quot;\
   ${PYTHON_SITEPACKAGES_DIR}/.debug \
   ${PYTHON_SITEPACKAGES_DIR}/*/.debug \
   ${PYTHON_SITEPACKAGES_DIR}/*/*/.debug \
+  ${libdir}/${PYTHON_DIR}/.debug \
+  ${libdir}/${PYTHON_DIR}/*/.debug \
+  ${libdir}/${PYTHON_DIR}/*/*/.debug \
 &quot;

I&apos;m just not sure if this is correct...

-M</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24384</commentid>
    <comment_count>5</comment_count>
    <who name="Matthew McClintock">msm-oss</who>
    <bug_when>2012-08-23 06:20:21 +0000</bug_when>
    <thetext>(In reply to comment #4)
&gt; (In reply to comment #3)
&gt; &gt; (In reply to comment #2)
&gt; &gt; &gt; These should be picking up these .debug and putting them in the right
&gt; &gt; &gt; package.
&gt; &gt; &gt; 
&gt; &gt; &gt; meta/classes/distutils-common-base.bbclass: 
&gt; &gt; &gt; ${PYTHON_SITEPACKAGES_DIR}/.debug \
&gt; &gt; &gt; meta/classes/distutils-common-base.bbclass: 
&gt; &gt; &gt; ${PYTHON_SITEPACKAGES_DIR}/*/.debug \
&gt; &gt; &gt; meta/classes/distutils-common-base.bbclass: 
&gt; &gt; &gt; ${PYTHON_SITEPACKAGES_DIR}/*/*/.debug \
&gt; &gt; &gt; 
&gt; &gt; &gt; Still looking for more possibilities...
&gt; &gt; 
&gt; &gt; Actually, I&apos;m wrong... I think it&apos;s possible my previous change to
&gt; &gt; install-lib should be using ${PYTHON_SITEPACKAGES_DIR}
&gt; &gt; 
&gt; &gt; I&apos;m really sort of at a loss for the correct installation location for these
&gt; &gt; python modules. Is there another person we can check with on this?
&gt; &gt; 
&gt; &gt; All I am sure of is that certain python modules were installed in /usr/lib
&gt; &gt; instead of /usr/lib64.
&gt; 
&gt; Rather:
&gt; 
&gt; diff --git a/meta/classes/distutils-common-base.bbclass
&gt; b/meta/classes/distutils-common-base.bbclass
&gt; index f66a5cd..e650d93 100644
&gt; --- a/meta/classes/distutils-common-base.bbclass
&gt; +++ b/meta/classes/distutils-common-base.bbclass
&gt; @@ -18,4 +18,7 @@ FILES_${PN}-dbg += &quot;\
&gt;    ${PYTHON_SITEPACKAGES_DIR}/.debug \
&gt;    ${PYTHON_SITEPACKAGES_DIR}/*/.debug \
&gt;    ${PYTHON_SITEPACKAGES_DIR}/*/*/.debug \
&gt; +  ${libdir}/${PYTHON_DIR}/.debug \
&gt; +  ${libdir}/${PYTHON_DIR}/*/.debug \
&gt; +  ${libdir}/${PYTHON_DIR}/*/*/.debug \
&gt;  &quot;
&gt; 
&gt; I&apos;m just not sure if this is correct...
&gt; 
&gt; -M

We should also bump the PR on all these recipes to check for issues:

meta/recipes-devtools/python/python-dbus_1.1.1.bb:inherit distutils-base autotools pkgconfig
meta/recipes-devtools/python/python-gst_0.10.22.bb:inherit autotools distutils-base pkgconfig
meta/recipes-devtools/python/python-imaging_1.1.7.bb:inherit distutils
meta/recipes-devtools/python/python-pycairo_1.10.0.bb:inherit distutils pkgconfig
meta/recipes-devtools/python/python-pycurl_7.19.0.bb:inherit distutils
meta/recipes-devtools/python/python-pygobject_2.27.91.bb:inherit autotools distutils-base pkgconfig
meta/recipes-devtools/python/python-pygtk_2.17.0.bb:inherit autotools pkgconfig distutils-base
meta/recipes-devtools/python/python-pyrex_0.9.9.bb:inherit distutils
meta/recipes-devtools/python/python-scons_2.1.0.bb:inherit distutils
meta/recipes-devtools/python/python-setuptools_0.6c11.bb:inherit distutils</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24418</commentid>
    <comment_count>6</comment_count>
    <who name="Matthew McClintock">msm-oss</who>
    <bug_when>2012-08-23 18:47:41 +0000</bug_when>
    <thetext>Sent patch to fix issue:

http://patches.openembedded.org/patch/35239/

-M</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24424</commentid>
    <comment_count>7</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2012-08-23 21:57:11 +0000</bug_when>
    <thetext>I always thought that everything using distutils would be installing into site-packages, and not /usr/lib/python/ toplevel directly because that&apos;s for the python install itself and not modules.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24457</commentid>
    <comment_count>8</comment_count>
    <who name="Matthew McClintock">msm-oss</who>
    <bug_when>2012-08-24 18:11:04 +0000</bug_when>
    <thetext>RP supplied this patch: http://patches.openembedded.org/patch/35319/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25493</commentid>
    <comment_count>9</comment_count>
    <who name="Matthew McClintock">msm-oss</who>
    <bug_when>2012-09-20 18:20:47 +0000</bug_when>
    <thetext>This has been fixed buy Richard&apos;s patches</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25729</commentid>
    <comment_count>10</comment_count>
    <who name="Laurentiu Serban">laurentiu.serban</who>
    <bug_when>2012-09-25 21:03:50 +0000</bug_when>
    <thetext>Verified in 52850f0fc6f801298413ee779834b346ef7f48d6</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>