Bug 3827 - sstate: some native sstate files can't be re-used between mips and other archs
Summary: sstate: some native sstate files can't be re-used between mips and other archs
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: configuration (show other bugs)
Version: 1.4
Hardware: x86 mips
: Medium normal
Target Milestone: 1.4
Assignee: Richard Purdie
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2013-02-01 07:34 UTC by Wenzong.Fan
Modified: 2013-02-14 12:37 UTC (History)
5 users (show)

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


Attachments
the output of bitbake-diffsigs to ncurses-native.do_install which the first task has different sifdata (6.13 KB, text/plain)
2013-02-01 08:15 UTC, Wenzong.Fan
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Wenzong.Fan 2013-02-01 07:34:50 UTC
Build ncurses-native with target 'qemumips' and any other targets such as qemux86/qemuarm ..., compare the checksums of *ncurses-native* sstate files:

--------------- qemumips: -----------------
cb/sstate-ncurses-native-x86_64-linux-5.9-r13.1-x86_64-3-cbad5187fc7ee0a9fcd27e2ac567f9dd_populate-sysroot.tgz
cb/sstate-ncurses-native-x86_64-linux-5.9-r13.1-x86_64-3-cbad5187fc7ee0a9fcd27e2ac567f9dd_populate-sysroot.tgz.siginfo

--------------- other targets: ------------
87/sstate-ncurses-native-x86_64-linux-5.9-r13.1-x86_64-3-87e50121db82f29e77d4f02930e83f57_populate-sysroot.tgz
87/sstate-ncurses-native-x86_64-linux-5.9-r13.1-x86_64-3-87e50121db82f29e77d4f02930e83f57_populate-sysroot.tgz.siginfo

This cause the native sstate files can't be re-used between mips and other archs.

Analysis:
----------------
1) This appears on the packages which inherit 'multilib_header', and those packages that depends on them:
* ncurses-native
* python-native
* binutils-native
* apr-native
* beecrypt-native
...

2) There's some special code involved in mips causes the checksum difference:
+ MIPSPKGSFX_ABI = "${@bb.utils.contains("TUNE_FEATURES", "n32", "-n32", "", d)}"

Maybe this is necessary for the target packages of mips, but it should not affect the native tools.
Comment 1 Wenzong.Fan 2013-02-01 08:15:18 UTC
Created attachment 1045 [details]
the output of bitbake-diffsigs to ncurses-native.do_install which the first task has different sifdata

Attached the output of bitbake-diffsigs to ncurses-native-xxx.do_install.xxx which the first task has different sifdata.
Comment 2 Wenzong.Fan 2013-02-01 08:16:42 UTC
(In reply to comment #1)
> Created attachment 1045 [details]
> the output of bitbake-diffsigs to ncurses-native.do_install which the first
> task has different sifdata
> 
> Attached the output of bitbake-diffsigs to ncurses-native-xxx.do_install.xxx
> which the first task has different sifdata.

s/sifdata/sigdata/
Comment 3 Richard Purdie 2013-02-14 11:19:00 UTC
Patch out for review