pkgsrc/devel/pth/Makefile

39 lines
1,010 B
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.41 2002/05/29 08:19:56 skrll Exp $
1999-07-05 07:09:48 +02:00
#
update to 1.4.1 from 1.4 This is a bugfix release. - Internally make sure an invalid file-descriptor (integer not between 0 and (FD_SETSIZE-1) does not lead to any segfaults or other undefined behaviour. Instead an error is returned and errno is set to EBADF, similar to what the OS functions do. Especially pth_poll() now return with this error (instead of skipping the fd) if an fd in the "struct pollfd" is invalid. [Ralf S. Engelschall, Archie Cobbs <archie@packetdesign.com>] - Correctly support PTH_FDMODE_NONBLOCK in pth_connect and pth_accept. [Archie Cobbs <archie@packetdesign.com>] - Fixed typos in manual page. [Michael Schloh v. Bennewitz <michael.schloh@de.cw.net>, Takashi Ishihara <tishihara@ucdavis.edu>] - For portability reasons changed definition of PTH_EXT_SFIO to 0/1 instead of FALSE/TRUE because some external definitions use a casted value and hence make trouble on plain #if constructs. [Staehli Patrik <patrik.staehli@siemens.ch>] - Fixed return value (number of occurred events) of pth_wait(). [David Dureau <david.dureau@cea.fr>] - Replaced thread-unsafe usage of a static struct iovec in pth_writev_ev() with a thread-safe stack/heap-based solution. [Ralf S. Engelschall, Mark Burton <markb@ordern.com>] - Replaced antiquated PTH_FLAG_NOJOIN references with the correct PTH_ATTR_JOINABLE references in the manual page. [Takashi Ishihara <tishihara@ucdavis.edu>] - Fixed a (not very subtle) bug in pth_writev_ev() that screwed up output if a partial write happened. [Mark Burton <markb@ordern.com>] - Fixed static initializers PTH_BARRIER_INIT and PTH_COND_INIT. [Shawn Wagner <shawnw@speakeasy.org>] - Typo fixes in pth.pod [<collver@linuxfreemail.com>] - Upgraded to GNU shtool, version 1.5.4. [Ralf S. Engelschall] - Fixed "make striptease": pth_string.c was not included and some commands which were removed at all (and this way causes syntax errors) will be now correctly commented out with ":" commands. [Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>]
2002-03-24 19:47:38 +01:00
DISTNAME= pth-1.4.1
2000-06-05 02:52:19 +02:00
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GNU:=pth/}
1999-07-05 07:09:48 +02:00
2000-06-05 02:52:19 +02:00
MAINTAINER= packages@netbsd.org
HOMEPAGE= http://www.gnu.org/software/pth/pth.html
COMMENT= GNU Portable Thread library
1999-07-05 07:09:48 +02:00
CONFLICTS= pth-current-[0-9]* pth-syscall-[0-9]*
1999-08-12 20:02:19 +02:00
2001-06-19 23:27:57 +02:00
USE_BUILDLINK_ONLY= YES
2000-06-05 02:52:19 +02:00
USE_LIBTOOL= YES
LTCONFIG_OVERRIDE= ${WRKSRC}/ltconfig
GNU_CONFIGURE= YES
1999-07-05 07:09:48 +02:00
CONFIGURE_ARGS+= --enable-pthread
.if (${MACHINE_ARCH} == "i386" && ${CFLAGS:M-O2} == "-O2")
CFLAGS:= ${CFLAGS:S/-O2/-O0/}
.endif
# for PLIST
Update pth to 1.4.0 Changes between 1.4a3 and 1.4.0 (29-Jul-2000 to 24-Mar-2001) *) Added PTHREAD_PRIO_XXXX definitions to pthread.h for conformance to the POSIX/SUSv2 Pthread API. *) Implemented the pthread_{set,get}concurrency() API parts of POSIX/SUSv2, although internally we are (allowed to be) free to not do anything based on the requested level. *) Adjusted all pthread_attr_getXXXX() functions to use a "const pthread_attr_t *" as the first argument instead of "pthread_attr_t *" to fully-conform to POSIX/SUSv2. *) Added ENOSYS-stubs for pthread_attr_{set,get}guardsize() to the Pthread API to be more complete with POSIX/SUSv2 specs. *) Added still missing soft system call mapping to Pth and Pthread APIs for functions recv(2), send(2), recvfrom(2) and sendto(2). *) Upgraded to GNU shtool 1.5.2 *) Fixed an even-manager bug which causes a thread that calls pth_nap() to never woke up if the only elapsed event was a timer. *) Added `#define _BITS_SIGTHREAD_H' to pthread.h to avoid inclusion of bits/sigthread.h (from signal.h) on Linux running glibc6 2.2. *) Added support to Makefile.in for DESTDIR variable. This allows easier rolling of installation tarballs (for instance from within RPM or similar facilities) by using "make install DESTDIR=/tmp/pth". *) Implemented a pth_system(3) function which is a thread-aware clone of the POSIX system(2) function. *) Fixed typos in pth.pod: "fd" -> "s" for pth_connect/pth_accept. *) Make --disable-shared the default under Solaris-2.[78]/x86, because it is known to segfault sporadically if Pth is built as a DSO. As traces showed, it is not a Pth problem, but it looks like a problem with the dynamic linker on Solaris/x86. The same Solaris versions on SPARC don't have this problem. *) Updated copyright messages to cover new year 2001. *) Fixed quoting in configure.in *) Let pth_sleep(3) and pth_usleep(3) immediately return if an argument of zero is given. *) Fixed pthread.pod: the newer pod2man versions seems to dislike embedded comments, so I moved them to the top of the file. *) Changed CVS URL in HACKING document. *) Mention http://www.mail-archive.com/pth-users@gnu.org/ in pth.pod and SUPPORT document. Changes between 1.4a2 and 1.4a3 (01-Jul-2000 to 29-Jul-2000) *) Upgraded to GNU shtool 1.5.1 *) Fixed (unused) pth_time_mul() function: operator & replaced by % *) Use --disable-lock for ltconfig. *) Fixed a few typos in pth.pod. Changes between 1.4a1 and 1.4a2 (16-Apr-2000 to 01-Jul-2000) *) Upgraded to GNU Shtool 1.5.0 *) Added OS/390 support to config.sub. *) Upgraded rse-pmt.ps paper to latest version as it was published on USENIX 2000. *) Stack boundary fixes for Interactive Unix support (--with-mctx-dsp=sjljisc). This allows one also to use this variant for Interix on Window-NT (a POSIX.1 compliant subsystem). *) Upgraded to GNU Libtool 1.3.5 *) Fixed config.param parsing: IF is now also allowed on VARIABLE=VALUE lines. *) Allow for convinience reasons pth_usleep() to accept also arguments greater than 1000000. *) Updated HACKING document. *) Fixed warnings in pth_string.c related to va_arg() usage and implicit type conversions. *) Merge from Pth 1.3.5: Fixed the <sys/select.h> checks in Autoconf: the logic was reversed and this way <sys/select.h> wasn't included on platforms were it existed and included where it wasn't present. Changes between 1.3.3 and 1.4a1 (10-Mar-2000 to 16-Apr-2000) *) Added a new feature to config.param: parameters can be extended with ``<space>IF<space><shell-test>''. Then the preceeding parameter is only added to the command line if the <shell-test> returns 0. <shell-test> can be anything which is possible in a Bourne-Shell `if' construct's expression. *) Fixed usage of `volatile' qualifier in pointer context. *) Now check also for -Wno-long-long compiler option under --enable-debug, because pth_string.c contains `long long' stuff. *) Now pth.h and pthread.h include the non-standard <sys/select.h> header on brain-dead platforms (like AIX) to get the definition of fd_set (which is required for the pth_select prototype). *) Fixed auto-configuration for ISC and Win32/Cygwin platforms. *) Removed -L. from $(LDFLAGS) in Makefile.in, because this is not required (libtool already takes care of this). *) Added a RPM spec file pth.spec which allows one to build RPM packages directly from the Pth distribution tarball through a simple `rpm -tb pth-1.X.Y.tar.gz' call. *) Removed the too explicit `-m 644' from the libtool/shtool installation command for libpth.la and instead use a `umask 022'. The reason is because some platforms require the shared libraries to be executable, so we cannot use an explicit mode. But we use the umask to make sure we don't result in world or group writeable files. *) Use full-path /sbin/sysctl in config.guess on FreeBSD because not all users have /sbin in their $PATH. *) Added eight new I/O functions pth_{recv,recvfrom,send,sendto}[_ev](3) which correspond to the counterparts in UNIX98 (SUSv2). *) Replaced for security reasons sprintf() and vsprintf() calls with own pth_snprintf() and pth_vsnprintf() functions from the new pth_string.c source. *) Speeded up pth_ring_t handling by inlining code and by maintaining number of contained nodes explicitly to avoid an O(n) operation when the number of elements are requested. *) Upgraded to GNU shtool 1.4.9
2001-04-05 14:16:23 +02:00
PTH_MAJOR= 14
update to 1.4.1 from 1.4 This is a bugfix release. - Internally make sure an invalid file-descriptor (integer not between 0 and (FD_SETSIZE-1) does not lead to any segfaults or other undefined behaviour. Instead an error is returned and errno is set to EBADF, similar to what the OS functions do. Especially pth_poll() now return with this error (instead of skipping the fd) if an fd in the "struct pollfd" is invalid. [Ralf S. Engelschall, Archie Cobbs <archie@packetdesign.com>] - Correctly support PTH_FDMODE_NONBLOCK in pth_connect and pth_accept. [Archie Cobbs <archie@packetdesign.com>] - Fixed typos in manual page. [Michael Schloh v. Bennewitz <michael.schloh@de.cw.net>, Takashi Ishihara <tishihara@ucdavis.edu>] - For portability reasons changed definition of PTH_EXT_SFIO to 0/1 instead of FALSE/TRUE because some external definitions use a casted value and hence make trouble on plain #if constructs. [Staehli Patrik <patrik.staehli@siemens.ch>] - Fixed return value (number of occurred events) of pth_wait(). [David Dureau <david.dureau@cea.fr>] - Replaced thread-unsafe usage of a static struct iovec in pth_writev_ev() with a thread-safe stack/heap-based solution. [Ralf S. Engelschall, Mark Burton <markb@ordern.com>] - Replaced antiquated PTH_FLAG_NOJOIN references with the correct PTH_ATTR_JOINABLE references in the manual page. [Takashi Ishihara <tishihara@ucdavis.edu>] - Fixed a (not very subtle) bug in pth_writev_ev() that screwed up output if a partial write happened. [Mark Burton <markb@ordern.com>] - Fixed static initializers PTH_BARRIER_INIT and PTH_COND_INIT. [Shawn Wagner <shawnw@speakeasy.org>] - Typo fixes in pth.pod [<collver@linuxfreemail.com>] - Upgraded to GNU shtool, version 1.5.4. [Ralf S. Engelschall] - Fixed "make striptease": pth_string.c was not included and some commands which were removed at all (and this way causes syntax errors) will be now correctly commented out with ":" commands. [Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>]
2002-03-24 19:47:38 +01:00
PTH_MINOR= 21
PLIST_SUBST+= PTH_MAJOR=${PTH_MAJOR} PTH_MINOR=${PTH_MINOR}
1999-07-05 07:09:48 +02:00
test: build
update to 1.4.1 from 1.4 This is a bugfix release. - Internally make sure an invalid file-descriptor (integer not between 0 and (FD_SETSIZE-1) does not lead to any segfaults or other undefined behaviour. Instead an error is returned and errno is set to EBADF, similar to what the OS functions do. Especially pth_poll() now return with this error (instead of skipping the fd) if an fd in the "struct pollfd" is invalid. [Ralf S. Engelschall, Archie Cobbs <archie@packetdesign.com>] - Correctly support PTH_FDMODE_NONBLOCK in pth_connect and pth_accept. [Archie Cobbs <archie@packetdesign.com>] - Fixed typos in manual page. [Michael Schloh v. Bennewitz <michael.schloh@de.cw.net>, Takashi Ishihara <tishihara@ucdavis.edu>] - For portability reasons changed definition of PTH_EXT_SFIO to 0/1 instead of FALSE/TRUE because some external definitions use a casted value and hence make trouble on plain #if constructs. [Staehli Patrik <patrik.staehli@siemens.ch>] - Fixed return value (number of occurred events) of pth_wait(). [David Dureau <david.dureau@cea.fr>] - Replaced thread-unsafe usage of a static struct iovec in pth_writev_ev() with a thread-safe stack/heap-based solution. [Ralf S. Engelschall, Mark Burton <markb@ordern.com>] - Replaced antiquated PTH_FLAG_NOJOIN references with the correct PTH_ATTR_JOINABLE references in the manual page. [Takashi Ishihara <tishihara@ucdavis.edu>] - Fixed a (not very subtle) bug in pth_writev_ev() that screwed up output if a partial write happened. [Mark Burton <markb@ordern.com>] - Fixed static initializers PTH_BARRIER_INIT and PTH_COND_INIT. [Shawn Wagner <shawnw@speakeasy.org>] - Typo fixes in pth.pod [<collver@linuxfreemail.com>] - Upgraded to GNU shtool, version 1.5.4. [Ralf S. Engelschall] - Fixed "make striptease": pth_string.c was not included and some commands which were removed at all (and this way causes syntax errors) will be now correctly commented out with ":" commands. [Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>]
2002-03-24 19:47:38 +01:00
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} test | \
tee ${WRKSRC}/test.log
2000-01-21 04:06:37 +01:00
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/pth/
cd ${WRKSRC} && ${INSTALL_DATA} ANNOUNCE AUTHORS COPYING HACKING \
NEWS README SUPPORT TESTS THANKS USERS pthread.ps rse-pmt.ps \
${PREFIX}/share/doc/pth/
2000-01-21 04:06:37 +01:00
1999-07-05 07:09:48 +02:00
.include "../../mk/bsd.pkg.mk"