pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/sfio Build for C89 (and later), not K&R C. Other...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/bcffa2e645b8
branches:  trunk
changeset: 367993:bcffa2e645b8
user:      dholland <dholland%pkgsrc.org@localhost>
date:      Sat Sep 09 20:12:49 2017 +0000

description:
Build for C89 (and later), not K&R C. Otherwise it tries to use varargs.h
and in many environments thereby croaks.

diffstat:

 devel/sfio/distinfo         |   4 ++--
 devel/sfio/patches/patch-aa |  21 ++++++++++++---------
 2 files changed, 14 insertions(+), 11 deletions(-)

diffs (51 lines):

diff -r 73246cb989d3 -r bcffa2e645b8 devel/sfio/distinfo
--- a/devel/sfio/distinfo       Sat Sep 09 19:45:46 2017 +0000
+++ b/devel/sfio/distinfo       Sat Sep 09 20:12:49 2017 +0000
@@ -1,10 +1,10 @@
-$NetBSD: distinfo,v 1.10 2015/11/03 03:29:32 agc Exp $
+$NetBSD: distinfo,v 1.11 2017/09/09 20:12:49 dholland Exp $
 
 SHA1 (sfio_1999.src.unix.cpio) = 6fd3a711ca8f95190c0859934f57a66d02c842a4
 RMD160 (sfio_1999.src.unix.cpio) = 379148273c9979f7a5a921a338465b7579a6ac5e
 SHA512 (sfio_1999.src.unix.cpio) = 1983c7bd9c321080199a4d2828ee4c0e0d1cc0be1f840c244bfe8b1534b615d896e5bf9748781c209f1462da640a9017c63b3190ebbf1df62086c92c1b64f1ec
 Size (sfio_1999.src.unix.cpio) = 647168 bytes
-SHA1 (patch-aa) = 514aafe5eb5f97150742efa6a5b51644bf485bda
+SHA1 (patch-aa) = 6d4421b66b8534ba8f107d27d831b54d51ed7dfc
 SHA1 (patch-ab) = 184497c28da9db978c2b384d3be526d28e3ebae0
 SHA1 (patch-ac) = 0e3b0aae65393ce98fd086ec593dd73e2b41c283
 SHA1 (patch-ad) = 2e144ceabe9652e9acac8d08f6cf6ce8433425e6
diff -r 73246cb989d3 -r bcffa2e645b8 devel/sfio/patches/patch-aa
--- a/devel/sfio/patches/patch-aa       Sat Sep 09 19:45:46 2017 +0000
+++ b/devel/sfio/patches/patch-aa       Sat Sep 09 20:12:49 2017 +0000
@@ -1,19 +1,22 @@
-$NetBSD: patch-aa,v 1.2 1998/11/02 21:18:14 agc Exp $
+$NetBSD: patch-aa,v 1.3 2017/09/09 20:12:49 dholland Exp $
 
 Make sure we get iffe from its correct location.
+Build for C89, not K&R C.
 
---- src/lib/sfio/Makefile      1998/10/27 17:01:58     1.1
-+++ src/lib/sfio/Makefile      1998/10/27 17:03:57
-@@ -9,6 +9,8 @@
+--- src/lib/sfio/Makefile.orig 1998-03-19 16:17:33.000000000 +0000
++++ src/lib/sfio/Makefile
+@@ -7,7 +7,9 @@ VERSION = 1.0
+ .INCLUDE : Stdio_b
+ ancestor = 2
  
- CCFLAGS = -O
+-CCFLAGS = -O
++CCFLAGS = -O -D__STD_C
++
++BINDIR=       ../../../bin
  
-+BINDIR=       ../../../bin
-+
  SFIO= sfexit.c sfclose.c sfclrlock.c sfcvt.c sfdlen.c sfexcept.c sfextern.c \
        sffilbuf.c sfflsbuf.c sfprints.c sfgetd.c sfgetl.c sfgetr.c sfgetu.c \
-       sfllen.c sfmode.c sfmove.c sfnew.c sfnputc.c sfopen.c sfpeek.c \
-@@ -41,7 +43,7 @@
+@@ -41,7 +43,7 @@ sfio  $(VERSION) :LIBRARY:   $(SFIO) $(SFI
  stdio $(VERSION) :LIBRARY:    $(STDIO_B)
  
  ast_common.h : features/common



Home | Main Index | Thread Index | Old Index