From: Paul Eggleton <paul.eggleton@linux.intel.com>
To: openembedded-devel@lists.openembedded.org
Subject: Re: exclude (r)depends
Date: Thu, 4 Aug 2011 11:07:57 +0100 [thread overview]
Message-ID: <201108041107.57156.paul.eggleton@linux.intel.com> (raw)
In-Reply-To: <4E3A6A8D.3010301@nedap.com>
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.
Cheers,
Paul
--
Paul Eggleton
Intel Open Source Technology Centre
next prev parent reply other threads:[~2011-08-04 10:12 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 [this message]
2011-08-04 10:34 ` Jaap de Jong
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=201108041107.57156.paul.eggleton@linux.intel.com \
--to=paul.eggleton@linux.intel.com \
--cc=openembedded-devel@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.