Skip to contentSkip to conversation

systemd.bbclass: Clarify error message

PATCH New Khem Raj 1 participant 1 message May 23, 2024

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH v2 1/1 systemd.bbclass: Clarify error message

When this error is triggered, its a bit vague in specifying where the issue is e.g.

ERROR: nbd-3.26.1-r0 do_package: nbd does not appear in package list, please add it

Some packages may intentionally remove PN from packages and find it confusing as to why the system is still asking this to be in PACKAGES

---
v2: Improve a bit more

 meta/classes-recipe/systemd.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes-recipe/systemd.bbclass +1 -1
index 48b364c1d4d..0f7e3b5a081 100644
@@ -85,7 +85,7 @@ python systemd_populate_packages() {
     def systemd_check_package(pkg_systemd):
         packages = d.getVar('PACKAGES')
         if not pkg_systemd in packages.split():
-            bb.error('%s does not appear in package list, please add it' % pkg_systemd)
+            bb.error('%s is marked for packaging systemd scripts, but it does not appear in package list, please add it to PACKAGES or adjust SYSTEMD_PACKAGES accordingly' % pkg_systemd)
 
 
     def systemd_generate_package_scripts(pkg):
Signature · 1 line
2.45.1