* [PATCH] nativesdk-dnf: ensure installed systemd files are shipped
@ 2019-09-24 14:01 Trevor Gamblin
2019-09-24 16:15 ` Ross Burton
0 siblings, 1 reply; 4+ messages in thread
From: Trevor Gamblin @ 2019-09-24 14:01 UTC (permalink / raw)
To: openembedded-core
From: Trevor Gamblin <trevor.gamblin@windriver.com>
"bitbake nativesdk-dnf" throws a QA warning if the contents of
${base_libdir}/systemd/system/ are not shipped, so add them.
Warning log:
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]
Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
---
meta/recipes-devtools/dnf/dnf_4.2.2.bb | 3 +++
1 file changed, 3 insertions(+)
diff --git a/meta/recipes-devtools/dnf/dnf_4.2.2.bb b/meta/recipes-devtools/dnf/dnf_4.2.2.bb
index c77773332c..7ea454a8f6 100644
--- a/meta/recipes-devtools/dnf/dnf_4.2.2.bb
+++ b/meta/recipes-devtools/dnf/dnf_4.2.2.bb
@@ -74,6 +74,9 @@ do_install_append_class-nativesdk() {
RPM_NO_CHROOT_FOR_SCRIPTS=1
}
+# Ensure installed systemd files are shipped when building nativesdk-dnf
+FILES_${PN} += "${base_libdir}/systemd/system/*"
+
SYSTEMD_SERVICE_${PN} = "dnf-makecache.service dnf-makecache.timer \
dnf-automatic.service dnf-automatic.timer \
dnf-automatic-download.service dnf-automatic-download.timer \
--
2.21.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] nativesdk-dnf: ensure installed systemd files are shipped
2019-09-24 14:01 [PATCH] nativesdk-dnf: ensure installed systemd files are shipped Trevor Gamblin
@ 2019-09-24 16:15 ` Ross Burton
2019-09-25 19:17 ` Trevor Gamblin
0 siblings, 1 reply; 4+ messages in thread
From: Ross Burton @ 2019-09-24 16:15 UTC (permalink / raw)
To: openembedded-core
On 24/09/2019 15:01, Trevor Gamblin wrote:
> From: Trevor Gamblin <trevor.gamblin@windriver.com>
>
> "bitbake nativesdk-dnf" throws a QA warning if the contents of
> ${base_libdir}/systemd/system/ are not shipped, so add them.
Looks like a bug in systemd.bbclass, not this recipe. For example if I
enable nativesdk for acpid:
ERROR: nativesdk-acpid-2.0.32-r0 do_package: QA Issue: nativesdk-acpid:
Files/directories were installed but not shipped in any package:
/opt/poky/2.7+snapshot/sysroots/x86_64-pokysdk-linux/lib
/opt/poky/2.7+snapshot/sysroots/x86_64-pokysdk-linux/lib/systemd
/opt/poky/2.7+snapshot/sysroots/x86_64-pokysdk-linux/lib/systemd/system
/opt/poky/2.7+snapshot/sysroots/x86_64-pokysdk-linux/lib/systemd/system/acpid.service
Ross
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] nativesdk-dnf: ensure installed systemd files are shipped
2019-09-24 16:15 ` Ross Burton
@ 2019-09-25 19:17 ` Trevor Gamblin
2019-09-25 19:53 ` Ross Burton
0 siblings, 1 reply; 4+ messages in thread
From: Trevor Gamblin @ 2019-09-25 19:17 UTC (permalink / raw)
To: Ross Burton, openembedded-core
On 9/24/19 12:15 PM, Ross Burton wrote:
> On 24/09/2019 15:01, Trevor Gamblin wrote:
>> From: Trevor Gamblin <trevor.gamblin@windriver.com>
>>
>> "bitbake nativesdk-dnf" throws a QA warning if the contents of
>> ${base_libdir}/systemd/system/ are not shipped, so add them.
>
> Looks like a bug in systemd.bbclass, not this recipe. For example if
> I enable nativesdk for acpid:
Can you clarify what you meant? Did you mean that the class should be
doing the cleanup of the systemd service files?
>
> ERROR: nativesdk-acpid-2.0.32-r0 do_package: QA Issue:
> nativesdk-acpid: Files/directories were installed but not shipped in
> any package:
> /opt/poky/2.7+snapshot/sysroots/x86_64-pokysdk-linux/lib
> /opt/poky/2.7+snapshot/sysroots/x86_64-pokysdk-linux/lib/systemd
> /opt/poky/2.7+snapshot/sysroots/x86_64-pokysdk-linux/lib/systemd/system
>
> /opt/poky/2.7+snapshot/sysroots/x86_64-pokysdk-linux/lib/systemd/system/acpid.service
>
>
> Ross
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] nativesdk-dnf: ensure installed systemd files are shipped
2019-09-25 19:17 ` Trevor Gamblin
@ 2019-09-25 19:53 ` Ross Burton
0 siblings, 0 replies; 4+ messages in thread
From: Ross Burton @ 2019-09-25 19:53 UTC (permalink / raw)
To: Trevor Gamblin, openembedded-core
On 25/09/2019 20:17, Trevor Gamblin wrote:
> On 9/24/19 12:15 PM, Ross Burton wrote:
>
>> On 24/09/2019 15:01, Trevor Gamblin wrote:
>>> From: Trevor Gamblin <trevor.gamblin@windriver.com>
>>>
>>> "bitbake nativesdk-dnf" throws a QA warning if the contents of
>>> ${base_libdir}/systemd/system/ are not shipped, so add them.
>>
>> Looks like a bug in systemd.bbclass, not this recipe. For example if
>> I enable nativesdk for acpid:
>
> Can you clarify what you meant? Did you mean that the class should be
> doing the cleanup of the systemd service files?
If the intention is that unit files don't get installed/managed/etc in
nativesdk, then yes the class should be removing them.
Ross
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2019-09-25 19:53 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-24 14:01 [PATCH] nativesdk-dnf: ensure installed systemd files are shipped Trevor Gamblin
2019-09-24 16:15 ` Ross Burton
2019-09-25 19:17 ` Trevor Gamblin
2019-09-25 19:53 ` Ross Burton
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.