Re: [igt-dev] [ANNOUNCE] intel-gpu-tools 1.22

2018-06-19 Thread Daniel Vetter
On Mon, Jun 18, 2018 at 10:23:03AM -0700, Matt Turner wrote:
> On Mon, Jun 18, 2018 at 8:51 AM Daniel Vetter  wrote:
> >
> > On Wed, Jun 13, 2018 at 02:54:52PM -0700, Matt Turner wrote:
> > > On Fri, Mar 9, 2018 at 6:28 AM, Petri Latvala  
> > > wrote:
> > > >
> > > > A new intel-gpu-tools quarterly release is available with the
> > > > following changes:
> > > >
> > >
> > > Since the Meson build system has no configuration options it's not yet
> > > a replacement distros can use. Please ship the 1.23 tarball with the
> > > autotools files generated by make dist.
> >
> > Meson upstream seems to think that autoconfiguring with defaults Is Better
> > (tm). What would distro's want from the meson build (since I think it's
> > useful to cut down a bit from the all the options, mostly they didn't
> > really work after a short while anyway)?
> 
> That works fine for developers building it out of their ~/projects
> directory, but not so well for distros. Source distros in particular
> don't work well with so-called "automagic" dependencies, i.e., those
> that are enabled if detected by the configure script without the
> ability to explicitly disable them.
> 
> Gentoo's dependency tracking works by saying "Depend on package XYZ
> iff support for XYZ is requested". Automagic deps break this by
> assumption by linking with XYZ if it happens to be installed even if
> support isn't requested.
> 
> If we just want to make everything required, then... I guess that will
> work. But because autotools already has configuration support, the
> source code is already ready. FWIW, this came to my attention recently
> because I worked with the Chrome team at Intel to add v1.22 to Gentoo.
> I suggested switching to Meson and then realized it wasn't
> configurable at all.

Let me rephrase my questions: Which specific options do distros want? All
of the ones we have as optional dependencies already, or just a specific
subset, or something else?

In the past we had options like "only build the tools" because someone
asked for that, and that also doens't exist anymore iirc.
-Daniel
-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
___
xorg@lists.x.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: https://lists.x.org/mailman/listinfo/xorg
Your subscription address: %(user_address)s

Re: [igt-dev] [ANNOUNCE] intel-gpu-tools 1.22

2018-06-18 Thread Matt Turner
On Mon, Jun 18, 2018 at 3:14 PM Ross Vandegrift  wrote:
>
> On Mon, Jun 18, 2018 at 10:23:03AM -0700, Matt Turner wrote:
> > On Mon, Jun 18, 2018 at 8:51 AM Daniel Vetter  wrote:
> > > On Wed, Jun 13, 2018 at 02:54:52PM -0700, Matt Turner wrote:
> > > > Since the Meson build system has no configuration options it's not yet
> > > > a replacement distros can use. Please ship the 1.23 tarball with the
> > > > autotools files generated by make dist.
> > >
> > > Meson upstream seems to think that autoconfiguring with defaults Is Better
> > > (tm). What would distro's want from the meson build (since I think it's
> > > useful to cut down a bit from the all the options, mostly they didn't
> > > really work after a short while anyway)?
> >
> [snip]
> >
> > source code is already ready. FWIW, this came to my attention recently
> > because I worked with the Chrome team at Intel to add v1.22 to Gentoo.
> > I suggested switching to Meson and then realized it wasn't
> > configurable at all.
>
> Maybe I've missed some context, but I don't think this is a meson limitation:
> https://github.com/mesonbuild/meson/blob/master/docs/markdown/Build-options.md

No, of course not. I meant that i-g-t's meson_options.txt is nearly
empty and its meson.build is only wired to enable deps based on
whether they're present.

> Here is an example option that disables wayland support by default, but
> allows enabling it at build time by specifying "-Dwayland=true":
> https://git.enlightenment.org/core/enlightenment.git/tree/meson_options.txt#n48

Yep, I just finished transitioning Gentoo's Mesa ebuild from autotools
to Meson last week :)
___
xorg@lists.x.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: https://lists.x.org/mailman/listinfo/xorg
Your subscription address: %(user_address)s

Re: [igt-dev] [ANNOUNCE] intel-gpu-tools 1.22

2018-06-18 Thread Matthieu Herrb
On Mon, Jun 18, 2018 at 10:23:03AM -0700, Matt Turner wrote:
> On Mon, Jun 18, 2018 at 8:51 AM Daniel Vetter  wrote:
> >
> > On Wed, Jun 13, 2018 at 02:54:52PM -0700, Matt Turner wrote:
> > > On Fri, Mar 9, 2018 at 6:28 AM, Petri Latvala  
> > > wrote:
> > > >
> > > > A new intel-gpu-tools quarterly release is available with the
> > > > following changes:
> > > >
> > >
> > > Since the Meson build system has no configuration options it's not yet
> > > a replacement distros can use. Please ship the 1.23 tarball with the
> > > autotools files generated by make dist.
> >
> > Meson upstream seems to think that autoconfiguring with defaults Is Better
> > (tm). What would distro's want from the meson build (since I think it's
> > useful to cut down a bit from the all the options, mostly they didn't
> > really work after a short while anyway)?
> 
> That works fine for developers building it out of their ~/projects
> directory, but not so well for distros. Source distros in particular
> don't work well with so-called "automagic" dependencies, i.e., those
> that are enabled if detected by the configure script without the
> ability to explicitly disable them.
> 
> Gentoo's dependency tracking works by saying "Depend on package XYZ
> iff support for XYZ is requested". Automagic deps break this by
> assumption by linking with XYZ if it happens to be installed even if
> support isn't requested.

+1.  same kind of issues on build system for *BSD.

-- 
Matthieu Herrb


signature.asc
Description: PGP signature
___
xorg@lists.x.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: https://lists.x.org/mailman/listinfo/xorg
Your subscription address: %(user_address)s

Re: [igt-dev] [ANNOUNCE] intel-gpu-tools 1.22

2018-06-18 Thread Matt Turner
On Mon, Jun 18, 2018 at 8:51 AM Daniel Vetter  wrote:
>
> On Wed, Jun 13, 2018 at 02:54:52PM -0700, Matt Turner wrote:
> > On Fri, Mar 9, 2018 at 6:28 AM, Petri Latvala  
> > wrote:
> > >
> > > A new intel-gpu-tools quarterly release is available with the
> > > following changes:
> > >
> >
> > Since the Meson build system has no configuration options it's not yet
> > a replacement distros can use. Please ship the 1.23 tarball with the
> > autotools files generated by make dist.
>
> Meson upstream seems to think that autoconfiguring with defaults Is Better
> (tm). What would distro's want from the meson build (since I think it's
> useful to cut down a bit from the all the options, mostly they didn't
> really work after a short while anyway)?

That works fine for developers building it out of their ~/projects
directory, but not so well for distros. Source distros in particular
don't work well with so-called "automagic" dependencies, i.e., those
that are enabled if detected by the configure script without the
ability to explicitly disable them.

Gentoo's dependency tracking works by saying "Depend on package XYZ
iff support for XYZ is requested". Automagic deps break this by
assumption by linking with XYZ if it happens to be installed even if
support isn't requested.

If we just want to make everything required, then... I guess that will
work. But because autotools already has configuration support, the
source code is already ready. FWIW, this came to my attention recently
because I worked with the Chrome team at Intel to add v1.22 to Gentoo.
I suggested switching to Meson and then realized it wasn't
configurable at all.
___
xorg@lists.x.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: https://lists.x.org/mailman/listinfo/xorg
Your subscription address: %(user_address)s

Re: [igt-dev] [ANNOUNCE] intel-gpu-tools 1.22

2018-06-18 Thread Daniel Vetter
On Wed, Jun 13, 2018 at 02:54:52PM -0700, Matt Turner wrote:
> On Fri, Mar 9, 2018 at 6:28 AM, Petri Latvala  wrote:
> >
> > A new intel-gpu-tools quarterly release is available with the
> > following changes:
> >
> 
> Since the Meson build system has no configuration options it's not yet
> a replacement distros can use. Please ship the 1.23 tarball with the
> autotools files generated by make dist.

Meson upstream seems to think that autoconfiguring with defaults Is Better
(tm). What would distro's want from the meson build (since I think it's
useful to cut down a bit from the all the options, mostly they didn't
really work after a short while anyway)?
-Daniel
-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
___
xorg@lists.x.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: https://lists.x.org/mailman/listinfo/xorg
Your subscription address: %(user_address)s