Bug 2328 - Some RPM package file format is not correct on Beagleboard platform
Summary: Some RPM package file format is not correct on Beagleboard platform
Status: VERIFIED FIXED
Alias: None
Product: Meta-yocto
Classification: Build System, Metadata & Runtime
Component: meta-yocto (show other bugs)
Version: unspecified
Hardware: Beagleboard arm
: Medium normal
Target Milestone: 1.3 M4
Assignee: Robert Yang
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2012-04-18 13:11 UTC by Dongxiao Xu
Modified: 2012-10-12 10:47 UTC (History)
9 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 Dongxiao Xu 2012-04-18 13:11:35 UTC
For certain packages on beagleboard platform, for example the acl, whose PACKAGE_ARCH is "armv7a-vfp-neon", however its architecture label in RPM file is renamed to "armv7a", see "acl-2.2.51-r2.armv7a.rpm". This is not correct since we should use PACKAGE_ARCH within the RPM file name.

In IPK case, the package name still shows as "acl_2.2.51-r2_armv7a-vfp-neon.ipk".

The root cause is that, we shouldn't allow '-' exists in PACKAGE_ARCH variable. This is because we use the following parameters to pass to RPM command:

rpm ... --target "armv7a-vfp-neon-poky-linux"

The parameter stands for the "${ARCH}-${VENDOR}-${OS}". RPM treats the content before the first '-' as architecture label and put it in RPM file name. This is the reason why only "armv7a" is got in our RPM file name.

One possible fix is to replace '-' with '_' for PACKAGE_ARCH.
Comment 1 Mark Hatle 2012-05-08 15:55:16 UTC
Estimate has a prerequisite of upreving to the latest version of RPM.  There is some question still as to how to resolve the problem...

Estimate includes basic sanity checking.
Comment 2 Robert Yang 2012-08-27 14:56:48 UTC
I'm trying to replace '-' with '_', and it is in testing now, will do more testing before send the patch for reviewing.
Comment 4 Chen Qi 2012-10-12 10:47:03 UTC
Verified.
Git Branch: danny
Git commit: c9de24d3f4845251b01e2eab0aeeb7472badc5bb