<?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>2752</bug_id>
          
          <creation_ts>2012-07-12 13:43:33 +0000</creation_ts>
          <short_desc>python error creating rpm packages</short_desc>
          <delta_ts>2012-09-19 21:55:13 +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>BitBake</product>
          <component>bitbake</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.3 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexandru Damian">alexandru.damian</reporter>
          <assigned_to name="Alexandru Damian">alexandru.damian</assigned_to>
          <cc>jessica.zhang</cc>
    
    <cc>laurentiu.serban</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>song.liu</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>23049</commentid>
    <comment_count>0</comment_count>
    <who name="Alexandru Damian">alexandru.damian</who>
    <bug_when>2012-07-12 13:43:33 +0000</bug_when>
    <thetext>Various packages fail rpm build step with this error.

The error goes away after a bitbake -c clean and rebuilding the package.


|NOTE: Creating RPM package for python-man
| DEBUG: Python function write_specfile finished
| DEBUG: SITE files [&apos;endian-little&apos;, &apos;bit-32&apos;, &apos;ix86-common&apos;, &apos;common-linux&apos;, &apos;common-glibc&apos;, &apos;i586-linux&apos;, &apos;common&apos;]
| DEBUG: Executing shell function BUILDSPEC
| Building target platforms: i586-poky-linux
| Processing files: libpython2.7-1.0-2.7.3-r0.0.i586
| Traceback (most recent call last):
|   File &quot;/usr/lib/python2.7/site.py&quot;, line 562, in &lt;module&gt;
|     main()
|   File &quot;/usr/lib/python2.7/site.py&quot;, line 544, in main
|     known_paths = addusersitepackages(known_paths)
|   File &quot;/usr/lib/python2.7/site.py&quot;, line 271, in addusersitepackages
|     user_site = getusersitepackages()
|   File &quot;/usr/lib/python2.7/site.py&quot;, line 246, in getusersitepackages
|     user_base = getuserbase() # this will also set USER_BASE
|   File &quot;/usr/lib/python2.7/site.py&quot;, line 236, in getuserbase
|     USER_BASE = get_config_var(&apos;userbase&apos;)
|   File &quot;/usr/lib/python2.7/sysconfig.py&quot;, line 577, in get_config_var
|     return get_config_vars().get(name)
|   File &quot;/usr/lib/python2.7/sysconfig.py&quot;, line 476, in get_config_vars
|     _init_posix(_CONFIG_VARS)
|   File &quot;/usr/lib/python2.7/sysconfig.py&quot;, line 337, in _init_posix
|     makefile = _get_makefile_filename()
|   File &quot;/usr/lib/python2.7/sysconfig.py&quot;, line 331, in _get_makefile_filename
|     return os.path.join(get_path(&apos;platstdlib&apos;).replace(&quot;/usr/local&quot;,&quot;/usr&quot;,1), &quot;config&quot; + (sys.pydebug and &quot;_d&quot; or &quot;&quot;), &quot;Makefile&quot;)
| AttributeError: &apos;module&apos; object has no attribute &apos;pydebug&apos;
| error: Command &quot;/home/ddalex/ssd/yocto/build/tmp/work/i586-poky-linux/python-2.7.3-r0.0/python.provides&quot; failed, exit(1)
| Finding  Provides: /home/ddalex/ssd/yocto/build/tmp/work/i586-poky-linux/python-2.7.3-r0.0/python.provides
| error: Failed to find Provides:
| Requires(interp): /bin/sh
| Requires(post): /bin/sh
| Requires(interp): /bin/sh
| Requires(post): /bin/sh
|
|
| RPM build errors:
|     Command &quot;/home/ddalex/ssd/yocto/build/tmp/work/i586-poky-linux/python-2.7.3-r0.0/python.provides&quot; failed, exit(1)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23067</commentid>
    <comment_count>1</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2012-07-12 18:42:33 +0000</bug_when>
    <thetext>This might be related to the installation of python-native.
We (Wind River) have a fix for that problem that we&apos;re testing now and will 
post to oe-core for review soon. It follows the meta/classes/perlnative.bbclass fix as RP suggested.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25256</commentid>
    <comment_count>2</comment_count>
    <who name="Alexandru Damian">alexandru.damian</who>
    <bug_when>2012-09-14 14:10:50 +0000</bug_when>
    <thetext>not repro anymore</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25278</commentid>
    <comment_count>3</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2012-09-14 15:03:54 +0000</bug_when>
    <thetext>FYI: It&apos;s no longer reproducible because of the new way of managing python-native. See: a2e554f python-native: Put binaries in seperate directory</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25428</commentid>
    <comment_count>4</comment_count>
    <who name="Laurentiu Serban">laurentiu.serban</who>
    <bug_when>2012-09-19 21:55:13 +0000</bug_when>
    <thetext>Verified in 1.3_M4 e5c3513ca8abb21eb5e9b8c19d1b9199b14ae07c</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>