On Wed, Apr 13, 2022 at 1:35 PM Peter Kjellerstedt < peter.kjellerst...@axis.com> wrote:
> > > + ${@"dbench" if not any_incompatible(d, "dbench", > "GPL-3.0-only") else ""} \ > > This usage seems error prone at best. What if the license for dbench > is changed? > > Also, the way I would prefer to do something like the above (assuming you > meant to include it as a dependency in RDEPENDS:${PN} rather than > PACKAGES) > would be to instead unconditionally add it to RRECOMMENDS:${PN}. Then > the normal licensing support should skip the package if you have the > incompatible license globally configured, but since it is only a > recommendation, that should not be a problem. The issue is, a missing RRECOMMENDS will currently abort the build. Bitbake doesn't treat RRECOMMENDS as optional to build, only optional to install, so this approach is not viable. I'm still submitting v3 of this to get the job done for now. Thanks for your thoughts, though, I actually agree that your idea is a better method, it just doesn't work with bitbake as it stands today! -- Christopher Larson chris_lar...@mentor.com, chris.lar...@siemens.com, kerg...@gmail.com Principal Software Engineer, Embedded Linux Solutions, Siemens Digital Industries Software
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#164797): https://lists.openembedded.org/g/openembedded-core/message/164797 Mute This Topic: https://lists.openembedded.org/mt/90443891/21656 Group Owner: openembedded-core+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-