diff mbox series

[meta-oe,1/2] cpputest: allow empty main package

Message ID 20221028081134.15749-1-peter.marko@siemens.com
State New
Headers show
Series [meta-oe,1/2] cpputest: allow empty main package | expand

Commit Message

Marko, Peter Oct. 28, 2022, 8:11 a.m. UTC
iThe main package is empty so it was not possible to install
  dev package to sdk as it depends on main package.

Signed-off-by: Peter Marko <peter.marko@siemens.com>
---
 meta-oe/recipes-test/cpputest/cpputest_4.0.bb | 2 ++
 1 file changed, 2 insertions(+)

Comments

Ross Burton Oct. 28, 2022, 10:46 a.m. UTC | #1
On 28 Oct 2022, at 09:11, Peter Marko via lists.openembedded.org <peter.marko=siemens.com@lists.openembedded.org> wrote:
> 
> iThe main package is empty so it was not possible to install
>  dev package to sdk as it depends on main package.
> 
> Signed-off-by: Peter Marko <peter.marko@siemens.com>
> ---
> meta-oe/recipes-test/cpputest/cpputest_4.0.bb | 2 ++
> 1 file changed, 2 insertions(+)
> 
> diff --git a/meta-oe/recipes-test/cpputest/cpputest_4.0.bb b/meta-oe/recipes-test/cpputest/cpputest_4.0.bb
> index 921143a74..52c01f44e 100644
> --- a/meta-oe/recipes-test/cpputest/cpputest_4.0.bb
> +++ b/meta-oe/recipes-test/cpputest/cpputest_4.0.bb
> @@ -18,4 +18,6 @@ EXTRA_OECMAKE = "-DLONGLONG=ON \
>                  -DEXTENSIONS=OFF \
>                  "
> 
> +ALLOW_EMPTY:${PN} = "1"
> +

Better to stop the -dev package depending on the main package.

You can set DEV_PKG_DEPENDENCY=“” to make that disappear.

Ross
diff mbox series

Patch

diff --git a/meta-oe/recipes-test/cpputest/cpputest_4.0.bb b/meta-oe/recipes-test/cpputest/cpputest_4.0.bb
index 921143a74..52c01f44e 100644
--- a/meta-oe/recipes-test/cpputest/cpputest_4.0.bb
+++ b/meta-oe/recipes-test/cpputest/cpputest_4.0.bb
@@ -18,4 +18,6 @@  EXTRA_OECMAKE = "-DLONGLONG=ON \
                  -DEXTENSIONS=OFF \
                  "
 
+ALLOW_EMPTY:${PN} = "1"
+
 FILES:${PN}-dev += "${libdir}/CppUTest/cmake/*"