[Mesa-dev] [PATCH] autotools: Deprecate the use of autotools

Jonathan Gray jsg at jsg.id.au
Thu Jan 17 22:38:12 UTC 2019


On Thu, Jan 17, 2019 at 05:05:41PM -0500, Rob Clark wrote:
> On Thu, Jan 17, 2019 at 3:56 PM Jonathan Gray <jsg at jsg.id.au> wrote:
> >
> > On Mon, Jan 14, 2019 at 03:46:35PM +0200, Eero Tamminen wrote:
> > > Hi,
> > >
> > > On 13.1.2019 9.44, Jonathan Gray wrote:
> > > ...> As we can not depend on python to build Mesa in OpenBSD I will have to
> > > > go back to maintaining a local Mesa build system if autotools is removed.
> > >
> > > Mesa already needs python-mako (for code generation) with Autotools.
> > > Why Meson also needing Python is a problem?
> >
> > Python generated files can be generated per release to not depend on
> > python at build time.
> >
> > All of the files generated by python used in a build of Mesa on OpenBSD are
> > already included in Mesa tarballs except for egd_tables.h
> >
> > https://bugs.freedesktop.org/show_bug.cgi?id=103911
> 
> is pre-generating the ninja build files that meson generates an
> option?  (I assume that the generated ninja ends up not being portable
> across different build environments, but maybe for OpenBSD the build
> environment is uniform enough??  idk, just a thought)

I suspect the build files meson/ninja generates would not be portable
across architectures with different toolchains but have not looked.

> 
> Anyways, a lot of other projects have been switching to meson, I guess
> OpenBSD will have to figure out how to deal getting python into build
> tree sooner or later, right?

OpenBSD is split into three repositories, src which contains the kernel,
libc, libssl, posix userland, toolchains (llvm, gcc, binutils) etc. 
xenocara which is the xserver, Mesa, xorg drivers, fonts etc and ports.

The src and xenocara trees are self contained and include all dependencies.
ports are makefiles which describe how to fetch sources and patches to
build binary packages.

meson is in ports and is used to build gnome and related parts but can
not be used in src or xenocara trees.  Python will not be imported into
src.  Either a c/perl implementation of meson is needed or a make based
build system from the OpenBSD perspective.

If Makefile.sources remains after autoconf goes I could use that as part
of a locally maintained not upstreamed make based build system.


More information about the mesa-dev mailing list