Bug 2752 - python error creating rpm packages
Summary: python error creating rpm packages
Status: VERIFIED WORKSFORME
Alias: None
Product: BitBake
Classification: Build System, Metadata & Runtime
Component: bitbake (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.3 M4
Assignee: Alexandru Damian
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2012-07-12 13:43 UTC by Alexandru Damian
Modified: 2012-09-19 21:55 UTC (History)
6 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandru Damian 2012-07-12 13:43:33 UTC
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 ['endian-little', 'bit-32', 'ix86-common', 'common-linux', 'common-glibc', 'i586-linux', 'common']
| 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 "/usr/lib/python2.7/site.py", line 562, in <module>
|     main()
|   File "/usr/lib/python2.7/site.py", line 544, in main
|     known_paths = addusersitepackages(known_paths)
|   File "/usr/lib/python2.7/site.py", line 271, in addusersitepackages
|     user_site = getusersitepackages()
|   File "/usr/lib/python2.7/site.py", line 246, in getusersitepackages
|     user_base = getuserbase() # this will also set USER_BASE
|   File "/usr/lib/python2.7/site.py", line 236, in getuserbase
|     USER_BASE = get_config_var('userbase')
|   File "/usr/lib/python2.7/sysconfig.py", line 577, in get_config_var
|     return get_config_vars().get(name)
|   File "/usr/lib/python2.7/sysconfig.py", line 476, in get_config_vars
|     _init_posix(_CONFIG_VARS)
|   File "/usr/lib/python2.7/sysconfig.py", line 337, in _init_posix
|     makefile = _get_makefile_filename()
|   File "/usr/lib/python2.7/sysconfig.py", line 331, in _get_makefile_filename
|     return os.path.join(get_path('platstdlib').replace("/usr/local","/usr",1), "config" + (sys.pydebug and "_d" or ""), "Makefile")
| AttributeError: 'module' object has no attribute 'pydebug'
| error: Command "/home/ddalex/ssd/yocto/build/tmp/work/i586-poky-linux/python-2.7.3-r0.0/python.provides" 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 "/home/ddalex/ssd/yocto/build/tmp/work/i586-poky-linux/python-2.7.3-r0.0/python.provides" failed, exit(1)
Comment 1 Randy MacLeod 2012-07-12 18:42:33 UTC
This might be related to the installation of python-native.
We (Wind River) have a fix for that problem that we're testing now and will 
post to oe-core for review soon. It follows the meta/classes/perlnative.bbclass fix as RP suggested.
Comment 2 Alexandru Damian 2012-09-14 14:10:50 UTC
not repro anymore
Comment 3 Randy MacLeod 2012-09-14 15:03:54 UTC
FYI: It's no longer reproducible because of the new way of managing python-native. See: a2e554f python-native: Put binaries in seperate directory
Comment 4 Laurentiu Serban 2012-09-19 21:55:13 UTC
Verified in 1.3_M4 e5c3513ca8abb21eb5e9b8c19d1b9199b14ae07c