summaryrefslogtreecommitdiffstats
path: root/textproc/opensched
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2002-10-19 22:29:07 +0000
committerkris <kris@FreeBSD.org>2002-10-19 22:29:07 +0000
commit192f02b3130a85f591f075a4f5048d117d0f1b7a (patch)
tree79ef5bb8b0ba85efa5bdad4284dd60b350b2b3b1 /textproc/opensched
parent08b33baa91c4b993486ba5d8baadb31bde72a8cd (diff)
downloadFreeBSD-ports-192f02b3130a85f591f075a4f5048d117d0f1b7a.zip
FreeBSD-ports-192f02b3130a85f591f075a4f5048d117d0f1b7a.tar.gz
Respect CC and CFLAGS, and fix a bug involving use of uninitialized
memory after malloc (causes coredump on -current)
Diffstat (limited to 'textproc/opensched')
-rw-r--r--textproc/opensched/Makefile1
-rw-r--r--textproc/opensched/files/patch-af11
-rw-r--r--textproc/opensched/files/patch-ag10
3 files changed, 22 insertions, 0 deletions
diff --git a/textproc/opensched/Makefile b/textproc/opensched/Makefile
index cc668f6..3a8998e 100644
--- a/textproc/opensched/Makefile
+++ b/textproc/opensched/Makefile
@@ -7,6 +7,7 @@
PORTNAME= opensched
PORTVERSION= 0.1.0
+PORTREVISION= 1
CATEGORIES= textproc
MASTER_SITES= http://www.m-tech.ab.ca/download/sched/
DISTNAME= ${PORTNAME}-${PORTVERSION}
diff --git a/textproc/opensched/files/patch-af b/textproc/opensched/files/patch-af
new file mode 100644
index 0000000..66eff41
--- /dev/null
+++ b/textproc/opensched/files/patch-af
@@ -0,0 +1,11 @@
+--- src/Makefile.orig Tue Oct 26 01:41:45 1999
++++ src/Makefile Sat Oct 19 15:13:56 2002
+@@ -1,6 +1,6 @@
+-CFLAGS=-Wall -g
++CFLAGS+=-Wall -g
+ LIBS=-lm
+-CC=gcc
++CC?=cc
+ CDEPEND = $(CC) -M
+ CDEPENDFLAGS =
+
diff --git a/textproc/opensched/files/patch-ag b/textproc/opensched/files/patch-ag
new file mode 100644
index 0000000..da635f2
--- /dev/null
+++ b/textproc/opensched/files/patch-ag
@@ -0,0 +1,10 @@
+--- src/loadfile.c.orig Sat Oct 19 15:29:13 2002
++++ src/loadfile.c Sat Oct 19 15:28:40 2002
+@@ -268,6 +268,7 @@
+ t = (TASK*)malloc(sizeof(TASK));
+ if ( t == NULL )
+ Error("Can't malloc task in AddTask()");
++ memset(t, 0, sizeof(TASK));
+
+ t->id = strdup(id);
+ t->name = strdup(name);
OpenPOWER on IntegriCloud