Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 0/6] insane.bbclass: package_qa_check_license -> do_qa_populate_lic
@ 2016-04-25 13:51 Robert Yang
  2016-04-25 13:51 ` [PATCH 1/6] insane.bbclass: remove workdir from package_qa_check_license() Robert Yang
                   ` (5 more replies)
  0 siblings, 6 replies; 17+ messages in thread
From: Robert Yang @ 2016-04-25 13:51 UTC (permalink / raw)
  To: openembedded-core

The package_qa_check_license() was in do_qa_configure which had a
potential problem, when the recipe sets do_configure[noexec] = "1", then
the license checking won't run, which may hidden license issues. Rename
it to do_qa_populate_lic() and run in do_populate_lic[postfuncs] which
is more reasonable (when no populate license, no license checking).

// Robert

The following changes since commit e2dbe5eb869b8336b91023b83d7ca866197efa73:

  license.bbclass: make sure that image manifest dir exists (2016-04-22 16:28:47 +0100)

are available in the git repository at:

  git://git.openembedded.org/openembedded-core-contrib rbt/lic
  http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=rbt/lic

Robert Yang (6):
  insane.bbclass: remove workdir from package_qa_check_license()
  insane.bbclass: package_qa_check_license -> do_qa_populate_lic
  packagegroup.bbclass: set LICENSE and LIC_FILES_CHKSUM
  packagegroup-foo.bb: remove LICENSE = "MIT"
  meta-world-pkgdata: add LIC_FILES_CHKSUM
  libxsettings-client: fix LICENSE

 meta/classes/insane.bbclass                        | 15 ++++++---------
 meta/classes/packagegroup.bbclass                  |  5 +++++
 meta/conf/bitbake.conf                             |  2 +-
 meta/recipes-core/meta/meta-world-pkgdata.bb       |  2 ++
 .../packagegroups/packagegroup-base.bb             |  1 -
 .../packagegroups/packagegroup-core-boot.bb        |  1 -
 .../packagegroup-core-buildessential.bb            |  1 -
 .../packagegroup-core-eclipse-debug.bb             |  1 -
 .../packagegroups/packagegroup-core-nfs.bb         |  1 -
 .../packagegroups/packagegroup-core-sdk.bb         |  1 -
 .../packagegroup-core-ssh-dropbear.bb              |  1 -
 .../packagegroups/packagegroup-core-ssh-openssh.bb |  1 -
 .../packagegroup-core-standalone-sdk-target.bb     |  1 -
 .../packagegroups/packagegroup-core-tools-debug.bb |  1 -
 .../packagegroup-core-tools-profile.bb             |  1 -
 .../packagegroup-core-tools-testapps.bb            |  1 -
 .../packagegroups/packagegroup-cross-canadian.bb   |  1 -
 .../packagegroups/packagegroup-self-hosted.bb      |  1 -
 .../packagegroup-core-device-devel.bb              |  1 -
 .../packagegroup-core-full-cmdline.bb              |  1 -
 .../packagegroups/packagegroup-core-lsb.bb         |  1 -
 .../libxsettings-client/MIT-style-license          | 22 ----------------------
 .../libxsettings-client_0.10.bb                    | 13 ++-----------
 .../packagegroups/packagegroup-core-clutter.bb     |  1 -
 .../packagegroups/packagegroup-core-directfb.bb    |  1 -
 .../packagegroups/packagegroup-core-x11-base.bb    |  1 -
 .../packagegroups/packagegroup-core-x11-xserver.bb |  1 -
 .../packagegroups/packagegroup-core-x11.bb         |  1 -
 .../packagegroups/packagegroup-core-x11-sato.bb    |  1 -
 29 files changed, 16 insertions(+), 66 deletions(-)
 delete mode 100644 meta/recipes-graphics/libxsettings-client/libxsettings-client/MIT-style-license

-- 
2.7.4



^ permalink raw reply	[flat|nested] 17+ messages in thread

* [PATCH 1/6] insane.bbclass: remove workdir from package_qa_check_license()
  2016-04-25 13:51 [PATCH 0/6] insane.bbclass: package_qa_check_license -> do_qa_populate_lic Robert Yang
@ 2016-04-25 13:51 ` Robert Yang
  2016-04-25 13:51 ` [PATCH 2/6] insane.bbclass: package_qa_check_license -> do_qa_populate_lic Robert Yang
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 17+ messages in thread
From: Robert Yang @ 2016-04-25 13:51 UTC (permalink / raw)
  To: openembedded-core

The parameter workdir is not used in package_qa_check_license()

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
---
 meta/classes/insane.bbclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass
index c57b217..a1d23d0 100644
--- a/meta/classes/insane.bbclass
+++ b/meta/classes/insane.bbclass
@@ -672,7 +672,7 @@ def package_qa_check_symlink_to_sysroot(path, name, d, elf, messages):
                 trimmed = path.replace(os.path.join (d.getVar("PKGDEST", True), name), "")
                 package_qa_add_message(messages, "symlink-to-sysroot", "Symlink %s in %s points to TMPDIR" % (trimmed, name))
 
-def package_qa_check_license(workdir, d):
+def package_qa_check_license(d):
     """
     Check for changes in the license files 
     """
@@ -1211,7 +1211,7 @@ Missing inherit gettext?""" % (gt, config))
     # Check license variables
     ###########################################################################
 
-    package_qa_check_license(workdir, d)
+    package_qa_check_license(d)
 
     ###########################################################################
     # Check unrecognised configure options (with a white list)
-- 
2.7.4



^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [PATCH 2/6] insane.bbclass: package_qa_check_license -> do_qa_populate_lic
  2016-04-25 13:51 [PATCH 0/6] insane.bbclass: package_qa_check_license -> do_qa_populate_lic Robert Yang
  2016-04-25 13:51 ` [PATCH 1/6] insane.bbclass: remove workdir from package_qa_check_license() Robert Yang
@ 2016-04-25 13:51 ` Robert Yang
  2016-04-26  8:56   ` Richard Purdie
  2016-04-25 13:51 ` [PATCH 3/6] packagegroup.bbclass: set LICENSE and LIC_FILES_CHKSUM Robert Yang
                   ` (3 subsequent siblings)
  5 siblings, 1 reply; 17+ messages in thread
From: Robert Yang @ 2016-04-25 13:51 UTC (permalink / raw)
  To: openembedded-core

The package_qa_check_license() was in do_qa_configure which had a
potential problem, when the recipe sets do_configure[noexec] = "1", then
the license checking won't run, which may hidden license issues. Rename
it to do_qa_populate_lic() and run in do_populate_lic[postfuncs] which
is more reasonable (when no populate license, no license checking).

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
---
 meta/classes/insane.bbclass | 15 ++++++---------
 1 file changed, 6 insertions(+), 9 deletions(-)

diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass
index a1d23d0..df4816c 100644
--- a/meta/classes/insane.bbclass
+++ b/meta/classes/insane.bbclass
@@ -672,7 +672,9 @@ def package_qa_check_symlink_to_sysroot(path, name, d, elf, messages):
                 trimmed = path.replace(os.path.join (d.getVar("PKGDEST", True), name), "")
                 package_qa_add_message(messages, "symlink-to-sysroot", "Symlink %s in %s points to TMPDIR" % (trimmed, name))
 
-def package_qa_check_license(d):
+# Check license variables
+do_populate_lic[postfuncs] += "do_qa_populate_lic"
+python do_qa_populate_lic() {
     """
     Check for changes in the license files 
     """
@@ -753,6 +755,7 @@ def package_qa_check_license(d):
                 msg = pn + ": LIC_FILES_CHKSUM is not specified for " +  url
                 msg = msg + "\n" + pn + ": The md5 checksum is " + md5chksum
             package_qa_handle_error("license-checksum", msg, d)
+}
 
 def package_qa_check_staged(path,d):
     """
@@ -1208,12 +1211,6 @@ Rerun configure task after fixing this.""")
 Missing inherit gettext?""" % (gt, config))
 
     ###########################################################################
-    # Check license variables
-    ###########################################################################
-
-    package_qa_check_license(d)
-
-    ###########################################################################
     # Check unrecognised configure options (with a white list)
     ###########################################################################
     if bb.data.inherits_class("autotools", d):
@@ -1261,8 +1258,8 @@ python do_qa_unpack() {
 #addtask qa_staging after do_populate_sysroot before do_build
 do_populate_sysroot[postfuncs] += "do_qa_staging "
 
-# Check broken config.log files, for packages requiring Gettext which don't
-# have it in DEPENDS and for correct LIC_FILES_CHKSUM
+# Check broken config.log files, for packages requiring Gettext which
+# don't have it in DEPENDS.
 #addtask qa_configure after do_configure before do_compile
 do_configure[postfuncs] += "do_qa_configure "
 
-- 
2.7.4



^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [PATCH 3/6] packagegroup.bbclass: set LICENSE and LIC_FILES_CHKSUM
  2016-04-25 13:51 [PATCH 0/6] insane.bbclass: package_qa_check_license -> do_qa_populate_lic Robert Yang
  2016-04-25 13:51 ` [PATCH 1/6] insane.bbclass: remove workdir from package_qa_check_license() Robert Yang
  2016-04-25 13:51 ` [PATCH 2/6] insane.bbclass: package_qa_check_license -> do_qa_populate_lic Robert Yang
@ 2016-04-25 13:51 ` Robert Yang
  2016-04-25 13:51 ` [PATCH 4/6] packagegroup-foo.bb: remove LICENSE = "MIT" Robert Yang
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 17+ messages in thread
From: Robert Yang @ 2016-04-25 13:51 UTC (permalink / raw)
  To: openembedded-core

* Use "??=" in bitbake.conf to set LICENSE, so that it can overrided by
  packagegroup.bbclass and recipes.

* Use "?=" to set LICENSE and LIC_FILES_CHKSUM to MIT by default
  in packagegroup.bbclass, this won't impact any packagegroup recipes
  which use non-MIT license, since they can be overrided by the recipe.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
---
 meta/classes/packagegroup.bbclass | 5 +++++
 meta/conf/bitbake.conf            | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/meta/classes/packagegroup.bbclass b/meta/classes/packagegroup.bbclass
index 38bdbd3..3674894 100644
--- a/meta/classes/packagegroup.bbclass
+++ b/meta/classes/packagegroup.bbclass
@@ -14,6 +14,11 @@ PACKAGE_ARCH ?= "all"
 # Fully expanded - so it applies the overrides as well
 PACKAGE_ARCH_EXPANDED := "${PACKAGE_ARCH}"
 
+LICENSE ?= "MIT"
+LIC_FILES_CHKSUM ?= "${@oe.utils.ifelse(d.getVar('LICENSE', True) == 'MIT', \
+                     'file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420', \
+                    '')}"
+
 inherit ${@oe.utils.ifelse(d.getVar('PACKAGE_ARCH_EXPANDED', True) == 'all', 'allarch', '')}
 
 # This automatically adds -dbg and -dev flavours of all PACKAGES
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index 40796aa..66646c8 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -247,7 +247,7 @@ SUMMARY_${PN}-doc ?= "${SUMMARY} - Documentation files"
 DESCRIPTION_${PN}-doc ?= "${DESCRIPTION}  \
 This package contains documentation."
 
-LICENSE = "INVALID"
+LICENSE ??= "INVALID"
 MAINTAINER = "OE-Core Developers <openembedded-core@lists.openembedded.org>"
 HOMEPAGE = ""
 
-- 
2.7.4



^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [PATCH 4/6] packagegroup-foo.bb: remove LICENSE = "MIT"
  2016-04-25 13:51 [PATCH 0/6] insane.bbclass: package_qa_check_license -> do_qa_populate_lic Robert Yang
                   ` (2 preceding siblings ...)
  2016-04-25 13:51 ` [PATCH 3/6] packagegroup.bbclass: set LICENSE and LIC_FILES_CHKSUM Robert Yang
@ 2016-04-25 13:51 ` Robert Yang
  2016-04-25 13:51 ` [PATCH 5/6] meta-world-pkgdata: add LIC_FILES_CHKSUM Robert Yang
  2016-04-25 13:51 ` [PATCH 6/6] libxsettings-client: fix LICENSE Robert Yang
  5 siblings, 0 replies; 17+ messages in thread
From: Robert Yang @ 2016-04-25 13:51 UTC (permalink / raw)
  To: openembedded-core

It has been set in packagegroup.bbclass.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
---
 meta/recipes-core/packagegroups/packagegroup-base.bb                     | 1 -
 meta/recipes-core/packagegroups/packagegroup-core-boot.bb                | 1 -
 meta/recipes-core/packagegroups/packagegroup-core-buildessential.bb      | 1 -
 meta/recipes-core/packagegroups/packagegroup-core-eclipse-debug.bb       | 1 -
 meta/recipes-core/packagegroups/packagegroup-core-nfs.bb                 | 1 -
 meta/recipes-core/packagegroups/packagegroup-core-sdk.bb                 | 1 -
 meta/recipes-core/packagegroups/packagegroup-core-ssh-dropbear.bb        | 1 -
 meta/recipes-core/packagegroups/packagegroup-core-ssh-openssh.bb         | 1 -
 .../packagegroups/packagegroup-core-standalone-sdk-target.bb             | 1 -
 meta/recipes-core/packagegroups/packagegroup-core-tools-debug.bb         | 1 -
 meta/recipes-core/packagegroups/packagegroup-core-tools-profile.bb       | 1 -
 meta/recipes-core/packagegroups/packagegroup-core-tools-testapps.bb      | 1 -
 meta/recipes-core/packagegroups/packagegroup-cross-canadian.bb           | 1 -
 meta/recipes-core/packagegroups/packagegroup-self-hosted.bb              | 1 -
 meta/recipes-devtools/packagegroups/packagegroup-core-device-devel.bb    | 1 -
 meta/recipes-extended/packagegroups/packagegroup-core-full-cmdline.bb    | 1 -
 meta/recipes-extended/packagegroups/packagegroup-core-lsb.bb             | 1 -
 meta/recipes-graphics/packagegroups/packagegroup-core-clutter.bb         | 1 -
 meta/recipes-graphics/packagegroups/packagegroup-core-directfb.bb        | 1 -
 meta/recipes-graphics/packagegroups/packagegroup-core-x11-base.bb        | 1 -
 meta/recipes-graphics/packagegroups/packagegroup-core-x11-xserver.bb     | 1 -
 meta/recipes-graphics/packagegroups/packagegroup-core-x11.bb             | 1 -
 meta/recipes-sato/packagegroups/packagegroup-core-x11-sato.bb            | 1 -
 23 files changed, 23 deletions(-)

diff --git a/meta/recipes-core/packagegroups/packagegroup-base.bb b/meta/recipes-core/packagegroups/packagegroup-base.bb
index 9e40b28..2e94fde 100644
--- a/meta/recipes-core/packagegroups/packagegroup-base.bb
+++ b/meta/recipes-core/packagegroups/packagegroup-base.bb
@@ -1,5 +1,4 @@
 SUMMARY = "Merge machine and distro options to create a basic machine task/package"
-LICENSE = "MIT"
 PR = "r83"
 
 #
diff --git a/meta/recipes-core/packagegroups/packagegroup-core-boot.bb b/meta/recipes-core/packagegroups/packagegroup-core-boot.bb
index bac93b8..04bc0f2 100644
--- a/meta/recipes-core/packagegroups/packagegroup-core-boot.bb
+++ b/meta/recipes-core/packagegroups/packagegroup-core-boot.bb
@@ -4,7 +4,6 @@
 
 SUMMARY = "Minimal boot requirements"
 DESCRIPTION = "The minimal set of packages required to boot the system"
-LICENSE = "MIT"
 PR = "r17"
 
 PACKAGE_ARCH = "${MACHINE_ARCH}"
diff --git a/meta/recipes-core/packagegroups/packagegroup-core-buildessential.bb b/meta/recipes-core/packagegroups/packagegroup-core-buildessential.bb
index 74ed247..78cc65d 100644
--- a/meta/recipes-core/packagegroups/packagegroup-core-buildessential.bb
+++ b/meta/recipes-core/packagegroups/packagegroup-core-buildessential.bb
@@ -4,7 +4,6 @@
 #
 
 SUMMARY = "Essential build dependencies"
-LICENSE = "MIT"
 
 inherit packagegroup
 
diff --git a/meta/recipes-core/packagegroups/packagegroup-core-eclipse-debug.bb b/meta/recipes-core/packagegroups/packagegroup-core-eclipse-debug.bb
index e7b013d..c45463f 100644
--- a/meta/recipes-core/packagegroups/packagegroup-core-eclipse-debug.bb
+++ b/meta/recipes-core/packagegroups/packagegroup-core-eclipse-debug.bb
@@ -1,5 +1,4 @@
 SUMMARY = "Remote debugging tools for Eclipse integration"
-LICENSE = "MIT"
 
 inherit packagegroup
 
diff --git a/meta/recipes-core/packagegroups/packagegroup-core-nfs.bb b/meta/recipes-core/packagegroups/packagegroup-core-nfs.bb
index 1882d3a..b345e31 100644
--- a/meta/recipes-core/packagegroups/packagegroup-core-nfs.bb
+++ b/meta/recipes-core/packagegroups/packagegroup-core-nfs.bb
@@ -3,7 +3,6 @@
 #
 
 SUMMARY = "NFS package groups"
-LICENSE = "MIT"
 PR = "r2"
 
 inherit packagegroup
diff --git a/meta/recipes-core/packagegroups/packagegroup-core-sdk.bb b/meta/recipes-core/packagegroups/packagegroup-core-sdk.bb
index bee1665..ea07e98 100644
--- a/meta/recipes-core/packagegroups/packagegroup-core-sdk.bb
+++ b/meta/recipes-core/packagegroups/packagegroup-core-sdk.bb
@@ -3,7 +3,6 @@
 #
 
 SUMMARY = "Software development tools"
-LICENSE = "MIT"
 PR = "r9"
 
 PACKAGE_ARCH = "${MACHINE_ARCH}"
diff --git a/meta/recipes-core/packagegroups/packagegroup-core-ssh-dropbear.bb b/meta/recipes-core/packagegroups/packagegroup-core-ssh-dropbear.bb
index e99946f..5ec3f6c 100644
--- a/meta/recipes-core/packagegroups/packagegroup-core-ssh-dropbear.bb
+++ b/meta/recipes-core/packagegroups/packagegroup-core-ssh-dropbear.bb
@@ -1,5 +1,4 @@
 SUMMARY = "Dropbear SSH client/server"
-LICENSE = "MIT"
 PR = "r1"
 
 inherit packagegroup
diff --git a/meta/recipes-core/packagegroups/packagegroup-core-ssh-openssh.bb b/meta/recipes-core/packagegroups/packagegroup-core-ssh-openssh.bb
index 32d20e6..703f956 100644
--- a/meta/recipes-core/packagegroups/packagegroup-core-ssh-openssh.bb
+++ b/meta/recipes-core/packagegroups/packagegroup-core-ssh-openssh.bb
@@ -1,5 +1,4 @@
 SUMMARY = "OpenSSH SSH client/server"
-LICENSE = "MIT"
 PR = "r1"
 
 inherit packagegroup
diff --git a/meta/recipes-core/packagegroups/packagegroup-core-standalone-sdk-target.bb b/meta/recipes-core/packagegroups/packagegroup-core-standalone-sdk-target.bb
index 6997f39..274e11a 100644
--- a/meta/recipes-core/packagegroups/packagegroup-core-standalone-sdk-target.bb
+++ b/meta/recipes-core/packagegroups/packagegroup-core-standalone-sdk-target.bb
@@ -1,6 +1,5 @@
 SUMMARY = "Target packages for the standalone SDK"
 PR = "r8"
-LICENSE = "MIT"
 
 inherit packagegroup
 
diff --git a/meta/recipes-core/packagegroups/packagegroup-core-tools-debug.bb b/meta/recipes-core/packagegroups/packagegroup-core-tools-debug.bb
index 82347b9..9fc2b0e 100644
--- a/meta/recipes-core/packagegroups/packagegroup-core-tools-debug.bb
+++ b/meta/recipes-core/packagegroups/packagegroup-core-tools-debug.bb
@@ -3,7 +3,6 @@
 #
 
 SUMMARY = "Debugging tools"
-LICENSE = "MIT"
 
 inherit packagegroup
 
diff --git a/meta/recipes-core/packagegroups/packagegroup-core-tools-profile.bb b/meta/recipes-core/packagegroups/packagegroup-core-tools-profile.bb
index ff2b577..71b3651 100644
--- a/meta/recipes-core/packagegroups/packagegroup-core-tools-profile.bb
+++ b/meta/recipes-core/packagegroups/packagegroup-core-tools-profile.bb
@@ -3,7 +3,6 @@
 #
 
 SUMMARY = "Profiling tools"
-LICENSE = "MIT"
 
 PR = "r3"
 
diff --git a/meta/recipes-core/packagegroups/packagegroup-core-tools-testapps.bb b/meta/recipes-core/packagegroups/packagegroup-core-tools-testapps.bb
index e8d585e..5938d7e 100644
--- a/meta/recipes-core/packagegroups/packagegroup-core-tools-testapps.bb
+++ b/meta/recipes-core/packagegroups/packagegroup-core-tools-testapps.bb
@@ -3,7 +3,6 @@
 #
 
 SUMMARY = "Testing tools/applications"
-LICENSE = "MIT"
 
 PR = "r2"
 
diff --git a/meta/recipes-core/packagegroups/packagegroup-cross-canadian.bb b/meta/recipes-core/packagegroups/packagegroup-cross-canadian.bb
index 180dd96..d551147 100644
--- a/meta/recipes-core/packagegroups/packagegroup-cross-canadian.bb
+++ b/meta/recipes-core/packagegroups/packagegroup-cross-canadian.bb
@@ -1,6 +1,5 @@
 SUMMARY = "Host SDK package for cross canadian toolchain"
 PN = "packagegroup-cross-canadian-${MACHINE}"
-LICENSE = "MIT"
 
 inherit cross-canadian packagegroup
 
diff --git a/meta/recipes-core/packagegroups/packagegroup-self-hosted.bb b/meta/recipes-core/packagegroups/packagegroup-self-hosted.bb
index 225204d..aa88cf9 100644
--- a/meta/recipes-core/packagegroups/packagegroup-self-hosted.bb
+++ b/meta/recipes-core/packagegroups/packagegroup-self-hosted.bb
@@ -5,7 +5,6 @@
 SUMMARY = "Self-hosting"
 DESCRIPTION = "Packages required to run the build system"
 PR = "r13"
-LICENSE = "MIT"
 
 inherit packagegroup  distro_features_check
 # rdepends on libx11-dev
diff --git a/meta/recipes-devtools/packagegroups/packagegroup-core-device-devel.bb b/meta/recipes-devtools/packagegroups/packagegroup-core-device-devel.bb
index e831860..b037057 100644
--- a/meta/recipes-devtools/packagegroups/packagegroup-core-device-devel.bb
+++ b/meta/recipes-devtools/packagegroups/packagegroup-core-device-devel.bb
@@ -1,5 +1,4 @@
 SUMMARY = "Provides a small set of tools for development on the device"
-LICENSE = "MIT"
 
 PR = "r1"
 
diff --git a/meta/recipes-extended/packagegroups/packagegroup-core-full-cmdline.bb b/meta/recipes-extended/packagegroups/packagegroup-core-full-cmdline.bb
index 1d7e608..f33b43e 100644
--- a/meta/recipes-extended/packagegroups/packagegroup-core-full-cmdline.bb
+++ b/meta/recipes-extended/packagegroups/packagegroup-core-full-cmdline.bb
@@ -5,7 +5,6 @@
 SUMMARY = "Standard full-featured Linux system"
 DESCRIPTION = "Package group bringing in packages needed for a more traditional full-featured Linux system"
 PR = "r6"
-LICENSE = "MIT"
 
 inherit packagegroup
 
diff --git a/meta/recipes-extended/packagegroups/packagegroup-core-lsb.bb b/meta/recipes-extended/packagegroups/packagegroup-core-lsb.bb
index a29c3d7..2b6b7a5 100644
--- a/meta/recipes-extended/packagegroups/packagegroup-core-lsb.bb
+++ b/meta/recipes-extended/packagegroups/packagegroup-core-lsb.bb
@@ -5,7 +5,6 @@
 SUMMARY = "Linux Standard Base (LSB)"
 DESCRIPTION = "Packages required to satisfy the Linux Standard Base (LSB) specification"
 PR = "r10"
-LICENSE = "MIT"
 
 inherit packagegroup distro_features_check
 
diff --git a/meta/recipes-graphics/packagegroups/packagegroup-core-clutter.bb b/meta/recipes-graphics/packagegroups/packagegroup-core-clutter.bb
index 5734b27..87c700e 100644
--- a/meta/recipes-graphics/packagegroups/packagegroup-core-clutter.bb
+++ b/meta/recipes-graphics/packagegroups/packagegroup-core-clutter.bb
@@ -3,7 +3,6 @@
 #
 
 SUMMARY = "Clutter package groups"
-LICENSE = "MIT"
 
 PR = "r6"
 
diff --git a/meta/recipes-graphics/packagegroups/packagegroup-core-directfb.bb b/meta/recipes-graphics/packagegroups/packagegroup-core-directfb.bb
index a657a1a..5ead60d 100644
--- a/meta/recipes-graphics/packagegroups/packagegroup-core-directfb.bb
+++ b/meta/recipes-graphics/packagegroups/packagegroup-core-directfb.bb
@@ -1,5 +1,4 @@
 SUMMARY = "DirectFB without X11"
-LICENSE = "MIT"
 
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
diff --git a/meta/recipes-graphics/packagegroups/packagegroup-core-x11-base.bb b/meta/recipes-graphics/packagegroups/packagegroup-core-x11-base.bb
index 17301a0..db3dfe3 100644
--- a/meta/recipes-graphics/packagegroups/packagegroup-core-x11-base.bb
+++ b/meta/recipes-graphics/packagegroups/packagegroup-core-x11-base.bb
@@ -1,6 +1,5 @@
 SUMMARY = "Basic X11 session"
 DESCRIPTION = "Packages required to set up a basic working X11 session"
-LICENSE = "MIT"
 PR = "r1"
 
 inherit packagegroup distro_features_check
diff --git a/meta/recipes-graphics/packagegroups/packagegroup-core-x11-xserver.bb b/meta/recipes-graphics/packagegroups/packagegroup-core-x11-xserver.bb
index c53f1b7..6b50028 100644
--- a/meta/recipes-graphics/packagegroups/packagegroup-core-x11-xserver.bb
+++ b/meta/recipes-graphics/packagegroups/packagegroup-core-x11-xserver.bb
@@ -3,7 +3,6 @@
 #
 
 SUMMARY = "X11 display server"
-LICENSE = "MIT"
 PR = "r40"
 
 PACKAGE_ARCH = "${MACHINE_ARCH}"
diff --git a/meta/recipes-graphics/packagegroups/packagegroup-core-x11.bb b/meta/recipes-graphics/packagegroups/packagegroup-core-x11.bb
index 3537d8c..4291424 100644
--- a/meta/recipes-graphics/packagegroups/packagegroup-core-x11.bb
+++ b/meta/recipes-graphics/packagegroups/packagegroup-core-x11.bb
@@ -2,7 +2,6 @@
 # Copyright (C) 2011 Intel Corporation
 #
 
-LICENSE = "MIT"
 PR = "r40"
 
 inherit packagegroup distro_features_check
diff --git a/meta/recipes-sato/packagegroups/packagegroup-core-x11-sato.bb b/meta/recipes-sato/packagegroups/packagegroup-core-x11-sato.bb
index 8ba4923..913e8cd 100644
--- a/meta/recipes-sato/packagegroups/packagegroup-core-x11-sato.bb
+++ b/meta/recipes-sato/packagegroups/packagegroup-core-x11-sato.bb
@@ -3,7 +3,6 @@
 #
 
 SUMMARY = "Sato desktop"
-LICENSE = "MIT"
 PR = "r33"
 
 PACKAGE_ARCH = "${MACHINE_ARCH}"
-- 
2.7.4



^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [PATCH 5/6] meta-world-pkgdata: add LIC_FILES_CHKSUM
  2016-04-25 13:51 [PATCH 0/6] insane.bbclass: package_qa_check_license -> do_qa_populate_lic Robert Yang
                   ` (3 preceding siblings ...)
  2016-04-25 13:51 ` [PATCH 4/6] packagegroup-foo.bb: remove LICENSE = "MIT" Robert Yang
@ 2016-04-25 13:51 ` Robert Yang
  2016-04-25 13:51 ` [PATCH 6/6] libxsettings-client: fix LICENSE Robert Yang
  5 siblings, 0 replies; 17+ messages in thread
From: Robert Yang @ 2016-04-25 13:51 UTC (permalink / raw)
  To: openembedded-core

Fixed:
ERROR: meta-world-pkgdata-1.0-r0 do_populate_lic: QA Issue: meta-world-pkgdata: Recipe file does not have license file information (LIC_FILES_CHKSUM) [license-checksum]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
---
 meta/recipes-core/meta/meta-world-pkgdata.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/recipes-core/meta/meta-world-pkgdata.bb b/meta/recipes-core/meta/meta-world-pkgdata.bb
index 3c5db50..b3989cd 100644
--- a/meta/recipes-core/meta/meta-world-pkgdata.bb
+++ b/meta/recipes-core/meta/meta-world-pkgdata.bb
@@ -1,5 +1,7 @@
 SUMMARY = "Pulls in pkgdata for world"
 LICENSE = "MIT"
+LIC_FILES_CHKSUM ?= "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
+
 INHIBIT_DEFAULT_DEPS = "1"
 
 addtask do_allpackagedata before do_build
-- 
2.7.4



^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [PATCH 6/6] libxsettings-client: fix LICENSE
  2016-04-25 13:51 [PATCH 0/6] insane.bbclass: package_qa_check_license -> do_qa_populate_lic Robert Yang
                   ` (4 preceding siblings ...)
  2016-04-25 13:51 ` [PATCH 5/6] meta-world-pkgdata: add LIC_FILES_CHKSUM Robert Yang
@ 2016-04-25 13:51 ` Robert Yang
  2016-04-25 15:26   ` Burton, Ross
  5 siblings, 1 reply; 17+ messages in thread
From: Robert Yang @ 2016-04-25 13:51 UTC (permalink / raw)
  To: openembedded-core

The tarball has a COPYING file now, and is GPLv2+.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
---
 .../libxsettings-client/MIT-style-license          | 22 ----------------------
 .../libxsettings-client_0.10.bb                    | 13 ++-----------
 2 files changed, 2 insertions(+), 33 deletions(-)
 delete mode 100644 meta/recipes-graphics/libxsettings-client/libxsettings-client/MIT-style-license

diff --git a/meta/recipes-graphics/libxsettings-client/libxsettings-client/MIT-style-license b/meta/recipes-graphics/libxsettings-client/libxsettings-client/MIT-style-license
deleted file mode 100644
index 628de98..0000000
--- a/meta/recipes-graphics/libxsettings-client/libxsettings-client/MIT-style-license
+++ /dev/null
@@ -1,22 +0,0 @@
-/*
- * Copyright © 2001 Red Hat, Inc.
- *
- * Permission to use, copy, modify, distribute, and sell this software and its
- * documentation for any purpose is hereby granted without fee, provided that
- * the above copyright notice appear in all copies and that both that
- * copyright notice and this permission notice appear in supporting
- * documentation, and that the name of Red Hat not be used in advertising or
- * publicity pertaining to distribution of the software without specific,
- * written prior permission.  Red Hat makes no representations about the
- * suitability of this software for any purpose.  It is provided "as is"
- * without express or implied warranty.
- *
- * RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL RED HAT
- * BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
- * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
- * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN 
- * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
- *
- * Author:  Owen Taylor, Red Hat, Inc.
- */
diff --git a/meta/recipes-graphics/libxsettings-client/libxsettings-client_0.10.bb b/meta/recipes-graphics/libxsettings-client/libxsettings-client_0.10.bb
index 67c5e27..2999653 100644
--- a/meta/recipes-graphics/libxsettings-client/libxsettings-client_0.10.bb
+++ b/meta/recipes-graphics/libxsettings-client/libxsettings-client_0.10.bb
@@ -6,8 +6,8 @@ desktop."
 HOMEPAGE = "http://matchbox-project.org/sources/optional-dependencies/"
 BUGTRACKER = "http://bugzilla.yoctoproject.org/"
 SECTION = "x/libs"
-LICENSE = "MIT-style"
-LIC_FILES_CHKSUM = "file://COPYING;md5=7cfac9d2d4dc3694cc7eb605cf32a69b \
+LICENSE = "GPLv2+"
+LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \
                     file://xsettings-client.h;endline=22;md5=7cfac9d2d4dc3694cc7eb605cf32a69b \
                     file://xsettings-common.h;endline=22;md5=7cfac9d2d4dc3694cc7eb605cf32a69b"
 DEPENDS = "virtual/libx11"
@@ -17,7 +17,6 @@ PR = "r5"
 headers = "xsettings-common.h xsettings-client.h"
 
 SRC_URI = "http://downloads.yoctoproject.org/releases/matchbox/optional-dependencies/Xsettings-client-0.10.tar.gz \
-        file://MIT-style-license \
         file://link-x11.patch;apply=yes \
         file://obsolete_automake_macros.patch \
 "
@@ -30,11 +29,3 @@ S = "${WORKDIR}/Xsettings-client-0.10"
 inherit autotools gettext distro_features_check
 # depends on virtual/libx11
 REQUIRED_DISTRO_FEATURES = "x11"
-
-do_configure_prepend() {
-    # This package doesn't ship with its own COPYING file and
-    # autotools will install a GPLv2 one instead of the actual MIT-style license here.
-    # Add the correct license here to avoid confusion.
-    cp -f ${WORKDIR}/MIT-style-license ${S}/COPYING
-}
-
-- 
2.7.4



^ permalink raw reply related	[flat|nested] 17+ messages in thread

* Re: [PATCH 6/6] libxsettings-client: fix LICENSE
  2016-04-25 13:51 ` [PATCH 6/6] libxsettings-client: fix LICENSE Robert Yang
@ 2016-04-25 15:26   ` Burton, Ross
  2016-04-26  0:44     ` Robert Yang
  0 siblings, 1 reply; 17+ messages in thread
From: Burton, Ross @ 2016-04-25 15:26 UTC (permalink / raw)
  To: Robert Yang; +Cc: OE-core

[-- Attachment #1: Type: text/plain, Size: 269 bytes --]

On 25 April 2016 at 14:51, Robert Yang <liezhi.yang@windriver.com> wrote:

> The tarball has a COPYING file now, and is GPLv2+.
>

Just had a proper look at this.  The tarball has a COPYING that says GPL,
but the source files are all clearly marked MIT.

Ross

[-- Attachment #2: Type: text/html, Size: 663 bytes --]

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [PATCH 6/6] libxsettings-client: fix LICENSE
  2016-04-25 15:26   ` Burton, Ross
@ 2016-04-26  0:44     ` Robert Yang
  2016-04-26 13:29       ` Burton, Ross
  0 siblings, 1 reply; 17+ messages in thread
From: Robert Yang @ 2016-04-26  0:44 UTC (permalink / raw)
  To: Burton, Ross; +Cc: OE-core



On 04/25/2016 11:26 PM, Burton, Ross wrote:
>
> On 25 April 2016 at 14:51, Robert Yang <liezhi.yang@windriver.com
> <mailto:liezhi.yang@windriver.com>> wrote:
>
>     The tarball has a COPYING file now, and is GPLv2+.
>
>
> Just had a proper look at this.  The tarball has a COPYING that says GPL, but
> the source files are all clearly marked MIT.

Thanks, did you mean the following text ? I can't find MIT license there.

/*
  * Copyright © 2001 Red Hat, Inc
  *
  * Permission to use, copy, modify, distribute, and sell this software and its
  * documentation for any purpose is hereby granted without fee, provided that
  * the above copyright notice appear in all copies and that both that
  * copyright notice and this permission notice appear in supporting
  * documentation, and that the name of Red Hat not be used in advertising or
  * publicity pertaining to distribution of the software without specific,
  * written prior permission.  Red Hat makes no representations about the
  * suitability of this software for any purpose.  It is provided "as is"
  * without express or implied warranty.
  *
  * RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL RED HAT
  * BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
  * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  *
  * Author:  Owen Taylor, Red Hat, Inc.
  */

// Robert

>
> Ross


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [PATCH 2/6] insane.bbclass: package_qa_check_license -> do_qa_populate_lic
  2016-04-25 13:51 ` [PATCH 2/6] insane.bbclass: package_qa_check_license -> do_qa_populate_lic Robert Yang
@ 2016-04-26  8:56   ` Richard Purdie
  2016-04-26  9:01     ` Robert Yang
  2016-04-27  2:28     ` Robert Yang
  0 siblings, 2 replies; 17+ messages in thread
From: Richard Purdie @ 2016-04-26  8:56 UTC (permalink / raw)
  To: Robert Yang, openembedded-core

On Mon, 2016-04-25 at 06:51 -0700, Robert Yang wrote:
> The package_qa_check_license() was in do_qa_configure which had a
> potential problem, when the recipe sets do_configure[noexec] = "1",
> then
> the license checking won't run, which may hidden license issues.
> Rename
> it to do_qa_populate_lic() and run in do_populate_lic[postfuncs]
> which
> is more reasonable (when no populate license, no license checking).
> 
> Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
> ---
>  meta/classes/insane.bbclass | 15 ++++++---------
>  1 file changed, 6 insertions(+), 9 deletions(-)

There is a convention that "do_" as a function prefix means its a task.
In this case its not a task but a function, so can you use a different
prefix please?

Cheers,

Richard


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [PATCH 2/6] insane.bbclass: package_qa_check_license -> do_qa_populate_lic
  2016-04-26  8:56   ` Richard Purdie
@ 2016-04-26  9:01     ` Robert Yang
  2016-04-27  2:28     ` Robert Yang
  1 sibling, 0 replies; 17+ messages in thread
From: Robert Yang @ 2016-04-26  9:01 UTC (permalink / raw)
  To: Richard Purdie, openembedded-core



On 04/26/2016 04:56 PM, Richard Purdie wrote:
> On Mon, 2016-04-25 at 06:51 -0700, Robert Yang wrote:
>> The package_qa_check_license() was in do_qa_configure which had a
>> potential problem, when the recipe sets do_configure[noexec] = "1",
>> then
>> the license checking won't run, which may hidden license issues.
>> Rename
>> it to do_qa_populate_lic() and run in do_populate_lic[postfuncs]
>> which
>> is more reasonable (when no populate license, no license checking).
>>
>> Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
>> ---
>>   meta/classes/insane.bbclass | 15 ++++++---------
>>   1 file changed, 6 insertions(+), 9 deletions(-)
>
> There is a convention that "do_" as a function prefix means its a task.
> In this case its not a task but a function, so can you use a different
> prefix please?

Ah, yes, thanks, I will update it after Ross replies.

// Robert

>
> Cheers,
>
> Richard
>


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [PATCH 6/6] libxsettings-client: fix LICENSE
  2016-04-26  0:44     ` Robert Yang
@ 2016-04-26 13:29       ` Burton, Ross
  2016-04-26 13:57         ` Flanagan, Elizabeth
  0 siblings, 1 reply; 17+ messages in thread
From: Burton, Ross @ 2016-04-26 13:29 UTC (permalink / raw)
  To: Robert Yang; +Cc: OE-core

[-- Attachment #1: Type: text/plain, Size: 583 bytes --]

On 26 April 2016 at 01:44, Robert Yang <liezhi.yang@windriver.com> wrote:

> Thanks, did you mean the following text ? I can't find MIT license there.
>
> /*
>  * Copyright © 2001 Red Hat, Inc
>  *
>

Yes, this one.  I've just had a chat with Beth and we both agree that it's
practically MIT, even if it's not worded traditionally.  My personal belief
is that this license is Red Hat's legal department's wording of MIT.
Pointing it at the MIT license is acceptable, but preferable would be
adding a new "RedHat-MIT" license to common-licenses and using that.

Ross

[-- Attachment #2: Type: text/html, Size: 1066 bytes --]

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [PATCH 6/6] libxsettings-client: fix LICENSE
  2016-04-26 13:29       ` Burton, Ross
@ 2016-04-26 13:57         ` Flanagan, Elizabeth
  2016-04-26 16:43           ` Khem Raj
  0 siblings, 1 reply; 17+ messages in thread
From: Flanagan, Elizabeth @ 2016-04-26 13:57 UTC (permalink / raw)
  To: Burton, Ross; +Cc: OE-core

On 26 April 2016 at 14:29, Burton, Ross <ross.burton@intel.com> wrote:
>
> On 26 April 2016 at 01:44, Robert Yang <liezhi.yang@windriver.com> wrote:
>>
>> Thanks, did you mean the following text ? I can't find MIT license there.
>>
>> /*
>>  * Copyright © 2001 Red Hat, Inc
>>  *
>
>
> Yes, this one.  I've just had a chat with Beth and we both agree that it's
> practically MIT, even if it's not worded traditionally.  My personal belief
> is that this license is Red Hat's legal department's wording of MIT.
> Pointing it at the MIT license is acceptable, but preferable would be adding
> a new "RedHat-MIT" license to common-licenses and using that.
>

Yes, this is MIT enough that, in that, it doesn't really add any
restrictions to MIT that looking at it again I think leaving it MIT is
enough.

> Ross
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>



-- 
Elizabeth Flanagan
Yocto Project
Build and Release


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [PATCH 6/6] libxsettings-client: fix LICENSE
  2016-04-26 13:57         ` Flanagan, Elizabeth
@ 2016-04-26 16:43           ` Khem Raj
  2016-04-26 16:56             ` Burton, Ross
  0 siblings, 1 reply; 17+ messages in thread
From: Khem Raj @ 2016-04-26 16:43 UTC (permalink / raw)
  To: Flanagan, Elizabeth; +Cc: OE-core

[-- Attachment #1: Type: text/plain, Size: 1580 bytes --]


> On Apr 26, 2016, at 6:57 AM, Flanagan, Elizabeth <elizabeth.flanagan@intel.com> wrote:
> 
> On 26 April 2016 at 14:29, Burton, Ross <ross.burton@intel.com> wrote:
>> 
>> On 26 April 2016 at 01:44, Robert Yang <liezhi.yang@windriver.com> wrote:
>>> 
>>> Thanks, did you mean the following text ? I can't find MIT license there.
>>> 
>>> /*
>>> * Copyright © 2001 Red Hat, Inc
>>> *
>> 
>> 
>> Yes, this one.  I've just had a chat with Beth and we both agree that it's
>> practically MIT, even if it's not worded traditionally.  My personal belief
>> is that this license is Red Hat's legal department's wording of MIT.
>> Pointing it at the MIT license is acceptable, but preferable would be adding
>> a new "RedHat-MIT" license to common-licenses and using that.
>> 
> 
> Yes, this is MIT enough that, in that, it doesn't really add any
> restrictions to MIT that looking at it again I think leaving it MIT is
> enough.

It may be good to send a query to concerned folks at redhat and clarify
so we don’t have to make assumptions.

> 
>> Ross
>> 
>> --
>> _______________________________________________
>> Openembedded-core mailing list
>> Openembedded-core@lists.openembedded.org
>> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>> 
> 
> 
> 
> --
> Elizabeth Flanagan
> Yocto Project
> Build and Release
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core


[-- Attachment #2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 211 bytes --]

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [PATCH 6/6] libxsettings-client: fix LICENSE
  2016-04-26 16:43           ` Khem Raj
@ 2016-04-26 16:56             ` Burton, Ross
  2016-04-27  1:18               ` Robert Yang
  0 siblings, 1 reply; 17+ messages in thread
From: Burton, Ross @ 2016-04-26 16:56 UTC (permalink / raw)
  To: Khem Raj; +Cc: OE-core

[-- Attachment #1: Type: text/plain, Size: 249 bytes --]

On 26 April 2016 at 17:43, Khem Raj <raj.khem@gmail.com> wrote:

> It may be good to send a query to concerned folks at redhat and clarify
> so we don’t have to make assumptions.
>

Owen just confirmed on IRC that this code is MIT.

Ross

[-- Attachment #2: Type: text/html, Size: 634 bytes --]

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [PATCH 6/6] libxsettings-client: fix LICENSE
  2016-04-26 16:56             ` Burton, Ross
@ 2016-04-27  1:18               ` Robert Yang
  0 siblings, 0 replies; 17+ messages in thread
From: Robert Yang @ 2016-04-27  1:18 UTC (permalink / raw)
  To: Burton, Ross, Khem Raj; +Cc: OE-core



On 04/27/2016 12:56 AM, Burton, Ross wrote:
>
> On 26 April 2016 at 17:43, Khem Raj <raj.khem@gmail.com
> <mailto:raj.khem@gmail.com>> wrote:
>
>     It may be good to send a query to concerned folks at redhat and clarify
>     so we don’t have to make assumptions.
>
>
> Owen just confirmed on IRC that this code is MIT.

Thanks, I will let it use MIT as before.

// Robert


>
> Ross
>
>


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [PATCH 2/6] insane.bbclass: package_qa_check_license -> do_qa_populate_lic
  2016-04-26  8:56   ` Richard Purdie
  2016-04-26  9:01     ` Robert Yang
@ 2016-04-27  2:28     ` Robert Yang
  1 sibling, 0 replies; 17+ messages in thread
From: Robert Yang @ 2016-04-27  2:28 UTC (permalink / raw)
  To: Richard Purdie, openembedded-core



On 04/26/2016 04:56 PM, Richard Purdie wrote:
> On Mon, 2016-04-25 at 06:51 -0700, Robert Yang wrote:
>> The package_qa_check_license() was in do_qa_configure which had a
>> potential problem, when the recipe sets do_configure[noexec] = "1",
>> then
>> the license checking won't run, which may hidden license issues.
>> Rename
>> it to do_qa_populate_lic() and run in do_populate_lic[postfuncs]
>> which
>> is more reasonable (when no populate license, no license checking).
>>
>> Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
>> ---
>>   meta/classes/insane.bbclass | 15 ++++++---------
>>   1 file changed, 6 insertions(+), 9 deletions(-)
>
> There is a convention that "do_" as a function prefix means its a task.
> In this case its not a task but a function, so can you use a different
> prefix please?

I had updated the code in V2, but there are others 3 use do_<foo> in
insane.bbclass which are funtions, not tasks:

do_populate_sysroot[postfuncs] += "do_qa_staging "
do_configure[postfuncs] += "do_qa_configure "
do_unpack[postfuncs] += "do_qa_unpack"

What shall we do on them, please ? Keep them or update them?

// Robert

>
> Cheers,
>
> Richard
>


^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2016-04-27  2:28 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-25 13:51 [PATCH 0/6] insane.bbclass: package_qa_check_license -> do_qa_populate_lic Robert Yang
2016-04-25 13:51 ` [PATCH 1/6] insane.bbclass: remove workdir from package_qa_check_license() Robert Yang
2016-04-25 13:51 ` [PATCH 2/6] insane.bbclass: package_qa_check_license -> do_qa_populate_lic Robert Yang
2016-04-26  8:56   ` Richard Purdie
2016-04-26  9:01     ` Robert Yang
2016-04-27  2:28     ` Robert Yang
2016-04-25 13:51 ` [PATCH 3/6] packagegroup.bbclass: set LICENSE and LIC_FILES_CHKSUM Robert Yang
2016-04-25 13:51 ` [PATCH 4/6] packagegroup-foo.bb: remove LICENSE = "MIT" Robert Yang
2016-04-25 13:51 ` [PATCH 5/6] meta-world-pkgdata: add LIC_FILES_CHKSUM Robert Yang
2016-04-25 13:51 ` [PATCH 6/6] libxsettings-client: fix LICENSE Robert Yang
2016-04-25 15:26   ` Burton, Ross
2016-04-26  0:44     ` Robert Yang
2016-04-26 13:29       ` Burton, Ross
2016-04-26 13:57         ` Flanagan, Elizabeth
2016-04-26 16:43           ` Khem Raj
2016-04-26 16:56             ` Burton, Ross
2016-04-27  1:18               ` Robert Yang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox