Fix handling of configure option --with-xorg-conf-dir
PATCH 1/1 Fix handling of configure option --with-xorg-conf-dir
From: Michel Dänzer <[email protected]>
There were two problems:
I accidentally changed the variable name in the AC_ARG_WITH stanza from configdir to xorgconfigdir, so specifying --with-xorg-conf-dir wouldn't work correctly. Fix this back to configdir.
If neither --with-xorg-conf-dir nor --prefix is specified on the command line, the $prefix variable doesn't contain "/usr/local" (the default prefix) yet at this point but "NONE". So make install would attempt to install 10-amdgpu.conf in ${DESTDIR}NONE/share/X11/xorg.conf.d/ . Fix this by leaving ${prefix} verbatim in the default value, to be resolved by make.
Also print the configdir value along with the values of other similar configuration variables.
---
I'll need to push this within a few hours for the 1.1.2 release. If you see any potential issue with any of this, please speak up.
configure.ac | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
configure.ac +4 -3
@@ -89,9 +89,9 @@ PKG_CHECK_EXISTS([xorg-server >= 1.16], [sysconfigdir=""]) AC_ARG_WITH(xorg-conf-dir, AS_HELP_STRING([--with-xorg-conf-dir=DIR], - [Default xorg.conf.d directory [[default=$prefix/share/X11/xorg.conf.d/]]]), - [xorgconfdir="$withval"], - [xorgconfdir="$prefix/share/X11/xorg.conf.d"]) + [Default xorg.conf.d directory [[default=${prefix}/share/X11/xorg.conf.d]]]), + [configdir="$withval"], + [configdir='${prefix}/share/X11/xorg.conf.d']) AC_SUBST(configdir) AM_CONDITIONAL(HAS_XORG_CONF_DIR, [test "x$sysconfigdir" != "x"])
@@ -279,6 +279,7 @@ echo " prefix: $prefix" echo " exec_prefix: $exec_prefix" echo " libdir: $libdir" echo " includedir: $includedir" +echo " configdir: $configdir" echo "" echo " CFLAGS: $CFLAGS"
Signature · 6 lines
2.9.3 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 20160916071017.27036-1-michel-otUistvHUpPR7s880joybQ@public.gmane.org
Deucher, Alexander
Reviewed-by Alex DeucherQuoted 22 lines
-----Original Message-----
From: amd-gfx [mailto:[email protected]] On Behalf Of Michel Dänzer
Sent: Friday, September 16, 2016 3:10 AM
To: [email protected]
Subject: [PATCH] Fix handling of configure option --with-xorg-conf-dirFrom: Michel Dänzer <[email protected]>
There were two problems:
I accidentally changed the variable name in the
AC_ARG_WITHstanza from configdir to xorgconfigdir, so specifying --with-xorg-conf-dir wouldn't work correctly. Fix this back to configdir.If neither --with-xorg-conf-dir nor --prefix is specified on the command line, the $prefix variable doesn't contain "
/usr/local" (the default prefix) yet at this point but "NONE". So make install would attempt to install 10-amdgpu.conf in ${DESTDIR}NONE/share/X11/xorg.conf.d/ . Fix this by leaving ${prefix} verbatim in the default value, to be resolved by make.
Quoted 5 lines
Also print the configdir value along with the values of other similar configuration variables.
Reported-by Timo Aaltonen <[email protected]>Signed-off-by Michel Dänzer <[email protected]>
Quoted 38 lines
---
I'll need to push this within a few hours for the 1.1.2 release. If you see any potential issue with any of this, please speak up.
configure.ac | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)configure.ac +3
-3@@ -89,9 +89,9 @@ PKG_CHECK_EXISTS([xorg-server >= 1.16], [sysconfigdir=""]) AC_ARG_WITH(xorg-conf-dir, AS_HELP_STRING([--with-xorg-conf-dir=DIR], - [Default xorg.conf.d directory [[default=$prefix/share/X11/xorg.conf.d/]]]), - [xorgconfdir="$withval"], - [xorgconfdir="$prefix/share/X11/xorg.conf.d"]) + [Default xorg.conf.d directory [[default=${prefix}/share/X11/xorg.conf.d]]]), + [configdir="$withval"], + [configdir='${prefix}/share/X11/xorg.conf.d']) AC_SUBST(configdir)
AM_CONDITIONAL(HAS_XORG_CONF_DIR, [test "x$sysconfigdir" != "x"])configure.ac +1
-1@@ -279,6 +279,7 @@ echo " prefix: $prefix" echo " exec_prefix: $exec_prefix" echo " libdir: $libdir" echo " includedir: $includedir" +echo " configdir: $configdir" echo "" echo " CFLAGS: $CFLAGS" --2.9.3
Quoted 4 lines
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx