Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Robert Yang <liezhi.yang@windriver.com>
Cc: openembedded-core@lists.openembedded.org
Subject: Re: [PATCH 1/5] file: 5.22 -> 5.23
Date: Mon, 29 Jun 2015 09:21:09 +0100	[thread overview]
Message-ID: <1435566069.7287.22.camel@linuxfoundation.org> (raw)
In-Reply-To: <bf978a7894f51c909ede7f64c28b6da5495d981a.1435135356.git.liezhi.yang@windriver.com>

On Wed, 2015-06-24 at 01:55 -0700, Robert Yang wrote:
> Updated 0001-Add-P-prompt-into-Usage-info.patch.
> 
> Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
> ---
>  .../file/0001-Add-P-prompt-into-Usage-info.patch   |    6 +++---
>  .../file/{file_5.22.bb => file_5.23.bb}            |    6 +++---
>  2 files changed, 6 insertions(+), 6 deletions(-)
>  rename meta/recipes-devtools/file/{file_5.22.bb => file_5.23.bb} (81%)

I've noticed an additional problem with the file recipe, specifically
that it tries to run the file it just built (in the -native case) and
this links against libmagic.so. When it runs, it can use
the /usr/lib/libmagic instead of the one in WORKDIR. If you have file
2.22 on your system (e.g. Ubuntu 15.04), you can get an error.

The fix I found was to add an LD_LIBRBARY_PATH to the Makefile:

	LD_LIBRARY_PATH=$(top_builddir)/src/.libs $(FILE_COMPILE) -C -m magic

which is ugly but appeared to fix the error I was seeing. There was a
bug a while back I was unable to reproduce and this is likely the cause
of that too, it all depends which version of libmagic you have on your
system.

Cheers,

Richard





  parent reply	other threads:[~2015-06-29  8:21 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-24  8:55 [PATCH 0/5] Packages Upgrade Robert Yang
2015-06-24  8:55 ` [PATCH 1/5] file: 5.22 -> 5.23 Robert Yang
2015-06-24 11:56   ` Burton, Ross
2015-06-25  2:24     ` Robert Yang
2015-06-25  9:06       ` Burton, Ross
2015-06-25  9:32         ` Robert Yang
2015-06-25 15:18           ` Burton, Ross
2015-06-29  8:21   ` Richard Purdie [this message]
2015-06-29  8:31     ` Robert Yang
2015-06-24  8:55 ` [PATCH 2/5] elfutils: 0.161 -> 0.162 Robert Yang
2015-06-24  8:55 ` [PATCH 3/5] git: 2.4.2 -> 2.4.4 Robert Yang
2015-06-24  8:55 ` [PATCH 4/5] hdparm: 9.45 -> 9.48 Robert Yang
2015-06-24  8:55 ` [PATCH 5/5] gnupg: 2.1.4 -> 2.1.5 Robert Yang

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=1435566069.7287.22.camel@linuxfoundation.org \
    --to=richard.purdie@linuxfoundation.org \
    --cc=liezhi.yang@windriver.com \
    --cc=openembedded-core@lists.openembedded.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