poky/meta
Robert Yang a6c6659b3f sstate.bbclass: remove previous version's stamp
There is a potential problem if we don't remove the previous version's
stamp, for example:

The depend chain is:
libtool-native -> autoconf-native -> m4-native
We have two m4-native: 1.4.9 and 1.4.7

1) Clean all of them to make a fresh build so that we can reproduce the
   problem
$ bitbake m4-native autoconf-native libtool-native -ccleansstate

2) Build libtool-native so that the m4-native_1.4.17 will be built
$ bitbake libtool-native

3) Set PREFERRED_VERSION_m4-native = "1.4.9" and build again
$ bitbake libtool-native

4) Set PREFERRED_VERSION_m4-native = "1.4.17" and build again
$ bitbake libtool-native -ccleansstate && bitbake libtool-native

Then the build will fail:
[snip]
| m4: unrecognized option '--gnu'
| Try `m4 --help' for more information.
| autom4te: m4 failed with exit status: 1
[snip]

The is because when we change m4-native to 1.4.17 and build
libtool-native again:
5) libtool-native depends on autoconf-native, and autoconf-native's
   version isn't change, so it can remove the current stamp and mirror
   the sstate (the one depends on m4-native_1.4.9) from the SSTATE_DIR
   correctly.

6) The mirrored autoconf-native depends on m4-native_1.4.17's
   do_populate_sysroot, and the stamp is already there (which is made
   by step 2), so it would do nothing, but this is incorrect, since
   the one that really in the sysroot is m4-native_1.4.9, then the
   error happens.

Remove previous version's stamp in sstate_clean() will fix the problem.

[YOCTO #5422]

(From OE-Core rev: 4659d29b1040349116549644e45035a5b37d9311)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-01-21 10:45:29 +00:00
..
classes sstate.bbclass: remove previous version's stamp 2014-01-21 10:45:29 +00:00
conf default-providers: Change update-alternatives provider to opkg-utils 2014-01-19 16:32:08 +00:00
files device_table-minimal.txt: change group of /dev/hda back to disk 2013-10-14 16:55:24 +01:00
lib sstatesig: include native/cross/nativesdk deps in target signatures 2014-01-21 10:20:11 +00:00
recipes-bsp grub-efi: remove configure patch, simply seed the cache 2014-01-14 17:03:55 +00:00
recipes-connectivity wpa-supplicant-2.0: don't exit in pkg_postinst 2014-01-19 16:32:08 +00:00
recipes-core glib-2.0: add explicit build dependency on DBus when ptest is enabled 2014-01-19 16:32:11 +00:00
recipes-devtools e2fsprogs/populate-extfs.sh: fix a problem on dash 2014-01-21 10:45:28 +00:00
recipes-extended opkg/opkg-utils/chkconfig: Clean up u-a-cworth references 2014-01-19 16:32:10 +00:00
recipes-gnome Update after toplevel LICENSE file checksum change 2014-01-02 14:21:04 +00:00
recipes-graphics x11vnc: fix CAPS_LOCK issues 2014-01-19 16:32:09 +00:00
recipes-kernel linux-firmware: package Marvell SD8797 firmware 2014-01-21 10:45:28 +00:00
recipes-lsb4 Don't set DESCRIPTION to the same value as SUMMARY 2013-12-03 17:45:52 +00:00
recipes-multimedia alsa-lib: remove hard-coded /usr/include in dev package 2014-01-16 12:05:48 +00:00
recipes-qt qmmp: add SUMMARY and tweak DESCRIPTION 2014-01-02 22:39:23 +00:00
recipes-rt Replace one-line DESCRIPTION with SUMMARY 2014-01-02 12:50:18 +00:00
recipes-sato shutdown-desktop: use poweroff for the Exec field in the shutdown.desktop 2014-01-15 12:25:21 +00:00
recipes-support lz4: add r112 2014-01-14 17:03:52 +00:00
site site: add xorg_cv_malloc0_returns_null 2013-12-14 09:11:12 +00:00
COPYING.GPLv2 Fix license notices for OE-Core 2014-01-02 12:58:54 +00:00
COPYING.MIT
recipes.txt