pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/opencobol Updated opencobol to 0.32.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/226f0d5ea619
branches:  trunk
changeset: 523360:226f0d5ea619
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Sat Jan 06 20:22:11 2007 +0000

description:
Updated opencobol to 0.32.

* Changes in OpenCOBOL 0.31

** Stability update - See individual ChangeLogs

** New driver program - "cobcrun"
   This allows all application programs to be compiled as
   modules and driven by "cobcrun" similar to MF's "cobrun".
   Syntax - cobcrun <MAINPROG> [Arguments to program "MAINPROG"]
   As "cobcrun" is linked with the static version of Open Cobol
   libraries, it is easier to maintain concurrent versions on the
   same system.

-----------------------------------------------------------------------

* Changes in OpenCOBOL 0.30

** Installation changes

*** No longer use readline.

*** No longer use run-time configuration file (libcob.conf)

*** libdb is now optional.
Use the new configure option --with-db1 to link with libdb1.
Use the new configure option --with-db to link with libdb.
Otherwise, libdb will not be linked, and indexed files and
SORT/MERGE statements will not work.

*** New subdirectory `config' will be installed under
$prefix/share/open-cobol.

** Compatibility changes

*** New -std options:

  default       used when you omit -std
  cobol85       COBOL 85 Standard
  cobol2002     COBOL 2002 Standard
  ibm           IBM COBOL compatibility
  mf            Micro Focus COBOL compatibility
  v023          OpenCOBOL 0.23 compatibility

*** Compile-time options can be stored in a "config" file.
See config/default.conf for details.

*** Binary data items are now big endian.
The config option `binary-byteorder' controls this.

*** Numeric sign of USAGE DISPLAY items has been changed as follows:

  Positive: 0123456789  Negative: pqrstuvwxy

The config option `display-sign' controls this.

*** Data items defined in the working-storage section are
initialized at the beginning of program by default.
The config option `auto-initialize' controls this.

*** SORT statement now creates a temporary file in /tmp for sorting
and removes it after sorting.

** Feature changes

*** COPY statements try to complement the following file extensions:
.CBL, .COB, .cbl, or .cob.

*** COPY / REPLACE statements are reimplemented for better replacement.

*** SPECIAL-NAMES. FORMFEED IS ...

*** ALPHABET ... IS EBCDIC.

*** EXTERNAL clause.

*** SHARING clause.

*** USAGE COMP-5 and COMP-X.

*** USAGE POINTER and ADDRESS OF operator.

*** LENGTH OF operator.

*** PROCEDURE DIVISION USING BY REFERENCE/CONTENT/VALUE.

*** DISPLAY ... ENVIRONMENT-NAME.  ACCEPT ... ENVIRONMENT-VALUE.

*** COLLATING SEQUENCE in the SORT and MERGE statements.

*** EXIT PERFORM [CYCLE] statement.

*** SORT table.

*** OPEN ... WITH NO REWIND / WITH LOCK recognized, though not working.

*** Literal concatenation (the `&' operator).

** Compiler changes

*** New compiler environment variable TMPDIR.

*** New compiler environment variable COB_LDFLAGS.

*** The runtime environment variable COB_CONFIG_FILE has been removed.

*** New runtime environment variable COB_DYNAMIC_RELOADING.

*** New compiler option `--list-reserved', which list all reserved words.

*** New compiler option `-conf', which specifies the config file.

*** New compiler option `-ext', which specifies the copy file extension.

*** The compiler option `-O' now does C level optimization.

*** New compiler option `-O2', which does further C level optimization.

*** New compiler option `-L' and `-l', which are passed to the C compiler.

*** New compiler option `-ftrace', which display section names at run time.

*** New compiler option `-fsyntax-only', which does syntax error check
only without any output.

*** New compiler option `-fstatic-call', which is equivalent to `-static'.

*** New compiler option `-fdebugging-line', which enables debugging lines.

*** New compiler option `-fsource-location', which includes source location
in the output.

*** New compiler option `-fline-directive', which includes line directive
in the output.

*** New compiler option `-fruntime-inlining', which is the replacement
of obsolete options `-finline-move' and `-finline-get-int'.

*** New compiler option `-w', which inhibits warnings.

*** New compiler option `-Wredefinition', which warns redefined names.

*** The compiler options `-static' and `-dynamic' are obsolete.

*** The compiler option `-column' removed.

** Many improvement for compatibility.

** Many many bug fixes.

diffstat:

 lang/opencobol/Makefile         |  14 +++--------
 lang/opencobol/PLIST            |   5 +--
 lang/opencobol/distinfo         |  11 +++-----
 lang/opencobol/patches/patch-aa |  22 ------------------
 lang/opencobol/patches/patch-ab |  12 ----------
 lang/opencobol/patches/patch-ad |  49 -----------------------------------------
 6 files changed, 10 insertions(+), 103 deletions(-)

diffs (167 lines):

diff -r eb315de44af0 -r 226f0d5ea619 lang/opencobol/Makefile
--- a/lang/opencobol/Makefile   Sat Jan 06 20:15:26 2007 +0000
+++ b/lang/opencobol/Makefile   Sat Jan 06 20:22:11 2007 +0000
@@ -1,9 +1,8 @@
-# $NetBSD: Makefile,v 1.13 2006/12/11 12:53:02 obache Exp $
+# $NetBSD: Makefile,v 1.14 2007/01/06 20:22:11 rillig Exp $
 #
 
-DISTNAME=              open-cobol-0.23
-PKGNAME=               ${DISTNAME:S/-//}
-PKGREVISION=           4
+DISTNAME=              open-cobol-0.32
+PKGNAME=               opencobol-0.32
 CATEGORIES=            lang
 MASTER_SITES=          ${MASTER_SITE_SOURCEFORGE:=open-cobol/}
 
@@ -15,17 +14,12 @@
 USE_TOOLS+=            msgfmt
 USE_LIBTOOL=           yes
 USE_PKGLOCALEDIR=      yes
-INFO_FILES=            # PLIST
-INSTALL_MAKE_FLAGS=    ${MAKE_FLAGS} sysconfdir=${EGDIR:Q}
+INFO_FILES=            yes
 
 TEST_TARGET=           check
 
 CONFIGURE_ARGS+=       --without-readline
 CONFIGURE_ARGS+=       --with-lfs
-CONFIGURE_ENV+=                NCURSES_LIB=${BUILDLINK_LDADD.ncurses:Q}
-
-EGDIR=                 ${PREFIX}/share/examples/open-cobol
-CONF_FILES=            ${EGDIR}/libconf.conf ${PKG_SYSCONFDIR}/libconf.conf
 
 # XXX: followings can be removed when update to 0.33.
 SUBST_CLASSES+=                fixchkgmp
diff -r eb315de44af0 -r 226f0d5ea619 lang/opencobol/PLIST
--- a/lang/opencobol/PLIST      Sat Jan 06 20:15:26 2007 +0000
+++ b/lang/opencobol/PLIST      Sat Jan 06 20:22:11 2007 +0000
@@ -1,7 +1,8 @@
-@comment $NetBSD: PLIST,v 1.4 2006/04/17 07:07:23 jlam Exp $
+@comment $NetBSD: PLIST,v 1.5 2007/01/06 20:22:11 rillig Exp $
 bin/cob-config
 bin/cobc
 include/libcob.h
+include/libcob/byteswap.h
 include/libcob/call.h
 include/libcob/common.h
 include/libcob/exception.def
@@ -13,7 +14,5 @@
 include/libcob/termio.h
 info/open-cobol.info
 lib/libcob.la
-share/examples/open-cobol/libcob.conf
 share/locale/ja/LC_MESSAGES/open-cobol.mo
-@dirrm share/examples/open-cobol
 @dirrm include/libcob
diff -r eb315de44af0 -r 226f0d5ea619 lang/opencobol/distinfo
--- a/lang/opencobol/distinfo   Sat Jan 06 20:15:26 2007 +0000
+++ b/lang/opencobol/distinfo   Sat Jan 06 20:22:11 2007 +0000
@@ -1,8 +1,5 @@
-$NetBSD: distinfo,v 1.3 2006/04/04 19:21:39 jlam Exp $
+$NetBSD: distinfo,v 1.4 2007/01/06 20:22:11 rillig Exp $
 
-SHA1 (open-cobol-0.23.tar.gz) = 52ce50e80ba62148fbbf622232745f528f33c61d
-RMD160 (open-cobol-0.23.tar.gz) = 72a439ac7ee0caab3b48aa84d4bf109415192160
-Size (open-cobol-0.23.tar.gz) = 658911 bytes
-SHA1 (patch-aa) = 801c5c3ff8ff4dd437322bd1065d8b8c4b72ff31
-SHA1 (patch-ab) = 845d386051dd3f73dca44e5de2e4eb53e280090c
-SHA1 (patch-ad) = 69becd5db1b0b54b713c940467e5d4d1b73a8df4
+SHA1 (open-cobol-0.32.tar.gz) = 9d30d0107b098c4638aa78643d833b9b2946565e
+RMD160 (open-cobol-0.32.tar.gz) = 920efc8f63f5b3f9204934108f16812569d9675c
+Size (open-cobol-0.32.tar.gz) = 768635 bytes
diff -r eb315de44af0 -r 226f0d5ea619 lang/opencobol/patches/patch-aa
--- a/lang/opencobol/patches/patch-aa   Sat Jan 06 20:15:26 2007 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,22 +0,0 @@
-$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 -r eb315de44af0 -r 226f0d5ea619 lang/opencobol/patches/patch-ab
--- a/lang/opencobol/patches/patch-ab   Sat Jan 06 20:15:26 2007 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,12 +0,0 @@
-$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 -r eb315de44af0 -r 226f0d5ea619 lang/opencobol/patches/patch-ad
--- a/lang/opencobol/patches/patch-ad   Sat Jan 06 20:15:26 2007 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,49 +0,0 @@
-$NetBSD: patch-ad,v 1.1 2006/04/04 19:21:39 jlam Exp $
-
---- configure.orig     2003-06-11 16:13:55.000000000 -0400
-+++ configure
-@@ -1932,9 +1932,9 @@ cat >>confdefs.h <<\_ACEOF
- _ACEOF
- 
- 
--COBC_LIBS=""
-+COBC_LIBS="$LDFLAGS"
- COBC_CFLAGS=""
--LIBCOB_LIBS="-lm"
-+LIBCOB_LIBS="$LDFLAGS -lm"
- LIBCOB_CFLAGS=""
- 
- # Configure options.
-@@ -22701,13 +22701,13 @@ fi
- done
- 
- 
--echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
--echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6
-+echo "$as_me:$LINENO: checking for initscr in $NCURSES_LIB" >&5
-+echo $ECHO_N "checking for initscr in $NCURSES_LIB... $ECHO_C" >&6
- if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
-   echo $ECHO_N "(cached) $ECHO_C" >&6
- else
-   ac_check_lib_save_LIBS=$LIBS
--LIBS="-lncurses  $LIBS"
-+LIBS="$NCURSES_LIB  $LIBS"
- cat >conftest.$ac_ext <<_ACEOF
- #line $LINENO "configure"
- /* confdefs.h.  */
-@@ -22760,13 +22760,13 @@ if test $ac_cv_lib_ncurses_initscr = yes
- #define HAVE_LIBNCURSES 1
- _ACEOF
- 
--  LIBS="-lncurses $LIBS"
-+  LIBS="$NCURSES_LIB $LIBS"
- 
- fi
- 
- if test "x$ac_cv_lib_ncurses_initscr" = "xyes"; then
-   USE_NCURSES="yes"
--  LIBCOB_LIBS="$LIBCOB_LIBS -lncurses"
-+  LIBCOB_LIBS="$LIBCOB_LIBS $NCURSES_LIB"
- fi
- 
- # Checks for readline.



Home | Main Index | Thread Index | Old Index