pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/apr Add support for DragonFly from Joerg Sonnenb...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ddc8f65d300d
branches:  trunk
changeset: 499002:ddc8f65d300d
user:      reed <reed%pkgsrc.org@localhost>
date:      Wed Sep 07 11:39:55 2005 +0000

description:
Add support for DragonFly from Joerg Sonnenberger. Okayed by tron.

diffstat:

 devel/apr/distinfo         |   5 ++++-
 devel/apr/patches/patch-ar |  20 ++++++++++++++++++++
 devel/apr/patches/patch-as |  22 ++++++++++++++++++++++
 devel/apr/patches/patch-at |  17 +++++++++++++++++
 4 files changed, 63 insertions(+), 1 deletions(-)

diffs (87 lines):

diff -r 4c5f5110f76d -r ddc8f65d300d devel/apr/distinfo
--- a/devel/apr/distinfo        Wed Sep 07 11:30:31 2005 +0000
+++ b/devel/apr/distinfo        Wed Sep 07 11:39:55 2005 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.13 2005/04/25 09:13:02 adam Exp $
+$NetBSD: distinfo,v 1.14 2005/09/07 11:39:55 reed Exp $
 
 SHA1 (httpd-2.0.54.tar.bz2) = 15b4fc3024cceea6562fb03383fd624e84e5e35a
 RMD160 (httpd-2.0.54.tar.bz2) = c511cb2fa396ba04caf77bfc6ca03413df48ea08
@@ -7,3 +7,6 @@
 SHA1 (patch-ao) = d04d37445b7e8a50a74caa9bda3e6b10924e8322
 SHA1 (patch-ap) = 357776c7208407936e09891ae87d23b112a12756
 SHA1 (patch-aq) = 6cc1fb879fb5d9280f543ebe068a441e2e6560f3
+SHA1 (patch-ar) = defa2be14ec057e1c41151b8cd1edc0ffb219694
+SHA1 (patch-as) = 37e70ff8b1a3344e47bcd2fe2b145a6e3e6a4562
+SHA1 (patch-at) = 9935c308ba96a8c92dedd3288429a989f9d643f5
diff -r 4c5f5110f76d -r ddc8f65d300d devel/apr/patches/patch-ar
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/apr/patches/patch-ar        Wed Sep 07 11:39:55 2005 +0000
@@ -0,0 +1,20 @@
+$NetBSD: patch-ar,v 1.1 2005/09/07 11:39:55 reed Exp $
+
+--- apr/network_io/unix/sendrecv.c.orig        2005-07-15 15:11:22.000000000 +0000
++++ apr/network_io/unix/sendrecv.c
+@@ -372,11 +372,13 @@ do_select:
+     return rv < 0 ? errno : APR_SUCCESS;
+ }
+ 
+-#elif defined(__FreeBSD__)
++#elif defined(__FreeBSD__) || defined(__DragonFly__)
+ 
+ static int include_hdrs_in_length(void)
+ {
+-#ifdef HAVE_SYS_SYSCTL_H
++#ifdef __DragonFly__
++      return(0);
++#elif defined(HAVE_SYS_SYSCTL_H)
+ /* this assumes: 
+  *   if the header exists, so does the sysctlbyname() syscall, and 
+  *   if the header doesn't exist, the kernel is really old
diff -r 4c5f5110f76d -r ddc8f65d300d devel/apr/patches/patch-as
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/apr/patches/patch-as        Wed Sep 07 11:39:55 2005 +0000
@@ -0,0 +1,22 @@
+$NetBSD: patch-as,v 1.1 2005/09/07 11:39:55 reed Exp $
+
+--- apr/include/apr_atomic.h.orig      2005-07-15 15:16:55.000000000 +0000
++++ apr/include/apr_atomic.h
+@@ -28,7 +28,7 @@
+ /* Platform includes for atomics */
+ #if defined(NETWARE) || defined(__MVS__) /* OS/390 */
+ #include <stdlib.h>
+-#elif defined(__FreeBSD__)
++#elif defined(__FreeBSD__) || defined(__DragonFly__)
+ #include <machine/atomic.h>
+ #endif
+ 
+@@ -159,7 +159,7 @@ inline void *apr_atomic_casptr(void **me
+     return (void*)atomic_cmpxchg((unsigned long *)mem,(unsigned long)cmp,(unsigned long)with);
+ }
+ 
+-#elif defined(__FreeBSD__)
++#elif defined(__FreeBSD__) || defined(__DragonFly__)
+ 
+ #define apr_atomic_t apr_uint32_t
+ #define apr_atomic_add(mem, val)     (atomic_add_int(mem,val),mem)
diff -r 4c5f5110f76d -r ddc8f65d300d devel/apr/patches/patch-at
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/apr/patches/patch-at        Wed Sep 07 11:39:55 2005 +0000
@@ -0,0 +1,17 @@
+$NetBSD: patch-at,v 1.1 2005/09/07 11:39:55 reed Exp $
+
+--- apr/build/apr_hints.m4.orig        2005-07-15 15:19:19.000000000 +0000
++++ apr/build/apr_hints.m4
+@@ -140,6 +140,12 @@ dnl              # Not a problem in 10.20.  Ot
+         # fcntl() lies about O_NONBLOCK on an accept()ed socket (PR kern/26950)
+         APR_SETIFNULL(ac_cv_o_nonblock_inherited, [yes])
+       ;;
++    *-dragonfly*)
++      APR_ADDTO(CFLAGS, [-funsigned-char])
++      APR_SETIFNULL(enable_threads, [no])
++        APR_SETIFNULL(apr_lock_method, [USE_FLOCK_SERIALIZE])
++      APR_ADDTO(CPPFLAGS, [-D_REENTRANT])
++      ;;
+     *-freebsd*)
+       case $host in
+           *freebsd[2345]*)



Home | Main Index | Thread Index | Old Index