Commit graph

65 commits

Author SHA1 Message Date
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
skrll
29cef5cc50 Enable wrappers for waitpid, recv, and send per PR 24704.
PR and patch from ITOH Yasufumi.

PKGREVISION++
2004-04-19 12:16:08 +00:00
jlam
ec993afa1a LIBTOOL_OVERRIDE and SHLIBTOOL_OVERRIDE are now lists of shell globs
relative to ${WRKSRC}.  Remove redundant LIBTOOL_OVERRIDE settings that
are automatically handled by the default setting in bsd.pkg.mk.
2004-02-14 17:21:32 +00:00
grant
52f1b46a37 remove unneeded CONFIG_{GUESS,SUB}_OVERRIDE, as bsd.pkg.mk does this
automatically now.
2004-02-14 00:54:44 +00:00
jlam
a39c6cf9fa bl3ify 2004-01-05 20:48:01 +00:00
grant
4083b24390 s/netbsd.org/NetBSD.org/ 2003-07-17 21:31:04 +00:00
dillo
9d47c6ba38 use TEST_TARGET instead of custom test target 2003-07-12 13:13:46 +00:00
jschauma
e366d0c694 Use tech-pkg@ in favor of packages@ as MAINTAINER for orphaned packages.
Should anybody feel like they could be the maintainer for any of thewe packages,
please adjust.
2003-06-02 01:15:31 +00:00
wiz
0594acf27e Update to 2.0.0, supplied by skrll@netbsd.
Changes:
   *) Make pth_poll(3) more compliant to POSIX.1-2001/SUSv3 poll(2).
   *) Make pth_select(3) more compliant to POSIX.1-2001/SUSv3 select(2).
   *) Replaced pth_event_occurred() with pth_event_status().
   *) Add Autoconf option --with-fdsetsize=NUM for enlarging FD_SETSIZE.
   *) Added thread attribute PTH_ATTR_DISPATCHES.
   *) Added sub-API pth_uctx_* for user-space context switching.
   *) Add a Pth variant of the new POSIX pselect(2) function.
   *) Internally cleaned up the error handling macros.
   *) Added POSIX-compliant sanity checks for bad fds.
   *) Added pth_nanosleep() function.
   *) Allow a NULL name for pth_msgport_create()
   *) Completely rewrote the "hard syscall mapping".
   *) Added support to pth_poll(3) for POLLD{RD,WR}{NORM,BAND}.
   *) Fixed a long-standing termination bug in pth_exit(3).
   *) Upgraded to Autoconf 2.57, Shtool 1.6.2 and Libtool 1.4.3.
   *) Add optional support for OSSP ex based exception handling.
2003-05-02 11:49:47 +00:00
drochner
ca8f8a5b83 PTH_SYSCALL_HARD's fork() replacement didn't work on archs where the
system call's return values are postprocessed by the libc stub
(eg alpha).
Change pth to call libc's internal _fork(). This is only available
since NetBSD-1.5, older releases are SOL -- sorry, but we need something
working for 1.6.1.
We should audit all the PTH_SYSCALL_HARD plugins whether they neglect
libc assembler magic...
bump PKGREVISION
2003-02-04 17:31:16 +00:00
drochner
d253d49da2 add a commented out switch to build a debugging version 2002-12-10 15:09:43 +00:00
skrll
c8cce16f68 Improve error handling. Patches backported from pth -current.
PKGREVISION++

This fixes PR 19162 from Ingolf Steinbach.
2002-11-26 21:42:48 +00:00
drochner
85ee72f607 a serious bug was fixed, so bump PKGREVISION
(suggested by Thomas Klausner and Martti Kuparinen)
2002-10-23 10:18:10 +00:00
skrll
3f5989343f Correct the logic around --enable-syscall-hard
Bump PKGREVISION++

Thanks to Rhialto <rhialto at azenomei at knuffel at net> for pointing
this out.

This will probably fix the xmms problems as well.
2002-10-21 23:36:13 +00:00
jlam
c485e3342e Fix checks for disabling syscall-hard and properly emit a message for that
case.
2002-10-18 19:22:09 +00:00
skrll
e3bf53861b Various updates and fixes that I've collected recently:
* Provide nanosleep(2) and usleep(3) wrappers.

	* Make sure sigprocmask syscalls are used in pth_system.

	* "Fix" FD_SET handling in the select(2) wrapper so that
	  mismatches between pth FD_SETSIZE and user program
	  FD_SETSIZE don't cause problems.

	* Update poll(2) wrapper to be more poll(2) like - in
          particular never return EINVAL for bad file descriptors
	  Thanks to Matthias Drochner for this.

	* Improve error handling in connect(2) wrapper so that we
	  don't confuse the scheduler. This fixes pkg/17944 from
	  Christian Biere (ChristianBiere at gmx dot de)

	* Introduce autoconf handling of the value of FD_SETSIZE
	  used by pth. If we have to hard code a value we might
	  as well make it easy to change and make the inclusion
	  of pth.h or pthread.h by a program that re-defines
	  FD_SETSIZE an error.

	  Inspired by pkg/17944.

	* Fix a compiler warning that I introduced a little while
	  ago.

	* Disable --enable-syscall-hard for non-NetBSD platforms
	  and for pre-1.6/m68k. Make a note of the PRs that need
	  fixing. This closes pkg/18236 from Klaus Heinz (k dot
	  heinz dot sep dot zwei at onlinehome dot de)

The FD_SETSIZE problems would be handled better if pth was changed
to use poll(2), and not select(2), internally.
2002-10-14 11:49:54 +00:00
skrll
6522c09dea Fix merge botch after buildlink2 merge. 2002-08-29 19:44:07 +00:00
jlam
e2afa97f51 Merge changes in packages from the buildlink2 branch that have
buildlink2.mk files back into the main trunk.  This provides sufficient
buildlink2 infrastructure to start merging other packages from the
buildlink2 branch that have already been converted to use the buildlink2
framework.
2002-08-25 18:38:05 +00:00
skrll
459f021fc9 Apply a fix to the initialization routine so that make test works with
--enable-syscall-hard.

Allow -O2 optimisation of i386 - the reason this was removed is somewhat
bogus.

Bump PKGREVISION.
2002-08-01 13:36:08 +00:00
jlam
94bb6c3d26 Really bump the PKGREVISION this time. 2002-08-01 05:58:00 +00:00
jlam
3abecf7e02 Merge changes to enable hard sycalls from devel/pth-syscall into devel/pth.
Bump the PKGREVISION to 1.
2002-08-01 05:18:48 +00:00
schmonz
0cced22e83 Use canonical pkgsrc config.guess and config.sub to build on Darwin. 2002-07-28 16:21:30 +00:00
skrll
f24bd8ca6b Relax the CONFLICT with pth-syscall now that Al has changed pth-syscall. 2002-07-24 15:28:06 +00:00
skrll
19f99199a4 Add a new variation on the pth package that has --enable-syscall-hard
as part of the configure options. A pth with this option enabled provides
some semblance of pre-emptive threads - enough for things like xmms and
knode to actually work.

Add the necessary glue to pthread.buildlink.mk and appropriate CONFLICT
into pth.

It is hoped that the pkgs that currently use

	-D_POSIX_THREAD_SYSCALL_SOFT=1

will be tested against pth-syscall and changed to use it. The goal is to
be able to add --enable-syscall-hard to devel/pth and retire pth-syscall.
Baby steps...
2002-05-29 08:19:55 +00:00
dmcmahill
8446e4d6eb 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 18:47:38 +00:00
dmcmahill
780ce05070 add missing build dependency to the test target 2002-03-21 12:35:14 +00:00
mrauch
dd72eda632 The check for -O2 in the last commit didn't catch the possibility of
multiple flags in ${CFLAGS}. Fixed.
2002-02-12 14:59:59 +00:00
mrauch
02ad396188 Disable optimization for i386 because it can cause segfaults with a
completely thrashed stack.
2002-02-12 10:52:31 +00:00
jlam
f79573370a Mechanical changes to 375 files to change dependency patterns of the form
foo-* to foo-[0-9]*.  This is to cause the dependencies to match only the
packages whose base package name is "foo", and not those named "foo-bar".
A concrete example is p5-Net-* matching p5-Net-DNS as well as p5-Net.  Also
change dependency examples in Packages.txt to reflect this.
2001-09-27 23:17:41 +00:00
jlam
8fe21bad13 Mark as USE_BUILDLINK_ONLY. 2001-06-19 21:27:57 +00:00
rh
6fe001c88d 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 12:16:23 +00:00
wiz
94dc65fbec Update to new COMMENT style: COMMENT var in Makefile instead of pkg/COMMENT. 2001-02-16 14:38:16 +00:00
wiz
e9cd77ffca Make library majors/minors in PLIST updatable from Makefile again. 2001-01-08 02:11:35 +00:00
jlam
6f591c2d2b Add a "test" target to check that the thread library actually works by
calling the library's own test target.
2000-10-06 09:03:17 +00:00
rh
9c7290a51b Update pth to 1.3.7. Changes are: back-ports of bugfixes from the 1.4
development branch.  This especially upgrades to GNU Shtool 1.5.1 to
fix compilation problems under Solaris, which were introduced in 1.3.6.
2000-07-30 19:55:52 +00:00
rh
4ad0cf96c1 Update pth to 1.3.6. Changes are bugfixes pulled up from the 1.4.x devel
tree.
2000-07-03 11:08:12 +00:00
wiz
3bb8853c77 USE_LIBTOOL instead of USE_PKGLIBTOOL 2000-06-05 00:52:19 +00:00
rh
74add3b300 s/USE_LIBTOOL/USE_PKGLIBTOOL/
Add a new USE_LIBTOOL definition that uses the libtool package instead of
pkglibtool which is now considered outdated.
USE_PKGLIBTOOL is available for backwards compatibility with old packages
but is deprecated for new packages.
2000-06-01 11:23:11 +00:00
rh
4cf8a620a3 Update pth to 1.3.5. According to the author, "this is a bugfix release
which fixes a nasty -related bug introduced in 1.3.4".  No further
information is available.
2000-04-18 08:48:33 +00:00
rh
df01bcc5c5 Update pth to 1.3.4. Changes are a lot of back-ported bugfixes from the
Pth development branch.
2000-04-17 05:34:12 +00:00
wiz
4d92a267e8 Updated to pth-1.3.3. Changes: Minor fixes, source cleanup, semantics
of pth_cond_notify() fixed to match POSIX, and default stack size
increased from 32KB to 64KB.
2000-03-13 01:20:25 +00:00
wiz
dd0b689fb1 updated pth to 1.3.2. Changes from 1.3.1:
*) Do no longer use -woff in CFLAGS for IRIX 6.5.2 and above.
*) Replaced ``while (1)'' constructs with ``for (;;)'' because some
   compilers like this more and do not warn about constant expressions.
*) Added hint to pth.pod that ``pth_join(<tid>, NULL)'' is allowed.
*) Cancel and join the ticker thread explicitly in test_select.c
*) Removed unnecessary code in pth_event.c
*) Add special namespace workarounds to pthread.h.in for HPUX
   platforms where the pthread_kill() prototypes conflict without this.
2000-02-27 04:28:44 +00:00
wiz
01bf784980 Updated to pth-1.3.1. Changes:
*) Added HISTORY document where we now write down the evolution
   and release dates of Pth to have a concise history reference.
   [Ralf S. Engelschall]
*) Added USERS document where we now collect references to
   software packages utilizing GNU Pth.
   [Ralf S. Engelschall]
*) Fixed a subtle typo in pth.pod about thread-safe functions
   and finished documentation of pth_attr_set/pth_attr_get functions.
   [James Robinson <jlrobins@uncc.edu>, Jeremie <jeremie@jabber.org>]
2000-02-21 19:54:36 +00:00
wiz
752dabf60d Update to pth-1.3.0. Changes since 1.2 (some of them had been pulled up
to 1.2.3):
   *) Better detection and support for Unix platform differences
   *) More complete support for hard syscall wrapping
   *) Memory debugging support via Dmalloc library and --with-dmalloc
   *) Added a PTH_CTRL_DUMPSTATE to pth_ctrl()
   *) Removed PTH_EVENT_PID and enhanced PTH_EVENT_FUNC
   *) First cut for Win32/CygWin support
   *) New `make striptease' feature for developers
   *) New pth.m4 file for using Pth inside Autoconf based packages
   *) New large pthread.pod manual page which contains full Pthread API
   *) Fixed numerious memory leaks
   *) Numerous bugfixes and cleanups
2000-02-20 15:21:59 +00:00
wiz
fe3b9ffb09 updated pth to 1.2.3 2000-02-05 14:51:36 +00:00
wiz
973442fadd install more documentation 2000-01-21 03:06:37 +00:00
rh
17b1dbc598 Fix package version glitch now that the original distfile has this
resolved.
2000-01-10 15:18:25 +00:00
rh
9cac088a32 Update pth to 1.2.2. Changes are bugfixes and minor code cleanups. 2000-01-08 20:18:19 +00:00
rh
ae18a74c24 Update pth to 1.2.1 using the patches provided by Thomas Klausner
<wiz@danbala.ifoer.tuwien.ac.at> via private EMail.  Thanks!
1999-12-13 12:55:09 +00:00