Openembedded Devel Discussions
 help / color / mirror / Atom feed
From: Jaap de Jong <jaap.dejong@nedap.com>
To: Paul Eggleton <paul.eggleton@linux.intel.com>
Cc: "openembedded-devel@lists.openembedded.org"
	<openembedded-devel@lists.openembedded.org>
Subject: Re: exclude (r)depends
Date: Thu, 04 Aug 2011 12:34:54 +0200	[thread overview]
Message-ID: <4E3A75CE.4040408@nedap.com> (raw)
In-Reply-To: <201108041107.57156.paul.eggleton@linux.intel.com>

On 08/04/2011 12:07 PM, Paul Eggleton wrote:
> On Thursday 04 August 2011 10:46:53 Jaap de Jong wrote:
>> I've build a simple recipe.
>> Bitbake figures it depends on libsqlite0 and libsqlite3-0; which is
>> correct by the way...
>> For some reason I don't want the dependencies in the ipk file.
>> Is there some flag for this?
> There's no "flag" for this because just taking away the shlibdeps-generated
> RDEPEND will almost certainly break the application/library at runtime. There
> are a few correct ways to solve it:
>
> 1) If the part of the binary output that needs sqlite is a plugin or otherwise
> optional module, just put it into a separate package (e.g. using
> PACKAGES_prepend = "${PN}-sqlitemodule" then FILES_${PN}-sqlitemodule =
> "${libdir}/libsomethingsqlite.so.*". Then your main package (${PN}) should not
> depend on sqlite anymore, as long as it doesn't have a hard dependency on the
> sqlite-using module.
> 2) Disable the sqlite dependency during configure, or if that can't be done,
> patch the source to acheive the same effect.
>
> 3) Depending on how complex the program is, with extra effort you could patch
> the source to turn it into an optional runtime dependency by using dlopen(3)
> instead of linking to sqlite during the build.
>
Probably the easiest way for me is to remove the specific *.so files 
after building.
Thanks for your support!

Jaap




      reply	other threads:[~2011-08-04 10:39 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-04  9:46 exclude (r)depends Jaap de Jong
2011-08-04 10:07 ` Paul Eggleton
2011-08-04 10:34   ` Jaap de Jong [this message]

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=4E3A75CE.4040408@nedap.com \
    --to=jaap.dejong@nedap.com \
    --cc=openembedded-devel@lists.openembedded.org \
    --cc=paul.eggleton@linux.intel.com \
    /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