Bug 4032 - binutils-cross_2.23.1.bb do_package_write_rpm fails
Summary: binutils-cross_2.23.1.bb do_package_write_rpm fails
Status: VERIFIED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 1.4
Hardware: x86 x86_64
: Medium normal
Target Milestone: 1.4
Assignee: Kevin Strasser
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2013-03-15 12:33 UTC by Alexandru Palalau
Modified: 2013-04-09 09:35 UTC (History)
4 users (show)

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


Attachments
binutils-cross_2.23.1.bb do_package_write_rpm fail log file (2.38 KB, application/octet-stream)
2013-03-15 12:33 UTC, Alexandru Palalau
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandru Palalau 2013-03-15 12:33:53 UTC
Created attachment 1114 [details]
binutils-cross_2.23.1.bb do_package_write_rpm fail log file

Testopia testcase:
https://bugzilla.yoctoproject.org/tr_show_case.cgi?case_id=276.

Adding in package_rpm.bbclass:
inherit archive-original-source

And setting the following extra lines in local.conf:
INHERIT += "archive-original-source"
SOURCE_ARCHIVE_PACKAGE_TYPE ?= 'srpm'
SOURCE_ARCHIVE_LOG_WITH_SCRIPTS ?= 'logs_with_scripts'


"bitbake core-image-sato" fails at binutils-cross_2.23.1.bb do_package_write_rpm

Build Configuration:
BB_VERSION        = "1.17.1"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "Unknown"
TARGET_SYS        = "x86_64-poky-linux"
MACHINE           = "qemux86-64"
DISTRO            = "poky"
DISTRO_VERSION    = "1.3+snapshot-20130315"
TUNE_FEATURES     = "m64"
TARGET_FPU        = ""
meta              
meta-yocto        
meta-yocto-bsp    = "master:4da406cd50cf02a63ed76810a670aba1eb561c79"

Output error:
ERROR: Error executing a python function in /home/zeeblex/poky/meta/recipes-devtools/binutils/binutils-cross_2.23.1.bb:
IOError: [Errno 2] No such file or directory: '/home/zeeblex/poky/build/tmp/work/x86_64-poky-linux/binutils-cross/2.23.1-r2/script-logs/x86_64-poky-linux/GPL-3.0/binutils-cross-2.23.1-r2/script-logs/../binutils-cross-2.23.1-r2-script-logs.tar.gz'

ERROR: The stack trace of python calls that resulted in this exception/failure was:
ERROR:   File "do_archive_scripts_logs", line 6, in <module>
ERROR: 
ERROR:   File "do_archive_scripts_logs", line 3, in do_archive_scripts_logs
ERROR: 
ERROR:   File "archiver.bbclass", line 26, in archive_scripts_logs
ERROR: 
ERROR:   File "/usr/lib64/python2.7/shutil.py", line 299, in move
ERROR:     copy2(src, real_dst)
ERROR: 
ERROR:   File "/usr/lib64/python2.7/shutil.py", line 128, in copy2
ERROR:     copyfile(src, dst)
ERROR: 
ERROR:   File "/usr/lib64/python2.7/shutil.py", line 82, in copyfile
ERROR:     with open(src, 'rb') as fsrc:
ERROR: 
ERROR: The code that was being executed was:
ERROR:      0002:def do_archive_scripts_logs(d):
ERROR:      0003:    archive_scripts_logs(d)
ERROR:      0004:
ERROR:      0005:
ERROR:  *** 0006:do_archive_scripts_logs(d)
ERROR:      0007:
ERROR: [From file: 'do_archive_scripts_logs', lineno: 6, function: <module>]
ERROR:      0001:
ERROR:      0002:def do_archive_scripts_logs(d):
ERROR:  *** 0003:    archive_scripts_logs(d)
ERROR:      0004:
ERROR:      0005:
ERROR:      0006:do_archive_scripts_logs(d)
ERROR:      0007:
ERROR: [From file: 'do_archive_scripts_logs', lineno: 3, function: do_archive_scripts_logs]
ERROR:      0022:
ERROR:      0023:    if d.getVar('SOURCE_ARCHIVE_PACKAGE_TYPE', True) == 'srpm':
ERROR:      0024:        if os.path.exists(work_dir+ '/' + tarlog):
ERROR:      0025:            os.remove(work_dir+ '/' + tarlog)
ERROR:  *** 0026:        shutil.move(os.path.join(logdir, '..', tarlog), work_dir)
ERROR:      0027:        shutil.rmtree(os.path.join(work_dir,'script-logs'))
ERROR:      0028:        store_package(d, tarlog)
ERROR:      0029:
ERROR: [From file: 'archiver.bbclass', lineno: 26, function: archive_scripts_logs]
ERROR: Function failed: do_archive_scripts_logs
ERROR: Logfile of failure stored in: /home/zeeblex/poky/build/tmp/work/x86_64-poky-linux/binutils-cross/2.23.1-r2/temp/log.do_package_write_rpm.12506
ERROR: Task 2107 (/home/zeeblex/poky/meta/recipes-devtools/binutils/binutils-cross_2.23.1.bb, do_package_write_rpm) failed with exit code '1'

Attaching log file.
Comment 1 Kevin Strasser 2013-03-23 00:32:32 UTC
Thanks for the report. I've submitted a fix to the mailing list.
Comment 2 Alexandru Palalau 2013-04-02 08:19:26 UTC
On master branch, commit ID: bdca49274173153b1b0a72887de6321b4756b684 the behavior is still encountered.
Please mention when the patch is merged, in order to verify.
Comment 3 Kevin Strasser 2013-04-02 18:51:18 UTC
Yes, the patch is taking longer to get reviewed than expected. I will mark this bug as in implementation until it gets merged.
Comment 4 Kevin Strasser 2013-04-03 17:58:26 UTC
The fix has been merged into poky as of commit-id 3e4655d951d38b0f216b286bb49f8a0276ba112d. Feel free to verify.
Comment 5 Alexandru Palalau 2013-04-05 05:39:33 UTC
Hi Kevin,

Can you set the status to "RESOLVED"?!

Thank you!
Comment 6 Alexandru Palalau 2013-04-09 09:35:03 UTC
Verified on master branch.
Commit ID:fe336b149552b1f4f24d979c40302653298b98cc