Bug 3721 - package_deb.bbclass: change the arch's "_" to "-" in deb control
Summary: package_deb.bbclass: change the arch's "_" to "-" in deb control
Status: VERIFIED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 1.4
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.4 M4
Assignee: Hongxu Jia
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2013-01-15 07:17 UTC by Hongxu Jia
Modified: 2013-03-21 02:50 UTC (History)
11 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 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