]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
sstate-sysroot-cruft.sh: Improve to use it from CI jansa/dora
authorMartin Jansa <Martin.Jansa@gmail.com>
Sun, 10 Aug 2014 17:21:36 +0000 (19:21 +0200)
committerMartin Jansa <Martin.Jansa@gmail.com>
Thu, 5 Mar 2015 07:43:51 +0000 (08:43 +0100)
commit5da28b90ab6bc1b3ddf912029aa39f07c6a4db39
tree9bc6a52a9b0510d4af560cef81de7a83f6d304b8
parent71afa46ab93897c96dc304fe2f6031d5e57d897b
sstate-sysroot-cruft.sh: Improve to use it from CI

* strip tmpdir prefix, so that we have shorter paths which aren't
  builder specific
* use '#' for regexp delimiter so that we don't need to prefix
  forward slashes in paths
* extend default whitelist to cover typical cases
* add parameter for external whitelist file
* use number of found paths as return code, so that CI can easily
  report error when new untracked files are found
* use .txt suffix for all output files, so that they can be easily
  viewed in browser
* add populate_sysroot task, because somewhere between dora and daisy
  the populate-sysroot files in sstate-control were renamed to have
  underscore instead of dash
* only few entries not covered by this default whitelist were found
  in world build (but I'll leave these for people to whitelist, because
  they are not generated in most builds)
  * [^/]*/home/builder
    home directory from meta/recipes-graphics/builder/builder_0.1.bb
  * [^/]*/usr/src/kernel/patches
  * [^/]*/usr/lib/gdk-pixbuf-2.0/.*/loaders.cache
    3 places are using this, not sure which one creates it
    meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.30.8.bb:
      GDK_PIXBUF_MODULE_FILE=${STAGING_LIBDIR_NATIVE}/gdk-pixbuf-2.0/${LIBV}/loaders.cache
    meta/recipes-gnome/gtk+/gtk-update-icon-cache-native_3.4.4.bb:
      GDK_PIXBUF_MODULE_FILE=${STAGING_LIBDIR_NATIVE}/gdk-pixbuf-2.0/2.10.0/loaders.cache
    scripts/postinst-intercepts/update_pixbuf_cache:
      >$GDK_PIXBUF_MODULEDIR/../loaders.cache && \
      sed -i -e "s:$D::g" $GDK_PIXBUF_MODULEDIR/../loaders.cache

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
scripts/sstate-sysroot-cruft.sh