[PATCH xserver] meson: Fix module_dir configuration (v2)

Adam Jackson ajax at nwnk.net
Wed May 9 17:40:25 UTC 2018


On Thu, 2018-05-03 at 09:03 +1000, Peter Hutterer wrote:
> On Wed, May 02, 2018 at 12:54:26PM -0700, Aaron Plattner wrote:
> > meson.build has code to set the module_dir variable to
> > ${libdir}/xorg/modules if the module_dir option string is empty.
> > However, this has several problems:
> > 
> > 1. The variable is only used for an unused @moduledir@ substitution in
> >    the man page. The rule for xorg-server.pc uses option('module_dir')
> >    directly instead.
> > 2. The 'module_dir' option has a default value of 'xorg/modules' so the
> >    above rule doesn't do anything by default.
> > 3. The xorg-server.pc rule uses ${exec_prefix}/option('module_dir'), so
> >    the effect of #2 is that the default moduledir is different between
> >    autoconf and meson. E.g. if ${prefix} is /X, then you get
> > 
> >      autoconf: moduledir=/X/lib/xorg/modules
> >      meson:    moduledir=/X/xorg/modules
> > 
> > Fix this by using the module_dir variable when generating xorg-server.pc, and by
> > using join_paths() to assign module_dir unconditionally.
> > 
> > v2: Keep the 'xorg/modules' default path, but use join_paths() unconditionally (Thierry Reding)
> > 
> > Signed-off-by: Aaron Plattner <aplattner at nvidia.com>
> 
> Reviewed-by: Peter Hutterer <peter.hutterer at who-t.net>

Merged, thanks:

remote: I: patch #219986 updated using rev b6bf68b8416ec4b717eb78703fb63789c68e509a.
remote: I: 1 patch(es) updated to state Accepted.
To ssh://git.freedesktop.org/git/xorg/xserver
   9d628ee5fa..b6bf68b841  master -> master

- ajax


More information about the xorg-devel mailing list