rpms/gridengine/devel gridengine-6.2u2_1-getline.patch, NONE, 1.1 gridengine.spec, 1.14, 1.15
Orion Poplawski
orion at fedoraproject.org
Mon Apr 6 19:11:08 UTC 2009
Author: orion
Update of /cvs/pkgs/rpms/gridengine/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv15395
Modified Files:
gridengine.spec
Added Files:
gridengine-6.2u2_1-getline.patch
Log Message:
Patch to avoid getline() conflict.
gridengine-6.2u2_1-getline.patch:
--- NEW FILE gridengine-6.2u2_1-getline.patch ---
--- gridengine/source/3rdparty/sge_depend/def.h.getline 2003-03-08 22:06:35.000000000 -0700
+++ gridengine/source/3rdparty/sge_depend/def.h 2009-04-06 13:06:37.000000000 -0600
@@ -136,7 +136,7 @@
#if NeedFunctionPrototypes
char *copy( char *str);
char *base_name(char *file, int strip);
-char *getline(struct filepointer *filep);
+char *sge_getline(struct filepointer *filep);
struct filepointer *getfile(char *file);
struct inclist *newinclude(char *newfile, char *incstring);
struct inclist *inc_path(char *file, char *include, boolean dot);
@@ -155,7 +155,7 @@
#else
char *copy();
char *base_name();
-char *getline();
+char *sge_getline();
struct filepointer *getfile();
struct inclist *newinclude();
struct inclist *inc_path();
--- gridengine/source/3rdparty/sge_depend/parse.c.getline 2008-04-16 03:11:05.000000000 -0600
+++ gridengine/source/3rdparty/sge_depend/parse.c 2009-04-06 13:06:45.000000000 -0600
@@ -80,7 +80,7 @@
register char *line;
register int type;
- while ((line = getline(filep))) {
+ while ((line = sge_getline(filep))) {
switch(type = deftype(line, filep, file_red, file, FALSE)) {
case IF:
case IFFALSE:
@@ -571,7 +571,7 @@
register int type;
boolean recfailOK;
- while ((line = getline(filep))) {
+ while ((line = sge_getline(filep))) {
switch(type = deftype(line, filep, file_red, file, TRUE)) {
case IF:
doif:
--- gridengine/source/3rdparty/sge_depend/main.c.getline 2007-07-26 09:41:43.000000000 -0600
+++ gridengine/source/3rdparty/sge_depend/main.c 2009-04-06 13:06:49.000000000 -0600
@@ -510,7 +510,7 @@
* Get the next line. We only return lines beginning with '#' since that
* is all this program is ever interested in.
*/
-char *getline(filep)
+char *sge_getline(filep)
register struct filepointer *filep;
{
register char *p, /* walking pointer */
Index: gridengine.spec
===================================================================
RCS file: /cvs/pkgs/rpms/gridengine/devel/gridengine.spec,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- gridengine.spec 6 Apr 2009 18:49:08 -0000 1.14
+++ gridengine.spec 6 Apr 2009 19:10:37 -0000 1.15
@@ -50,6 +50,9 @@
# Import specific classes to avoid pulling in other ones
# http://gridengine.sunsource.net/issues/show_bug.cgi?id=2924
Patch8: gridengine-6.2-import.patch
+# Rename getline() to sge_getline()
+# http://gridengine.sunsource.net/issues/show_bug.cgi?id=2980
+Patch9: gridengine-6.2u2_1-getline.patch
# Support lesstif - http://gridengine.sunsource.net/issues/show_bug.cgi?id=2310
Patch15: gridengine-6.2beta2-lesstif.patch
# Make inst_sge exit with status 1 if usage is incorrect
@@ -169,6 +172,7 @@
%patch6 -p1 -b .db
%patch7 -p1 -b .Werror
%patch8 -p1 -b .import
+%patch9 -p1 -b .getline
%if !0%{?rhel}
%patch15 -p1 -b .lesstif
%endif
More information about the fedora-extras-commits
mailing list