From 7d15e5a75b47db59baacc217c1795b329959dc16 Mon Sep 17 00:00:00 2001 From: Brooks Davis Date: Mon, 25 Feb 2008 18:08:08 +0000 Subject: [PATCH] Add a forgotten patch to compile the sge_arch.c file with -ansi to let the evil cpp stringification hack for the architecture name work. Otherwise "uname -m" generally evaluates to a value that is a macro that expands to resulting in all architectures appearing to be fbsd-1. --- sysutils/sge61/Makefile | 2 +- sysutils/sge61/files/patch-libs_uti_Makefile | 14 ++++++++++++++ sysutils/sge62/Makefile | 2 +- sysutils/sge62/files/patch-libs_uti_Makefile | 14 ++++++++++++++ 4 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 sysutils/sge61/files/patch-libs_uti_Makefile create mode 100644 sysutils/sge62/files/patch-libs_uti_Makefile diff --git a/sysutils/sge61/Makefile b/sysutils/sge61/Makefile index 09c427e775bd..8279736c5258 100644 --- a/sysutils/sge61/Makefile +++ b/sysutils/sge61/Makefile @@ -7,7 +7,7 @@ PORTNAME= sge PORTVERSION= ${SGE_VERSION} -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= sysutils parallel MASTER_SITES= http://gridengine.sunsource.net/files/documents/7/161/:src \ http://gridengine.sunsource.net/download/SGE61/:bin \ diff --git a/sysutils/sge61/files/patch-libs_uti_Makefile b/sysutils/sge61/files/patch-libs_uti_Makefile new file mode 100644 index 000000000000..89d912ad7396 --- /dev/null +++ b/sysutils/sge61/files/patch-libs_uti_Makefile @@ -0,0 +1,14 @@ + +$FreeBSD$ + +--- libs/uti/Makefile.orig ++++ libs/uti/Makefile +@@ -186,7 +186,7 @@ + $(CC) $(CFLAGS) $(COD_NPROCS_CFLAGS) $(SHARED_CFLAGS) -c $(UTILIB_DIR)/sge_nprocs.c + + sge_arch.o: $(UTILIB_DIR)/sge_arch.c +- $(CC) $(CFLAGS) $(SHARED_CFLAGS) -c $(UTILIB_DIR)/sge_arch.c ++ $(CC) -ansi $(CFLAGS) $(SHARED_CFLAGS) -c $(UTILIB_DIR)/sge_arch.c + + sge_loadmem.o: $(UTILIB_DIR)/sge_loadmem.c + $(CC) $(CFLAGS) $(MEMCFLAG) $(SHARED_CFLAGS) -c $(UTILIB_DIR)/sge_loadmem.c diff --git a/sysutils/sge62/Makefile b/sysutils/sge62/Makefile index 09c427e775bd..8279736c5258 100644 --- a/sysutils/sge62/Makefile +++ b/sysutils/sge62/Makefile @@ -7,7 +7,7 @@ PORTNAME= sge PORTVERSION= ${SGE_VERSION} -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= sysutils parallel MASTER_SITES= http://gridengine.sunsource.net/files/documents/7/161/:src \ http://gridengine.sunsource.net/download/SGE61/:bin \ diff --git a/sysutils/sge62/files/patch-libs_uti_Makefile b/sysutils/sge62/files/patch-libs_uti_Makefile new file mode 100644 index 000000000000..89d912ad7396 --- /dev/null +++ b/sysutils/sge62/files/patch-libs_uti_Makefile @@ -0,0 +1,14 @@ + +$FreeBSD$ + +--- libs/uti/Makefile.orig ++++ libs/uti/Makefile +@@ -186,7 +186,7 @@ + $(CC) $(CFLAGS) $(COD_NPROCS_CFLAGS) $(SHARED_CFLAGS) -c $(UTILIB_DIR)/sge_nprocs.c + + sge_arch.o: $(UTILIB_DIR)/sge_arch.c +- $(CC) $(CFLAGS) $(SHARED_CFLAGS) -c $(UTILIB_DIR)/sge_arch.c ++ $(CC) -ansi $(CFLAGS) $(SHARED_CFLAGS) -c $(UTILIB_DIR)/sge_arch.c + + sge_loadmem.o: $(UTILIB_DIR)/sge_loadmem.c + $(CC) $(CFLAGS) $(MEMCFLAG) $(SHARED_CFLAGS) -c $(UTILIB_DIR)/sge_loadmem.c