summaryrefslogtreecommitdiff
path: root/devel/pth
diff options
context:
space:
mode:
authordrochner <drochner@pkgsrc.org>2003-02-04 17:31:16 +0000
committerdrochner <drochner@pkgsrc.org>2003-02-04 17:31:16 +0000
commitca8f8a5b8365ab260bc506a25fed5979a2213ed4 (patch)
treebab2503270f4e119f2ebc95988a442c928408e91 /devel/pth
parent65e76e6fc3080f151c116a2ac17d2ae190b32a32 (diff)
downloadpkgsrc-ca8f8a5b8365ab260bc506a25fed5979a2213ed4.tar.gz
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
Diffstat (limited to 'devel/pth')
-rw-r--r--devel/pth/Makefile4
-rw-r--r--devel/pth/distinfo4
-rw-r--r--devel/pth/patches/patch-ad21
3 files changed, 19 insertions, 10 deletions
diff --git a/devel/pth/Makefile b/devel/pth/Makefile
index 1dc0c930cd5..b5f971a377c 100644
--- a/devel/pth/Makefile
+++ b/devel/pth/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.54 2002/12/10 15:09:43 drochner Exp $
+# $NetBSD: Makefile,v 1.55 2003/02/04 17:31:16 drochner Exp $
#
DISTNAME= pth-1.4.1
-PKGREVISION= 6
+PKGREVISION= 7
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GNU:=pth/}
diff --git a/devel/pth/distinfo b/devel/pth/distinfo
index 76d0735c99e..b29261e9d59 100644
--- a/devel/pth/distinfo
+++ b/devel/pth/distinfo
@@ -1,11 +1,11 @@
-$NetBSD: distinfo,v 1.10 2002/11/26 21:42:48 skrll Exp $
+$NetBSD: distinfo,v 1.11 2003/02/04 17:31:17 drochner Exp $
SHA1 (pth-1.4.1.tar.gz) = bc5b0847d57d2b78945a6c8d4ebab57e46213972
Size (pth-1.4.1.tar.gz) = 446287 bytes
SHA1 (patch-aa) = c2fafc8eba5f084468fe0d07b1763d801b9ead89
SHA1 (patch-ab) = 41dfb1d339d71ed344ab320d4f430ea8e1a04722
SHA1 (patch-ac) = 0c9409f90cfe3d8794af03236055b1bb27e9f88a
-SHA1 (patch-ad) = 6769672225854d3b8bc830dc223cccd72b629c8d
+SHA1 (patch-ad) = 8daac8cd014d18803fc53038dbfa8da4336752a9
SHA1 (patch-ae) = 11ab7aa4e84eb01bb3956fdb58ff8d5f7e04a434
SHA1 (patch-af) = e6d065052b935a6a689603675b7d8a473b995a5b
SHA1 (patch-ag) = 1f4cdebe81b10e0cb9e38e6f3cb5aeb521038755
diff --git a/devel/pth/patches/patch-ad b/devel/pth/patches/patch-ad
index 4b24e1603a0..bdc0dd35bee 100644
--- a/devel/pth/patches/patch-ad
+++ b/devel/pth/patches/patch-ad
@@ -1,8 +1,17 @@
-$NetBSD: patch-ad,v 1.2 2002/10/14 11:49:56 skrll Exp $
+$NetBSD: patch-ad,v 1.3 2003/02/04 17:31:17 drochner Exp $
---- pth_syscall.c.orig Sun Jan 27 11:03:41 2002
-+++ pth_syscall.c
-@@ -63,6 +63,24 @@ pid_t fork(void)
+--- pth_syscall.c.orig Sun Jan 27 12:03:41 2002
++++ pth_syscall.c Thu Sep 12 09:28:44 2002
+@@ -50,7 +50,7 @@
+ /* Pth hard wrapper for syscall fork(2) */
+ #if cpp
+ #if defined(SYS_fork)
+-#define PTH_SC_fork() ((pid_t)syscall(SYS_fork))
++#define PTH_SC_fork() ((pid_t)_fork())
+ #else
+ #define PTH_SC_fork fork
+ #endif
+@@ -63,6 +63,24 @@
}
#endif
@@ -27,7 +36,7 @@ $NetBSD: patch-ad,v 1.2 2002/10/14 11:49:56 skrll Exp $
/* Pth hard wrapper for sleep(3) [internally fully emulated] */
#if PTH_SYSCALL_HARD
unsigned int sleep(unsigned int sec)
-@@ -85,11 +103,13 @@ int system(const char *cmd)
+@@ -85,11 +103,13 @@
#if cpp
#if defined(SYS_sigprocmask)
#define PTH_SC_sigprocmask(a1,a2,a3) ((int)syscall(SYS_sigprocmask,(a1),(a2),(a3)))
@@ -42,7 +51,7 @@ $NetBSD: patch-ad,v 1.2 2002/10/14 11:49:56 skrll Exp $
int sigprocmask(int how, const sigset_t *set, sigset_t *oset)
{
pth_implicit_init();
-@@ -119,6 +139,22 @@ pid_t waitpid(pid_t wpid, int *status, i
+@@ -119,6 +139,22 @@
{
pth_implicit_init();
return pth_waitpid(wpid, status, options);