Re: [ptxdist] How to override files from another package

2019-11-28 Thread Robert Schwebel
On Thu, Nov 28, 2019 at 10:09:51AM +0100, Guillermo Rodriguez Garcia wrote:
> > On Wed, Nov 27, 2019 at 10:22:04AM +0100, Guillermo Rodriguez Garcia wrote:
> > > > It's not possible. What exactly are you trying to achieve? Which files 
> > > > do
> > > > you want to overwrite?
> > >
> > > As in the post from the ML above -- I am trying to overwrite the
> > > generic GL libraries provided by Mesa and replace them with
> > > vendor-provided binaries.
> >
> > You don't want to do that. Etnaviv supports your GPU just fine :-)
> 
> I don't know. I started a discussion about this with someone some time
> ago; we were talking about this and other topics (upstream vs vendor
> kernel, u-boot vs barebox, vendor GPU drivers vs etnaviv, NAND vs
> eMMC...) but then I suddenly stopped getting answers :-)

That was probably that ... "Robert". He is known for having a pretty
well filled mailbox. I'll poke him to take care of you! :^)

rsc
-- 
Pengutronix e.K.   | Dipl.-Ing. Robert Schwebel  |
Steuerwalder Str. 21   | https://www.pengutronix.de/ |
31137 Hildesheim, Germany  | Phone: +49-5121-206917-0|
Amtsgericht Hildesheim, HRA 2686   | Fax:   +49-5121-206917- |

___
ptxdist mailing list
ptxdist@pengutronix.de


Re: [ptxdist] How to override files from another package

2019-11-28 Thread Guillermo Rodriguez Garcia
Hi Robert,

El jue., 28 nov. 2019 a las 7:39, Robert Schwebel
() escribió:
>
> On Wed, Nov 27, 2019 at 10:22:04AM +0100, Guillermo Rodriguez Garcia wrote:
> > > It's not possible. What exactly are you trying to achieve? Which files do
> > > you want to overwrite?
> >
> > As in the post from the ML above -- I am trying to overwrite the
> > generic GL libraries provided by Mesa and replace them with
> > vendor-provided binaries.
>
> You don't want to do that. Etnaviv supports your GPU just fine :-)

I don't know. I started a discussion about this with someone some time
ago; we were talking about this and other topics (upstream vs vendor
kernel, u-boot vs barebox, vendor GPU drivers vs etnaviv, NAND vs
eMMC...) but then I suddenly stopped getting answers :-)

BR,

Guillermo Rodriguez Garcia
guille.rodrig...@gmail.com

___
ptxdist mailing list
ptxdist@pengutronix.de


Re: [ptxdist] How to override files from another package

2019-11-28 Thread Michael Olbrich
On Wed, Nov 27, 2019 at 01:23:23PM +0100, Guillermo Rodriguez Garcia wrote:
> El mié., 27 nov. 2019 a las 10:38, Michael Olbrich
> () escribió:
> >
> > On Wed, Nov 27, 2019 at 10:22:04AM +0100, Guillermo Rodriguez Garcia wrote:
> > > El mié., 27 nov. 2019 a las 10:06, Michael Olbrich
> > > () escribió:
> > > > On Tue, Nov 26, 2019 at 07:21:32PM +0100, Guillermo Rodriguez Garcia 
> > > > wrote:
> > > > > Is there a way for a ptxdist package to override files from another 
> > > > > package?
> > > > > For example something similar to this:
> > > > >
> > > > > https://lists.linaro.org/pipermail/openembedded/2016-June/31.html
> > > > >
> > > > > I tried to create a package which depends on MESALIB (so that
> > > > > mesalib's targetinstall rule runs first), and then simply overwrite
> > > > > the files, but this fails when the package is generated, because there
> > > > > are multiple packages trying to provide the same files.
> > > >
> > > > It's not possible. What exactly are you trying to achieve? Which files 
> > > > do
> > > > you want to overwrite?
> > >
> > > As in the post from the ML above -- I am trying to overwrite the
> > > generic GL libraries provided by Mesa and replace them with
> > > vendor-provided binaries.
> >
> > Then you should not install mesa at all.
> 
> Not all libraries are replaced.
> 
> Also mesa is selected by other packages (such as weston), so if I
> wanted to skip mesa I would need to patch those as well..

Which libraries do you want replace? I assume libgbm from Mesa remains but
libGL* are replaced? And weston still works that way?

Michael


-- 
Pengutronix e.K.   | |
Steuerwalder Str. 21   | http://www.pengutronix.de/  |
31137 Hildesheim, Germany  | Phone: +49-5121-206917-0|
Amtsgericht Hildesheim, HRA 2686   | Fax:   +49-5121-206917- |

___
ptxdist mailing list
ptxdist@pengutronix.de


Re: [ptxdist] How to override files from another package

2019-11-27 Thread Robert Schwebel
On Wed, Nov 27, 2019 at 10:22:04AM +0100, Guillermo Rodriguez Garcia wrote:
> > It's not possible. What exactly are you trying to achieve? Which files do
> > you want to overwrite?
> 
> As in the post from the ML above -- I am trying to overwrite the
> generic GL libraries provided by Mesa and replace them with
> vendor-provided binaries.

You don't want to do that. Etnaviv supports your GPU just fine :-)

rsc
-- 
Pengutronix e.K.   | Dipl.-Ing. Robert Schwebel  |
Steuerwalder Str. 21   | https://www.pengutronix.de/ |
31137 Hildesheim, Germany  | Phone: +49-5121-206917-0|
Amtsgericht Hildesheim, HRA 2686   | Fax:   +49-5121-206917- |

___
ptxdist mailing list
ptxdist@pengutronix.de


Re: [ptxdist] How to override files from another package

2019-11-27 Thread Guillermo Rodriguez Garcia
El mié., 27 nov. 2019 a las 10:38, Michael Olbrich
() escribió:
>
> On Wed, Nov 27, 2019 at 10:22:04AM +0100, Guillermo Rodriguez Garcia wrote:
> > El mié., 27 nov. 2019 a las 10:06, Michael Olbrich
> > () escribió:
> > > On Tue, Nov 26, 2019 at 07:21:32PM +0100, Guillermo Rodriguez Garcia 
> > > wrote:
> > > > Is there a way for a ptxdist package to override files from another 
> > > > package?
> > > > For example something similar to this:
> > > >
> > > > https://lists.linaro.org/pipermail/openembedded/2016-June/31.html
> > > >
> > > > I tried to create a package which depends on MESALIB (so that
> > > > mesalib's targetinstall rule runs first), and then simply overwrite
> > > > the files, but this fails when the package is generated, because there
> > > > are multiple packages trying to provide the same files.
> > >
> > > It's not possible. What exactly are you trying to achieve? Which files do
> > > you want to overwrite?
> >
> > As in the post from the ML above -- I am trying to overwrite the
> > generic GL libraries provided by Mesa and replace them with
> > vendor-provided binaries.
>
> Then you should not install mesa at all.

Not all libraries are replaced.

Also mesa is selected by other packages (such as weston), so if I
wanted to skip mesa I would need to patch those as well..

BR;

Guillermo Rodriguez Garcia
guille.rodrig...@gmail.com

___
ptxdist mailing list
ptxdist@pengutronix.de


Re: [ptxdist] How to override files from another package

2019-11-27 Thread Guillermo Rodriguez Garcia
Hi,

El mié., 27 nov. 2019 a las 10:38, Ladislav Michl
() escribió:
>
> On Wed, Nov 27, 2019 at 10:22:04AM +0100, Guillermo Rodriguez Garcia wrote:
> > Hi,
> >
> > El mié., 27 nov. 2019 a las 10:06, Michael Olbrich
> > () escribió:
> > >
> > > Hi,
> > >
> > > On Tue, Nov 26, 2019 at 07:21:32PM +0100, Guillermo Rodriguez Garcia 
> > > wrote:
> > > > Is there a way for a ptxdist package to override files from another 
> > > > package?
> > > > For example something similar to this:
> > > >
> > > > https://lists.linaro.org/pipermail/openembedded/2016-June/31.html
> > > >
> > > > I tried to create a package which depends on MESALIB (so that
> > > > mesalib's targetinstall rule runs first), and then simply overwrite
> > > > the files, but this fails when the package is generated, because there
> > > > are multiple packages trying to provide the same files.
> > >
> > > It's not possible. What exactly are you trying to achieve? Which files do
> > > you want to overwrite?
> >
> > As in the post from the ML above -- I am trying to overwrite the
> > generic GL libraries provided by Mesa and replace them with
> > vendor-provided binaries.
>
> A quick way is to copy mesa rules into your BSP and modify them not to copy
> libraries you are not interested in to the target.

Yes, that's what I am doing now. I was just wondering if there is a cleaner way.

Thanks!

Guillermo Rodriguez Garcia
guille.rodrig...@gmail.com

___
ptxdist mailing list
ptxdist@pengutronix.de


Re: [ptxdist] How to override files from another package

2019-11-27 Thread Ladislav Michl
On Wed, Nov 27, 2019 at 10:22:04AM +0100, Guillermo Rodriguez Garcia wrote:
> Hi,
> 
> El mié., 27 nov. 2019 a las 10:06, Michael Olbrich
> () escribió:
> >
> > Hi,
> >
> > On Tue, Nov 26, 2019 at 07:21:32PM +0100, Guillermo Rodriguez Garcia wrote:
> > > Is there a way for a ptxdist package to override files from another 
> > > package?
> > > For example something similar to this:
> > >
> > > https://lists.linaro.org/pipermail/openembedded/2016-June/31.html
> > >
> > > I tried to create a package which depends on MESALIB (so that
> > > mesalib's targetinstall rule runs first), and then simply overwrite
> > > the files, but this fails when the package is generated, because there
> > > are multiple packages trying to provide the same files.
> >
> > It's not possible. What exactly are you trying to achieve? Which files do
> > you want to overwrite?
> 
> As in the post from the ML above -- I am trying to overwrite the
> generic GL libraries provided by Mesa and replace them with
> vendor-provided binaries.

A quick way is to copy mesa rules into your BSP and modify them not to copy
libraries you are not interested in to the target.

ladis

___
ptxdist mailing list
ptxdist@pengutronix.de


Re: [ptxdist] How to override files from another package

2019-11-27 Thread Michael Olbrich
On Wed, Nov 27, 2019 at 10:22:04AM +0100, Guillermo Rodriguez Garcia wrote:
> El mié., 27 nov. 2019 a las 10:06, Michael Olbrich
> () escribió:
> > On Tue, Nov 26, 2019 at 07:21:32PM +0100, Guillermo Rodriguez Garcia wrote:
> > > Is there a way for a ptxdist package to override files from another 
> > > package?
> > > For example something similar to this:
> > >
> > > https://lists.linaro.org/pipermail/openembedded/2016-June/31.html
> > >
> > > I tried to create a package which depends on MESALIB (so that
> > > mesalib's targetinstall rule runs first), and then simply overwrite
> > > the files, but this fails when the package is generated, because there
> > > are multiple packages trying to provide the same files.
> >
> > It's not possible. What exactly are you trying to achieve? Which files do
> > you want to overwrite?
> 
> As in the post from the ML above -- I am trying to overwrite the
> generic GL libraries provided by Mesa and replace them with
> vendor-provided binaries.

Then you should not install mesa at all.

Michael

-- 
Pengutronix e.K.   | |
Steuerwalder Str. 21   | http://www.pengutronix.de/  |
31137 Hildesheim, Germany  | Phone: +49-5121-206917-0|
Amtsgericht Hildesheim, HRA 2686   | Fax:   +49-5121-206917- |

___
ptxdist mailing list
ptxdist@pengutronix.de


Re: [ptxdist] How to override files from another package

2019-11-27 Thread Guillermo Rodriguez Garcia
Hi,

El mié., 27 nov. 2019 a las 10:06, Michael Olbrich
() escribió:
>
> Hi,
>
> On Tue, Nov 26, 2019 at 07:21:32PM +0100, Guillermo Rodriguez Garcia wrote:
> > Is there a way for a ptxdist package to override files from another package?
> > For example something similar to this:
> >
> > https://lists.linaro.org/pipermail/openembedded/2016-June/31.html
> >
> > I tried to create a package which depends on MESALIB (so that
> > mesalib's targetinstall rule runs first), and then simply overwrite
> > the files, but this fails when the package is generated, because there
> > are multiple packages trying to provide the same files.
>
> It's not possible. What exactly are you trying to achieve? Which files do
> you want to overwrite?

As in the post from the ML above -- I am trying to overwrite the
generic GL libraries provided by Mesa and replace them with
vendor-provided binaries.

Guillermo

___
ptxdist mailing list
ptxdist@pengutronix.de


Re: [ptxdist] How to override files from another package

2019-11-27 Thread Michael Olbrich
Hi,

On Tue, Nov 26, 2019 at 07:21:32PM +0100, Guillermo Rodriguez Garcia wrote:
> Is there a way for a ptxdist package to override files from another package?
> For example something similar to this:
> 
> https://lists.linaro.org/pipermail/openembedded/2016-June/31.html
> 
> I tried to create a package which depends on MESALIB (so that
> mesalib's targetinstall rule runs first), and then simply overwrite
> the files, but this fails when the package is generated, because there
> are multiple packages trying to provide the same files.

It's not possible. What exactly are you trying to achieve? Which files do
you want to overwrite?

Michael

-- 
Pengutronix e.K.   | |
Steuerwalder Str. 21   | http://www.pengutronix.de/  |
31137 Hildesheim, Germany  | Phone: +49-5121-206917-0|
Amtsgericht Hildesheim, HRA 2686   | Fax:   +49-5121-206917- |

___
ptxdist mailing list
ptxdist@pengutronix.de


[ptxdist] How to override files from another package

2019-11-26 Thread Guillermo Rodriguez Garcia
Hi all,

Is there a way for a ptxdist package to override files from another package?
For example something similar to this:

https://lists.linaro.org/pipermail/openembedded/2016-June/31.html

I tried to create a package which depends on MESALIB (so that
mesalib's targetinstall rule runs first), and then simply overwrite
the files, but this fails when the package is generated, because there
are multiple packages trying to provide the same files.

 BR,

Guillermo Rodriguez Garcia
guille.rodrig...@gmail.com

___
ptxdist mailing list
ptxdist@pengutronix.de