summaryrefslogtreecommitdiff
path: root/cad/verilog
diff options
context:
space:
mode:
authordmcmahill <dmcmahill>2000-07-11 14:35:58 +0000
committerdmcmahill <dmcmahill>2000-07-11 14:35:58 +0000
commitd2de6f19d28f70dc6b4d55367215a0590aa8a05e (patch)
treeb2571ccaec5604d4c594df22f745c519623ce55b /cad/verilog
parent7202d4212d8a40bdc55b4344de0be5108a616196 (diff)
downloadpkgsrc-d2de6f19d28f70dc6b4d55367215a0590aa8a05e.tar.gz
make iverilog give proper return codes.
Diffstat (limited to 'cad/verilog')
-rw-r--r--cad/verilog/files/patch-sum3
-rw-r--r--cad/verilog/patches/patch-ac56
2 files changed, 58 insertions, 1 deletions
diff --git a/cad/verilog/files/patch-sum b/cad/verilog/files/patch-sum
index 5ebdbb7d25c..e67643478e5 100644
--- a/cad/verilog/files/patch-sum
+++ b/cad/verilog/files/patch-sum
@@ -1,5 +1,6 @@
-$NetBSD: patch-sum,v 1.5 2000/06/30 19:55:04 dmcmahill Exp $
+$NetBSD: patch-sum,v 1.6 2000/07/11 14:35:58 dmcmahill Exp $
MD5 (patch-aa) = b6c4526b7458f1de95c4158aaf0c74ab
MD5 (patch-ab) = 8e1ec1875b9f1c8a969205c81598be94
+MD5 (patch-ac) = 57decd66420e549d30130616041d116e
MD5 (patch-ad) = d875516e4fc53270d66101a60bc1e8e5
diff --git a/cad/verilog/patches/patch-ac b/cad/verilog/patches/patch-ac
new file mode 100644
index 00000000000..8c175941bc1
--- /dev/null
+++ b/cad/verilog/patches/patch-ac
@@ -0,0 +1,56 @@
+$NetBSD: patch-ac,v 1.3 2000/07/11 14:36:20 dmcmahill Exp $
+
+give the correct return value
+
+--- iverilog.c.orig Fri Jun 16 15:00:06 2000
++++ iverilog.c Tue Jul 11 10:27:28 2000
+@@ -26,4 +26,7 @@
+ #include <string.h>
+
++#include <sys/types.h>
++#include <sys/wait.h>
++
+ #ifndef IVL_ROOT
+ # define IVL_ROOT "."
+@@ -88,5 +91,5 @@
+
+ rc = system(cmd);
+- return rc;
++ return(WEXITSTATUS(rc));
+ }
+
+@@ -142,5 +145,5 @@
+ if (rc != 0) {
+ fprintf(stderr, "errors translating Verilog program.\n");
+- return rc;
++ return(WEXITSTATUS(rc));
+ }
+
+@@ -155,5 +158,5 @@
+ if (rc != 0) {
+ fprintf(stderr, "errors compiling translated program.\n");
+- return rc;
++ return(WEXITSTATUS(rc));
+ }
+
+@@ -201,5 +204,5 @@
+ rc = system(cmd);
+
+- return rc;
++ return(WEXITSTATUS(rc));
+ }
+
+@@ -225,4 +228,5 @@
+ int opt, idx;
+ char*cp;
++ int rc;
+
+ while ((opt = getopt(argc, argv, "B:D:Ef:I:m:o:Ss:t:vW:")) != EOF) {
+@@ -362,5 +366,6 @@
+ printf("preprocess: %s\n", cmd);
+
+- return system(cmd);
++ rc=system(cmd);
++ return(WEXITSTATUS(rc));
+ }
+