freebsd-ports/cad/cider/files/patch-spice3f5_common_src_bin_sconvert.c
John Marino d96901c320 Stage cad/cider. Mark BROKEN on F10+ caused by bmake
This port generates a makefile and then passes it to "make" via stdin,
which makes it different to troubleshoot.  When I finally saw the file
in order to figure out why several internal static libraries weren't
getting built leading to some programs not getting built, I saw a
generic static library target made up of variables.  fmake likes it;
bmake does not.

I tried USES+= fmake along with some patching but I must have missed
some hardcoded "make" commands because bmake got called again.  This
software is 20 years old so I finally gave it.  It got a stay of
execution by getting staged.  If somebody wants to study a target that
bmake just doesn't get, this is a good place to start.
2014-08-18 15:41:36 +00:00

26 lines
898 B
C

--- spice3f5/common/src/bin/sconvert.c.orig 1994-01-29 19:12:56 UTC
+++ spice3f5/common/src/bin/sconvert.c
@@ -80,19 +80,19 @@ main(ac, av)
case 1: printf("Input file: ");
(void) fflush(stdout);
- (void) gets(buf);
+ (void) fgets(buf,BSIZE_SP,stdin);
sf = copy(buf);
printf("Input type: ");
(void) fflush(stdout);
- (void) gets(buf);
+ (void) fgets(buf,BSIZE_SP,stdin);
f = buf[0];
printf("Output file: ");
(void) fflush(stdout);
- (void) gets(buf);
+ (void) fgets(buf,BSIZE_SP,stdin);
af = copy(buf);
printf("Output type: ");
(void) fflush(stdout);
- (void) gets(buf);
+ (void) fgets(buf,BSIZE_SP,stdin);
t = buf[0];
break;
default: