Yocto Project Discussions
 help / color / mirror / Atom feed
* License reporting for golang (and rust)
@ 2020-06-22  8:53 Irving ST
  2020-06-24 20:46 ` [yocto] " Randy MacLeod
  2020-06-29 21:32 ` Robert Berger
  0 siblings, 2 replies; 5+ messages in thread
From: Irving ST @ 2020-06-22  8:53 UTC (permalink / raw)
  To: Yocto discussion list

Hello,

I am building a device that uses some Go (and Rust) dependencies. This
is on Yocto 2.7 / Warrior.

I noticed that after building an image, the generated license.manifest
and package.manifest (in tmp/deploy/licenses/) does not contain any
mention of go packages or rust crates. The go packages seem to
generate directories in tmp/deploy/licenses/ but they do not seem to
be reported in the final image.

For example, an image that contains docker (from meta-virtualization
layer) has build dependencies on, say, go-cli (also from
meta-virtualization layer). This is specified in the docker recipe
having DEPENDS on go-cli recipe. I saw tmp/deploy/licenses/go-cli
directory exists with licensing information, but
tmp/deploy/licenses//license.manifest does not contain any reference
to go-cli.

My best *guess* at the moment is because go packages are build
dependencies (DEPENDS instead of RDEPENDS), they are not considered
shipped packages by bitbake (because they are not shipped, the final
docker package is) and are not listed in the manifest files. This
makes licensing compliance more difficult since I still need to show
the copyright notices even for permissive licenses like MIT - but I
can't show it if I don't know that it has been shipped with the image
(since it's not in the manifest).

Is there a way to get a manifest of go packages shipped into the image?
This issue seems to happen with rust crates as well, so a solution /
explanation for rust would be greatly appreciated too.

Sorry if this has been resolved somewhere, I'm not exactly super
familiar with the golang build system or its integration with Yocto.

Best regards,
Irving Tjiptowarsono

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-07-01  8:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-22  8:53 License reporting for golang (and rust) Irving ST
2020-06-24 20:46 ` [yocto] " Randy MacLeod
2020-06-29 21:32 ` Robert Berger
2020-06-30 11:37   ` Irving ST
2020-07-01  8:01     ` Robert Berger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox