[PATCH] fix overquoting of $(XKBCONFIGROOT)
Gaetan Nadon
memsize at videotron.ca
Thu Mar 24 06:20:39 PDT 2011
On Wed, 2011-03-23 at 23:29 -0400, Matt Turner wrote:
> Fixes: http://bugs.gentoo.org/show_bug.cgi?id=360227
>
> Problem is easily seen during compile:
> -DDFLT_XKB_CONFIG_ROOT='""/usr/share/X11/xkb""'
This is what I get on Ubuntu before the patch:
-DDFLT_XKB_CONFIG_ROOT=\"/home/nadon/xorg/src/share/X11/xkb\"
Is this a platform difference?
With the patch I get:
-DDFLT_XKB_CONFIG_ROOT='/home/nadon/xorg/src/share/X11/xkb'
but I also get:
libtool: compile: gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../src -I../../include -I../../src -I/home/nadon/xorg/src/include -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -Wbad-function-cast -Wformat=2 -Wold-style-definition -Wdeclaration-after-statement -DDFLT_XKB_CONFIG_ROOT=/home/nadon/xorg/src/share/X11/xkb -g -O2 -fvisibility=hidden -MT listing.lo -MD -MP -MF .deps/listing.Tpo -c listing.c -fPIC -DPIC -o .libs/listing.o
listing.c: In function ‘xkb_list_components’:
listing.c:494: error: expected expression before ‘/’ token
listing.c:494: error: too few arguments to function ‘GenerateComponent’
What are your results before/after the patch?
> ---
> src/xkbcomp/Makefile.am | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/src/xkbcomp/Makefile.am b/src/xkbcomp/Makefile.am
> index db54c55..84e5381 100644
> --- a/src/xkbcomp/Makefile.am
> +++ b/src/xkbcomp/Makefile.am
> @@ -1,6 +1,6 @@
> AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/src
> AM_CFLAGS = $(X11_CFLAGS) $(CWARNFLAGS) \
> - -DDFLT_XKB_CONFIG_ROOT='"$(XKBCONFIGROOT)"'
> + -DDFLT_XKB_CONFIG_ROOT='$(XKBCONFIGROOT)'
>
> noinst_LTLIBRARIES = libxkbcomp.la
> libxkbcomp_la_SOURCES = \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.x.org/archives/xorg-devel/attachments/20110324/8fee8305/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
URL: <http://lists.x.org/archives/xorg-devel/attachments/20110324/8fee8305/attachment.pgp>
More information about the xorg-devel
mailing list