<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>15779</bug_id>
          
          <creation_ts>2025-03-04 17:16:45 +0000</creation_ts>
          <short_desc>dbus: systemd unit files are included even if systemd is disabled</short_desc>
          <delta_ts>2026-04-09 15:23:33 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>core</component>
          <version>5.0.7</version>
          <rep_platform>All</rep_platform>
          <op_sys>arm</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>NEWCOMER</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>5.0.15</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Zixun Li">zli</reporter>
          <assigned_to name="Unassigned">unassigned</assigned_to>
          <cc>daisuke.yamane</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>ross.burton</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>101277</commentid>
    <comment_count>0</comment_count>
    <who name="Zixun Li">zli</who>
    <bug_when>2025-03-04 17:16:45 +0000</bug_when>
    <thetext>Hi,

In yocto-5.0.7-57-g2afaed1013, systemd unit files of dbus are included in packages even if systemd is disabled in distro features:

oe-pkgdata-util list-pkg-files dbus
dbus:
        /etc/default/volatiles/99_dbus
        /etc/init.d/dbus-1
        /usr/bin/dbus-cleanup-sockets
        /usr/bin/dbus-daemon
        /usr/bin/dbus-launch
        /usr/bin/dbus-run-session
        /usr/lib/systemd/user/dbus.service
        /usr/libexec/dbus-daemon-launch-helper

oe-pkgdata-util list-pkg-files dbus-common
dbus-common:
        /etc/dbus-1/session.conf
        /etc/dbus-1/system.conf
        /usr/lib/systemd/user/dbus.socket
        /usr/lib/systemd/user/sockets.target.wants/dbus.socket
        /usr/share/dbus-1/session.conf
        /usr/share/dbus-1/system.conf</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>101301</commentid>
    <comment_count>1</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2025-03-06 15:39:29 +0000</bug_when>
    <thetext>Either delete the files or find a better fix.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>101304</commentid>
    <comment_count>2</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2025-03-06 15:45:09 +0000</bug_when>
    <thetext>The ideal solution would be to inhert the systemd class, but I fear that there might be circular dependencies if this happens.

So I&apos;d suggest trying to inherit the systemd class, and if that fails then manually do the cleanup in do_install().</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102272</commentid>
    <comment_count>3</comment_count>
    <who name="">daisuke.yamane</who>
    <bug_when>2025-06-17 04:03:12 +0000</bug_when>
    <thetext>When I tried to build dbus with yocto-5.2, I found that the service and socket files were not contained in the package.

$ oe-pkgdata-util list-pkg-files dbus dbus-common
dbus:
	/etc/default/volatiles/99_dbus
	/etc/init.d/dbus-1
	/usr/bin/dbus-cleanup-sockets
	/usr/bin/dbus-daemon
	/usr/bin/dbus-launch
	/usr/bin/dbus-run-session
	/usr/libexec/dbus-daemon-launch-helper
dbus-common:
	/etc/dbus-1/session.conf
	/etc/dbus-1/system.conf
	/usr/share/dbus-1/session.conf
	/usr/share/dbus-1/system.conf

It is possible that the issue has been fixed with an update to dbus.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102274</commentid>
    <comment_count>4</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2025-06-17 09:36:45 +0000</bug_when>
    <thetext>Moving target, as this is fixed in recent releases.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105029</commentid>
    <comment_count>5</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2026-04-09 15:23:33 +0000</bug_when>
    <thetext>Works on master. 
If you want to send patches to fix this on older releases, please do so.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>