Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] No ldconfig on target when using glibc
@ 2014-07-22 12:27 Eric Le Bihan
  2014-07-23 19:52 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Eric Le Bihan @ 2014-07-22 12:27 UTC (permalink / raw)
  To: buildroot

Hi!

Since version 215, systemd installs a unit file to run /sbin/ldconfig when
starting the target. Building a target image with systemd implies using a
glibc-based toolchain. But when doing so, ldconfig is not installed on the
target, which causes the unit to fail (the system is usable, though).

On the other hand, when building a target image with uClibc, ldconfig is
installed.

Is it a bug or a feature? Am I missing something?

Best regards,
ELB

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

* [Buildroot] No ldconfig on target when using glibc
  2014-07-22 12:27 [Buildroot] No ldconfig on target when using glibc Eric Le Bihan
@ 2014-07-23 19:52 ` Thomas Petazzoni
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2014-07-23 19:52 UTC (permalink / raw)
  To: buildroot

Dear Eric Le Bihan,

On Tue, 22 Jul 2014 14:27:01 +0200, Eric Le Bihan wrote:

> Since version 215, systemd installs a unit file to run /sbin/ldconfig when
> starting the target. Building a target image with systemd implies using a
> glibc-based toolchain. But when doing so, ldconfig is not installed on the
> target, which causes the unit to fail (the system is usable, though).
> 
> On the other hand, when building a target image with uClibc, ldconfig is
> installed.
> 
> Is it a bug or a feature? Am I missing something?

The ldconfig handling needs love. We even try to run ldconfig on the
build machine at the end of the build, and we have a very old patch
sitting about this: http://patchwork.ozlabs.org/patch/255486/.

Someone needs to look which C library needs ldconfig, and which
doesn't, and take actions to clean this up.

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

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

end of thread, other threads:[~2014-07-23 19:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-22 12:27 [Buildroot] No ldconfig on target when using glibc Eric Le Bihan
2014-07-23 19:52 ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox