From 73e00ef063b15ab05f222ffeb2dfb4ec17bdf1b4 Mon Sep 17 00:00:00 2001 From: joerg Date: Tue, 25 Dec 2012 21:05:19 +0000 Subject: Provide a deterministic return value from main. Bump revision. --- net/gt-itm/Makefile | 3 ++- net/gt-itm/distinfo | 5 ++++- net/gt-itm/patches/patch-edriver.c | 13 +++++++++++++ net/gt-itm/patches/patch-itm.c | 13 +++++++++++++ net/gt-itm/patches/patch-sgb2alt.c | 21 +++++++++++++++++++++ 5 files changed, 53 insertions(+), 2 deletions(-) create mode 100644 net/gt-itm/patches/patch-edriver.c create mode 100644 net/gt-itm/patches/patch-itm.c create mode 100644 net/gt-itm/patches/patch-sgb2alt.c diff --git a/net/gt-itm/Makefile b/net/gt-itm/Makefile index a3545123be7..70395daf9a0 100644 --- a/net/gt-itm/Makefile +++ b/net/gt-itm/Makefile @@ -1,7 +1,8 @@ -# $NetBSD: Makefile,v 1.3 2012/10/23 17:18:25 asau Exp $ +# $NetBSD: Makefile,v 1.4 2012/12/25 21:05:19 joerg Exp $ DISTNAME= gt-itm PKGNAME= gt-itm-0pre19961004 +PKGREVISION= 1 CATEGORIES= net MASTER_SITES= http://www-static.cc.gatech.edu/projects/gtitm/gt-itm/ diff --git a/net/gt-itm/distinfo b/net/gt-itm/distinfo index 0aa513dd11f..dfc25a84535 100644 --- a/net/gt-itm/distinfo +++ b/net/gt-itm/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.3 2006/08/18 14:52:02 minskim Exp $ +$NetBSD: distinfo,v 1.4 2012/12/25 21:05:19 joerg Exp $ SHA1 (gt-itm.tar.gz) = 1e52ee9c9d6e3ef09ac39c860d1cd829cf3c6e4e RMD160 (gt-itm.tar.gz) = 0a7cbdfce185ab4bc2c73b78f290e8a831dc04e2 @@ -8,3 +8,6 @@ SHA1 (patch-ab) = 72e60f9b5fc07b3ee44e838e017696178444135b SHA1 (patch-ac) = c70a3b5cb6a7b5b33ffe1269b903476befc00e83 SHA1 (patch-ad) = d8387533a1b877d66820d3e0d2ee95dd82591e80 SHA1 (patch-ae) = f38778918e4eba7f186e75de14e2ccd6d9a3473d +SHA1 (patch-edriver.c) = 13860bf69f95ec2e7caa5dfeb1e52b6c3f37db53 +SHA1 (patch-itm.c) = 1a7f532852dc950eea42372789f8d5c8bc022056 +SHA1 (patch-sgb2alt.c) = ab46542ee9588e7940bb822b1de6a069c31ff581 diff --git a/net/gt-itm/patches/patch-edriver.c b/net/gt-itm/patches/patch-edriver.c new file mode 100644 index 00000000000..cc6e0612e42 --- /dev/null +++ b/net/gt-itm/patches/patch-edriver.c @@ -0,0 +1,13 @@ +$NetBSD: patch-edriver.c,v 1.1 2012/12/25 21:05:20 joerg Exp $ + +--- edriver.c.orig 2012-12-25 18:51:09.000000000 +0000 ++++ edriver.c +@@ -68,7 +68,7 @@ main(argc,argv) + + if (argc == 1) { + printf("Usage: edriver [-nd] [-]*\n\n"); +- return; ++ return 1; + } + /* determine whether to print distributions */ + /* determine where in argv the field pairs begin */ diff --git a/net/gt-itm/patches/patch-itm.c b/net/gt-itm/patches/patch-itm.c new file mode 100644 index 00000000000..21c016c24ba --- /dev/null +++ b/net/gt-itm/patches/patch-itm.c @@ -0,0 +1,13 @@ +$NetBSD: patch-itm.c,v 1.1 2012/12/25 21:05:20 joerg Exp $ + +--- itm.c.orig 2012-12-25 18:50:14.000000000 +0000 ++++ itm.c +@@ -304,7 +304,7 @@ main(int argc, char **argv) + + if (argc == 1) { + printf("itm ....\n\n"); +- return; ++ return 1; + } + while (--argc) { + diff --git a/net/gt-itm/patches/patch-sgb2alt.c b/net/gt-itm/patches/patch-sgb2alt.c new file mode 100644 index 00000000000..261a92dea78 --- /dev/null +++ b/net/gt-itm/patches/patch-sgb2alt.c @@ -0,0 +1,21 @@ +$NetBSD: patch-sgb2alt.c,v 1.1 2012/12/25 21:05:20 joerg Exp $ + +--- sgb2alt.c.orig 2012-12-25 18:50:46.000000000 +0000 ++++ sgb2alt.c +@@ -36,14 +36,14 @@ main(argc,argv) + + if (argc != 3) { + printf("sgb2old \n\n"); +- return; ++ return 1; + } + fout = fopen(argv[2],"w"); + + g = restore_graph(argv[1]); + if (g == NULL) { + printf("%s does not contain a correct SGB graph\n",argv[1]); +- return; ++ return 1; + } + + fprintf(fout,"GRAPH (#nodes #edges id uu vv ww xx yy zz):\n"); -- cgit v1.2.3