From: "Trevor Gamblin" <trevor.gamblin@windriver.com>
To: Randy MacLeod <randy.macleod@windriver.com>,
Rahul Kumar <rahulk@mvista.com>,
OE-core <openembedded-core@lists.openembedded.org>
Cc: Alexander Kanavin <alex.kanavin@gmail.com>,
Richard Purdie <richard.purdie@linuxfoundation.org>
Subject: Re: [OE-core] [PATCH v2] bzip2: Add test suite for bzip2
Date: Wed, 13 May 2020 10:28:39 -0400 [thread overview]
Message-ID: <8ca68742-7d12-a108-2206-4ce8c1d87e5c@windriver.com> (raw)
In-Reply-To: <f97a12c8-3323-99ca-0f6a-dd2d020c217f@windriver.com>
On 5/12/20 7:22 PM, Randy MacLeod wrote:
> On 2020-05-12 12:58 a.m., Rahul Kumar wrote:
>> Hi,
>>
>> Can any one please help me to figure out how to deal with the GPLv3+
>> issue.
>>
>> you can see my Patch at below link
>> https://patchwork.openembedded.org/patch/172134/
>>
>> *Issue:*
>> the new license (GPLv3) causes problems:
>> https://autobuilder.yoctoproject.org/typhoon/#/builders/75/builds/1814
>> *
>> *
>
> Hi Rahul,
>
> I'm having some email problems with the oe-core list so apologies
> if this is redundant.
>
> What happens if you split the license info into two parts like:
>
> $ grep "^LICENSE" recipes-extended/libvirt/libvirt_6.1.0.bb
> LICENSE = "LGPLv2.1+ & GPLv2+"
> LICENSE_${PN}-ptest = "GPLv2+ & LGPLv2.1+"
> except of course with GPLv3.
>
> I might try that tomorrow on our local instance of the YP autobuilder.
> If you'd like to set one up @ mvista, I hear from Trevor that it doesn't
> take all that much time. As others have explained, you can also dig
> through the yocto-autobuilder2/yocto-autobuilder-helper git repos.
Hi Rahul, I can definitely help you get an autobuilder instance running
locally, if you'd like. At the moment I'd suggest doing so on a host
that's running Fedora, as that's where I've had the most success
(Richard has explained to me how they run it on Ubuntu, but I haven't
gotten it fully functional there yet).
Are you on either the #yocto and/or #oe IRC channels?
>
> ../Randy
>
>> Thanks & Regards,
>> Rahul Kumar
>> Software Engineer,Linux Solutions Engineering
>> Group,Montavista Software LLC
>> Email Id: rahulk@mvista.com <mailto:rahulk@mvista.com>
>> <https://plus.google.com/+CodeTwoSoftware>
>>
>>
>> On Wed, May 6, 2020 at 4:47 PM Rahul Kumar via lists.openembedded.org
>> <http://lists.openembedded.org>
>> <rahulk=mvista.com@lists.openembedded.org
>> <mailto:mvista.com@lists.openembedded.org>> wrote:
>>
>> Hi Randy,
>>
>> As per your suggestion I did some progress.
>>
>> Issue 1:
>> ========
>>
>> Configuration for this issue:
>> =============================
>> MACHINE = "edgerouter"
>> DISTRO = "poky"
>> SDKMACHINE = "i686"
>> PACKAGE_CLASSES = "package_rpm package_deb package_ipk"
>> INHERIT += 'image-buildinfo'
>> IMAGE_BUILDINFO_VARS_append = ' IMAGE_BASENAME IMAGE_NAME'
>> QEMU_USE_KVM = 'True'
>> INHERIT += 'report-error'
>> PREMIRRORS = ''
>> BB_GENERATE_MIRROR_TARBALLS = '1'
>> BB_NUMBER_THREADS = '16'
>> PARALLEL_MAKE = '-j 16'
>> BB_TASK_NICE_LEVEL = '5'
>> BB_TASK_NICE_LEVEL_task-testimage = '0'
>> BB_TASK_IONICE_LEVEL = '2.7'
>> BB_TASK_IONICE_LEVEL_task-testimage = '2.1'
>> INHERIT += 'testimage'
>> TEST_QEMUBOOT_TIMEOUT = '1500'
>> SANITY_TESTED_DISTROS = ''
>> SDK_EXT_TYPE = 'minimal'
>> SDK_INCLUDE_TOOLCHAIN = '1'
>> Command:
>> ========
>> bitbake core-image-sato core-image-sato-dev core-image-sato-sdk
>> core-image-minimal core-image-minimal-dev core-image-sato-ptest
>> core-image-sato:do_populate_sdk -k
>>
>> but could not reproduce the issue.
>>
>> work-around to reproduce this issue.
>> ====================================
>> I am observing since bzip2-tests is a git repo and
>> fsmonitor-watchman.sample (.git/hooks/fsmonitor-watchman.sample) is
>> perl script.
>> that's why I got this error.
>> so manually I copied fsmonitor-watchman.sample file into the
>> bzip2-tests/.git/hooks and able to reproduce the issue.
>> Error:
>> https://autobuilder.yoctoproject.org/typhoon/#/builders/62/builds/1816
>> step1b: ERROR: bzip2-1.0.8-r0 do_package_qa: QA Issue:
>> /usr/lib/bzip2/ptest/bzip2-tests/.git/hooks/fsmonitor-watchman.sample
>> contained
>> in package bzip2-ptest requires /usr/bin/perl, but no providers
>> found in RDEPENDS_bzip2-ptest? [file-rdeps]
>> step1b: ERROR: bzip2-1.0.8-r0 do_package_qa: QA run found fatal
>> errors. Please consider fixing them.
>>
>> I find out the solution by appending RDEPENDS_${PN}-ptest with perl.
>> RDEPENDS_${PN}-ptest += "make bash perl"
>>
>> so this issue got resolved.
>>
>> Issue2:
>> =======
>> Configuration for this issue
>> ============================
>> MACHINE = "qemux86"
>> DISTRO = "poky"
>> SDKMACHINE = "i686"
>> PACKAGE_CLASSES = "package_rpm package_deb package_ipk"
>> INCOMPATIBLE_LICENSE = '*GPLv3'
>> WARN_QA_remove = 'incompatible-license'
>> QEMU_USE_KVM = 'True'
>> INHERIT += 'report-error'
>> PREMIRRORS = ''
>> BB_GENERATE_MIRROR_TARBALLS = '1'
>> BB_NUMBER_THREADS = '16'
>> PARALLEL_MAKE = '-j 16'
>> BB_TASK_NICE_LEVEL = '5'
>> BB_TASK_NICE_LEVEL_task-testimage = '0'
>> BB_TASK_IONICE_LEVEL = '2.7'
>> BB_TASK_IONICE_LEVEL_task-testimage = '2.1'
>> INHERIT += 'testimage'
>> TEST_QEMUBOOT_TIMEOUT = '1500'
>> SANITY_TESTED_DISTROS = ''
>> SDK_EXT_TYPE = 'minimal'
>> SDK_INCLUDE_TOOLCHAIN = '1'
>> Command
>> =======
>> bitbake core-image-minimal core-image-full-cmdline -k
>>
>>
>> INCOMPATIBLE_LICENSE = '*GPLv3'
>> WARN_QA_remove = 'incompatible-license'
>> My doubt is since above configuration is using during build and we
>> are using GPLv3+ license then definetly it will report error.
>>
>> It looks like you are packaging the test code/data with the main
>> package
>> not in bzip2-ptest. Have a look at:
>> meta/recipes-support/libpcre/libpcre_8.44.bb
>> <http://libpcre_8.44.bb>
>> for an example. There are many more.
>> Also, if you look at oe-core.git:
>> $ rgrep LICENSE_ * | grep PN
>> you can see many examples of sub-packages with different licenses
>> than the main package. One example is:
>> meta/recipes-support/gnutls/gnutls_3.6.13.bb
>> <http://gnutls_3.6.13.bb>
>> I hope that can address the buildbot problem but I haven't tried it
>> myself yet.
>>
>> Explanation:
>> I checked, Here is packaging the test code/data in bzip2-ptest.
>> /opt/opensource/build/tmp/work/mips64-poky-linux/bzip2/1.0.8-r0/packages-split/bzip2-ptest
>>
>> I tried with the changes below in the bzip2_1.0.8.bb
>> <http://bzip2_1.0.8.bb> file.
>> LICENSE = "bzip2"
>> LICENSE_${PN}-ptest = "GPLv3+"
>>
>> WARNING: LICENSE_bzip2-ptest includes licenses (GPLv3+) that are not
>> listed in LICENSE
>> To resolve this warning i did below changes.
>> LICENSE = "bzip2 & GPLv3+"
>> LICENSE_${PN}-ptest = "GPLv3+"
>>
>> But I am getting below error in both case
>>
>> ERROR: Nothing RPROVIDES 'bzip2' (but
>> /opt/opensource/poky/meta/recipes-extended/packagegroups/packagegroup-core-full-cmdline.bb
>> <http://packagegroup-core-full-cmdline.bb>,
>> /opt/opensource/poky/meta/recipes-devtools/python/python3_3.8.2.bb
>> <http://python3_3.8.2.bb> RDEPENDS on or otherwise requires it)
>> bzip2 was skipped: it has incompatible license(s): GPL-3.0+
>> NOTE: Runtime target 'bzip2' is unbuildable, removing...
>> Missing or unbuildable dependency chain was: ['bzip2']
>>
>> So as per my understanding, if we are splitting the package and
>> assigning Licence to it.
>> example:
>> LICENSE = "bzip2"
>> LICENSE_${PN}-ptest = "GPLv3+"
>>
>> In this case I have to set LICENSE_PATH where your license file is
>> located.
>> or if I am using standard license, I have to set LICENSE first then
>> we can set LICENSE_${PN}-ptest.
>>
>> Example:
>> LICENSE = "bzip2 & GPLv3+"
>> LICENSE_${PN}-ptest = "GPLv3+"
>>
>> Kindly comment on it and feel free to point out if i am wrong at any
>> point.
>>
>>
>> *Thanks & Regards,*
>> Rahul Kumar
>> Software Engineer,Linux Solutions Engineering
>> Group,Montavista Software LLC
>> Email Id: rahulk@mvista.com <mailto:rahulk@mvista.com>
>> <https://plus.google.com/+CodeTwoSoftware>
>>
>>
>> On Fri, May 1, 2020 at 6:56 AM Randy MacLeod
>> <randy.macleod@windriver.com <mailto:randy.macleod@windriver.com>>
>> wrote:
>>
>> On 2020-04-27 3:39 p.m., Alexander Kanavin wrote:
>> > You need to first see from the failure page which
>> configuration is
>> > failing, for example non-gpl3 is one such.
>> >
>> > Then you find that configuration in config.json. The below
>> should
>> > hopefully be self-explanatory in how you should set up the
>> build?
>> >
>> > |"non-gpl3" : { "NEEDREPOS" : ["poky", "meta-gplv2"],
>> "MACHINE" :
>> > "qemux86", "BBTARGETS" : "core-image-minimal
>> core-image-full-cmdline",
>> > "extravars" : [ "INCOMPATIBLE_LICENSE = '*GPLv3'",
>> "WARN_QA_remove =
>> > 'incompatible-license'" ], "EXTRACMDS" : [
>> > "../../yocto-autobuilder-helper/scripts/check-gplv3" ] },
>> >
>> > |
>> >
>> > |
>> > |
>> >
>> > |Alex
>>
>> Hi Rahul,
>>
>> Sorry for my late reply.
>>
>> The commit log for v2 is very good now!
>> Thanks for incorporating my --pedantic suggestions. ;-)
>>
>> It seems that you need a perl dependency for something (docs?
>> $ cd .../bzip2.git
>> $ grep -r "perl " *
>> format.pl:#!/usr/bin/perl -w
>> README.XML.STUFF:It uses format.pl <http://format.pl>, a
>> perl script...
>>
>> Then we need to figure out how to deal with the GPLv3 issue.
>>
>> The buildbot output can be tedious to figure out. I haven't
>> really
>> spent enough time plugging away at it to be proficient yet
>> either.
>> Have you been able to reproduce the problems that Richard
>> reported?
>> If not, and you've tried for a bit, then just say so and I'll
>> try to
>> help tomorrow or early next week.
>>
>> It looks like you are packaging the test code/data with the main
>> package
>> not in bzip2-ptest. Have a look at:
>> meta/recipes-support/libpcre/libpcre_8.44.bb
>> <http://libpcre_8.44.bb>
>> for an example. There are many more.
>> Also, if you look at oe-core.git:
>> $ rgrep LICENSE_ * | grep PN
>> you can see many examples of sub-packages with different
>> licenses
>> than the main package. One example is:
>> meta/recipes-support/gnutls/gnutls_3.6.13.bb
>> <http://gnutls_3.6.13.bb>
>> I hope that can address the buildbot problem but I haven't
>> tried it
>> myself yet.
>>
>> BTW, Trevor has gotten the YP autobuilder going at Wind River
>> and
>> he'll be sending a few documentation updates next week or so.
>> That may help in case you want to reproduce the YP AB test
>> infrastructure. I expect that you don't _have_ to do so but
>> I think it would be good if more contributing organizations did
>> have an instance with only limited builders of the YP AB so that
>> we can do more testing before Richard runs our changes through
>> the main system. Richard has cautioned that the YP AB has
>> lots of
>> builders each of which has many cores but I hope that we can at
>> least
>> do some AB checking ourselves.
>>
>> ../Randy
>>
>>
>> > |
>> >
>> >
>> > On Mon, 27 Apr 2020 at 20:54, Rahul Kumar <rahulk@mvista.com
>> <mailto:rahulk@mvista.com>
>> > <mailto:rahulk@mvista.com <mailto:rahulk@mvista.com>>> wrote:
>> >
>> > Hi Richard/Alexander,
>> >
>> > I am not able to understand how I can use the below file.
>> >
>> http://git.yoctoproject.org/cgit/cgit.cgi/yocto-autobuilder-helper/tree/config.json
>> >
>> > did you mean to say that i have to set MACRO in
>> local.conf based on
>> > this file.
>> >
>> > *Thanks & Regards,*
>> > Rahul Kumar
>> > Software Engineer,Linux Solutions Engineering
>> > Group,Montavista Software LLC
>> > Email Id: rahulk@mvista.com <mailto:rahulk@mvista.com>
>> <mailto:rahulk@mvista.com <mailto:rahulk@mvista.com>>
>> > <https://plus.google.com/+CodeTwoSoftware>
>> >
>> >
>> > On Mon, Apr 27, 2020 at 11:46 PM Richard Purdie
>> > <richard.purdie@linuxfoundation.org
>> <mailto:richard.purdie@linuxfoundation.org>
>> > <mailto:richard.purdie@linuxfoundation.org
>> <mailto:richard.purdie@linuxfoundation.org>>> wrote:
>> >
>> > On Mon, 2020-04-27 at 18:30 +0200, Alexander Kanavin
>> wrote:
>> > > You need to look at configurations defined here:
>> > >
>> >
>> http://git.yoctoproject.org/cgit/cgit.cgi/yocto-autobuilder-helper/tree/config.json
>> > > and replicate them locally. Then you can
>> reproduce the
>> > failures that
>> > > the AB gets in those configurations.
>> >
>> > That start of the failing logs on the autobuilder
>> also list out the
>> > configuration options for that build.
>> >
>> > Cheers,
>> >
>> > Richard
>> >
>> >
>> >
>> >
>>
>>
>> -- # Randy MacLeod
>> # Wind River Linux
>>
>>
>>
>
>
next prev parent reply other threads:[~2020-05-13 14:28 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-23 18:39 [PATCH v2] bzip2: Add test suite for bzip2 Rahul Kumar
2020-04-27 15:09 ` [OE-core] " Richard Purdie
2020-04-27 16:25 ` Rahul Kumar
2020-04-27 16:30 ` Alexander Kanavin
2020-04-27 18:16 ` Richard Purdie
2020-04-27 18:54 ` Rahul Kumar
2020-04-27 19:39 ` Alexander Kanavin
2020-05-01 1:24 ` Randy MacLeod
2020-05-06 11:17 ` Rahul Kumar
[not found] ` <160C6C52084AA802.10857@lists.openembedded.org>
2020-05-12 4:58 ` Rahul Kumar
2020-05-12 23:22 ` Randy MacLeod
2020-05-13 14:28 ` Trevor Gamblin [this message]
2020-05-13 18:28 ` Rahul Kumar
2020-05-17 19:17 ` Rahul Kumar
2020-05-17 19:48 ` Peter Kjellerstedt
2020-05-19 11:58 ` Rahul Kumar
2020-05-19 16:29 ` Peter Kjellerstedt
2020-05-19 17:14 ` Rahul Kumar
2020-05-19 21:45 ` Randy MacLeod
2020-05-19 22:10 ` Khem Raj
2020-05-20 0:06 ` Peter Kjellerstedt
2020-05-20 20:56 ` Randy MacLeod
2020-05-25 6:12 ` Rahul Kumar
2020-05-26 17:08 ` Paul Barker
2020-05-12 6:53 ` Peter Kjellerstedt
2020-05-17 23:54 ` Khem Raj
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=8ca68742-7d12-a108-2206-4ce8c1d87e5c@windriver.com \
--to=trevor.gamblin@windriver.com \
--cc=alex.kanavin@gmail.com \
--cc=openembedded-core@lists.openembedded.org \
--cc=rahulk@mvista.com \
--cc=randy.macleod@windriver.com \
--cc=richard.purdie@linuxfoundation.org \
/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