Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Baruch Siach <baruch@tkos.co.il>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] fix ldconfig at target-finalize
Date: Mon, 28 Jun 2010 10:22:40 +0300	[thread overview]
Message-ID: <20100628072240.GD2681@jasper.tkos.co.il> (raw)
In-Reply-To: <BLU0-SMTP74DDC98C00DC73900EC521E7CA0@phx.gbl>

Hi Andy,

On Mon, Jun 28, 2010 at 09:16:09AM +0200, Andy Gibbs wrote:
> On Wednesday, June 16, 2010 3:43 PM, Baruch Siach wrote:
> >Host ldconfig fails when the directory of the aux-cache file
> >(/var/cache/ldconfig, by default) does not exist. Make sure this directory
> >exists before calling ldconfig.
> >
> 
> Also would be good to do a "touch $(TARGET_DIR)/etc/ld.so.conf" too,
> along with your mkdir.
> 
> Then you get rid of both errors...
> 
> /sbin/ldconfig: Can't open configuration file
> (...)/target-dir/etc/ld.so.conf: No such file or directory
> /sbin/ldconfig: Can't open cache file /var/cache/ldconfig/aux-cache
> : No such file or directory
> 
> Do you need me to provide a patch file to do this?

This patch fixes both problems for me. Do you still encounter failure after 
applying this patch?

baruch

> >Signed-off-by: Baruch Siach
> ><baruch-NswTu9S1W3P6gbPvEgmw2w@public.gmane.org>
> >---
> >Makefile |    1 +
> >1 files changed, 1 insertions(+), 0 deletions(-)
> >
> >diff --git a/Makefile b/Makefile
> >index 794a298..1415e30 100644
> >--- a/Makefile
> >+++ b/Makefile
> >@@ -402,6 +402,7 @@ ifneq ($(BR2_HAVE_DOCUMENTATION),y)
> > rm -rf $(TARGET_DIR)/usr/share/gtk-doc
> >endif
> > find $(TARGET_DIR) -type f -perm +111 | xargs $(STRIPCMD)
> >2>/dev/null || true
> >+ mkdir -p $(TARGET_DIR)/var/cache/ldconfig
> > $(TARGET_LDCONFIG) -r $(TARGET_DIR) 2>/dev/null
> >
> > mkdir -p $(TARGET_DIR)/etc

-- 
                                                     ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

  reply	other threads:[~2010-06-28  7:22 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-16 13:43 [Buildroot] [PATCH] fix ldconfig at target-finalize Baruch Siach
2010-06-28  7:16 ` Andy Gibbs
2010-06-28  7:22   ` Baruch Siach [this message]
2010-06-28  8:31     ` Andy Gibbs

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=20100628072240.GD2681@jasper.tkos.co.il \
    --to=baruch@tkos.co.il \
    --cc=buildroot@busybox.net \
    /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