From: Beth 'pidge' Flanagan <pidge@toganlabs.com>
To: Ross Burton <ross.burton@intel.com>,
openembedded-core@lists.openembedded.org
Subject: Re: [PATCH] classes/license: copy licenses even if there are no checksummed files
Date: Wed, 02 Nov 2016 18:37:35 +0000 [thread overview]
Message-ID: <1478111855.32080.20.camel@toganlabs.com> (raw)
In-Reply-To: <1478099232-23987-1-git-send-email-ross.burton@intel.com>
On Wed, 2016-11-02 at 15:07 +0000, Ross Burton wrote:
> Previously do_populate_lic would bail writing the license files (such
> as the MIT
> license text) to deploy/licenses/${PN}/ if there were no files listed
> in
> LIC_FILES_CHKSUM.
>
> However this means that recipes that generate their content (such as
> os-release)
> or are otherwise "interesting" (such as perf) don't have their
> license files
> copied over, resulting in warnings from do_rootfs.
>
It's been a bit since I've looked at license.bbclass, but I guess my
question here is this seems to take out all notification that a recipe
doesn't have a LIC_FILES_CHKSUM, correct?
I'd rather we maybe kept the note in and maybe whitelisted recipes that
did interesting things so that didn't appear than just ignored when a
recipe was missing it.
Because if we don't at least bb.note it, I can see people just ignoring
it entirely (which would be bad in a lot of ways)
-b
> Signed-off-by: Ross Burton <ross.burton@intel.com>
> ---
> meta/classes/license.bbclass | 8 +-------
> 1 file changed, 1 insertion(+), 7 deletions(-)
>
> diff --git a/meta/classes/license.bbclass
> b/meta/classes/license.bbclass
> index 660b85f..afcfbfc 100644
> --- a/meta/classes/license.bbclass
> +++ b/meta/classes/license.bbclass
> @@ -390,7 +390,7 @@ def find_license_files(d):
> from collections import defaultdict, OrderedDict
>
> # All the license files for the package
> - lic_files = d.getVar('LIC_FILES_CHKSUM', True)
> + lic_files = d.getVar('LIC_FILES_CHKSUM', True) or ""
> pn = d.getVar('PN', True)
> # The license files are located in S/LIC_FILE_CHECKSUM.
> srcdir = d.getVar('S', True)
> @@ -469,12 +469,6 @@ def find_license_files(d):
> if not generic_directory:
> bb.fatal("COMMON_LICENSE_DIR is unset. Please set this in
> your distro config")
>
> - if not lic_files:
> - # No recipe should have an invalid license file. This is
> checked else
> - # where, but let's be pedantic
> - bb.note(pn + ": Recipe file does not have license file
> information.")
> - return lic_files_paths
> -
> for url in lic_files.split():
> try:
> (type, host, path, user, pswd, parm) =
> bb.fetch.decodeurl(url)
next prev parent reply other threads:[~2016-11-02 18:44 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-02 15:07 [PATCH] classes/license: copy licenses even if there are no checksummed files Ross Burton
2016-11-02 18:37 ` Beth 'pidge' Flanagan [this message]
2016-11-02 20:22 ` Burton, Ross
2016-11-02 22:42 ` Beth 'pidge' Flanagan
2016-11-02 20:42 ` Burton, Ross
-- strict thread matches above, loose matches on Subject: below --
2016-11-02 22:58 Ross Burton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1478111855.32080.20.camel@toganlabs.com \
--to=pidge@toganlabs.com \
--cc=openembedded-core@lists.openembedded.org \
--cc=ross.burton@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox