lvgl: lv-drivers: Allow empty package
PATCH 1/2 lvgl: lv-drivers: Allow empty package
The lv-drivers main package is empty, since all the headers end up in the -dev variant and static library archive ends up in -staticdev variant. Mark the main package as ALLOW_EMPTY.
---
Cc: Fabio Estevam <[email protected]>
Cc: Khem Raj <[email protected]>
Cc: Martin Jansa <[email protected]>
Cc: Michael Opdenacker <[email protected]>
--- meta-oe/recipes-graphics/lvgl/lv-drivers.inc | 2 ++ 1 file changed, 2 insertions(+)
meta-oe/recipes-graphics/lvgl/lv-drivers.inc +2 -0
@@ -17,6 +17,8 @@ LVGL_CONFIG_USE_WAYLAND = "${@bb.utils.contains('PACKAGECONFIG', 'wayland', '1', LVGL_CONFIG_WAYLAND_HOR_RES ?= "480" LVGL_CONFIG_WAYLAND_VER_RES ?= "320" +ALLOW_EMPTY:${PN} = "1" + EXTRA_OECMAKE += "-Dinstall:BOOL=ON -DLIB_INSTALL_DIR=${baselib}" do_configure:append() {
Signature · 1 line
2.42.0
PATCH 2/2 lvgl: Allow empty package
The lvgl main package is empty, since all the headers end up in the -dev variant and static library archive ends up in -staticdev variant. Mark the main package as ALLOW_EMPTY.
---
Cc: Fabio Estevam <[email protected]>
Cc: Khem Raj <[email protected]>
Cc: Martin Jansa <[email protected]>
Cc: Michael Opdenacker <[email protected]>
--- meta-oe/recipes-graphics/lvgl/lvgl_8.3.9.bb | 2 ++ 1 file changed, 2 insertions(+)
meta-oe/recipes-graphics/lvgl/lvgl_8.3.9.bb +2 -0
@@ -16,6 +16,8 @@ inherit cmake EXTRA_OECMAKE = "-DLIB_INSTALL_DIR=${baselib}" S = "${WORKDIR}/git" +ALLOW_EMPTY:${PN} = "1" + LVGL_CONFIG_LV_MEM_CUSTOM ?= "0" LVGL_CONFIG_LV_COLOR_DEPTH ?= "32"
Signature · 1 line
2.42.0
What issue does this actually fix?
Is it related to
https://lists.openembedded.org/g/openembedded-core/message/188383 ?
I'm not fan of empty useless packages created just to make package manager happy when something else has unfortunate dependency on them.
Quoted 33 lines · Marek Vasut
The lv-drivers main package is empty, since all the headers end up in the -dev variant and static library archive ends up in -staticdev variant. Mark the main package as
ALLOW_EMPTY.Signed-off-by Marek Vasut <[email protected]>---
Cc: Fabio Estevam <[email protected]>
Cc: Khem Raj <[email protected]>
Cc: Martin Jansa <[email protected]>
Cc: Michael Opdenacker <[email protected]>--- meta-oe/recipes-graphics/lvgl/lv-drivers.inc | 2 ++ 1 file changed, 2 insertions(+)meta-oe/recipes-graphics/lvgl/lv-drivers.inc +2
-0@@ -17,6 +17,8 @@ LVGL_CONFIG_USE_WAYLAND = "${@bb.utils.contains('PACKAGECONFIG', 'wayland', '1', LVGL_CONFIG_WAYLAND_HOR_RES ?= "480" LVGL_CONFIG_WAYLAND_VER_RES ?= "320" +ALLOW_EMPTY:${PN} = "1" + EXTRA_OECMAKE += "-Dinstall:BOOL=ON -DLIB_INSTALL_DIR=${baselib}"do_configure:append() {
--
2.42.0
Quoted 4 lines · Martin Jansa
What issue does this actually fix?
Is it related to
https://lists.openembedded.org/g/openembedded-core/message/188383 ?
Nope
Quoted 2 lines
I'm not fan of empty useless packages created just to make package manager happy when something else has unfortunate dependency on them.
I have a downstream repo where a tool DEPENDS on lvgl and it builds an SDK too, that's where it blows up on the empty package.
Quoted 17 lines
-----Original Message-----
From: [email protected] <openembedded- [email protected]> On Behalf Of Marek Vasut
Sent: den 18 oktober 2023 21:35
To: Martin Jansa <[email protected]>
Cc: [email protected]; Fabio Estevam <[email protected]>; Khem Raj <[email protected]>; Michael Opdenacker <[email protected]>
Subject: Re: [oe] [meta-oe][PATCH 1/2] lvgl: lv-drivers: Allow empty packageQuoted 4 lines · Martin Jansa
What issue does this actually fix?
Is it related to
https://lists.openembedded.org/g/openembedded-core/message/188383 ?
Quoted 7 lines
Nope
Quoted 2 lines
I'm not fan of empty useless packages created just to make package manager happy when something else has unfortunate dependency on them.
I have a downstream repo where a tool DEPENDS on lvgl and it builds an SDK too, that's where it blows up on the empty package.
The reason I know of where this is needed is due to license aggregation. In our case we use the image manifest to determine the packages that went into the rootfs, and then gather the license information for those packages. If there is no package, e.g., for static libraries or header only libraries, then we miss the license information for those packages, unless we allow the empty packages to be created and add explicit runtime dependencies on them. :( I wish there was a better way to handle this, but so far using empty packages is the only solution I have.
//Peter