diff options
author | kris <kris@FreeBSD.org> | 2002-10-19 22:29:07 +0000 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2002-10-19 22:29:07 +0000 |
commit | 192f02b3130a85f591f075a4f5048d117d0f1b7a (patch) | |
tree | 79ef5bb8b0ba85efa5bdad4284dd60b350b2b3b1 /textproc/opensched | |
parent | 08b33baa91c4b993486ba5d8baadb31bde72a8cd (diff) | |
download | FreeBSD-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/Makefile | 1 | ||||
-rw-r--r-- | textproc/opensched/files/patch-af | 11 | ||||
-rw-r--r-- | textproc/opensched/files/patch-ag | 10 |
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); |