* [PATCH][resend] insane.bbclass: Warn if ${COREBASE}/LICENSE is used
@ 2017-08-31 22:40 Saul Wold
2017-08-31 23:05 ` ✗ patchtest: failure for insane.bbclass: Warn if ${COREBASE}/LICENSE is used (rev2) Patchwork
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Saul Wold @ 2017-08-31 22:40 UTC (permalink / raw)
To: openembedded-core, richard.purdie
The top level LICENSE file is not actually a license, it refers
other licenses that are used by Bitbake and Meta-data. Relying
on this file could cause problems for recipes when this file
changes, which it is about to.
Signed-off-by: Saul Wold <sgw@linux.intel.com>
---
meta/classes/insane.bbclass | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass
index 479d39c..6d20eb6 100644
--- a/meta/classes/insane.bbclass
+++ b/meta/classes/insane.bbclass
@@ -659,7 +659,7 @@ python populate_lic_qa_checksum() {
sane = package_qa_handle_error("license-checksum", pn + ":
Recipe file fetches files and does not have license file information
(LIC_FILES_CHKSUM)", d)
srcdir = d.getVar('S')
-
+ corebase_licensefile = d.getVar('COREBASE') + "/LICENSE"
for url in lic_files.split():
try:
(type, host, path, user, pswd, parm) =
bb.fetch.decodeurl(url)
@@ -670,6 +670,10 @@ python populate_lic_qa_checksum() {
if not os.path.isfile(srclicfile):
package_qa_handle_error("license-checksum", pn + ":
LIC_FILES_CHKSUM points to an invalid file: " + srclicfile, d)
continue
+
+ if (srclicfile == corebase_licensefile):
+ bb.warn("${COREBASE}/LICENSE is not a valid license file,
please use '${COMMON_LICENSE_DIR}/MIT' for a MIT License file in
LIC_FILES_CHKSUM")
+ bb.warn("This will become an error in the next release")
recipemd5 = parm.get('md5', '')
beginline, endline = 0, 0
--
2.7.5
^ permalink raw reply related [flat|nested] 5+ messages in thread* ✗ patchtest: failure for insane.bbclass: Warn if ${COREBASE}/LICENSE is used (rev2)
2017-08-31 22:40 [PATCH][resend] insane.bbclass: Warn if ${COREBASE}/LICENSE is used Saul Wold
@ 2017-08-31 23:05 ` Patchwork
2017-09-01 9:38 ` [PATCH][resend] insane.bbclass: Warn if ${COREBASE}/LICENSE is used Burton, Ross
2017-09-01 11:13 ` Paul Eggleton
2 siblings, 0 replies; 5+ messages in thread
From: Patchwork @ 2017-08-31 23:05 UTC (permalink / raw)
To: Saul Wold; +Cc: openembedded-core
== Series Details ==
Series: insane.bbclass: Warn if ${COREBASE}/LICENSE is used (rev2)
Revision: 2
URL : https://patchwork.openembedded.org/series/8319/
State : failure
== Summary ==
Thank you for submitting this patch series to OpenEmbedded Core. This is
an automated response. Several tests have been executed on the proposed
series by patchtest resulting in the following failures:
* Issue Series cannot be parsed correctly due to malformed diff lines [test_mbox_format]
Suggested fix Create the series again using git-format-patch and ensure it can be applied using git am
Diff line @@ -670,6 +670,10 @@ python populate_lic_qa_checksum() {
* Issue Series does not apply on top of target branch [test_series_merge_on_head]
Suggested fix Rebase your series on top of targeted branch
Targeted branch master (currently at 811edd9542)
If you believe any of these test results are incorrect, please reply to the
mailing list (openembedded-core@lists.openembedded.org) raising your concerns.
Otherwise we would appreciate you correcting the issues and submitting a new
version of the patchset if applicable. Please ensure you add/increment the
version number when sending the new version (i.e. [PATCH] -> [PATCH v2] ->
[PATCH v3] -> ...).
---
Test framework: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest
Test suite: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest-oe
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH][resend] insane.bbclass: Warn if ${COREBASE}/LICENSE is used
2017-08-31 22:40 [PATCH][resend] insane.bbclass: Warn if ${COREBASE}/LICENSE is used Saul Wold
2017-08-31 23:05 ` ✗ patchtest: failure for insane.bbclass: Warn if ${COREBASE}/LICENSE is used (rev2) Patchwork
@ 2017-09-01 9:38 ` Burton, Ross
2017-09-01 11:46 ` Richard Purdie
2017-09-01 11:13 ` Paul Eggleton
2 siblings, 1 reply; 5+ messages in thread
From: Burton, Ross @ 2017-09-01 9:38 UTC (permalink / raw)
To: Saul Wold; +Cc: OE-core
[-- Attachment #1: Type: text/plain, Size: 2184 bytes --]
This and the other patch have been wrapped by your mailer, and also base64
encoded so I can't trivially fix the whitespace. Are they in a branch, or
can you resend them using git-send-email?
Ross
On 31 August 2017 at 23:40, Saul Wold <sgw@linux.intel.com> wrote:
> The top level LICENSE file is not actually a license, it refers
> other licenses that are used by Bitbake and Meta-data. Relying
> on this file could cause problems for recipes when this file
> changes, which it is about to.
>
> Signed-off-by: Saul Wold <sgw@linux.intel.com>
> ---
> meta/classes/insane.bbclass | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass
> index 479d39c..6d20eb6 100644
> --- a/meta/classes/insane.bbclass
> +++ b/meta/classes/insane.bbclass
> @@ -659,7 +659,7 @@ python populate_lic_qa_checksum() {
> sane = package_qa_handle_error("license-checksum", pn + ":
> Recipe file fetches files and does not have license file information
> (LIC_FILES_CHKSUM)", d)
>
> srcdir = d.getVar('S')
> -
> + corebase_licensefile = d.getVar('COREBASE') + "/LICENSE"
> for url in lic_files.split():
> try:
> (type, host, path, user, pswd, parm) =
> bb.fetch.decodeurl(url)
> @@ -670,6 +670,10 @@ python populate_lic_qa_checksum() {
> if not os.path.isfile(srclicfile):
> package_qa_handle_error("license-checksum", pn + ":
> LIC_FILES_CHKSUM points to an invalid file: " + srclicfile, d)
> continue
> +
> + if (srclicfile == corebase_licensefile):
> + bb.warn("${COREBASE}/LICENSE is not a valid license file,
> please use '${COMMON_LICENSE_DIR}/MIT' for a MIT License file in
> LIC_FILES_CHKSUM")
> + bb.warn("This will become an error in the next release")
>
> recipemd5 = parm.get('md5', '')
> beginline, endline = 0, 0
> --
> 2.7.5
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>
[-- Attachment #2: Type: text/html, Size: 3179 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH][resend] insane.bbclass: Warn if ${COREBASE}/LICENSE is used
2017-09-01 9:38 ` [PATCH][resend] insane.bbclass: Warn if ${COREBASE}/LICENSE is used Burton, Ross
@ 2017-09-01 11:46 ` Richard Purdie
0 siblings, 0 replies; 5+ messages in thread
From: Richard Purdie @ 2017-09-01 11:46 UTC (permalink / raw)
To: Burton, Ross, Saul Wold; +Cc: OE-core
On Fri, 2017-09-01 at 10:38 +0100, Burton, Ross wrote:
> This and the other patch have been wrapped by your mailer, and also
> base64 encoded so I can't trivially fix the whitespace. Are they in
> a branch, or can you resend them using git-send-email?
I found them on a branch and applied it in -next.
Cheers,
Richard
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH][resend] insane.bbclass: Warn if ${COREBASE}/LICENSE is used
2017-08-31 22:40 [PATCH][resend] insane.bbclass: Warn if ${COREBASE}/LICENSE is used Saul Wold
2017-08-31 23:05 ` ✗ patchtest: failure for insane.bbclass: Warn if ${COREBASE}/LICENSE is used (rev2) Patchwork
2017-09-01 9:38 ` [PATCH][resend] insane.bbclass: Warn if ${COREBASE}/LICENSE is used Burton, Ross
@ 2017-09-01 11:13 ` Paul Eggleton
2 siblings, 0 replies; 5+ messages in thread
From: Paul Eggleton @ 2017-09-01 11:13 UTC (permalink / raw)
To: Saul Wold; +Cc: openembedded-core
Hi Saul
On Friday, 1 September 2017 10:40:58 AM NZST Saul Wold wrote:
> The top level LICENSE file is not actually a license, it refers
> other licenses that are used by Bitbake and Meta-data. Relying
> on this file could cause problems for recipes when this file
> changes, which it is about to.
>
> Signed-off-by: Saul Wold <sgw@linux.intel.com>
> ---
> meta/classes/insane.bbclass | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass
> index 479d39c..6d20eb6 100644
> --- a/meta/classes/insane.bbclass
> +++ b/meta/classes/insane.bbclass
> @@ -659,7 +659,7 @@ python populate_lic_qa_checksum() {
> sane = package_qa_handle_error("license-checksum", pn + ":
> Recipe file fetches files and does not have license file information
> (LIC_FILES_CHKSUM)", d)
>
> srcdir = d.getVar('S')
> -
> + corebase_licensefile = d.getVar('COREBASE') + "/LICENSE"
> for url in lic_files.split():
> try:
> (type, host, path, user, pswd, parm) =
> bb.fetch.decodeurl(url)
> @@ -670,6 +670,10 @@ python populate_lic_qa_checksum() {
> if not os.path.isfile(srclicfile):
> package_qa_handle_error("license-checksum", pn + ":
> LIC_FILES_CHKSUM points to an invalid file: " + srclicfile, d)
> continue
> +
> + if (srclicfile == corebase_licensefile):
> + bb.warn("${COREBASE}/LICENSE is not a valid license file,
> please use '${COMMON_LICENSE_DIR}/MIT' for a MIT License file in
> LIC_FILES_CHKSUM")
> + bb.warn("This will become an error in the next release")
Can this be one bb.warn() call? Otherwise it's considered to be two warnings
by the UI. Also, it's rare for us to even make such a comment in a warning,
but I think we would say "in future" rather than "in the next release".
Cheers,
Paul
--
Paul Eggleton
Intel Open Source Technology Centre
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2017-09-01 11:46 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-31 22:40 [PATCH][resend] insane.bbclass: Warn if ${COREBASE}/LICENSE is used Saul Wold
2017-08-31 23:05 ` ✗ patchtest: failure for insane.bbclass: Warn if ${COREBASE}/LICENSE is used (rev2) Patchwork
2017-09-01 9:38 ` [PATCH][resend] insane.bbclass: Warn if ${COREBASE}/LICENSE is used Burton, Ross
2017-09-01 11:46 ` Richard Purdie
2017-09-01 11:13 ` Paul Eggleton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox