head 1.8; access; symbols pkgsrc-2014Q2:1.7.0.2 pkgsrc-2014Q2-base:1.7 pkgsrc-2014Q1:1.6.0.6 pkgsrc-2014Q1-base:1.6 pkgsrc-2013Q4:1.6.0.4 pkgsrc-2013Q4-base:1.6 pkgsrc-2013Q3:1.6.0.2 pkgsrc-2013Q3-base:1.6 pkgsrc-2013Q2:1.5.0.14 pkgsrc-2013Q2-base:1.5 pkgsrc-2013Q1:1.5.0.12 pkgsrc-2013Q1-base:1.5 pkgsrc-2012Q4:1.5.0.10 pkgsrc-2012Q4-base:1.5 pkgsrc-2012Q3:1.5.0.8 pkgsrc-2012Q3-base:1.5 pkgsrc-2012Q2:1.5.0.6 pkgsrc-2012Q2-base:1.5 pkgsrc-2012Q1:1.5.0.4 pkgsrc-2012Q1-base:1.5 pkgsrc-2011Q4:1.5.0.2 pkgsrc-2011Q4-base:1.5 pkgsrc-2011Q3:1.4.0.48 pkgsrc-2011Q3-base:1.4 pkgsrc-2011Q2:1.4.0.46 pkgsrc-2011Q2-base:1.4 pkgsrc-2011Q1:1.4.0.44 pkgsrc-2011Q1-base:1.4 pkgsrc-2010Q4:1.4.0.42 pkgsrc-2010Q4-base:1.4 pkgsrc-2010Q3:1.4.0.40 pkgsrc-2010Q3-base:1.4 pkgsrc-2010Q2:1.4.0.38 pkgsrc-2010Q2-base:1.4 pkgsrc-2010Q1:1.4.0.36 pkgsrc-2010Q1-base:1.4 pkgsrc-2009Q4:1.4.0.34 pkgsrc-2009Q4-base:1.4 pkgsrc-2009Q3:1.4.0.32 pkgsrc-2009Q3-base:1.4 pkgsrc-2009Q2:1.4.0.30 pkgsrc-2009Q2-base:1.4 pkgsrc-2009Q1:1.4.0.28 pkgsrc-2009Q1-base:1.4 pkgsrc-2008Q4:1.4.0.26 pkgsrc-2008Q4-base:1.4 pkgsrc-2008Q3:1.4.0.24 pkgsrc-2008Q3-base:1.4 cube-native-xorg:1.4.0.22 cube-native-xorg-base:1.4 pkgsrc-2008Q2:1.4.0.20 pkgsrc-2008Q2-base:1.4 cwrapper:1.4.0.18 pkgsrc-2008Q1:1.4.0.16 pkgsrc-2008Q1-base:1.4 pkgsrc-2007Q4:1.4.0.14 pkgsrc-2007Q4-base:1.4 pkgsrc-2007Q3:1.4.0.12 pkgsrc-2007Q3-base:1.4 pkgsrc-2007Q2:1.4.0.10 pkgsrc-2007Q2-base:1.4 pkgsrc-2007Q1:1.4.0.8 pkgsrc-2007Q1-base:1.4 pkgsrc-2006Q4:1.4.0.6 pkgsrc-2006Q4-base:1.4 pkgsrc-2006Q3:1.4.0.4 pkgsrc-2006Q3-base:1.4 pkgsrc-2006Q2:1.4.0.2 pkgsrc-2006Q2-base:1.4 pkgsrc-2006Q1:1.2.0.8 pkgsrc-2006Q1-base:1.2 pkgsrc-2005Q4:1.2.0.6 pkgsrc-2005Q4-base:1.2 pkgsrc-2005Q3:1.2.0.4 pkgsrc-2005Q3-base:1.2 pkgsrc-2005Q2:1.2.0.2 pkgsrc-2005Q2-base:1.2 pkgsrc-2005Q1:1.1.1.1.0.8 pkgsrc-2005Q1-base:1.1.1.1 pkgsrc-2004Q4:1.1.1.1.0.6 pkgsrc-2004Q4-base:1.1.1.1 pkgsrc-2004Q3:1.1.1.1.0.4 pkgsrc-2004Q3-base:1.1.1.1 pkgsrc-2004Q2:1.1.1.1.0.2 pkgsrc-2004Q2-base:1.1.1.1 pkgsrc-base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.8 date 2014.07.29.15.24.06; author wiz; state dead; branches; next 1.7; commitid 3FFebWxiUcPAOhKx; 1.7 date 2014.03.31.14.42.20; author fhajny; state Exp; branches; next 1.6; commitid 00Sppth0Yim6rRux; 1.6 date 2013.09.14.09.14.08; author fhajny; state Exp; branches; next 1.5; commitid Vwqeb4sH1wbjZn5x; 1.5 date 2011.10.28.11.23.22; author fhajny; state Exp; branches; next 1.4; 1.4 date 2006.04.19.17.20.59; author joerg; state Exp; branches; next 1.3; 1.3 date 2006.04.11.12.59.33; author joerg; state Exp; branches; next 1.2; 1.2 date 2005.05.24.13.03.55; author rillig; state dead; branches; next 1.1; 1.1 date 2004.04.15.10.32.33; author grant; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2004.04.15.10.32.33; author grant; state Exp; branches; next ; desc @@ 1.8 log @Remove patch-aa, removed from distinfo during 0.47 update. @ text @$NetBSD: patch-aa,v 1.7 2014/03/31 14:42:20 fhajny Exp $ Link when linking. --- configure.orig 2014-03-25 04:06:31.000000000 +0000 +++ configure @@@@ -25060,7 +25060,7 @@@@ mlockall(0); return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_link "$LINENO"; then : $as_echo "#define RUDIMENTS_HAVE_MLOCKALL 1" >>confdefs.h { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 @@@@ -25150,7 +25150,7 @@@@ munlockall(); return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_link "$LINENO"; then : $as_echo "#define RUDIMENTS_HAVE_MUNLOCKALL 1" >>confdefs.h { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 @ 1.7 log @Update rudiments to 0.46. Changelog: 0.46 - updated filedestination::open to take a permissions parameter - added deployment projects for windows - tweaked make.batch install target to install 32-bit files under C:\Program Files (x86) - wrapped waitpid() in process class - added #define _WINSOCKAPI_ before windows.h includes to prevent redefintion of winsock defs later - fixed O_RDONLY detection on windows in file::openInternal - fixed shared memory segment sizing error on windows - fixed O_CREAT without O_EXCL bug on windows - fixed backwards loaddependencies flag in dynamiclib for windows - added file::eightDotThree - added charstring::stripSet and updated charstring::strip to return true/false if stripping occurred or not - removed stubs for unimplemented classes 0.45 - got the directory class working on windows - got the semaphoreset class working on windows - implemented passwd/groupentry::getSid and an internal id-name-sid map for windows - removed meaningless groupentry::getPassword - improved filesystem class implementation for Windows significantly - added a test for the memorymap class - got the memorymap class implementation working on Windows - got the sharedmemory class working on windows - added support for microseconds to the datetime class - build-tweaks for mingw32 - added process::spawn that maps more cleanly on windows than fork/exec - added thread class - added send/receiveSocket methods to filedescriptor class for systems like Windows that distinguish between sockets and other file descriptors - improved file class implementation for Windows - fixed a bug that caused all connect-with-timeout calls to fail - fixed a bug that caused permissions::setFilePermissions to fail on directories 0.44.1 - configure scripts attempts link for various _r functions now to catch cases where they're defined in the headers but not present in the library - tweaks for dlopen/dlsym on linux libc5 - reordered netinet/in.h and netinet/tcp.h includes for linux libc5 - configure script tweaks for OSR500 - extern "C" wrapper around sys/times.h for OSR500 - added xmldomnode::append/insertTag methods 0.44 - fixed inet_aton test to attempt link, not just compile - fixed vsnprintf test to work on arm linux - filedescriptor::printf now uses vdprintf, if available, if writes are not being buffered, and vasprintf, if available, if writes are being buffered - fixed a memory leak in filedescriptor::printf - added multiarch detection - applied Simon Martin's getenv-related patch to reset errno and allow getenv to return NULL - fixed a situation where an infinte loop could occur if getenv returned NULL and the most recent error from another system call was EINTR - added missing print() for const char *'s in linkedlistutils - tweaks for OSR505 - a few xmlsax optimization fixes - renamed *Data methods to *Value in linkedlist and dictionary classes - removed print methods and unlikely-to-be-used static methods from *entry classes - refactored the static convenience methods of the *entry classes - refactored xattr code a little to make it smaller - removed static methods from filesystem class to make it smaller - removed some static methods from file class to make it smaller - removed the clientserverfactory class - slight refactoring of linkedlist and dictionary classes - various process class fixes for Windows 0.43 - added a workaround for platforms that don't support blocking/non-blocking modes for sockets - added *printf wrappers to charstring, filedescriptor and stringbuffer classes - added test/include for sys/signal.h for platforms that need it - added support for uadmin with int vs. char 3rd argument - added snooze and retry if fork fails with EAGAIN - moved safePrint and printBits methods into the filedescriptor class - added a test and handling for fsetxattr with non-const third parameter - "hid openssl" by abstracting SSL types and moving includes into .cpp files - fixed erroneous end-of-buffer address when creating a variablebufferis with initial contents - added option to disable string cache in xmldom class - added "data" member to xmldomnode class for attaching app-specific data - improved codetree speed - fixed a "char" on ARM issue - fixed a longstanding issue where variablebuffers could get extended too much sometimes - renamed system class to sys to avoid collisions - added -Werror to configure-time tests for older systems where g++ doesn't return an error for an implicitly defined function - removed the rudiments namespace for compatibility with older compilers - replaced a bunch of unsigned long and long with [u]int(32|64)_t - removed the timezonefile class - renamed mutex class to threadmutex to avoid collisions - wrapped setsid() function - refactored and simplified dictionary and linkedlist classes - if thread detection fails it just disables threads now rather than erroring out - thread support is displayed in configure summary - refactored xmldomnnode::print() methods, added one to write to a filedescriptor - renamed memorypool methods malloc, calloc and free to allocate, allocateAndClear and deallocate to avoid collisions on platforms that define malloc and calloc using macros - fixed lots of cases where const char *'s were being deleted - renamed *serversocket to *socketserver - renamed *clientsocket to *socketclient - added 64-bit build support for Windows - refactored daemonprocess class and moved its methods into the process class @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.6 2013/09/14 09:14:08 fhajny Exp $ @ 1.6 log @Update rudiments to 0.42. Changes ------------------------- 0.42 - made a "char" array in the charstring classh explicitly "signed char" for arm and similar platforms where "char" is actually "unsigned char" fixed variadic macros in codetree class for MSVC fixed rpm->rpmbuild in installation docs 0.41 - fixed a few bugs in the codetree class and improved its debug added comments to codetree class header added new search paths and default prefix for syllable initialized an uninitialized variable in clientsocket added support for syllable os 0.40 - fixed -pthread annoyance added -Werror to default build fixed various issues revealed by -Werror fixed hostentry::getAddressString() for numbers greater than 127 fixed bugs that could lead to a crash when using the hostentry class with NULL hostnames reads that error out with EAGAIN are treated as successful reads of 0 bytes now all sockets are manually set to blocking mode after creation now sockets created by accept() are set to the blocking/non-blocking mode of the socket that was accepted on fixed charstring::safeCopy to copy the NULL terminator made charstring::copy NULL-safe refactored windows make.bat script made crypt class salt NULL-safe 0.39 - filedescriptor::getPeerAddress returns NULL now for non-inet sockets added charstring::safeCopy methods made regularexpression::getSubstring* methods return const char *'s fixed a bug where xmldomnode::deleteAttribute() on a non-existent attribute name would crash added xmldomnode::getTree and xmldomnode::print methods added codetree class fixed a longstanding memory leak in dictionary::clear() 0.38 - included some contributed updates to chat, charstring and modemclient added several more wrappers to system class refactored configure/make for non-gnu make compatibility upated passFileDescriptor to dynamically allocate the control buffer for OS X 10.7 whos CMSG_LEN ultimately calls a function updated msvc build to create Release code rather than Debug by default added posix analogs (rewind, skip and read) to directory class updated filedescriptor debug so debugging of the buffering can be enabled/disabled integrated patches from Neowiz for: using -g3 if available when --enable-debug is specified testing the result of getaddrinfo for any non-zero result when checking for EINTR, not just EAI_SYSTEM, and also to reset errno between tries clientsocket to use WSAConnect and friends on windows disabling code that uses AF_UNIX sockets outright for windows inetserversocket::listen() to reuse addresses added process::exitImmediately updated error::getErrorString() to be thread safe when it uses strerror_r or strerror_s internally fixed charstring::isInteger/isNumber to return false when the string passed in is either - or . without any actual number changed longs in snooze class to uint32_t's 0.37 - updated logger to exclude : if header isn't supplied updated logger not to print double-returns after each log message added file::createPipe() fixed net-to-host and host-to-net byte order conversions for 64-bit integers on windows fixed charstring::copy that I'd broken in 0.36 fixed missing [] in a delete in filedescriptor::read() with terminator that could cause leaks and corruption fixed a leak in filedescriptor::read() with terminator that could occur when it fell through with an error, timeout or 0-byte read applied Georgiy Kirichenko's fix to the safePoll call in filedescriptor::readFileDescriptor() - swapped true/false arguments so it would wait using POLLIN added xmldomnode::getPosition() fixed display of seconds from datetime::getString() fixed optimum buffer size calculation in xmlsax fixed several dlclose()-related bugs 0.36 - various fixes for SCO and Ultrix renamed some methods to avoid collisions with macros modified methods that take or return internal structures to take or return void pointers instead added charstring::replace methods renamed all .C files to .cpp for windows added msvc project and got most classes building natively on windows 0.35 - added ( to set of chars to capitalize after added methods to control whether semaphoreset operations are retried after they have been interrupted by a signal added charstring::findFirstOrEnd added character::inSet @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.5 2011/10/28 11:23:22 fhajny Exp $ d4 1 a4 1 --- configure.orig 2011-08-03 10:33:54.000000000 +0000 d6 1 a6 1 @@@@ -22414,7 +22414,7 @@@@ mlockall(0); d15 1 a15 1 @@@@ -22504,7 +22504,7 @@@@ munlockall(); @ 1.5 log @Updated devel/rudiments to 0.34. Changes in 0.34 * fixed some STATFS/FSTATFS that needed to be CHAR-versions of the calls * added test for utime and utime.h * utime is used on platforms that don't have utimes * updated process class methods to return -1 and set ENOSUPP for process-group related calls on systems that don't have the concept of process-groups * added a call to select() instead of poll() for file-descriptor passing for systems that don't support poll() * added tests for timespec in various header files * added test for dlopen * updated configure script not to outright disable classes if the functions they're dependent on aren't found, but rather for the methods to return erros and set errno to ENOSYS * added netapi32 on mingw * updated vfstab detection to reflect minix/haiku-style rather than just haiku * moved non-member variables and methods into daemonprocess class and its private class * updated xmldomnode to output xml entities rather than raw characters * fixed a bug that caused numeric xml entities greater than 127 to get set to 127 * updated mutex class to show a consistent interface on all platforms * updated configure script to detect pthreads properly on minix * cleaned up semaphoreset class * lots of mingw32 compatibility fixes * wrapped exit() in process class Changes in 0.33 * removed configure tests for strlcpy and strlcat * added test for pvt->_translatebyteorder to hostToNet/netToHost for 64bit numbers * made filedescriptor::hostToNet/netToHost public and static, moved translatebyteorder flag test out of them * serviceentry and inet*socket classes use filedescriptor::hostToNet/netToHost rather than htonl/htons * added charstring::printBits methods * xmlsax class uses optimizations even when not using mmap now * updated linkedlist class a good bit * applied Renat Sabitov's logger patch * fixed some bugs where filesystem.C wouldn't compile on platforms where statfs can return some strings * haiku port * implemented bswap for systems with nothing like it * added #ifdef's in configure script for all header files * fixed detection of several things on modern openbsd systems * added definitions of (u)int(8|16|32|64)_t for systems that don't have them * added randomnumber::getSeed() that uses /dev/urandom if available * environment class prefers putenv to setenv to work around a memory leak that can occur when using setenv to set an environment variable over and over * fixed 2 memory leaks in environment class * fixed memrchr and strpbrk tests in configure script * fixed a logger dependency on the permissions class in features.mk.in * updated environment class to use malloc and free * fixed reference-after-free by putenv in environment class * applied patches from Renat Sabitov * updated signalhandlers to have (void *)(int) signature * added charstring::subString without an end parameter * applied patch by Claudio Freire * changed several %lf's to %Lf's in charstring long double parsers * fixed uninitiaized nodename/nodevalue in xmldomnode * fixed unterminated buffer after clear in stringbuffer * removed "rebuild" target from all Makefiles * added charstring::capitalize method * made stringbuffer::terminate append a \0 unconditionally * made stringbuffer::clear() terminate the buffer at position 0 * fixed a bug where xmldomnode::getFirstXXX() could crash if there was no first XXX * added xmldomnode::moveChild * fixed uninitialized _grp in groupentry class * regularexpression class uses pcre_free rather than delete to free pcre_extra block now * fixed printf %lld's in timezonefile class * made several unsigned shorts use uint16_t in charstring class * changed integerLength to return uint16_t rather than int * added man page to rpm spec file Changes in 0.32 * xmlsax does "sequential" and "only-once" hints when reading the file * xmlsax/dom classes use optimal read and write buffers now * added DESTDIR= to rudiments.pc.in * added charstring::httpUnescape * fixed a bug in datetime that would cause TZ to remain after doing a timezone conversion if TZ was unset to begin with * fixed a bug in regularexpression that could cause a double-free 0.31 - added OSSwapLittleToHost/OSSwapHostToLittle for Mac OS X * modified environment::clear() for mac os x * regularexpression wasn't setting the match count correctly, fixed that * added charstring::subString() method * added missing lingerOnClose(), fixed dontLingerOnClose() * added base64 encode/decode methods * fixed charstring::parseNumber() for unsigned int's * added /opt/csw to configure script's search path * fixed a memory leak in xmldom::unCacheString() Changes in 0.30 * changed commandline::value() to commandline::getValue() * fixed a memory leak in dictionary * added setHour/Minute/Second/etc. methods to datetime * fixed readdir_r vulnerability * added support for either "-arg value" or "--arg=value" to commandline * added support for break and control characters to chat class * added print method to environment class * added close-on-exec methods to filedescriptor class * added clear method to environment class * made all methods in environment class static * added wrappers for strspn/strcspn/strpbrk functions to charstring class * fixed bug where datetime would set wrong timezone if it is initialized with a combined zone name like PST8PDT * added directory::getChildCount() * added datetime::validDateTime() * xmldom class stores all strings found in the xml file in a stringlist and stores pointers to them in the xmldomnodes to reduce memory usage in xml files that have lots of duplicated strings * added configure tests for dirfd/DIR.dd_fd/DIR.d_fd * initialize addrinfo struct pointer to NULL in inetclientsocket.C @ text @d1 1 a1 1 $NetBSD$ d3 1 @ 1.4 log @Correct configure test for munlockall as well. Bump revision. @ text @d3 1 a3 1 --- configure.orig 2006-01-30 06:06:28.000000000 +0000 d5 3 a7 1 @@@@ -29751,7 +29751,7 @@@@ mlockall(0); d9 8 a16 8 rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 + (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 @@@@ -29919,7 +29919,7 @@@@ munlockall(); d18 5 a22 7 rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 + (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 @ 1.3 log @Fix mlockall detection (yes, it works better to actually link when trying to find unimplemented functions). Fix PLIST. Bump revision. @ text @d3 1 a3 1 --- configure.orig 2006-04-11 12:42:25.000000000 +0000 d14 9 @ 1.2 log @Updated rudiments to 0.28.2. I don't know what has changed, but at least it builds on NetBSD. @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.1 2004/04/15 10:32:33 grant Exp $ d3 11 a13 12 --- src/Makefile.orig 2003-05-08 13:13:13.000000000 +1000 +++ src/Makefile @@@@ -187,9 +187,6 @@@@ endif .C.n.lo: $(LIBTOOL) --mode=compile $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $< -o $@@ - if ( test "$(STRIP)" != "touch" ); then \ - $(STRIP) -x -R .note -R .comment $@@; \ - fi .C.p.lo: $(LIBTOOL) --mode=compile $(CXX) $(DEBUGCXXFLAGS) $(CPPFLAGS) -c $< -o $@@ @ 1.1 log @Initial revision @ text @d1 1 a1 1 $NetBSD$ @ 1.1.1.1 log @Initial import of rudiments 0.25.1 into the NetBSD packages collection. Rudiments is an Open Source C++ class library providing base classes for things such as daemons, clients and servers, and wrapper classes for the standard C functions for things such as regular expressions, semaphores and signal handling. @ text @@