Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Changqing Li <changqing.li@windriver.com>
To: "Richard Purdie" <richard.purdie@linuxfoundation.org>,
	"Jörg Sommer" <joerg.sommer@navimatix.de>
Cc: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>,
	openembedded-core@lists.openembedded.org
Subject: Re: [OE-core] [PATCH] Revert "python3-ctypes: depend on ldconfig only if distro-feature set"
Date: Mon, 3 Mar 2025 11:30:05 +0800	[thread overview]
Message-ID: <f0a8eefe-cd8f-4585-b032-395f3cfe63b3@windriver.com> (raw)
In-Reply-To: <6f23591757291b5bdeea36d6bf630c121e188db3.camel@linuxfoundation.org>

[-- Attachment #1: Type: text/plain, Size: 2744 bytes --]


On 2/28/25 18:50, Richard Purdie wrote:
> CAUTION: This email comes from a non Wind River email account!
> Do not click links or open attachments unless you recognize the sender and know the content is safe.
>
> On Fri, 2025-02-28 at 11:35 +0100, Jörg Sommer wrote:
>> Richard Purdie schrieb am Fr 28. Feb, 10:20 (+0000):
>>> DISTRO_FEATURES are high level policy controls, not "this should be
>>> included or excluded" controls. For example "pam" controls whether the
>>> access control modules are configured/used, not whether libpam is or is
>>> not included.
>> But it controls if other packages (e.g. systemd) enable pam support or not.
>> The same goes with ldconfig: Should ldconfig support in the packages be
>> enabled (which would pull-in ldconfig as dependency).
>>
>>> For ldconfig, as I remember, the distro config was about whether to
>>> include "ldconfig" calls after installing libraries and whether to use the
>>> ld cache.
>> If the feature is only about enabling code in the postinst script, than we
>> should find a better description of the feature
> I think the description needs improving and I think we'd take patches
> to do that.
>
>>> ldconfig: Include support for ldconfig and ld.so.conf on the target.
>> https://docs.yoctoproject.org/ref-manual/features.html
>>
>>> Packages being installed or not is an image level decision, not distro
>>> level.
>> Yes, that's also my understanding. But enabling some features (e.g. x11
>> support) leads to recipes set DEPENDS on libs and this leads to the
>> installation of some packages. So DISTRO_FEATURES influence indirectly what
>> gets into the image.
> The key word is indirectly. Where things have a hard dependency on
> something, they do include that dependency and it isn't conditional on
> a distro feature.
>
> In this case, the usage is tangential to what the DISTRO_FEATURE was
> designed for (ld cache). I do agree ldconfig is optional so RRECOMMENDS
> seems better than a hard RDEPENDS though.

I will send a patch to update RDEPENDS -> RRECOMMENDS

Thanks

Changqing

>
>>> In this case, perhaps we should drop the RDEPENDS to a RRECOMMENDS?
>> This would be helpful to remove ldconfig, if django is installed.
>>
>> But the main question is still open: Why should I want ldconfig and remove
>> it from DISTRO_FEATURES? What is this use case?
> It is being used to control whether the ld cache is being used or not.
> That has to be done at a distro wide policy level. Whether ldconfig
> makes it into the image or not is an indirect effect.
>
> We can control the inclusion of ldconfig for ctypes at a package/image
> level, it isn't a distro config level issue.
>
> Cheers,
>
> Richard
>
>

[-- Attachment #2: Type: text/html, Size: 4712 bytes --]

      reply	other threads:[~2025-03-03  3:30 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-20  3:57 [PATCH] Revert "python3-ctypes: depend on ldconfig only if distro-feature set" changqing.li
2025-02-21 14:34 ` [OE-core] " Mathieu Dubois-Briand
2025-02-24  0:27   ` Changqing Li
     [not found]   ` <1826FD59DBA1FC0B.20721@lists.openembedded.org>
2025-02-24  8:20     ` Changqing Li
2025-02-24 11:02       ` Mathieu Dubois-Briand
     [not found]       ` <18271FF8E1B74516.20721@lists.openembedded.org>
2025-02-25  9:12         ` Mathieu Dubois-Briand
2025-02-24 23:36 ` Jörg Sommer
2025-02-25  2:02   ` Changqing Li
2025-02-25  5:33     ` Jörg Sommer
2025-02-27 22:32     ` Jörg Sommer
2025-02-28  2:56       ` Changqing Li
2025-02-28  5:42         ` Jörg Sommer
2025-02-28 10:20           ` Richard Purdie
2025-02-28 10:35             ` Jörg Sommer
2025-02-28 10:50               ` Richard Purdie
2025-03-03  3:30                 ` Changqing Li [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f0a8eefe-cd8f-4585-b032-395f3cfe63b3@windriver.com \
    --to=changqing.li@windriver.com \
    --cc=joerg.sommer@navimatix.de \
    --cc=mathieu.dubois-briand@bootlin.com \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=richard.purdie@linuxfoundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox