Bug 3827

Summary: sstate: some native sstate files can't be re-used between mips and other archs
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Wenzong.Fan <wenzong.fan>
Component: configurationAssignee: Richard Purdie <richard.purdie>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: liezhi.yang, sgw, song.liu, wenzong.fan, zhenfeng.zhao
Version: 1.4   
Target Milestone: 1.4   
Hardware: x86   
OS: mips   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---
Attachments:
Description Flags
the output of bitbake-diffsigs to ncurses-native.do_install which the first task has different sifdata none

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