diff mbox series

[meta-oe] rtkit: missing files/directories in package

Message ID 20240207075327.3518669-1-jean-marc.bouche@foss.st.com
State Superseded
Headers show
Series [meta-oe] rtkit: missing files/directories in package | expand

Commit Message

Jean-Marc BOUCHE Feb. 7, 2024, 7:53 a.m. UTC
Fix the following error when building the recipe:
  Files/directories were installed but not shipped in any package:
  /lib
  /lib/systemd
  /lib/systemd/system
  /lib/systemd/system/rtkit-daemon.service

Signed-off-by: Jean-Marc BOUCHE <jean-marc.bouche@foss.st.com>
---
 meta-oe/recipes-support/rtkit/rtkit_0.13.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Martin Jansa Feb. 7, 2024, 7:56 a.m. UTC | #1
On Wed, Feb 7, 2024 at 8:53 AM Jean-Marc BOUCHE <
jean-marc.bouche@foss.st.com> wrote:

> Fix the following error when building the recipe:
>   Files/directories were installed but not shipped in any package:
>   /lib
>   /lib/systemd
>   /lib/systemd/system
>   /lib/systemd/system/rtkit-daemon.service
>
> Signed-off-by: Jean-Marc BOUCHE <jean-marc.bouche@foss.st.com>
> ---
>  meta-oe/recipes-support/rtkit/rtkit_0.13.bb | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta-oe/recipes-support/rtkit/rtkit_0.13.bb
> b/meta-oe/recipes-support/rtkit/rtkit_0.13.bb
> index 7ae992503..684f047ed 100644
> --- a/meta-oe/recipes-support/rtkit/rtkit_0.13.bb
> +++ b/meta-oe/recipes-support/rtkit/rtkit_0.13.bb
> @@ -19,5 +19,5 @@ PACKAGECONFIG[systemd] = ",,systemd"
>  USERADD_PACKAGES = "${PN}"
>  USERADD_PARAM:${PN} = "--system --no-create-home --user-group --shell
> /bin/nologin rtkit"
>
> -FILES:${PN} += "${libdir} ${datadir}"
> +FILES:${PN} += "${libdir} ${datadir} ${base_libdir}"
>

Use systemd_system_unitdir and if the rtkit build doesn't respect that,
then fix rtkit instead.

meta/conf/bitbake.conf:export systemd_system_unitdir =
"${nonarch_base_libdir}/systemd/system"

It's not always the same as base_libdir (e.g. for multilib).
diff mbox series

Patch

diff --git a/meta-oe/recipes-support/rtkit/rtkit_0.13.bb b/meta-oe/recipes-support/rtkit/rtkit_0.13.bb
index 7ae992503..684f047ed 100644
--- a/meta-oe/recipes-support/rtkit/rtkit_0.13.bb
+++ b/meta-oe/recipes-support/rtkit/rtkit_0.13.bb
@@ -19,5 +19,5 @@  PACKAGECONFIG[systemd] = ",,systemd"
 USERADD_PACKAGES = "${PN}"
 USERADD_PARAM:${PN} = "--system --no-create-home --user-group --shell /bin/nologin rtkit"
 
-FILES:${PN} += "${libdir} ${datadir}"
+FILES:${PN} += "${libdir} ${datadir} ${base_libdir}"