head 1.7; access; symbols pkgsrc-2026Q1:1.7.0.82 pkgsrc-2026Q1-base:1.7 pkgsrc-2025Q4:1.7.0.80 pkgsrc-2025Q4-base:1.7 pkgsrc-2025Q3:1.7.0.78 pkgsrc-2025Q3-base:1.7 pkgsrc-2025Q2:1.7.0.76 pkgsrc-2025Q2-base:1.7 pkgsrc-2025Q1:1.7.0.74 pkgsrc-2025Q1-base:1.7 pkgsrc-2024Q4:1.7.0.72 pkgsrc-2024Q4-base:1.7 pkgsrc-2024Q3:1.7.0.70 pkgsrc-2024Q3-base:1.7 pkgsrc-2024Q2:1.7.0.68 pkgsrc-2024Q2-base:1.7 pkgsrc-2024Q1:1.7.0.66 pkgsrc-2024Q1-base:1.7 pkgsrc-2023Q4:1.7.0.64 pkgsrc-2023Q4-base:1.7 pkgsrc-2023Q3:1.7.0.62 pkgsrc-2023Q3-base:1.7 pkgsrc-2023Q2:1.7.0.60 pkgsrc-2023Q2-base:1.7 pkgsrc-2023Q1:1.7.0.58 pkgsrc-2023Q1-base:1.7 pkgsrc-2022Q4:1.7.0.56 pkgsrc-2022Q4-base:1.7 pkgsrc-2022Q3:1.7.0.54 pkgsrc-2022Q3-base:1.7 pkgsrc-2022Q2:1.7.0.52 pkgsrc-2022Q2-base:1.7 pkgsrc-2022Q1:1.7.0.50 pkgsrc-2022Q1-base:1.7 pkgsrc-2021Q4:1.7.0.48 pkgsrc-2021Q4-base:1.7 pkgsrc-2021Q3:1.7.0.46 pkgsrc-2021Q3-base:1.7 pkgsrc-2021Q2:1.7.0.44 pkgsrc-2021Q2-base:1.7 pkgsrc-2021Q1:1.7.0.42 pkgsrc-2021Q1-base:1.7 pkgsrc-2020Q4:1.7.0.40 pkgsrc-2020Q4-base:1.7 pkgsrc-2020Q3:1.7.0.38 pkgsrc-2020Q3-base:1.7 pkgsrc-2020Q2:1.7.0.34 pkgsrc-2020Q2-base:1.7 pkgsrc-2020Q1:1.7.0.14 pkgsrc-2020Q1-base:1.7 pkgsrc-2019Q4:1.7.0.36 pkgsrc-2019Q4-base:1.7 pkgsrc-2019Q3:1.7.0.32 pkgsrc-2019Q3-base:1.7 pkgsrc-2019Q2:1.7.0.30 pkgsrc-2019Q2-base:1.7 pkgsrc-2019Q1:1.7.0.28 pkgsrc-2019Q1-base:1.7 pkgsrc-2018Q4:1.7.0.26 pkgsrc-2018Q4-base:1.7 pkgsrc-2018Q3:1.7.0.24 pkgsrc-2018Q3-base:1.7 pkgsrc-2018Q2:1.7.0.22 pkgsrc-2018Q2-base:1.7 pkgsrc-2018Q1:1.7.0.20 pkgsrc-2018Q1-base:1.7 pkgsrc-2017Q4:1.7.0.18 pkgsrc-2017Q4-base:1.7 pkgsrc-2017Q3:1.7.0.16 pkgsrc-2017Q3-base:1.7 pkgsrc-2017Q2:1.7.0.12 pkgsrc-2017Q2-base:1.7 pkgsrc-2017Q1:1.7.0.10 pkgsrc-2017Q1-base:1.7 pkgsrc-2016Q4:1.7.0.8 pkgsrc-2016Q4-base:1.7 pkgsrc-2016Q3:1.7.0.6 pkgsrc-2016Q3-base:1.7 pkgsrc-2016Q2:1.7.0.4 pkgsrc-2016Q2-base:1.7 pkgsrc-2016Q1:1.7.0.2 pkgsrc-2016Q1-base:1.7 pkgsrc-2015Q4:1.6.0.12 pkgsrc-2015Q4-base:1.6 pkgsrc-2015Q3:1.6.0.10 pkgsrc-2015Q3-base:1.6 pkgsrc-2015Q2:1.6.0.8 pkgsrc-2015Q2-base:1.6 pkgsrc-2015Q1:1.6.0.6 pkgsrc-2015Q1-base:1.6 pkgsrc-2014Q4:1.6.0.4 pkgsrc-2014Q4-base:1.6 pkgsrc-2014Q3:1.6.0.2 pkgsrc-2014Q3-base:1.6 pkgsrc-2013Q4:1.4.0.46 pkgsrc-2013Q4-base:1.4 pkgsrc-2013Q3:1.4.0.44 pkgsrc-2013Q3-base:1.4 pkgsrc-2013Q2:1.4.0.42 pkgsrc-2013Q2-base:1.4 pkgsrc-2013Q1:1.4.0.40 pkgsrc-2013Q1-base:1.4 pkgsrc-2012Q4:1.4.0.38 pkgsrc-2012Q4-base:1.4 pkgsrc-2012Q3:1.4.0.36 pkgsrc-2012Q3-base:1.4 pkgsrc-2012Q2:1.4.0.34 pkgsrc-2012Q2-base:1.4 pkgsrc-2012Q1:1.4.0.32 pkgsrc-2012Q1-base:1.4 pkgsrc-2011Q4:1.4.0.30 pkgsrc-2011Q4-base:1.4 pkgsrc-2011Q3:1.4.0.28 pkgsrc-2011Q3-base:1.4 pkgsrc-2011Q2:1.4.0.26 pkgsrc-2011Q2-base:1.4 pkgsrc-2011Q1:1.4.0.24 pkgsrc-2011Q1-base:1.4 pkgsrc-2010Q4:1.4.0.22 pkgsrc-2010Q4-base:1.4 pkgsrc-2010Q3:1.4.0.20 pkgsrc-2010Q3-base:1.4 pkgsrc-2010Q2:1.4.0.18 pkgsrc-2010Q2-base:1.4 pkgsrc-2010Q1:1.4.0.16 pkgsrc-2010Q1-base:1.4 pkgsrc-2009Q4:1.4.0.14 pkgsrc-2009Q4-base:1.4 pkgsrc-2009Q3:1.4.0.12 pkgsrc-2009Q3-base:1.4 pkgsrc-2009Q2:1.4.0.10 pkgsrc-2009Q2-base:1.4 pkgsrc-2009Q1:1.4.0.8 pkgsrc-2009Q1-base:1.4 pkgsrc-2008Q4:1.4.0.6 pkgsrc-2008Q4-base:1.4 pkgsrc-2008Q3:1.4.0.4 pkgsrc-2008Q3-base:1.4 cube-native-xorg:1.4.0.2 cube-native-xorg-base:1.4 pkgsrc-2008Q2:1.3.0.34 pkgsrc-2008Q2-base:1.3 cwrapper:1.3.0.32 pkgsrc-2008Q1:1.3.0.30 pkgsrc-2008Q1-base:1.3 pkgsrc-2007Q4:1.3.0.28 pkgsrc-2007Q4-base:1.3 pkgsrc-2007Q3:1.3.0.26 pkgsrc-2007Q3-base:1.3 pkgsrc-2007Q2:1.3.0.24 pkgsrc-2007Q2-base:1.3 pkgsrc-2007Q1:1.3.0.22 pkgsrc-2007Q1-base:1.3 pkgsrc-2006Q4:1.3.0.20 pkgsrc-2006Q4-base:1.3 pkgsrc-2006Q3:1.3.0.18 pkgsrc-2006Q3-base:1.3 pkgsrc-2006Q2:1.3.0.16 pkgsrc-2006Q2-base:1.3 pkgsrc-2006Q1:1.3.0.14 pkgsrc-2006Q1-base:1.3 pkgsrc-2005Q4:1.3.0.12 pkgsrc-2005Q4-base:1.3 pkgsrc-2005Q3:1.3.0.10 pkgsrc-2005Q3-base:1.3 pkgsrc-2005Q2:1.3.0.8 pkgsrc-2005Q2-base:1.3 pkgsrc-2005Q1:1.3.0.6 pkgsrc-2005Q1-base:1.3 pkgsrc-2004Q4:1.3.0.4 pkgsrc-2004Q4-base:1.3 pkgsrc-2004Q3:1.3.0.2 pkgsrc-2004Q3-base:1.3 pkgsrc-2004Q2:1.2.0.14 pkgsrc-2004Q2-base:1.2 pkgsrc-2004Q1:1.2.0.12 pkgsrc-2004Q1-base:1.2 pkgsrc-2003Q4:1.2.0.10 pkgsrc-2003Q4-base:1.2 netbsd-1-6-1:1.2.0.6 netbsd-1-6-1-base:1.2 netbsd-1-6:1.2.0.8 netbsd-1-6-RELEASE-base:1.2 pkgviews:1.2.0.4 pkgviews-base:1.2 buildlink2:1.2.0.2 buildlink2-base:1.2 netbsd-1-5-PATCH003:1.2 netbsd-1-5-PATCH001:1.2 netbsd-1-5-RELEASE:1.1.1.1 netbsd-1-4-PATCH003:1.1.1.1 pkgsrc-base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.7 date 2015.12.29.23.34.56; author dholland; state Exp; branches; next 1.6; commitid J5mAcuIF0darSTOy; 1.6 date 2014.07.06.17.46.12; author jakllsch; state Exp; branches; next 1.5; commitid JOsaoWcp83qWklHx; 1.5 date 2013.12.31.17.08.09; author wiz; state dead; branches; next 1.4; commitid Vb57LsqOW5rN8jjx; 1.4 date 2008.07.14.04.21.39; author dholland; state Exp; branches; next 1.3; 1.3 date 2004.07.10.21.27.46; author wiz; state Exp; branches; next 1.2; 1.2 date 2001.02.06.18.13.52; author wiz; state Exp; branches; next 1.1; 1.1 date 2000.03.11.06.01.56; author wiz; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2000.03.11.06.01.56; author wiz; state Exp; branches; next ; desc @@ 1.7 log @Add patch comments. @ text @$NetBSD: patch-ab,v 1.6 2014/07/06 17:46:12 jakllsch Exp $ Agree on who installs what vs. the pkgsrc makefile. --- Makefile2.m4.orig 2005-12-06 21:10:59.000000000 -0500 +++ Makefile2.m4 2008-07-14 00:02:37.000000000 -0400 @@@@ -537,7 +537,8 @@@@ # generated SNOLIB files (host.sno generated at top level) GENSNOLIB=host.sno -SNOLIB_FILES=snolib/*.sno $(INSTALL_H) doc/load.txt README $(GENSNOLIB) +SNOLIB_FILES=snolib/*.sno $(INSTALL_H) $(GENSNOLIB) +# doc/load.txt README # installed by package makefile VERS=`./pv` install: snobol4 pv @ 1.6 log @restore (broken) lang/snobol package to state before removal @ text @d1 3 a3 1 $NetBSD: patch-ab,v 1.4 2008/07/14 04:21:39 dholland Exp $ @ 1.5 log @Remove packages that were either BROKEN for more than a year or BROKEN and explicitly scheduled to be removed after 2013Q4. @ text @@ 1.4 log @Update lang/snobol to 1.1. Note that the tcl bindings are not (yet) built. Next time... pkgsrc changes not trivial but should be invisible. Changelog: Changes since 1.0 release; ========================= Added new (experimental) builtin function groups: "DBM" -- "ndbm" keyed database access "COM" -- COM/OLE Automation on Win32 "STCL" -- SNOBOL/Tcl interface (optional) New library "dynamic.sno" to help compile/link dynamicly loadable extensions. Added HTTP.POST function to http.sno Handle environments where pointers can have high order bit set Linux 2.6 kernels in Fedora Core, SuSE 10 distributions Avoid broken "install" utilities autoconf compatibility: Honor CC, CFLAGS, CPPFLAGS, LDFLAGS, DESTDIR environment variables. Fix compilation on pre-panther OSX Fix second argument to DEFINE(): was not case folded! Fix backtracking over unevaluated expressions Source &FILE and &LINE shown in TRACE output Experimental: GC stats & tracing (-g on command line, >RACE keyword) Completed support for "memory I/O" when CSNOBOL4 used as a library! Added "PREDICATE" and "SYSPRED" return types in wrapper.sno Changes since 0.99.44 release; ============================= Added snolib(3) man page for SNOBOL4 library routines Treat all bytes with 8th bit set as ALPHA on ASCII systems allows UTF-8 encoded characters, and national character sets to used in labels and identifiers! command line: -S option to enlarge interpreter stack configure: added --mandir & --bindir IPv6 Support (both client and server) bi-directional "pipe" I/O on systems with sockets "privileged" port binding for UDP Lots of cleanup! DJGPP (DOS gcc) fixes default to -O3 with gcc add C prototypes for all functions (function declarations still "K&R" style) MINGW (Win32 gcc) fixes Fix LOAD() on Darwin (MacOS X) Fix timing script on Debian Ported to HP-UX/IA64 VMS: LOAD() support (not tested) Compilation on VMS7.3 support magic pathnames "/dev/null" and "/dev/tty" Win32: native (low overhead) support for character console I/O support magic pathnames "/dev/null" and "/dev/tty" fixed UDP I/O Fix for parallel make (GNU make, BSD make) Compilation under MS Visual Studio .NET 2003 Make struct descr packable (BITFIELDS_SAME_TYPE) Check for oversize integer constants (ERANGE from strtol()) Changes since 0.99.4 release; ============================ Command line: -d (dynamic region size) and -M (pattern match stack size) now take values in descriptors -v shows CSNOBOL4 version Increased default dynamic space to 64K descriptors Fix faulty lexical comparison function optimzations for null string Performance improvments; New string hash function (reduced both compilation and run time of genc.sno by 5%) Optimized most common case (CONTIN actions) in "stream" operation used for lexical analysis. (reduced compilation time of genc.sno by 8%) Merged all scanner (pattern matching) functions into single C function (eliminates mutual recursion, stack overflows) genc runtime reduced 15% atn.sno runtime reduced by 63%!! (2.7x faster) worst case (4096 char string) reduced 69% (4.8x faster) snocone self-compile runtime reduced 5% Made pattern building functions (lib/pat.c) inlinable (8% reduction in genc.sno compile time) Eliminate space padding on lines read by compiler (reduced genc.sno compile time by 65%) Raised default C compiler optimization levels Default &MAXLNGTH to largest possible string Documentation: README file describes available includes Include PDF of manual page Implement fatal "Output error" for output, ENDFILE() errors Configuration script re-write; Eliminate static config files & autoconf script configure generates config.m4 and config.h (with all defines) for use by loadable functions New configuration options; **** see "INSTALL" file for more information **** --add-define= Add a #define to config.h (visible to external functions) --double EXPERIMENTAL option to use C "double" for SNOBOL4 REAL data type --fast Architecture specific optimizations on native compilers --longlong EXPERIMENTAL!! try to use C "long long" (64-bit integer) for INTEGER datatype when longs/pointers are only 32-bits (ILP32 data model). --lp64 Request use of 64-bit long/pointer data model if available on this architecture, and not the default. --no-opt Compile without optimization New SNOBOL library files (see README); compatibility libraries: fence.sno, logic.sno, not.sno spitbol.sno, snobol4+.sno HOST() function codes: host.sno URL (http:, ftp:, file:) access functions Use large files (64-bit offsets) where available. Allows access and creation of files larger than 2GB New functions; FUNCTION() -- predicate to test if a function is defined ** EXPERIMENTAL ** LABEL() -- predicate to test if a label is defined idea from Steve Duff's version of Macro SPITBOL ORD() -- inverse of CHAR() SERV_LISTEN() -- act as TCP server SSET() -- scaled SET() allow large files when INTEGER is 32bits VDIFFER() -- returns first arg if two arguments DIFFER() idea from Steve Duff's version of Macro SPITBOL Extended HOST() functions (see host.sno) for system diagnosis HOST() function will accept REAL or integer encoded STRING args TIME() function now returns REAL datatype allows both better resolution (for small values) and larger range. Using 32-bit floats, runtimes larger than four and a half hours will lose resolution. Statistics reports compiler and execution times as REAL numbers Average statement runtime reported in microseconds (us). Allow a REAL any place an INTEGER is required (from SNOBOL4+) Contexts include TABLE(), ITEM(), array indices, INPUT(), OUTPUT(), SET(), keyword values, CHAR(), RPAD(), LPAD(), FIELD(), COLLECT(), DUMP(), DUPL(), OPSYN(), and SUBSTR() load.h updates; all RETxxx macros safe in any context RETSTR() takes single argument, allows NULL pointer RETSTR2() has old RETSTR() functionality RETINT() and RETREAL() always set return data type. All include files needed to build loadable functions installed in SNOLIB directory Include BSD tsort program; allow builds from scratch on platforms with GNU tsort (Linux, Cygwin) New ports; Ported to Darwin (MacOS X) Ported to Cygwin (http://cygwin.com), a free Unix emulation environment for Windows. Attempt at native Win32 port Updated Borland C port Updated VMS port; pipe open support, attempt at tty support @ text @d1 1 a1 1 $NetBSD$ @ 1.3 log @Remove "./" in front of files to patch. @ text @d1 1 a1 1 $NetBSD: patch-ab,v 1.2 2001/02/06 18:13:52 wiz Exp $ d3 5 a7 5 --- lib/bsd/mstime.c.orig Wed Oct 30 12:39:40 1996 +++ lib/bsd/mstime.c Thu Jan 25 07:08:41 2001 @@@@ -12,11 +12,56 @@@@ * (and you don't need to know HZ) */ d9 3 a11 31 +/* Added by refling@@comet.lbl.gov to compensate for the fact that the usec + value can go backwards within the same sec on NetBSD. Problem has been + noted on sparc and i386. It really only appears in the test routine + where times are differenced, causing negative numbers to be generated. + This WILL cause the build to fail consistently on my sparc LX, but not + on the i386, even though the problem can be demonstrated there. See + NetBSD PR bin/10201. + + The simple solution here is to have a persistent variable, and if the + usec value returned from getrusage() is LESS than the previous one + (stored in the persistent variable), use the previous one. This is + only when the second counter is the same between the previous and + current usec. This will make time stand still, but at least it + won't go backwards! + + This could also be added to the definition of the NetBSD getrusage() + function to prevent it from returning bogus values in the first place, + if the real cause of the problem can't be tracked down. + + Note that the patch to snobol4 (in this file) will not need to be + changed even if/when getrusage() is ultimately fixed. The only expense + is a few extra numerical comparisons. Typically, one doesn't take time + measurements too often. */ + +static long prev_sec = 0; +static long prev_usec = 0; + int_t mstime() { struct rusage ru; + long cur_usec, cur_sec; d13 2 a14 23 getrusage( RUSAGE_SELF, &ru ); /* XXX check return? */ - return(ru.ru_utime.tv_sec * 1000 + - ru.ru_utime.tv_usec / 1000); + cur_usec = ru.ru_utime.tv_usec; + cur_sec = ru.ru_utime.tv_sec; + if (prev_usec > cur_usec && prev_sec == cur_sec) { + cur_usec = prev_usec; +// prev_sec = cur_sec; /* this is redundant in this case, since == */ +// prev_usec = cur_usec; /* this is also redundant */ +// system("echo a >> /tmp/caught_problem"); + } + else { + prev_sec = cur_sec; + prev_usec = cur_usec; + } + return(cur_sec * 1000 + + cur_usec / 1000); + +// this is what it was.... +// getrusage( RUSAGE_SELF, &ru ); /* XXX check return? */ +// return(ru.ru_utime.tv_sec * 1000 + +// ru.ru_utime.tv_usec / 1000); } @ 1.2 log @Update the package to 0.99.4nb1. All changes by John Refling. Closes pkg/10535. Changes are: o Bypassed the hard-to-reproduce build failure caused by getrusage() returning decreasing microsecond times. Did this by wrapping the getrusage() function so that it never returns a smaller value for microseconds than the previous time it was called, if called within the same second. Perhaps this should be done to getrusage() internally, until fixed the proper way. See PR bin/10201. --- refling. o Added a tutorial and a message about it. --- refling. @ text @d1 1 a1 1 $NetBSD: patch-ab 2001/01/25 07:35:51 root Exp $ d3 2 a4 2 --- ./lib/bsd/mstime.c.orig Wed Oct 30 12:39:40 1996 +++ ./lib/bsd/mstime.c Thu Jan 25 07:08:41 2001 @ 1.1 log @Initial revision @ text @d1 1 a1 1 $NetBSD$ d3 5 a7 4 --- ./Makefile2.m4.orig Thu Aug 7 07:34:47 1997 +++ ./Makefile2.m4 Sat Mar 11 04:24:21 2000 @@@@ -48,13 +48,13 @@@@ SNOLIB_FILE=snolib.a d9 31 a39 3 # directory name for default SNOLIB (used by -INCLUDE and LOAD()) -SNOLIB_DIR=/usr/local/lib/snobol4 +SNOLIB_DIR=${PREFIX}/lib/snobol4 d41 23 a63 10 # default name for installed binary -BINDEST=/usr/local/bin/snobol4 +BINDEST=${PREFIX}/bin/snobol4 # default name for installed man page -MANDEST=/usr/local/man/man1/snobol4.1 +MANDEST=${PREFIX}/man/man1/snobol4.1 ######## # default lib source files @ 1.1.1.1 log @Initial import of the original SIL (SNOBOL4 Implementation Language) "macro" version of SNOBOL4 (developed at Bell Labs) with the `C' language as a target. Requested in pkg/9074. @ text @@