head 1.6; access; symbols pkgsrc-2026Q1:1.6.0.82 pkgsrc-2026Q1-base:1.6 pkgsrc-2025Q4:1.6.0.80 pkgsrc-2025Q4-base:1.6 pkgsrc-2025Q3:1.6.0.78 pkgsrc-2025Q3-base:1.6 pkgsrc-2025Q2:1.6.0.76 pkgsrc-2025Q2-base:1.6 pkgsrc-2025Q1:1.6.0.74 pkgsrc-2025Q1-base:1.6 pkgsrc-2024Q4:1.6.0.72 pkgsrc-2024Q4-base:1.6 pkgsrc-2024Q3:1.6.0.70 pkgsrc-2024Q3-base:1.6 pkgsrc-2024Q2:1.6.0.68 pkgsrc-2024Q2-base:1.6 pkgsrc-2024Q1:1.6.0.66 pkgsrc-2024Q1-base:1.6 pkgsrc-2023Q4:1.6.0.64 pkgsrc-2023Q4-base:1.6 pkgsrc-2023Q3:1.6.0.62 pkgsrc-2023Q3-base:1.6 pkgsrc-2023Q2:1.6.0.60 pkgsrc-2023Q2-base:1.6 pkgsrc-2023Q1:1.6.0.58 pkgsrc-2023Q1-base:1.6 pkgsrc-2022Q4:1.6.0.56 pkgsrc-2022Q4-base:1.6 pkgsrc-2022Q3:1.6.0.54 pkgsrc-2022Q3-base:1.6 pkgsrc-2022Q2:1.6.0.52 pkgsrc-2022Q2-base:1.6 pkgsrc-2022Q1:1.6.0.50 pkgsrc-2022Q1-base:1.6 pkgsrc-2021Q4:1.6.0.48 pkgsrc-2021Q4-base:1.6 pkgsrc-2021Q3:1.6.0.46 pkgsrc-2021Q3-base:1.6 pkgsrc-2021Q2:1.6.0.44 pkgsrc-2021Q2-base:1.6 pkgsrc-2021Q1:1.6.0.42 pkgsrc-2021Q1-base:1.6 pkgsrc-2020Q4:1.6.0.40 pkgsrc-2020Q4-base:1.6 pkgsrc-2020Q3:1.6.0.38 pkgsrc-2020Q3-base:1.6 pkgsrc-2020Q2:1.6.0.34 pkgsrc-2020Q2-base:1.6 pkgsrc-2020Q1:1.6.0.14 pkgsrc-2020Q1-base:1.6 pkgsrc-2019Q4:1.6.0.36 pkgsrc-2019Q4-base:1.6 pkgsrc-2019Q3:1.6.0.32 pkgsrc-2019Q3-base:1.6 pkgsrc-2019Q2:1.6.0.30 pkgsrc-2019Q2-base:1.6 pkgsrc-2019Q1:1.6.0.28 pkgsrc-2019Q1-base:1.6 pkgsrc-2018Q4:1.6.0.26 pkgsrc-2018Q4-base:1.6 pkgsrc-2018Q3:1.6.0.24 pkgsrc-2018Q3-base:1.6 pkgsrc-2018Q2:1.6.0.22 pkgsrc-2018Q2-base:1.6 pkgsrc-2018Q1:1.6.0.20 pkgsrc-2018Q1-base:1.6 pkgsrc-2017Q4:1.6.0.18 pkgsrc-2017Q4-base:1.6 pkgsrc-2017Q3:1.6.0.16 pkgsrc-2017Q3-base:1.6 pkgsrc-2017Q2:1.6.0.12 pkgsrc-2017Q2-base:1.6 pkgsrc-2017Q1:1.6.0.10 pkgsrc-2017Q1-base:1.6 pkgsrc-2016Q4:1.6.0.8 pkgsrc-2016Q4-base:1.6 pkgsrc-2016Q3:1.6.0.6 pkgsrc-2016Q3-base:1.6 pkgsrc-2016Q2:1.6.0.4 pkgsrc-2016Q2-base:1.6 pkgsrc-2016Q1:1.6.0.2 pkgsrc-2016Q1-base:1.6 pkgsrc-2015Q4:1.5.0.32 pkgsrc-2015Q4-base:1.5 pkgsrc-2015Q3:1.5.0.30 pkgsrc-2015Q3-base:1.5 pkgsrc-2015Q2:1.5.0.28 pkgsrc-2015Q2-base:1.5 pkgsrc-2015Q1:1.5.0.26 pkgsrc-2015Q1-base:1.5 pkgsrc-2014Q4:1.5.0.24 pkgsrc-2014Q4-base:1.5 pkgsrc-2014Q3:1.5.0.22 pkgsrc-2014Q3-base:1.5 pkgsrc-2014Q2:1.5.0.20 pkgsrc-2014Q2-base:1.5 pkgsrc-2014Q1:1.5.0.18 pkgsrc-2014Q1-base:1.5 pkgsrc-2013Q4:1.5.0.16 pkgsrc-2013Q4-base:1.5 pkgsrc-2013Q3:1.5.0.14 pkgsrc-2013Q3-base:1.5 pkgsrc-2013Q2:1.5.0.12 pkgsrc-2013Q2-base:1.5 pkgsrc-2013Q1:1.5.0.10 pkgsrc-2013Q1-base:1.5 pkgsrc-2012Q4:1.5.0.8 pkgsrc-2012Q4-base:1.5 pkgsrc-2012Q3:1.5.0.6 pkgsrc-2012Q3-base:1.5 pkgsrc-2012Q2:1.5.0.4 pkgsrc-2012Q2-base:1.5 pkgsrc-2012Q1:1.5.0.2 pkgsrc-2012Q1-base:1.5 pkgsrc-2011Q4:1.4.0.14 pkgsrc-2011Q4-base:1.4 pkgsrc-2011Q3:1.4.0.12 pkgsrc-2011Q3-base:1.4 pkgsrc-2011Q2:1.4.0.10 pkgsrc-2011Q2-base:1.4 pkgsrc-2011Q1:1.4.0.8 pkgsrc-2011Q1-base:1.4 pkgsrc-2010Q4:1.4.0.6 pkgsrc-2010Q4-base:1.4 pkgsrc-2010Q3:1.4.0.4 pkgsrc-2010Q3-base:1.4 pkgsrc-2010Q2:1.4.0.2 pkgsrc-2010Q2-base:1.4 pkgsrc-2010Q1:1.3.0.30 pkgsrc-2010Q1-base:1.3 pkgsrc-2009Q4:1.3.0.28 pkgsrc-2009Q4-base:1.3 pkgsrc-2009Q3:1.3.0.26 pkgsrc-2009Q3-base:1.3 pkgsrc-2009Q2:1.3.0.24 pkgsrc-2009Q2-base:1.3 pkgsrc-2009Q1:1.3.0.22 pkgsrc-2009Q1-base:1.3 pkgsrc-2008Q4:1.3.0.20 pkgsrc-2008Q4-base:1.3 pkgsrc-2008Q3:1.3.0.18 pkgsrc-2008Q3-base:1.3 cube-native-xorg:1.3.0.16 cube-native-xorg-base:1.3 pkgsrc-2008Q2:1.3.0.14 pkgsrc-2008Q2-base:1.3 cwrapper:1.3.0.12 pkgsrc-2008Q1:1.3.0.10 pkgsrc-2008Q1-base:1.3 pkgsrc-2007Q4:1.3.0.8 pkgsrc-2007Q4-base:1.3 pkgsrc-2007Q3:1.3.0.6 pkgsrc-2007Q3-base:1.3 pkgsrc-2007Q2:1.3.0.4 pkgsrc-2007Q2-base:1.3 pkgsrc-2007Q1:1.3.0.2 pkgsrc-2007Q1-base:1.3 pkgsrc-2006Q4:1.1.1.1.0.20 pkgsrc-2006Q4-base:1.1.1.1 pkgsrc-2006Q3:1.1.1.1.0.18 pkgsrc-2006Q3-base:1.1.1.1 pkgsrc-2006Q2:1.1.1.1.0.16 pkgsrc-2006Q2-base:1.1.1.1 pkgsrc-2006Q1:1.1.1.1.0.14 pkgsrc-2006Q1-base:1.1.1.1 pkgsrc-2005Q4:1.1.1.1.0.12 pkgsrc-2005Q4-base:1.1.1.1 pkgsrc-2005Q3:1.1.1.1.0.10 pkgsrc-2005Q3-base:1.1.1.1 pkgsrc-2005Q2:1.1.1.1.0.8 pkgsrc-2005Q2-base:1.1.1.1 pkgsrc-2005Q1:1.1.1.1.0.6 pkgsrc-2005Q1-base:1.1.1.1 pkgsrc-2004Q4:1.1.1.1.0.4 pkgsrc-2004Q4-base:1.1.1.1 pkgsrc-2004Q3:1.1.1.1.0.2 pkgsrc-2004Q3-base:1.1.1.1 pkgsrc-base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.6 date 2015.12.29.23.34.53; author dholland; state Exp; branches; next 1.5; commitid J5mAcuIF0darSTOy; 1.5 date 2012.03.23.23.19.37; author hans; state Exp; branches; next 1.4; 1.4 date 2010.06.02.12.38.29; author adam; state Exp; branches; next 1.3; 1.3 date 2007.01.06.20.45.45; author rillig; state Exp; branches; next 1.2; 1.2 date 2007.01.06.20.22.11; author rillig; state dead; branches; next 1.1; 1.1 date 2004.06.29.02.57.36; author xtraeme; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2004.06.29.02.57.36; author xtraeme; state Exp; branches; next ; desc @@ 1.6 log @Add patch comments. @ text @$NetBSD: patch-aa,v 1.5 2012/03/23 23:19:37 hans Exp $ Detect libdb versions the way pkgsrc ships them. --- configure.orig 2012-03-23 22:06:12.000000000 +0000 +++ configure @@@@ -24810,7 +24810,7 @@@@ echo "$as_me: error: Include file db.h i -for ac_header in db.h db_185.h db3/db_185.h db4/db_185.h db4.1/db_185.h db4.2/db_185.h db4.3/db_185.h db4.4/db_185.h db4.5/db_185.h +for ac_header in db.h db_185.h db3/db_185.h db4/db_185.h db5/db_185.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if eval "test \"\${$as_ac_Header+set}\" = set"; then @@@@ -26532,7 +26532,7 @@@@ then COB_CFLAGS="$COB_CFLAGS $CPPFLAGS" fi -COB_LIBS="-L$libdir -lcob ${LIBCOB_LIBS}" +COB_LIBS="-L$libdir -Wl,-R$libdir -lcob ${LIBCOB_LIBS}" COB_LDFLAGS="" if test "x$LDFLAGS" != "x" then @ 1.5 log @Update opencobol to version 1.1, from Robert Doerfler (rodo@@bloerp.de). @ text @d1 3 a3 1 $NetBSD$ @ 1.4 log @Changes 1.0: * New compile option '-x'. This causes the compiler to produce an executable program. '-fmain' is deprecated. * Remove long option --verbose. Use '-v' for verbosity. Problem is with getopt_long_only which does not like eg. -mv * New conformity option -std=bs2000. * FUNCTION is implemented. See cobc/reserved.c for a list of what is implemented. * Nested programs are partially supported. * LINAGE is implemented. * EXTERNAL on FD is implemented. * SAME RECORD AREA is implemented. * New config variables - * Support for non-gcc compilers. * Large file support, system dynamic loading and Berkeley DB inclusion are default for the configure. * New configure option --with-patch-level= * At run time, version checking is done. ie. When executing/loading Cobol programs, the version (eg. 0.33) and the patch level (eg. 0) are checked against the OC library version/patch level. * Libtool is not required for systems that support native dynamic loading. This includes Linux, Cygwin and MingW amongst others. * Note to developers : See README for required software versions. @ text @d3 1 a3 1 --- configure.orig 2007-12-27 10:57:51.000000000 +0000 d5 1 a5 1 @@@@ -24347,7 +24347,7 @@@@ echo "$as_me: error: Include file db.h i d14 1 a14 1 @@@@ -26067,7 +26067,7 @@@@ then @ 1.3 log @After a first test, it was obvious that the compiler needs the -Wl,-R flag to find libcob when linking programs. @ text @d3 13 a15 6 All generated programs must be linked with this flag to find libcob. --- configure.orig 2005-05-03 11:31:14.000000000 +0200 +++ configure 2007-01-06 21:41:08.000000000 +0100 @@@@ -25089,7 +25089,7 @@@@ else COB_CFLAGS="-I$includedir" d20 3 a22 3 COB_CONFIG_DIR="$datadir/$PACKAGE_TARNAME/config" COB_LIBRARY_PATH=".:$libdir/$PACKAGE_TARNAME" COB_MODULE_EXT=`echo "$shlibext" | sed 's/dll\.a/dll/'` @ 1.2 log @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 [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. @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.1 2004/06/29 02:57:36 xtraeme Exp $ d3 7 a9 18 --- 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; } d11 5 a15 1 memcpy (f->record->data, buff, f->record->size); @ 1.1 log @Initial revision @ text @d1 1 a1 1 $NetBSD$ @ 1.1.1.1 log @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. @ text @@