Commit graph

29 commits

Author SHA1 Message Date
fhajny
a745b87b04 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
2011-10-28 11:23:21 +00:00
joerg
bacea7cad5 Remove @dirrm entries from PLISTs 2009-06-14 17:48:39 +00:00
joerg
2d1ba244e9 Simply and speed up buildlink3.mk files and processing.
This changes the buildlink3.mk files to use an include guard for the
recursive include. The use of BUILDLINK_DEPTH, BUILDLINK_DEPENDS,
BUILDLINK_PACKAGES and BUILDLINK_ORDER is handled by a single new
variable BUILDLINK_TREE. Each buildlink3.mk file adds a pair of
enter/exit marker, which can be used to reconstruct the tree and
to determine first level includes. Avoiding := for large variables
(BUILDLINK_ORDER) speeds up parse time as += has linear complexity.
The include guard reduces system time by avoiding reading files over and
over again. For complex packages this reduces both %user and %sys time to
half of the former time.
2009-03-20 19:23:50 +00:00
joerg
3b0d97b0de Add DESTDIR support. 2008-06-20 01:09:05 +00:00
jlam
841dfa0e7a Convert to use PLIST_VARS instead of manually passing "@comment "
through PLIST_SUBST to the plist module.
2008-04-12 22:42:57 +00:00
jlam
c16221a4db Change the format of BUILDLINK_ORDER to contain depth information as well,
and add a new helper target and script, "show-buildlink3", that outputs
a listing of the buildlink3.mk files included as well as the depth at
which they are included.

For example, "make show-buildlink3" in fonts/Xft2 displays:

	zlib
	fontconfig
	    iconv
	    zlib
	    freetype2
	    expat
	freetype2
	Xrender
	    renderproto
2006-07-08 23:10:35 +00:00
jlam
9430e49307 Track information in a new variable BUILDLINK_ORDER that informs us
of the order in which buildlink3.mk files are (recursively) included
by a package Makefile.
2006-07-08 22:38:58 +00:00
joerg
5710196f30 NetBSD lacks shm_open, so conditionally comment the shmfile entries. 2006-06-13 19:23:24 +00:00
darcy
7d0974695e Remove files not installed 2006-06-13 17:36:17 +00:00
joerg
30bc0967cd Uses C++. 2006-05-21 13:59:04 +00:00
wiz
991dcdf978 Mark as BROKEN_IN pkgsrc-2006Q1 according to
ftp://ftp.NetBSD.org/pub/pkgsrc/misc/kristerw/pkgstat/i386-3.0/20060501.1050/broken.html
2006-05-18 20:29:58 +00:00
joerg
d39a7a72d8 Correct configure test for munlockall as well. Bump revision. 2006-04-19 17:20:59 +00:00
joerg
8c63712ff9 Fix mlockall detection (yes, it works better to actually link when
trying to find unimplemented functions). Fix PLIST. Bump revision.
2006-04-11 12:59:33 +00:00
reed
5abef9be14 Over 1200 files touched but no revisions bumped :)
RECOMMENDED is removed. It becomes ABI_DEPENDS.

BUILDLINK_RECOMMENDED.foo becomes BUILDLINK_ABI_DEPENDS.foo.

BUILDLINK_DEPENDS.foo becomes BUILDLINK_API_DEPENDS.foo.

BUILDLINK_DEPENDS does not change.

IGNORE_RECOMMENDED (which defaulted to "no") becomes USE_ABI_DEPENDS
which defaults to "yes".

Added to obsolete.mk checking for IGNORE_RECOMMENDED.

I did not manually go through and fix any aesthetic tab/spacing issues.

I have tested the above patch on DragonFly building and packaging
subversion and pkglint and their many dependencies.

I have also tested USE_ABI_DEPENDS=no on my NetBSD workstation (where I
have used IGNORE_RECOMMENDED for a long time). I have been an active user
of IGNORE_RECOMMENDED since it was available.

As suggested, I removed the documentation sentences suggesting bumping for
"security" issues.

As discussed on tech-pkg.

I will commit to revbump, pkglint, pkg_install, createbuildlink separately.

Note that if you use wip, it will fail!  I will commit to pkgsrc-wip
later (within day).
2006-04-06 06:21:32 +00:00
rillig
42f0f833e4 Updated rudiments to 0.29.
Changes since 0.28.2:
added check for whether SSL_read/write takes void * or char * parameter
added _XOPEN_SOURCE to filedescriptorincludes.h for sys/socket for irix
added collapse argument to charstring::split
added configure test for -Wall
switched lots of:
		char	a[charstring::length(b)];
	to:
		char	*a=new char[charstring::length(b)];
		...
		delete[] a;
	to improve compiler compatibility
removed #ifdef __GNUC__ around static variable definitions, I'll add
	#ifndefs for compilers that don't allow them (like SCO's) if
	necessary
added -D__EXTENSIONS__ to CPPFLAGS
added charstring::escape/unescape
defaulted zeropadding to 1 rather than 0, I'm not sure if it's a bug
	in glibc or not, but printf("%0*lld\n",0,(int64_t)0); prints
	nothing rather than 0, but printf("%0*ld\n",0,(int32_t)0);
	prints 0.  Using 1 instead of 0 for the number of 0's works
	in all cases.
solaris's strchr/strrchr return const char *,
	so I made charstring::findFirst/findLast return const char *
use snprintf's rather than sprintf's now
uses fchmod/fchown rather than chmod/chown now
made envelope classes out of all classes
added a configure test for ftok that takes a char * argument
switched a bunch of AC_TRY_LINK's to AC_TRY_COMPILE's in configure
	script
configure script does less work looking for getpwnam_r and cousins now
if pthread libs can't be found, configure also tries just plain -pthread
added #ifdefs for individual POSIX_FADV_* and MADV_* macros
in configure script, for cygwin, tests for w32api files and functions
	are omitted
configure tests for strtoll/strtoull now
configure tests for caddr_t types for all mmap-related functions
	individually now
unsupported memorymap methods return false now rather than not existing
added -pthread when compiling as well as linking
fixed a time-remaining-related bug in snooze class
fixed a bug where the date/time string buffer could easily be overrun
2006-03-11 02:41:51 +00:00
jlam
9c8b5ede43 Point MAINTAINER to pkgsrc-users@NetBSD.org in the case where no
developer is officially maintaining the package.

The rationale for changing this from "tech-pkg" to "pkgsrc-users" is
that it implies that any user can try to maintain the package (by
submitting patches to the mailing list).  Since the folks most likely
to care about the package are the folks that want to use it or are
already using it, this would leverage the energy of users who aren't
developers.
2006-03-04 21:28:51 +00:00
joerg
5911def816 Recursive revision bump / recommended bump for gettext ABI change. 2006-02-05 23:08:03 +00:00
schmonz
42428df5a0 Express these packages' brokenness with BROKEN_IN=pkgsrc-2005Q4
rather than PKG_FAIL_REASON, so that they provide useful error
messages in build logs, and so that they continue to work on platforms
where they aren't broken.
2006-01-04 04:29:05 +00:00
schmonz
463f43526a Mark packages for pkgsrc-2005Q4 that don't build on NetBSD/i386
3.0. If one of these is important to you, please fix it in time
for pkgsrc-2006Q1, or it may be removed.
2005-12-26 23:39:30 +00:00
rillig
792dba938c Updated rudiments to 0.28.2. I don't know what has changed, but at least it
builds on NetBSD.
2005-05-24 13:03:54 +00:00
jlam
585534220c Remove USE_GNU_TOOLS and replace with the correct USE_TOOLS definitions:
USE_GNU_TOOLS	-> USE_TOOLS
	awk		-> gawk
	m4		-> gm4
	make		-> gmake
	sed		-> gsed
	yacc		-> bison
2005-05-22 20:07:36 +00:00
tv
f816d81489 Remove USE_BUILDLINK3 and NO_BUILDLINK; these are no longer used. 2005-04-11 21:44:48 +00:00
agc
4a3d2f7ce2 Add RMD160 digests. 2005-02-23 22:24:08 +00:00
tv
c487cb967a Libtool fix for PR pkg/26633, and other issues. Update libtool to 1.5.10
in the process.  (More information on tech-pkg.)

Bump PKGREVISION and BUILDLINK_DEPENDS of all packages using libtool and
installing .la files.

Bump PKGREVISION (only) of all packages depending directly on the above
via a buildlink3 include.
2004-10-03 00:12:51 +00:00
jlam
1a280185e1 Mechanical changes to package PLISTs to make use of LIBTOOLIZE_PLIST.
All library names listed by *.la files no longer need to be listed
in the PLIST, e.g., instead of:

	lib/libfoo.a
	lib/libfoo.la
	lib/libfoo.so
	lib/libfoo.so.0
	lib/libfoo.so.0.1

one simply needs:

	lib/libfoo.la

and bsd.pkg.mk will automatically ensure that the additional library
names are listed in the installed package +CONTENTS file.

Also make LIBTOOLIZE_PLIST default to "yes".
2004-09-22 08:09:14 +00:00
kristerw
55a9a16b31 .include "../../mk/pthread.buildlink3.mk" 2004-05-13 18:00:51 +00:00
grant
1f24ea4afb no longer used 2004-04-15 10:45:25 +00:00
grant
56b1af4fcc bl3ify 2004-04-15 10:41:02 +00:00
grant
94f3c148d1 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.
2004-04-15 10:32:33 +00:00