diff options
author | xtraeme <xtraeme@pkgsrc.org> | 2004-06-29 02:57:36 +0000 |
---|---|---|
committer | xtraeme <xtraeme@pkgsrc.org> | 2004-06-29 02:57:36 +0000 |
commit | 72fba00353bfddbe46540b437b70007241770437 (patch) | |
tree | 44945379a301114badb967fc762aad8c020db3fd /lang/opencobol/patches | |
parent | d285696942df9ad11c7e11f8aa949cd9c97d0662 (diff) | |
download | pkgsrc-72fba00353bfddbe46540b437b70007241770437.tar.gz |
Initial import of opencobol-0.23.
OpenCOBOL is an open-source COBOL compiler, which translates COBOL
programs to C code and compiles it using GCC.
Diffstat (limited to 'lang/opencobol/patches')
-rw-r--r-- | lang/opencobol/patches/patch-aa | 22 | ||||
-rw-r--r-- | lang/opencobol/patches/patch-ab | 12 | ||||
-rw-r--r-- | lang/opencobol/patches/patch-ac | 38 |
3 files changed, 72 insertions, 0 deletions
diff --git a/lang/opencobol/patches/patch-aa b/lang/opencobol/patches/patch-aa new file mode 100644 index 00000000000..acfc4670af6 --- /dev/null +++ b/lang/opencobol/patches/patch-aa @@ -0,0 +1,22 @@ +$NetBSD: patch-aa,v 1.1.1.1 2004/06/29 02:57:36 xtraeme Exp $ + +--- libcob/fileio.c.orig Wed Jun 11 15:40:20 2003 ++++ libcob/fileio.c Wed Aug 27 09:57:31 2003 +@@ -202,13 +202,10 @@ + else + { + /* discard input until the next newline */ +- int c = getc (f->file); +- while (c != '\r' && c != '\n' && c != EOF) +- c = getc (f->file); +- if (c == '\r') +- c = getc (f->file); +- if (c != '\n' && c != EOF) +- ungetc (c, f->file); ++ char buff[BUFSIZ]; ++ while (fgets (buff, BUFSIZ, f->file) !=NULL) ++ if (strchr (buff, '\n') != NULL) ++ break; + } + + memcpy (f->record->data, buff, f->record->size); diff --git a/lang/opencobol/patches/patch-ab b/lang/opencobol/patches/patch-ab new file mode 100644 index 00000000000..6848300b9b6 --- /dev/null +++ b/lang/opencobol/patches/patch-ab @@ -0,0 +1,12 @@ +$NetBSD: patch-ab,v 1.1.1.1 2004/06/29 02:57:37 xtraeme Exp $ + +--- libcob/screenio.c.orig Thu Apr 3 06:02:51 2003 ++++ libcob/screenio.c Tue Apr 29 04:09:44 2003 +@@ -19,6 +19,7 @@ + + #include "config.h" + ++#include <sys/types.h> + #include <string.h> + #if HAVE_CURSES_H + #include <curses.h> diff --git a/lang/opencobol/patches/patch-ac b/lang/opencobol/patches/patch-ac new file mode 100644 index 00000000000..72c77a8f310 --- /dev/null +++ b/lang/opencobol/patches/patch-ac @@ -0,0 +1,38 @@ +$NetBSD: patch-ac,v 1.1.1.1 2004/06/29 02:57:37 xtraeme Exp $ + +--- Makefile.in.orig 2004-06-29 04:52:23.000000000 +0200 ++++ Makefile.in 2004-06-29 04:54:22.000000000 +0200 +@@ -135,6 +135,7 @@ + build_os = @build_os@ + build_vendor = @build_vendor@ + datadir = @datadir@ ++examplesdir = @datadir@/examples/@PACKAGE@ + exec_prefix = @exec_prefix@ + host = @host@ + host_alias = @host_alias@ +@@ -263,20 +264,20 @@ + sysconfDATA_INSTALL = $(INSTALL_DATA) + install-sysconfDATA: $(sysconf_DATA) + @$(NORMAL_INSTALL) +- $(mkinstalldirs) $(DESTDIR)$(sysconfdir) ++ $(mkinstalldirs) $(DESTDIR)$(examplesdir) + @list='$(sysconf_DATA)'; for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + f="`echo $$p | sed -e 's|^.*/||'`"; \ +- echo " $(sysconfDATA_INSTALL) $$d$$p $(DESTDIR)$(sysconfdir)/$$f"; \ +- $(sysconfDATA_INSTALL) $$d$$p $(DESTDIR)$(sysconfdir)/$$f; \ ++ echo " $(sysconfDATA_INSTALL) $$d$$p $(DESTDIR)$(examplesdir)/$$f"; \ ++ $(sysconfDATA_INSTALL) $$d$$p $(DESTDIR)$(examplesdir)/$$f; \ + done + + uninstall-sysconfDATA: + @$(NORMAL_UNINSTALL) + @list='$(sysconf_DATA)'; for p in $$list; do \ + f="`echo $$p | sed -e 's|^.*/||'`"; \ +- echo " rm -f $(DESTDIR)$(sysconfdir)/$$f"; \ +- rm -f $(DESTDIR)$(sysconfdir)/$$f; \ ++ echo " rm -f $(DESTDIR)$(examplesdir)/$$f"; \ ++ rm -f $(DESTDIR)$(examplesdir)/$$f; \ + done + includeHEADERS_INSTALL = $(INSTALL_HEADER) + install-includeHEADERS: $(include_HEADERS) |