From: Khem Raj <raj.khem@gmail.com>
To: yocto@lists.yoctoproject.org, aleksandar.nikolic010@gmail.com,
"Hanke Fabian (DC/PAR)" <fabian.hanke@bosch.com>
Subject: Re: [yocto] GPL License Compliance - Automatically detect linking against GPL libraries
Date: Tue, 22 Apr 2025 14:35:32 -0700 [thread overview]
Message-ID: <e485993c-e38d-4bc7-9fe6-59b7cd95dc76@gmail.com> (raw)
In-Reply-To: <24438.1745296886216583159@lists.yoctoproject.org>
[-- Attachment #1.1.1: Type: text/plain, Size: 3405 bytes --]
On 4/21/25 9:41 PM, Aleksandar Nikolic via lists.yoctoproject.org wrote:
> On Fri, May 31, 2024 at 03:40 PM, Hanke Fabian (DC/PAR) wrote:
>
> Hello,
>
> thank you for all the responses so far. I guess we will have a look
> at fossology and fossas, but we would prefer a solution which does
> not require an additional thirdparty service. We know that there are
> different types of GPL licenses which bring different obligations.
>
> We are searching for an automatic mechanism to detect linking to a
> shared library from a GPL package. We thought there might be a way
> to utilize the build system’s shared library resolver which is used
> for the automatic runtime added runtime dependencies [1].
Having such mechanism would be aiding in licensing policy in some
circumstances. shlibs deals with shared libraries so technically there
can be a hook to do some analysis of this sort, there are perhaps more
licenses that can also be considered for similar policy.
>
> For static libraries we found that they are disabled by default [2].
>
> Could someone explain what it means that static libraries are disabled?
> Does this refer to staticdev-pkgs in IMAGE_FEATURES?
No, this means that we do not generate static libraries when the package
allows building both static and shared versions, see DISABLE_STATIC
variable and how it is used. We build and use shared version. That also
means that we are dependent on how package's build system is designed,
it may not allow one or the other so we have to adjust accordingly.
See meta/conf/distro/include/no-static-libs.inc
for exceptions and you need to map the license to these packages to find
if it is something your licensing policy would not allow. And this file
is only for core layer, if you consume other layers they might or might
not have such global file in that case you have to look through your
dependency chain and analyse the packages
> Cheers,
> Aleksandar
>
>
> [1] https://docs.yoctoproject.org/overview-manual/
> concepts.html#automatically-added-runtime-dependencies <https://
> docs.yoctoproject.org/overview-manual/concepts.html#automatically-
> added-runtime-dependencies>
> [2] https://docs.yoctoproject.org/dev/dev-manual/
> licenses.html#compliance-limitations-with-executables-built-from-
> static-libraries <https://docs.yoctoproject.org/dev/dev-manual/
> licenses.html#compliance-limitations-with-executables-built-from-
> static-libraries>
> --------------------------------
>
> Bosch Rexroth AG
>
> Registered Office: Stuttgart, Registration Court: Amtsgericht
> Stuttgart HRB 23192 Executive Board: Dr. Steffen Haack (President),
> Roland Bittenauer, Thomas Fechner, Holger von Hebel, Reinhard
> Schäfer Chairman of the Supervisory Board: Dr. Markus Forschner
>
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> You automatically follow any topics you start or reply to.
> View/Reply Online (#65217): https://lists.yoctoproject.org/g/yocto/message/65217
> Mute This Topic: https://lists.yoctoproject.org/mt/106365537/1997914
> Group Owner: yocto+owner@lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [raj.khem@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 2613 bytes --]
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 203 bytes --]
prev parent reply other threads:[~2025-04-22 21:35 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-29 9:06 GPL License Compliance - Automatically detect linking against GPL libraries Hanke Fabian (DC/PAR)
2024-05-29 9:27 ` [yocto] " Etienne Cordonnier
2024-05-29 11:15 ` Stephen John Smoogen
2024-05-29 11:34 ` Alexander Kanavin
2024-05-29 11:58 ` Stephen John Smoogen
2024-05-30 10:19 ` Stefano Babic
2024-05-31 13:40 ` Hanke Fabian (DC/PAR)
2024-05-31 13:54 ` Richard Purdie
2025-04-17 11:14 ` Hanke Fabian (DC/PAN-St)
2025-04-22 10:48 ` Alexander Kanavin
2025-04-22 4:41 ` Aleksandar Nikolic
2025-04-22 21:35 ` Khem Raj [this message]
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=e485993c-e38d-4bc7-9fe6-59b7cd95dc76@gmail.com \
--to=raj.khem@gmail.com \
--cc=aleksandar.nikolic010@gmail.com \
--cc=fabian.hanke@bosch.com \
--cc=yocto@lists.yoctoproject.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.