All of lore.kernel.org
 help / color / mirror / Atom feed
From: Khem Raj <raj.khem@gmail.com>
To: "Böszörményi Zoltán" <zboszor@pr.hu>
Cc: Patches and discussions about the oe-core layer
	<openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH 2/5] libva-initial: New recipe to carry only pkgconfig files and headers
Date: Wed, 26 Feb 2020 11:44:48 -0800	[thread overview]
Message-ID: <cf075d34-c566-8284-8e16-3eb3b030e12c@gmail.com> (raw)
In-Reply-To: <dca27a23-5bb1-bfae-8736-d29a0faded96@pr.hu>



On 2/26/20 9:14 AM, Böszörményi Zoltán wrote:
> 2020. 02. 26. 18:08 keltezéssel, Böszörményi Zoltán írta:
>> 2020. 02. 26. 17:51 keltezéssel, Khem Raj írta:
>>>
>>>
>>> On 2/26/20 7:58 AM, Böszörményi Zoltán wrote:
>>>> 2020. 02. 26. 16:30 keltezéssel, Khem Raj írta:
>>>>> On Wed, Feb 26, 2020 at 7:20 AM Böszörményi Zoltán <zboszor@pr.hu> 
>>>>> wrote:
>>>>>>
>>>>>> 2020. 02. 26. 16:13 keltezéssel, Khem Raj írta:
>>>>>>> On Wed, Feb 26, 2020 at 7:12 AM Böszörményi Zoltán <zboszor@pr.hu>
>>>>>>> wrote:
>>>>>>>>
>>>>>>>> 2020. 02. 26. 15:58 keltezéssel, Khem Raj írta:
>>>>>>>>> On Wed, Feb 26, 2020 at 6:05 AM Böszörményi Zoltán via
>>>>>>>>> Openembedded-core <openembedded-core@lists.openembedded.org> 
>>>>>>>>> wrote:
>>>>>>>>>>
>>>>>>>>>> The package name exploits sstate.bbclass so it's not added as
>>>>>>>>>> implicit dependency to packages.
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>> what is the use of this recipe and why should it be added to 
>>>>>>>>> core ?
>>>>>>>>
>>>>>>>> I should have added a cover letter, shouldn't I?
>>>>>>>> See patch 3/5 in the series for enabling gallium-va in Mesa.
>>>>>>>>
>>>>>>>
>>>>>>> recipe seems to build full libva, so why not just use that instead.
>>>>>>
>>>>>> You don't seem to be reading mails from openembedded-devel that
>>>>>> you were cc-ed on.
>>>>>
>>>>> don't assume things
>>>>
>>>> Understood.
>>>>
>>>>>> http://lists.openembedded.org/pipermail/openembedded-devel/2020-February/205142.html 
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>> I am trying to make us thing if -dev package can be used somehow to
>>>>> avoid this
>>>>> or have we exhausted all possibilities.
>>>>
>>>> Why is it a problem to exploit sstate.bbclass internals implicitly
>>>> by using a *-initial package name for an arbitrary package?
>>>
>>> it is not a problem, however, it is a work to keep such setup going and
>>> also it has to be considered always in dependencies etc.
>>>
>>>> Surely it's not reserved for libgcc-initial and friends.
>>>>
>>>
>>> they are different usecases, libgcc-initial is a veneer/trampoline used
>>> to bootstrap toolchain, and that too we want to remove at every
>>> opportunity we get, we use to have lot of initial recipes and they are
>>> very few left, so we have to be mindful of adding another one.
>>>
>>>> It solves two problems nicely in one go:
>>>> 1. by using a different package than libva, the libva-vs-mesa
>>>>     circular dependency is avoided. mesa needs a crippled libva
>>>> (pkgconfig + headers)
>>>>     to build its VAAPI state tracker and the VAAPI drivers
>>>
>>> I see archlinux using full libva for this. how are other distros doing
>>> it? is this problem unique to OE
>>
>> Fedora also uses the full libva.
>>
>> However, the chicken-and-egg circular dependency is broken by history
>> for these distros.
>>
>> Koji and Mock build one package at a time with all their dependencies
>> already available from the staging package repository and the results
>> will be eventually uploaded to the same repository.
>>
>> Bitbake doesn't have have this loophole to download pre-built 
>> dependencies.
> 
> Also, somewhere on 01.org or in the libva sources the same solution
> I presented in this patchset is suggested:
> 
> 1. build libva with --disable-glx (it is needed when Mesa SDK is present)
>     but it's not needed by not depending on mesa in libva-initial
> 2. build mesa with libva build in (1) as it only needs the pkgconfig files
>     and the headers
> 3. build libva with --enable-glx. It's autodetected, set to on with
>     depending on mesa in the full libva recipe.

looking at the nature of the problem, it might be the way to unbreak the 
catch-22, does anything else needs this bootstrap header package ?
do we need to ensure that content of libva-dev and the bootstrap 
packages do not overlap.

> 
> Obviusly the same libva recipe can't be used to build mesa that depends 
> on mesa.
> 




  reply	other threads:[~2020-02-26 19:44 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-26 13:57 [PATCH 1/5] libva: Split out the base parts into an include file Böszörményi Zoltán
2020-02-26 13:57 ` [PATCH 2/5] libva-initial: New recipe to carry only pkgconfig files and headers Böszörményi Zoltán
2020-02-26 14:13   ` Paul Barker
2020-02-26 14:22     ` Böszörményi Zoltán
2020-02-26 14:58   ` Khem Raj
2020-02-26 15:12     ` Böszörményi Zoltán
2020-02-26 15:13       ` Khem Raj
2020-02-26 15:20         ` Böszörményi Zoltán
2020-02-26 15:26           ` Böszörményi Zoltán
2020-02-26 15:30           ` Khem Raj
2020-02-26 15:58             ` Böszörményi Zoltán
2020-02-26 16:51               ` Khem Raj
2020-02-26 17:08                 ` Böszörményi Zoltán
2020-02-26 17:14                   ` Böszörményi Zoltán
2020-02-26 19:44                     ` Khem Raj [this message]
2020-02-26 20:21                       ` Böszörményi Zoltán
2020-02-26 20:31                         ` Khem Raj
2020-02-27  4:05                           ` Böszörményi Zoltán
2020-02-26 16:12   ` Alexander Kanavin
2020-02-26 16:35     ` Böszörményi Zoltán
2020-02-26 16:37       ` Böszörményi Zoltán
2020-02-26 17:16         ` Alexander Kanavin
2020-02-26 17:38           ` Böszörményi Zoltán
2020-02-26 13:57 ` [PATCH 3/5] mesa: Add PACKAGECONFIG knob to enable VAAPI state tracker and drivers Böszörményi Zoltán
2020-02-26 13:57 ` [PATCH 4/5] mesa: Add PACKAGECONFIG knob to enable VDPAU " Böszörményi Zoltán
2020-02-26 13:57 ` [RFC PATCH 5/5] mesa: Enforce TOOLCHAIN="gcc" Böszörményi Zoltán
2020-02-26 15:00   ` Khem Raj
2020-02-26 15:14     ` Böszörményi Zoltán
2020-02-26 15:15       ` Khem Raj
2020-02-26 16:02         ` Böszörményi Zoltán
2020-02-26 16:08 ` [PATCH 1/5] libva: Split out the base parts into an include file Alexander Kanavin

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=cf075d34-c566-8284-8e16-3eb3b030e12c@gmail.com \
    --to=raj.khem@gmail.com \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=zboszor@pr.hu \
    /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.