On Thu, Mar 5, 2026 at 12:15 PM Mathieu Dubois-Briand <[email protected]> wrote: > > On Wed Mar 4, 2026 at 12:42 AM CET, Martin Jansa via lists.openembedded.org > wrote: > > From: Martin Jansa <[email protected]> > > > > When multiple packages cannot be installed it shows only first one it > > finds, because of bb.fatal use. It might require many iterations to find > > all packages to avoid. > > > > e.g. with ptest enabled and GPL-3.0-or-later, GPL-3.0-only set as > > incompatible licenses you might get list like this for relatively small > > image: > > > > Some packages cannot be installed into the image because they have > > incompatible licenses: bzip2-ptest (GPL-3.0-or-later), coreutils > > (GPL-3.0-or-later), coreutils-stdbuf (GPL-3.0-or-later), diffutils > > (GPL-3.0-or-later), findutils (GPL-3.0-or-later), gawk (GPL-3.0-or-later), > > gnutls-openssl (GPL-3.0-or-later), gnutls-ptest (GPL-3.0-or-later), grep > > (GPL-3.0-only), make (GPL-3.0-only), mpfr (LGPL-3.0-or-later), > > python3-dbusmock (GPL-3.0-only), readline (GPL-3.0-or-later), sed > > (GPL-3.0-or-later) > > > > Signed-off-by: Martin Jansa <[email protected]> > > --- > > Hi Martin, > > Thanks for your patch. > > I believe this is making some selftests fail: > > 2026-03-05 09:01:35,428 - oe-selftest - INFO - > incompatible_lic.IncompatibleLicensePerImageTests.test_bash_and_license > (subunit.RemotedTestCase) > 2026-03-05 09:01:35,429 - oe-selftest - INFO - ... FAIL > ... > ERROR: core-image-minimal-1.0-r0 do_rootfs: QA Issue: The license listed > SomeLicense was not in the licenses collected for recipe bash > [license-file-missing] > ERROR: core-image-minimal-1.0-r0 do_rootfs: Some packages cannot be installed > into the image because they have incompatible licenses: bash > (GPL-3.0-or-later) > ... > 2026-03-05 09:02:33,821 - oe-selftest - INFO - > incompatible_lic.IncompatibleLicensePerImageTests.test_bash_default > (subunit.RemotedTestCase) > 2026-03-05 09:02:33,821 - oe-selftest - INFO - ... FAIL > > https://autobuilder.yoctoproject.org/valkyrie/#/builders/48/builds/3225 > https://autobuilder.yoctoproject.org/valkyrie/#/builders/35/builds/3336 > > Can you have a look at these?
Sure, will have a look. Needs the update for expected error_msg in meta/lib/oeqa/selftest/cases/incompatible_lic.py. Will send v3 soon (running selftest to confirm it works), please ignore v2 I've sent earlier which just updates the formatting based on Peter's suggestion. Regards,
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#232492): https://lists.openembedded.org/g/openembedded-core/message/232492 Mute This Topic: https://lists.openembedded.org/mt/118124089/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
