From: Mark Hatle <mark.hatle@windriver.com>
To: <openembedded-core@lists.openembedded.org>
Subject: Re: [poky] -dev RPM packages Require:ing all of their bitbake build dependences
Date: Wed, 4 Jan 2012 10:40:26 -0600 [thread overview]
Message-ID: <4F0480FA.2020809@windriver.com> (raw)
In-Reply-To: <CABcZANkD1Dik9YDK82UJ72wMV4jLnczCKtDrPYH9gJchqjH=sQ@mail.gmail.com>
On 1/4/12 10:34 AM, Chris Larson wrote:
> On Wed, Jan 4, 2012 at 9:23 AM, Richard Purdie
> <richard.purdie@linuxfoundation.org> wrote:
>>> Another approach would be to stop injecting -dev Requires by default. I
>>> imagine this was done to handle the case of library A whose headers
>>> require library B. However, a saner way to handle this I think is
>>> simply to push people to use pkg-config; IIRC a script exists to extract
>>> pkg-config dependencies from the .pc files and use that for the RPM
>>> auto-dependency phase. That would ensure that e.g. gtk+-dev Requires:
>>> glib-dev. This doesn't help non-pkg-config libraries, but those people
>>> should be shamed anyways =)
>>
>> I think these dependencies are wrong and need revisiting. Currently,
>> -dev and -dbg packages share the same code and its tilted more in favour
>> of -dbg than it is for -dev.
>>
>> I think the -dev packages make sense if you want to build X but not
>> build something that just depends on X. We should therefore move the
>> dependencies to a new package (need a good name) and rethink the -dev
>> package dependencies.
>
>
> I'm inclined to say let the user install the deps needed to build X
> themselves, or build it with bitbake, and let -dev work the way it
> does in other distros, the bits needed to build against X.
Ya, that seems to be the best solution for a more modern system.
This will require a combination of additional automatic dependency detection and
also manual intervention when that detection isn't complete.
The complications with the automatic detection are around the header files...
we'll need to detect when one header includes another, and then translate that
to an associated -dev file. But I know there are intentionally broken includes
(wrapped in #if's etc..)
--Mark
prev parent reply other threads:[~2012-01-04 16:47 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1325642890.24646.8.camel@lenny>
2012-01-04 16:23 ` [poky] -dev RPM packages Require:ing all of their bitbake build dependences Richard Purdie
2012-01-04 16:34 ` Chris Larson
2012-01-04 16:40 ` Mark Hatle [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=4F0480FA.2020809@windriver.com \
--to=mark.hatle@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