public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
* [PATCH] Fix build failure when passing --with-builderstring.
@ 2011-11-07 22:29 Cyril Brulebois
  2011-12-31  1:19 ` Cyril Brulebois
  2012-08-04 15:39 ` Chris Wilson
  0 siblings, 2 replies; 3+ messages in thread
From: Cyril Brulebois @ 2011-11-07 22:29 UTC (permalink / raw)
  To: intel-gfx; +Cc: Cyril Brulebois

If --with-builderstring="foo" is passed to configure (and sna enabled):
  CC     sna_driver.lo
src/sna/sna_driver.c: In function 'sna_init_scrn':
src/sna/sna_driver.c:1023:7: error: token ""foo"" is not valid in preprocessor expressions

Fix the missing defined() around the BUILDER_DESCRIPTION variable.

Signed-off-by: Cyril Brulebois <kibi@debian.org>
---
 src/sna/sna_driver.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/sna/sna_driver.c b/src/sna/sna_driver.c
index 83abdb3..767cd2c 100644
--- a/src/sna/sna_driver.c
+++ b/src/sna/sna_driver.c
@@ -1020,7 +1020,7 @@ void sna_init_scrn(ScrnInfoPtr scrn, int entity_num)
 #if defined(USE_GIT_DESCRIBE)
 	xf86DrvMsg(scrn->scrnIndex, X_INFO,
 		   "SNA compiled from %s\n", git_version);
-#elif BUILDER_DESCRIPTION
+#elif defined(BUILDER_DESCRIPTION)
 	xf86DrvMsg(scrn->scrnIndex, X_INFO,
 		   "SNA compiled: %s\n", BUILDER_DESCRIPTION);
 #endif
-- 
1.7.7.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] Fix build failure when passing --with-builderstring.
  2011-11-07 22:29 [PATCH] Fix build failure when passing --with-builderstring Cyril Brulebois
@ 2011-12-31  1:19 ` Cyril Brulebois
  2012-08-04 15:39 ` Chris Wilson
  1 sibling, 0 replies; 3+ messages in thread
From: Cyril Brulebois @ 2011-12-31  1:19 UTC (permalink / raw)
  To: intel-gfx


[-- Attachment #1.1: Type: text/plain, Size: 1174 bytes --]

Cyril Brulebois <kibi@debian.org> (07/11/2011):
> If --with-builderstring="foo" is passed to configure (and sna enabled):
>   CC     sna_driver.lo
> src/sna/sna_driver.c: In function 'sna_init_scrn':
> src/sna/sna_driver.c:1023:7: error: token ""foo"" is not valid in preprocessor expressions
> 
> Fix the missing defined() around the BUILDER_DESCRIPTION variable.
> 
> Signed-off-by: Cyril Brulebois <kibi@debian.org>
> ---
>  src/sna/sna_driver.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/src/sna/sna_driver.c b/src/sna/sna_driver.c
> index 83abdb3..767cd2c 100644
> --- a/src/sna/sna_driver.c
> +++ b/src/sna/sna_driver.c
> @@ -1020,7 +1020,7 @@ void sna_init_scrn(ScrnInfoPtr scrn, int entity_num)
>  #if defined(USE_GIT_DESCRIBE)
>  	xf86DrvMsg(scrn->scrnIndex, X_INFO,
>  		   "SNA compiled from %s\n", git_version);
> -#elif BUILDER_DESCRIPTION
> +#elif defined(BUILDER_DESCRIPTION)
>  	xf86DrvMsg(scrn->scrnIndex, X_INFO,
>  		   "SNA compiled: %s\n", BUILDER_DESCRIPTION);
>  #endif
> -- 
> 1.7.7.1

Both the bug and the fix are still valid. Can this be applied to master
please?

Mraw,
KiBi.

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] Fix build failure when passing --with-builderstring.
  2011-11-07 22:29 [PATCH] Fix build failure when passing --with-builderstring Cyril Brulebois
  2011-12-31  1:19 ` Cyril Brulebois
@ 2012-08-04 15:39 ` Chris Wilson
  1 sibling, 0 replies; 3+ messages in thread
From: Chris Wilson @ 2012-08-04 15:39 UTC (permalink / raw)
  To: intel-gfx; +Cc: Cyril Brulebois

On Mon,  7 Nov 2011 23:29:29 +0100, Cyril Brulebois <kibi@debian.org> wrote:
> If --with-builderstring="foo" is passed to configure (and sna enabled):
>   CC     sna_driver.lo
> src/sna/sna_driver.c: In function 'sna_init_scrn':
> src/sna/sna_driver.c:1023:7: error: token ""foo"" is not valid in preprocessor expressions
> 
> Fix the missing defined() around the BUILDER_DESCRIPTION variable.

Apologies missed both the original and the ping, applied now.
Many thanks,
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-08-04 15:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-07 22:29 [PATCH] Fix build failure when passing --with-builderstring Cyril Brulebois
2011-12-31  1:19 ` Cyril Brulebois
2012-08-04 15:39 ` Chris Wilson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox