Bug 892 - site-config files from meta-toolchain tarball and the relevant meta-environment-xxx ipk file differs
Summary: site-config files from meta-toolchain tarball and the relevant meta-environme...
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 1.0
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.1
Assignee: Lianhao Lu
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2011-03-17 02:57 UTC by liping Ke
Modified: 2011-08-26 03:16 UTC (History)
12 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 liping Ke 2011-03-17 02:57:41 UTC
for CVS project, it use CPPFLAGS instead of CXXFLAGS, so it will fails to compile for the toolchain instead of ADT-INSTALLER. (untar toolchain style can compile, I have not validate whether it has contamination issue).


Thanks& Regards,
criping
Comment 1 Lianhao Lu 2011-03-17 23:42:06 UTC
The site-config file included in the meta-toolchain differs from the file in the corresponding meta-environment-xxx, because the siteinfo_get_files() function in class/siteinfo.bbclass returns different values.

This is because the siteinfo_get_files() tries to get the site config files from SITECONFIG_SYSROOTCACHE. When meta-environmet-XXX is being build, there is nothing in SITECONFIG_SYSROOTCACHE. The meta-environment-XXX should be built after all the the packages included in the target rootfs have populated their site config files into SITECONFIG_SYSROOTCACHE.
Comment 2 Lianhao Lu 2011-03-18 01:46:38 UTC
It is confirmed that the CVS project problem has nothing to do with site config files, but only because of the CPPFLAGS. I'll open a new bug about the CVS problem.
Comment 3 Lianhao Lu 2011-03-27 23:27:04 UTC
CCed dongxiao.
Comment 4 Jessica 2011-04-27 09:31:41 UTC
The CVS issue is fixed in bug 908
Comment 5 Lianhao Lu 2011-04-28 01:38:06 UTC
The site config files are produced by the function siteinfo_get_files() from SITECONFIG_SYSROOTCACHE. This would result the mismatch between the target rootfs and the siteconfig files, because we can't guarantee that all the site config files are populated into the SITECONFIG_SYSROOTCACHE when building the meta-toolchain.

Instead of generating the site config file in meta-toolchain, it should be generated during the rootfs generation so each rootfs will have its own site config file that matches the content in rootfs.
Comment 6 Lianhao Lu 2011-08-12 06:14:07 UTC
Patch sent out for review & merge
http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=llu/bug892