From: Trevor Gamblin <trevor.gamblin@windriver.com>
To: <openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH] systemd.bbclass: add RMINITDIR for nativesdk builds
Date: Fri, 27 Sep 2019 11:10:43 -0400 [thread overview]
Message-ID: <fd46fc11-b705-e2e9-46da-62db3da10afa@windriver.com> (raw)
In-Reply-To: <20190927150740.22453-1-Trevor.Gamblin@windriver.com>
On 9/27/19 11:07 AM, Trevor Gamblin wrote:
> From: Trevor Gamblin <trevor.gamblin@windriver.com>
>
> nativesdk builds such as nativesdk-dnf are installing systemd
> service files, leading bitbake to throw installed-vs-shipped
> warnings, but these are not needed in nativesdk:
>
> WARNING: nativesdk-dnf-4.2.2-r0 do_package: QA Issue: nativesdk-dnf: Files/directories were installed but not shipped in any package:
> /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib
> /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib/systemd
> /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib/systemd/system
> /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib/systemd/system/dnf-automatic.timer
> /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib/systemd/system/dnf-makecache.timer
> /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib/systemd/system/dnf-automatic.service
> /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib/systemd/system/dnf-makecache.service
> /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib/systemd/system/dnf-automatic-notifyonly.timer
> /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib/systemd/system/dnf-automatic-download.service
> /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib/systemd/system/dnf-automatic-download.timer
> /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib/systemd/system/dnf-automatic-notifyonly.service
> /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib/systemd/system/dnf-automatic-install.timer
> /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib/systemd/system/dnf-automatic-install.service
> Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install.
> nativesdk-dnf: 13 installed and not shipped files. [installed-vs-shipped]
>
> Rather than have each recipe remove the files, an RMINITDIR case
> for nativesdk builds should be added to systemd.bbclass.
>
> Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
> ---
> meta/classes/systemd.bbclass | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/meta/classes/systemd.bbclass b/meta/classes/systemd.bbclass
> index 747055b8fa..1dca09964b 100644
> --- a/meta/classes/systemd.bbclass
> +++ b/meta/classes/systemd.bbclass
> @@ -231,5 +231,6 @@ python rm_sysvinit_initddir (){
>
> do_install[postfuncs] += "${RMINITDIR} "
> RMINITDIR_class-target = " rm_sysvinit_initddir rm_systemd_unitdir "
> +RMINITDIR_class-nativesdk = " rm_sysvinit_initddir rm_systemd_unitdir "
> RMINITDIR = ""
>
Forgot to put you guys on the original cc list. I tested this out with
systemd and sysvinit in DISTRO_FEATURES with nativesdk-dnf because I was
having issues with nativesdk-clang building. Switching between the two I
did not see a rebuild of anything, so I think we're good to go.
next prev parent reply other threads:[~2019-09-27 15:11 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-27 15:07 [PATCH] systemd.bbclass: add RMINITDIR for nativesdk builds Trevor Gamblin
2019-09-27 15:10 ` Trevor Gamblin [this message]
2019-10-08 14:04 ` Trevor Gamblin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=fd46fc11-b705-e2e9-46da-62db3da10afa@windriver.com \
--to=trevor.gamblin@windriver.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox