Bug 15394

Summary: empty dirs in generated tmp/deploy/licenses/
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Robert Berger <pokylinux>
Component: deploymentAssignee: Unassigned <unassigned>
Status: RESOLVED FIXED QA Contact:
Severity: critical    
Priority: Medium+ CC: egyszeregy, randy.macleod, richard.purdie, ross.burton, yoann.congal
Version: 5.0   
Target Milestone: 5.2 M3   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)
Attachments:
Description Flags
tmp/deploy/licenses directory structure
none
manifest
none
license.manifest none

Description Robert Berger 2024-02-09 11:14:33 UTC
Created attachment 5011 [details]
tmp/deploy/licenses directory structure

I do not quite understand why there are empty dirs in tmp/deploy/licenses.

That's built with:

commit 0f61386628df828c5b1a440a414759e3e60f86a2 (origin/master, origin/HEAD)
Author: Khem Raj <raj.khem@gmail.com>
Date:   Wed Jan 24 16:32:50 2024 -0800

    qemu: Replace the basename patch with backport
    
    Backport the patch that got applied to fix this issue upstream
    
    (From OE-Core rev: 952c94988cf1cf093668e9ac7020485c51cf3a58)
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
    Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>

---

the license manifest indicates, that zlib is used:

PACKAGE NAME: zlib
PACKAGE VERSION: 1.3
RECIPE NAME: zlib
LICENSE: Zlib

but in tmp/deploy/licenses/ the zlib dir is empty

---
Comment 1 Robert Berger 2024-02-09 11:15:59 UTC
Created attachment 5012 [details]
manifest
Comment 2 Robert Berger 2024-02-09 11:16:48 UTC
Created attachment 5013 [details]
license.manifest
Comment 3 Randy MacLeod 2024-04-25 01:32:38 UTC
Most likely, William will not be able to work on on this issue.
Move to unassigned, 5.99
Comment 4 Robert Berger 2024-05-03 08:34:50 UTC
please note, that those dirs are not empty:

$ tree tmp/deploy/licenses/x86_64/zlib-native
tmp/deploy/licenses/x86_64/zlib-native
├── generic_Zlib
├── recipeinfo
└── zlib.h

0 directories, 3 files
$ tree tmp/deploy/licenses/armv7at2hf-neon/zlib/
tmp/deploy/licenses/armv7at2hf-neon/zlib/
├── generic_Zlib
├── recipeinfo
└── zlib.h
Comment 5 Livius 2024-07-28 16:43:36 UTC
I got the same problem: https://lists.openembedded.org/g/openembedded-core/topic/107405668#msg202406

There are no any license files for arm or arm64 targets in tmp/deploy/licenses folder.

Probably it is became buggy since the following patch:
https://github.com/openembedded/openembedded-core/commit/1a4ab9fc26659507e678e87312b514e8ea515673

When it will be fixed? At the moment Scarthgap LTS is not able to use for any "production" because it has this bug and we can not generate the full manifest and licenses in our SD/eMMC card image build process of end-user products FOSS docs in our company.
Comment 6 Robert Berger 2024-07-29 06:01:42 UTC
One problem might be, that the licenses just moved into different directories like

tmp/deploy/licenses/x86_64/zlib-native/

tmp/deploy/licenses/armv7at2hf-neon/zlib/

and that they did not disappear altogether.

Another problem might be the one you mention adding license info to the image.

Maybe RP can tell us more about it?
Comment 8 Livius 2024-09-24 21:14:42 UTC
Will it be merged/backported to Scarthgap LTS?
Comment 9 Randy MacLeod 2025-01-30 16:06:38 UTC
Bulk move to 5.2-M3.
Comment 10 Randy MacLeod 2025-01-30 16:17:05 UTC
Bulk move to 5.2-M3 and this time I'll actually specify M3!
Comment 11 Randy MacLeod 2025-03-18 17:36:23 UTC
Livius,

I has been back-ported to scarthgap:


❯ gl | rg "license: Fix directory layout issues"
a31b46627a   2024-10-10   license: Fix directory layout issues

oe-core.git on scarthgap
❯ git branch -a --contains a31b46627a
* scarthgap
  remotes/origin/scarthgap