Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 259295 Details for
Bug 347758
x11-apps/xrdb-1.0.7 ignores continuation lines; runtime error with GCC 4.5
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
xrdb-1.0.7-cpp.patch
0001-Call-C-preprocessor-with-P-option-changed-behaviour-.patch (text/plain), 2.96 KB, created by
Ulrich Müller
on 2011-01-08 15:50:39 UTC
(
hide
)
Description:
xrdb-1.0.7-cpp.patch
Filename:
MIME Type:
Creator:
Ulrich Müller
Created:
2011-01-08 15:50:39 UTC
Size:
2.96 KB
patch
obsolete
>From 41a69cbe7dbb11f83b683627ccc87cde91cfaaab Mon Sep 17 00:00:00 2001 >From: Ulrich Mueller <ulm@gentoo.org> >Date: Mon, 3 Jan 2011 23:33:52 +0100 >Subject: [PATCH] Call C preprocessor with -P option (changed behaviour in GCC 4.5) > >http://bugs.freedesktop.org/show_bug.cgi?id=32701 >http://bugs.gentoo.org/show_bug.cgi?id=347758 > >Signed-off-by: Ulrich Mueller <ulm@gentoo.org> >--- > xrdb.c | 16 ++++++++-------- > 1 files changed, 8 insertions(+), 8 deletions(-) > >diff --git a/xrdb.c b/xrdb.c >index 21005c0..75dfde7 100644 >--- a/xrdb.c >+++ b/xrdb.c >@@ -1163,11 +1163,11 @@ Process(int scrno, Bool doScreen, Bool execute) > fclose(input); > (void) mktemp(tmpname3); > if((cmd = (char *) >- malloc(strlen(cpp_program) + strlen(includes.val) + >+ malloc(strlen(cpp_program) + 3 + strlen(includes.val) + > 1 + strlen(tmpname2) + 3 + strlen(tmpname3) + 1)) == > NULL) > fatal("%s: Out of memory\n", ProgramName); >- sprintf(cmd, "%s%s %s > %s", cpp_program, includes.val, >+ sprintf(cmd, "%s -P%s %s > %s", cpp_program, includes.val, > tmpname2, tmpname3); > if (system(cmd) < 0) > fatal("%s: cannot run '%s'\n", ProgramName, cmd); >@@ -1182,10 +1182,10 @@ Process(int scrno, Bool doScreen, Bool execute) > fflush(stdin); > fseek(stdin, 0, 0); > if((cmd = (char *) >- malloc(strlen(cpp_program) + strlen(includes.val) + 1)) == >+ malloc(strlen(cpp_program) + 3 + strlen(includes.val) + 1)) == > NULL) > fatal("%s: Out of memory\n", ProgramName); >- sprintf(cmd, "%s%s", cpp_program, includes.val); >+ sprintf(cmd, "%s -P%s", cpp_program, includes.val); > if (!(input = popen(cmd, "r"))) > fatal("%s: cannot run '%s'\n", ProgramName, cmd); > free(cmd); >@@ -1200,13 +1200,13 @@ Process(int scrno, Bool doScreen, Bool execute) > #ifdef WIN32 > (void) mktemp(tmpname3); > if((cmd = (char *) >- malloc(strlen(cpp_program) + strlen(includes.val) + >+ malloc(strlen(cpp_program) + 3 + strlen(includes.val) + > 1 + strlen(defines.val) + 1 + > strlen(filename ? filename : "") + 3 + > strlen(tmpname3) + 1)) == > NULL) > fatal("%s: Out of memory\n", ProgramName); >- sprintf(cmd, "%s%s %s %s > %s", cpp_program, >+ sprintf(cmd, "%s -P%s %s %s > %s", cpp_program, > includes.val, defines.val, > filename ? filename : "", tmpname3); > if (system(cmd) < 0) >@@ -1216,12 +1216,12 @@ Process(int scrno, Bool doScreen, Bool execute) > fatal("%s: can't open file '%s'\n", ProgramName, tmpname3); > #else > if((cmd = (char *) >- malloc(strlen(cpp_program) + strlen(includes.val) + 1 + >+ malloc(strlen(cpp_program) + 3 + strlen(includes.val) + 1 + > strlen(defines.val) + 1 + > strlen(filename ? filename : "") + 1)) == > NULL) > fatal("%s: Out of memory\n", ProgramName); >- sprintf(cmd, "%s%s %s %s", cpp_program, >+ sprintf(cmd, "%s -P%s %s %s", cpp_program, > includes.val, defines.val, > filename ? filename : ""); > if (!(input = popen(cmd, "r"))) >-- >1.7.3.4 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 347758
:
256924
| 259295