All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] eglibc: Make ld.so.conf more flexible
@ 2014-07-23 22:41 Ben Shelton
  2014-07-23 23:50 ` Peter Seebach
  0 siblings, 1 reply; 5+ messages in thread
From: Ben Shelton @ 2014-07-23 22:41 UTC (permalink / raw)
  To: openembedded-core; +Cc: Brad Mouring

From: Brad Mouring <brad.mouring@ni.com>

Most modern distros will include conf files in /etc/ld.so.conf.d/
when generating the ld.so cache. This change will bring that flexibility.

Signed-off-by: Brad Mouring <brad.mouring@ni.com>
Signed-off-by: Ben Shelton <ben.shelton@ni.com>
Acked-by: Ken Sharp <ken.sharp@ni.com>
Acked-by: Rich Tollerton <rich.tollerton@ni.com>
---
 meta/recipes-core/eglibc/eglibc-2.19/etc/ld.so.conf | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-core/eglibc/eglibc-2.19/etc/ld.so.conf b/meta/recipes-core/eglibc/eglibc-2.19/etc/ld.so.conf
index e69de29..83327c0 100644
--- a/meta/recipes-core/eglibc/eglibc-2.19/etc/ld.so.conf
+++ b/meta/recipes-core/eglibc/eglibc-2.19/etc/ld.so.conf
@@ -0,0 +1 @@
+include /etc/ld.so.conf.d/*.conf
-- 
2.0.2



^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] eglibc: Make ld.so.conf more flexible
  2014-07-23 22:41 [PATCH] eglibc: Make ld.so.conf more flexible Ben Shelton
@ 2014-07-23 23:50 ` Peter Seebach
  2014-07-24  1:48   ` Khem Raj
  0 siblings, 1 reply; 5+ messages in thread
From: Peter Seebach @ 2014-07-23 23:50 UTC (permalink / raw)
  To: openembedded-core

On Wed, 23 Jul 2014 17:41:30 -0500
Ben Shelton <ben.shelton@ni.com> wrote:

> Most modern distros will include conf files in /etc/ld.so.conf.d/
> when generating the ld.so cache. This change will bring that flexibility.

I was just looking at a patch to do roughly this. Mine added a
USE_LDCONFIG_CONF_D flag, and then had eglibc's install create the directory
and append that line to ld.so.conf if the flag was set. I'm not sure whether
the extra functionality justifies the effort. I would suggest that, if
this is going to be unconditionally present, the directory should be too.

-s
-- 
Listen, get this.  Nobody with a good compiler needs to be justified.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] eglibc: Make ld.so.conf more flexible
  2014-07-23 23:50 ` Peter Seebach
@ 2014-07-24  1:48   ` Khem Raj
  2014-07-24  1:59     ` Mark Hatle
  0 siblings, 1 reply; 5+ messages in thread
From: Khem Raj @ 2014-07-24  1:48 UTC (permalink / raw)
  To: Peter Seebach; +Cc: Patches and discussions about the oe-core layer

On Wed, Jul 23, 2014 at 4:50 PM, Peter Seebach
<peter.seebach@windriver.com> wrote:
> On Wed, 23 Jul 2014 17:41:30 -0500
> Ben Shelton <ben.shelton@ni.com> wrote:
>
>> Most modern distros will include conf files in /etc/ld.so.conf.d/
>> when generating the ld.so cache. This change will bring that flexibility.
>
> I was just looking at a patch to do roughly this. Mine added a
> USE_LDCONFIG_CONF_D flag, and then had eglibc's install create the directory
> and append that line to ld.so.conf if the flag was set. I'm not sure whether
> the extra functionality justifies the effort. I would suggest that, if
> this is going to be unconditionally present, the directory should be too.

Many embedded systems dont use ldconfig and we have USE_LDCONFIG knob
to control it.
This should fall under that knob as well.

>
> -s
> --
> Listen, get this.  Nobody with a good compiler needs to be justified.
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] eglibc: Make ld.so.conf more flexible
  2014-07-24  1:48   ` Khem Raj
@ 2014-07-24  1:59     ` Mark Hatle
  2014-07-24 21:30       ` Peter Seebach
  0 siblings, 1 reply; 5+ messages in thread
From: Mark Hatle @ 2014-07-24  1:59 UTC (permalink / raw)
  To: openembedded-core

On 7/23/14, 8:48 PM, Khem Raj wrote:
> On Wed, Jul 23, 2014 at 4:50 PM, Peter Seebach
> <peter.seebach@windriver.com> wrote:
>> On Wed, 23 Jul 2014 17:41:30 -0500
>> Ben Shelton <ben.shelton@ni.com> wrote:
>>
>>> Most modern distros will include conf files in /etc/ld.so.conf.d/
>>> when generating the ld.so cache. This change will bring that flexibility.
>>
>> I was just looking at a patch to do roughly this. Mine added a
>> USE_LDCONFIG_CONF_D flag, and then had eglibc's install create the directory
>> and append that line to ld.so.conf if the flag was set. I'm not sure whether
>> the extra functionality justifies the effort. I would suggest that, if
>> this is going to be unconditionally present, the directory should be too.
>
> Many embedded systems dont use ldconfig and we have USE_LDCONFIG knob
> to control it.
> This should fall under that knob as well.

Original idea was two knobs.. one for USE_LDCONFIG, and one for using the 
ld.so.conf.d directory and setup.

The later has been requested of me many times, but we've not implemented it 
generically.  I think it's time to do so -- but it should be tied to 
USE_LDCONFIG at a minimum, I just don't know if it should always be enabled or 
just sometimes.  (Always means the ld.so.conf file gets the include line, so 
it's NOT a lot of bytes.)

--Mark

>>
>> -s
>> --
>> Listen, get this.  Nobody with a good compiler needs to be justified.
>> --
>> _______________________________________________
>> Openembedded-core mailing list
>> Openembedded-core@lists.openembedded.org
>> http://lists.openembedded.org/mailman/listinfo/openembedded-core



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] eglibc: Make ld.so.conf more flexible
  2014-07-24  1:59     ` Mark Hatle
@ 2014-07-24 21:30       ` Peter Seebach
  0 siblings, 0 replies; 5+ messages in thread
From: Peter Seebach @ 2014-07-24 21:30 UTC (permalink / raw)
  To: Mark Hatle; +Cc: openembedded-core

On Wed, 23 Jul 2014 20:59:27 -0500
Mark Hatle <mark.hatle@windriver.com> wrote:

> The later has been requested of me many times, but we've not implemented it 
> generically.  I think it's time to do so -- but it should be tied to 
> USE_LDCONFIG at a minimum, I just don't know if it should always be enabled or 
> just sometimes.  (Always means the ld.so.conf file gets the include line, so 
> it's NOT a lot of bytes.)

It's not a lot of bytes, but it's a non-zero increase in effort for ldconfig
compared to an empty file. Although I assume ldconfig checks /usr/lib*
automatically, so this would be <1% anyway.

-s
-- 
Listen, get this.  Nobody with a good compiler needs to be justified.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-07-24 21:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-23 22:41 [PATCH] eglibc: Make ld.so.conf more flexible Ben Shelton
2014-07-23 23:50 ` Peter Seebach
2014-07-24  1:48   ` Khem Raj
2014-07-24  1:59     ` Mark Hatle
2014-07-24 21:30       ` Peter Seebach

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.