Bug 3721

Summary: package_deb.bbclass: change the arch's "_" to "-" in deb control
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Hongxu Jia <hongxu.jia>
Component: coreAssignee: Hongxu Jia <hongxu.jia>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: hongxu.jia, jessica.zhang, kai.kang, liang.li2, liezhi.yang, meta.mr.watcher, meta.watcher, Qi.Chen, sgw, yi.zhao, zhenfeng.zhao
Version: 1.4   
Target Milestone: 1.4 M4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Hongxu Jia 2013-01-15 07:17:41 UTC
*Env
The arch of build system is x86_64
vim conf/local.conf
BB_NUMBER_THREADS = "8"
PARALLEL_MAKE = "-j 8"
PACKAGE_CLASSES ?= "package_deb"

*problem
1. Download poky source and prepare the build environment
2. Run "bitbake meta-toolchain-sdk" and vim log.do_populate_sdk:
install deb package which name with "x86_64" is failed.
>>log<<
|Selecting previously unselected package nativesdk-perl-module-bytes.
|Unpacking nativesdk-perl-module-bytes (from .../nativesdk-perl-modul
 e-bytes_5.14.2-r17_x86_64.deb) ...
|dpkg: warning: parsing file '/buildarea2/hongxujia/build-20130111-de
 b/tmp/work/i586-poky-linux/meta-toolchain-gmae/1.0-r7/sdk/image/var/
 lib/dpkg/tmp.ci/control' near line 8 package 'nativesdk-perl-module-
 encode-mime-name':
| 'x86_64' is not a valid architecture name: character `_' not allowed
  (only letters, digits and characters `-')

*analysis
The params in deb package control file don't allow character `_', only
letters, digits and characters `-' allowed.

*resolution
Change the arch's "_" to "-" in the deb package's control file at the
control file creation time. Such as `x86_64'-->`x86-64'
Comment 1 Hongxu Jia 2013-03-04 00:55:37 UTC
Merged into master:
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=22b1f63223f2d817cf5ff0672e6925826afdf858


Please verify on a newly created build environment.
Comment 2 Yi Zhao 2013-03-21 02:50:25 UTC
Verified with master branch: 808967b84cef66e0b59b9a720fa0808f6a546d3a