* [Buildroot] [PATCH] target-finalize: fix calling ldconfig
@ 2015-04-17 16:10 Yann E. MORIN
2015-04-18 13:57 ` Thomas Petazzoni
0 siblings, 1 reply; 3+ messages in thread
From: Yann E. MORIN @ 2015-04-17 16:10 UTC (permalink / raw)
To: buildroot
On some systems (e.g. Fedora 20), the build breaks when parsing include
directives in our /etc/ld.so.conf, with error messages as thus:
/sbin/ldconfig: need absolute file name for configuration file
when using -r
So, enforce the path to the ld.so.conf file to point to our own, in the
target/ directory.
Reported-by: Al West <al.west@v-nova.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
Makefile | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
index 70d6b4a..2e71c80 100644
--- a/Makefile
+++ b/Makefile
@@ -583,9 +583,11 @@ endif
mkdir -p $(TARGET_DIR)/var/cache/ldconfig
if [ -x "$(TARGET_CROSS)ldconfig" ]; \
then \
- $(TARGET_CROSS)ldconfig -r $(TARGET_DIR); \
+ $(TARGET_CROSS)ldconfig -r $(TARGET_DIR) \
+ -f $(TARGET_DIR)/etc/ld.so.conf; \
else \
- /sbin/ldconfig -r $(TARGET_DIR); \
+ /sbin/ldconfig -r $(TARGET_DIR) \
+ -f $(TARGET_DIR)/etc/ld.so.conf; \
fi
( \
echo "NAME=Buildroot"; \
--
1.9.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH] target-finalize: fix calling ldconfig
2015-04-17 16:10 [Buildroot] [PATCH] target-finalize: fix calling ldconfig Yann E. MORIN
@ 2015-04-18 13:57 ` Thomas Petazzoni
2015-04-18 15:28 ` Yann E. MORIN
0 siblings, 1 reply; 3+ messages in thread
From: Thomas Petazzoni @ 2015-04-18 13:57 UTC (permalink / raw)
To: buildroot
Dear Yann E. MORIN,
On Fri, 17 Apr 2015 18:10:33 +0200, Yann E. MORIN wrote:
> On some systems (e.g. Fedora 20), the build breaks when parsing include
> directives in our /etc/ld.so.conf, with error messages as thus:
>
> /sbin/ldconfig: need absolute file name for configuration file
> when using -r
>
> So, enforce the path to the ld.so.conf file to point to our own, in the
> target/ directory.
>
> Reported-by: Al West <al.west@v-nova.com>
> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
> ---
> Makefile | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
Applied, thanks. But I must admit I would prefer a real overhaul of our
ldconfig handling (that takes into account glibc vs. uclibc vs. musl,
etc.).
Thanks,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH] target-finalize: fix calling ldconfig
2015-04-18 13:57 ` Thomas Petazzoni
@ 2015-04-18 15:28 ` Yann E. MORIN
0 siblings, 0 replies; 3+ messages in thread
From: Yann E. MORIN @ 2015-04-18 15:28 UTC (permalink / raw)
To: buildroot
Thomas, All,
On 2015-04-18 15:57 +0200, Thomas Petazzoni spake thusly:
> On Fri, 17 Apr 2015 18:10:33 +0200, Yann E. MORIN wrote:
> > On some systems (e.g. Fedora 20), the build breaks when parsing include
> > directives in our /etc/ld.so.conf, with error messages as thus:
> >
> > /sbin/ldconfig: need absolute file name for configuration file
> > when using -r
> >
> > So, enforce the path to the ld.so.conf file to point to our own, in the
> > target/ directory.
> >
> > Reported-by: Al West <al.west@v-nova.com>
> > Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
> > ---
> > Makefile | 6 ++++--
> > 1 file changed, 4 insertions(+), 2 deletions(-)
>
> Applied, thanks. But I must admit I would prefer a real overhaul of our
> ldconfig handling (that takes into account glibc vs. uclibc vs. musl,
> etc.).
Yes, I do agree. However, that will take quite longer, and we needed a
quick fix
I'll see if I can have tim eto look into that in the coming days, but to
be honest, I can't promise anything...
Regards,
Yann E. MORIN.
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-04-18 15:28 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-17 16:10 [Buildroot] [PATCH] target-finalize: fix calling ldconfig Yann E. MORIN
2015-04-18 13:57 ` Thomas Petazzoni
2015-04-18 15:28 ` Yann E. MORIN
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox