[OE-core] Bug report: util-linux: circular dependencies occurs when enable systemd in PACKAGECONFIG

Hongzhi, Song hongzhi.song at windriver.com
Fri Aug 16 07:08:12 UTC 2019


Hi,


Some DISTRO_FEATURES related to systemd have been enabled in local.conf

     DISTRO_FEATURES_append = " systemd"
     DISTRO_FEATURES_BACKFILL_CONSIDERED += "sysvinit"
     VIRTUAL-RUNTIME_init_manager = "systemd"
     VIRTUAL-RUNTIME_initscripts = "systemd-compat-units"
     KERNEL_FEATURES_append = " cfg/systemd.scc"


1.

meta/recipes-core/util-linux/util-linux.inc has below codes:

(

PACKAGECONFIG[systemd] = "--with-systemd 
--with-systemdsystemunitdir=${systemd_system_unitdir}, --without-systemd 
--without-systemdsystemunitdir,systemd"

BBCLASSEXTEND = "native nativesdk"

)


2.

Now I want to enable systemd feature, then I add below code to 
util-linux.inc:

(

PACKAGECONFIG_class-target += " systemd"

)


3.

Then bitbake util-linux

You will below errors:(I just cut out a bit)

These are usually caused by circular dependencies and any circular 
dependency chains found will be printed below. Increase the debug level 
to see a list of unbuildable tasks.

Identifying dependency loops (this may take a short while)...

ERROR:
Dependency loop #1 found:
   Task 
/buildarea/raid0/hsong/proj/lykerneldevsrc/layers/oe-core/meta/recipes-core/systemd/systemd_242.bb:do_package 
(dependent Tasks ['base-files_3.0.14.bb:do_packagedata', 
'kmod_git.bb:do_packagedata', 'glibc_2.30.bb:do_packagedata', 
'util-linux_2.34.bb:do_packagedata', 'libcap_2.27.bb:do_packagedata', 
'opkg-utils_0.4.1.bb:do_packagedata', 'libpam_1.3.1.bb:do_packagedata', 
'base-passwd_3.5.29.bb:do_packagedata', 
'pseudo_git.bb:do_populate_sysroot', 'systemd_242.bb:do_install', 
'rpm_4.14.2.1.bb:do_populate_sysroot', 
'dwarfsrcfiles.bb:do_populate_sysroot', 'shadow_4.6.bb:do_packagedata', 
'bash-completion_2.9.bb:do_packagedata', 
'shadow-sysroot_4.6.bb:do_packagedata', 'xz_5.2.4.bb:do_p


4. I tried some other code:

PACKAGECONFIG[systemd] = "--with-systemd 
--with-systemdsystemunitdir=${systemd_system_unitdir}, --without-systemd 
--without-systemdsystemunitdir,systemd"

 >> PACKAGECONFIG[systemd] = "--with-systemd 
--with-systemdsystemunitdir=${systemd_system_unitdir}, --without-systemd 
--without-systemdsystemunitdir"


or PACKAGECONFIG_append += " systemd"


There are still other errors.


Best Regard,

--Hongzhi



More information about the Openembedded-core mailing list