Changqing Li schrieb am Fr 28. Feb, 10:56 (+0800): > On 2/28/25 06:32, Jörg Sommer wrote: > > ``` > > root@qemux86-64:~# python3 -c 'from ctypes.util import find_library; > > print(find_library("m"))' > > libm.so.6 > > root@qemux86-64:~# python3 -c 'from ctypes.util import find_library; > > print(find_library("gtk-3"))' > > libgtk-3.so.0 > > > > root@qemux86-64:~# ldconfig --version > > ldconfig (GNU libc) 2.41 > > Copyright (C) 2024 Free Software Foundation, Inc. > > This is free software; see the source for copying conditions. There is NO > > warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. > > Written by Andreas Jaeger. > > ``` > > > > Here are my settings from local.conf: > > > > ``` > > EXTRA_IMAGE_FEATURES += "\ > > allow-empty-password allow-root-login empty-root-password \ > > ssh-server-openssh tools-debug \ > > " > > > > INIT_MANAGER = "systemd" > > DISTRO_FEATURES:append = " usrmerge" > > IMAGE_INSTALL:append = " conserver-ptest" > > PACKAGECONFIG:append:pn-systemd = " coredump" > > > > IMAGE_INSTALL:append = " python3-ctypes gtk+3" > > > > MACHINE ??= "qemux86-64" > > DISTRO ??= "poky" > > ``` > > > > I have used poky with 40b5f61a8f and the revert and meta-openembedded with > > 0b83551ff2. > > This works because poky have ldconfig in DISTRO_FEATURES by default, > https://git.yoctoproject.org/poky/tree/meta/conf/bitbake.conf#n933 > > if remove ldconfig from DISTRO_FEATURES in local.conf, it will not work.
But you can't remove ldconfig if you need it. Why do you remove it? If you want the ldconfig feature of python3-ctype, you have to enable ldconfig. Or at least install the package. Or should we downgrade the dependency to a recommendation? > ctypes.util.find_library need ldconfig or ld or gcc to work. No matter what > the DISTRO_FEATURES is, we should make a package at least work once it is > installed. In our image python3-ctype works without ldconfig. > > Quotinghttps://docs.yoctoproject.org/ref-manual/features.html: > > > > | ldconfig: Include support for ldconfig and ld.so.conf on the target. > > > > > > @Mathieu: I think you should revert the commit 0df1318e5c, because it pulls > > in ldconfig even it is unselected in DISTRO_FEATURES. It leaves no way to > > build without ldconfig (what was the intend of my commit). > > when ldconfig is disabled in DISTRO_FEATURES, if we don't want ldconfig be > pulled in, how about just not install the package that depend on ldconfig, > eg: python3-ctypes. In our case python3-ctypes is a dependency of django. > if revert my commit, and ldconfig is disabled in DISTRO_FEATURES, and > python3-ctype is installed, ctypes.util.find_library will not work. But then you need ldconfig. Either install it with IMAGE_INSTALL or include it in DISTRO_FEATURES. I see this the same way like other DISTRO_FEATURES for example pam: if you want to use pam with e.g. systemd you have to include it in DISTRO_FEATURES. Regards, Jörg -- Navimatix GmbH T: 03641 - 327 99 0 Tatzendpromenade 2 F: 03641 - 526 306 07745 Jena www.navimatix.de Geschäftsführer: Steffen Späthe, Jan Rommeley Registergericht: Amtsgericht Jena, HRB 501480
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#212049): https://lists.openembedded.org/g/openembedded-core/message/212049 Mute This Topic: https://lists.openembedded.org/mt/111283758/21656 Group Owner: openembedded-core+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-