On Tue, Mar 30, 2021 at 10:46:19PM +0200, Martin Jansa wrote: > On Tue, Jan 28, 2020 at 12:52 PM <g...@git.openembedded.org> wrote: > > > This is an automated email from the git hooks/post-receive script. > > > > rpurdie pushed a commit to branch zeus > > in repository openembedded-core. > > > > commit 5ed714139f91eb03871e01b68a4370784071234d > > Author: Peter Kjellerstedt <peter.kjellerst...@axis.com> > > AuthorDate: Wed Dec 11 17:48:13 2019 +0100 > > > > license.bbclass: Introduce AVAILABLE_LICENSES that lists all licenses > > > > Previously, there was SRC_DISTRIBUTE_LICENSES, an undocumented > > variable that contained a static list of licenses. It was used by > > expand_wildcard_licenses() to expand any wildcards used in, e.g., > > INCOMPATIBLE_LICENSE. However, since this static list of licenses has > > not been kept up-to-date, many licenses were missing, with the result > > that if one tried to use any of those licenses with a wildcard, no > > licenses would be found, effectively ignoring that they should be > > marked as incompatible. > > > > This introduces a new (documented) variable, AVAILABLE_LICENSES, that > > is automatically updated to contain all licenses found in any > > directories specified by ${COMMON_LICENSE_DIR} and ${LICENSE_PATH}, > > and uses it instead of SRC_DISTRIBUTE_LICENSES when expanding > > wildcards. > > > > Signed-off-by: Peter Kjellerstedt <peter.kjellerst...@axis.com> > > Signed-off-by: Richard Purdie <richard.pur...@linuxfoundation.org> > > (cherry picked from commit 8c9ef587fe499c612a878a1ab42092eb79b334ef) > > Signed-off-by: Anuj Mittal <anuj.mit...@intel.com> > > --- > > meta/classes/license.bbclass | 27 > > ++++++++++++++++++++---- > > meta/conf/documentation.conf | 1 + > > meta/lib/oeqa/selftest/cases/incompatible_lic.py | 6 +++--- > > 3 files changed, 27 insertions(+), 7 deletions(-) > > > ... > > > +def available_licenses(d): > > + """ > > + Return the available licenses by searching the directories specified > > by > > + COMMON_LICENSE_DIR and LICENSE_PATH. > > + """ > > + lic_dirs = ((d.getVar('COMMON_LICENSE_DIR') or '') + ' ' + > > + (d.getVar('LICENSE_PATH') or '')).split() > > + > > + licenses = [] > > + for lic_dir in lic_dirs: > > + licenses += os.listdir(lic_dir) > > + > > + licenses = sorted(licenses) > > + return licenses > > + > > +# Only determine the list of all available licenses once. This assumes > > that any > > +# additions to LICENSE_PATH have been done before this file is parsed. > > +AVAILABLE_LICENSES := "${@' '.join(available_licenses(d))}" > > + > > > > FWIW this part no longer seems to work correctly, now running: > yocto-check-layer --dependency /OE/meta-openembedded/meta-oe/
Was it ever fixed? https://lists.openembedded.org/g/openembedded-core/topic/72389694#141680 -- Regards, Denys Dmytriyenko <de...@denix.org> PGP: 0x420902729A92C964 - https://denix.org/0x420902729A92C964 Fingerprint: 25FC E4A5 8A72 2F69 1186 6D76 4209 0272 9A92 C964
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#150090): https://lists.openembedded.org/g/openembedded-core/message/150090 Mute This Topic: https://lists.openembedded.org/mt/81735155/21656 Group Owner: openembedded-core+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-