]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
package: Fix license exclusion packaging errors
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 29 Apr 2015 13:23:14 +0000 (14:23 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 30 Apr 2015 22:04:18 +0000 (23:04 +0100)
commitbae779411213b73376b2d713683e3392829acef9
tree38d9441a64def5081724c560da863ccd1663f94b
parent24609d9b60f1c64b78c9989b0c6644f3c2895da0
package: Fix license exclusion packaging errors

Currently the license exclusion code removes packages from PACKAGES
pre population of the package directories. This means that the FILES
entries for some packages are not seen and invariably results in
packaging errors.

Instead, remove the packages from PACKAGES post population of the packages
so the usual FILES entries work as expected but the file are not placed
into any packages and no packages containing embargoed licenses are generated.

This avoids errors from gcc-runtime with GPLv3 exclusion like:

ERROR: QA Issue: gcc-runtime: Files/directories were installed but not shipped in any package:
  /usr/share
  /usr/src
  /usr/share/gcc-4.9.2
  /usr/share/gcc-4.9.2/python
Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install. [installed-vs-shipped]

(From OE-Core rev: 09c3d648c95fe88197c15d656bda1c9303aa2079)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/package.bbclass