]> code.ossystems Code Review - openembedded-core.git/commit
guile: touch compiled modules on sstate install
authorRoss Burton <ross.burton@intel.com>
Wed, 28 Nov 2012 17:28:39 +0000 (17:28 +0000)
committerRoss Burton <ross.burton@intel.com>
Wed, 5 Dec 2012 12:51:55 +0000 (12:51 +0000)
commit1e96fea6c603a500e21b9cd4626ecd19049bf04b
treeb5de60fe1589d18eff35b9bf33994d1991490cae
parente206443c132ee94227580fad16b16332007aec42
guile: touch compiled modules on sstate install

When guile is installed from sstate, if the compiled files get a modified time
older than the source files then guile will produce warnings like this:

;;; note: source file /data/poky-master/tmp/sysroots/x86_64-linux/usr/share/guile/2.0/ice-9/boot-9.scm
;;; newer than compiled /data/poky-master/tmp/sysroots/x86_64-linux/usr/lib/guile/2.0/ccache/ice-9/boot-9.go

Not staging the files and letting guile re-compile them on demand won't work:

;;; compiling /data/poky-master/tmp/sysroots/x86_64-linux/usr/share/guile/2.0/system/base/compile.scm
;;; it seems /data/poky-master/tmp/sysroots/x86_64-linux/usr/share/guile/2.0/system/base/compile.scm
;;; is part of the compiler; skipping auto-compilation

So, use a sstate postinst function to explicitly touch the compiled files after
the extraction to ensure that they are fresher.

[ YOCTO #3370 ]

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/guile/guile_2.0.6.bb