[Mesa-dev] [PATCH 2/2] meson: upgrade minimum meson version
Eric Engestrom
eric.engestrom at intel.com
Tue Apr 9 11:55:41 UTC 2019
On Tuesday, 2019-04-09 13:16:16 +0200, Ernst Sjöstrand wrote:
> For people building newer Mesa pip3 install --user meson is quite a
> lot better and more accessible.
Agreed: if users want a recent version of meson, they might as well
install the current one from pip instead of some slightly less old
version from another distro release :)
> Not a solutions for distributions that want to backport newer Mesa etc though.
I don't really know what these distro's requirements are; can anyone
shed some light on this?
I'd love it if we didn't have to stay this far behind just because some
distro never updates anything.
>
> Those build dependencies look more like runtime dependencies btw,
> Meson is just pure python right?
Indeed :)
Eero, where did you see this "huge amount of esoteric build
dependencies"? I don't really know how to navigate the packages.ubuntu
website to see the actual packaging script, which would have this list.
(I'm looking for something like the "Source Files" link at the top right
of https://www.archlinux.org/packages/extra/x86_64/mesa/ for instance.)
>
> Regards
> //Ernst
>
> Den tis 9 apr. 2019 kl 13:00 skrev Eero Tamminen <eero.t.tamminen at intel.com>:
> >
> > Hi,
> >
> > On 9.4.2019 0.22, Dylan Baker wrote:
> > > It would be nice if people wouldn't try to build bleeding edge mesa on a 12 year
> > > old distro :D. Unfortunately as Eero ppoints out they do. I'd like to bump the
> > > meson version to 0.47 in the future for some of the other features it adds
> > > (automatically figuring out the dependencies for pkg-config, feature options,
> > > etc), but that'll have to wait a bit for distros to catch up.
> >
> > Currently at least Meson 0.45 is required, which I think to rule out any
> > 12 year old distros :D. Requiring Meson 0.47 would rule out 2 year old
> > distro releases.
> >
> > If somebody can test latest stable distros to see they work if one just
> > takes newer Meson binary package from newer version of the distro, maybe
> > Mesa could add instruction for users to do that?
> >
> > In Ubuntu 18.04 those instructions would be:
> > - replace "bionic" in /etc/apt/sources.list temporarily with "cosmic"
> > - do "sudo apt update && sudo apt install meson"
> > - revert /etc/apt/sources.list back to bionic
> >
> > In Debian stable/stretch (which has Meson v0.37):
> > - enable "stretch-backports" repo to install Meson (v0.49)
> >
> >
> > - Eero
> >
> > PS. reason why I say Meson binary packages from newer distro version
> > need to work is that I think expecting users to build also new Meson
> > version from source is not realistic as it seems to need huge amount
> > of esoteric build dependencies:
> > https://packages.ubuntu.com/source/cosmic/meson
> >
> > > We've actually talked about removing these deprecation warnings in cases where
> > > the minimum version doesn't have the recommended replacement, but that's hard.
> > >
> > > Dylan
> > >
> > > Quoting Eero Tamminen (2019-04-08 04:16:49)
> > >> Hi,
> > >>
> > >> On 6.4.2019 11.44, Khaled Emara wrote:
> > >>> Sorry, I though LTS distros used old versions of mesa.
> > >>> Got it.
> > >>
> > >> Those *provide* older Mesa version, so naturally people want to build
> > >> latest Mesa on them (especially if they've just bought HW that isn't
> > >> supported by distro version of Mesa). Building would fail if Mesa would
> > >> require newer Meson version than the one in the distro.
> > >>
> > >>
> > >> - Eero
> > >>
> > >> PS. On Ubuntu 18.04 LTS, one can install 0.47 Meson binary package
> > >> from 18.10, it works fine. Maybe something similar can be done also
> > >> on other LTS distros.
> > >>
> > >>> On Sat, Apr 6, 2019 at 12:38 AM Dylan Baker <dylan at pnwbakers.com
> > >>> <mailto:dylan at pnwbakers.com>> wrote:
> > >>>
> > >>> Quoting Khaled Emara (2019-04-05 11:28:28)
> > >>> > Upgraded meson's minimum version from 0.45 to 0.47
> > >>> > Version 0.47 is required to use build_always_stale
> > >>> > ---
> > >>> > meson.build | 2 +-
> > >>> > 1 file changed, 1 insertion(+), 1 deletion(-)
> > >>> >
> > >>> > diff --git a/meson.build b/meson.build
> > >>> > index 2c98e9e18a9..454928e244a 100644
> > >>> > --- a/meson.build
> > >>> > +++ b/meson.build
> > >>> > @@ -25,7 +25,7 @@ project(
> > >>> > [find_program('python', 'python2', 'python3'),
> > >>> 'bin/meson_get_version.py']
> > >>> > ).stdout(),
> > >>> > license : 'MIT',
> > >>> > - meson_version : '>= 0.45',
> > >>> > + meson_version : '>= 0.47',
> > >>> > default_options : ['buildtype=debugoptimized',
> > >>> 'b_ndebug=if-release', 'c_std=c99', 'cpp_std=c++11']
> > >>> > )
> > >>> >
> > >>> > --
> > >>> > 2.21.0
> > >>> >
> > >>> > _______________________________________________
> > >>> > mesa-dev mailing list
> > >>> > mesa-dev at lists.freedesktop.org
> > >>> <mailto:mesa-dev at lists.freedesktop.org>
> > >>> > https://lists.freedesktop.org/mailman/listinfo/mesa-dev
> > >>>
> > >>> Unfortunately we can't bump the minimum version at the moment, there
> > >>> are a
> > >>> couple of LTS distros we need support for that only ship 0.45.x
> > >>> currently. As an
> > >>> upstream meson dev, we have no time table in place for the removal of
> > >>> build_always.
> > >>>
> > >>> Dylan
> > >>>
> > >>>
> > >>> _______________________________________________
> > >>> mesa-dev mailing list
> > >>> mesa-dev at lists.freedesktop.org
> > >>> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
> > >>>
> > >>
> > >> _______________________________________________
> > >> mesa-dev mailing list
> > >> mesa-dev at lists.freedesktop.org
> > >> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
> >
> > _______________________________________________
> > mesa-dev mailing list
> > mesa-dev at lists.freedesktop.org
> > https://lists.freedesktop.org/mailman/listinfo/mesa-dev
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list