summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordholland <dholland@pkgsrc.org>2011-08-13 22:20:14 +0000
committerdholland <dholland@pkgsrc.org>2011-08-13 22:20:14 +0000
commitb6f218d297934d82319b3bf11d3fbb3733135c02 (patch)
tree9534980b06e0d27938c160dc07e210ea7fec3927
parent1fbfd40bb80485b923320f66ea472aa8c6b0e834 (diff)
downloadpkgsrc-b6f218d297934d82319b3bf11d3fbb3733135c02.tar.gz
Make this build on amd64.
-rw-r--r--www/nvu/distinfo6
-rw-r--r--www/nvu/patches/patch-netwerk_protocol_http_src_nshttpconnectionmgr_cpp17
-rw-r--r--www/nvu/patches/patch-nsprpub_pr_include_md__netbsd_cfg15
-rw-r--r--www/nvu/patches/patch-nsprpub_pr_include_md__netbsd_h32
-rw-r--r--www/nvu/patches/patch-nsprpub_pr_src_io_prprf_c18
5 files changed, 87 insertions, 1 deletions
diff --git a/www/nvu/distinfo b/www/nvu/distinfo
index 08943099edb..a4660d681d7 100644
--- a/www/nvu/distinfo
+++ b/www/nvu/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.3 2011/03/17 13:24:07 obache Exp $
+$NetBSD: distinfo,v 1.4 2011/08/13 22:20:14 dholland Exp $
SHA1 (nvu-1.0-sources.tar.bz2) = 438b1633cb820bbede503ef2da90f46d4e96bee8
RMD160 (nvu-1.0-sources.tar.bz2) = 6d6fdb747d79e8602a4757e8eff8bbb21db6df8c
@@ -11,4 +11,8 @@ SHA1 (patch-al) = 57a15074fca3ddba756d0b3898ad9bf06a6e130a
SHA1 (patch-an) = 99ac2da44322db96f8d65fbfdb380727b9da96fe
SHA1 (patch-ao) = 617d232bd335bc988388f2004ca919c829e371da
SHA1 (patch-ap) = 82a85df0b172f949509561f83ae7849e177babee
+SHA1 (patch-netwerk_protocol_http_src_nshttpconnectionmgr_cpp) = 37d4aa3d3ce2f4885deaac3cdc97e0b010216511
SHA1 (patch-nsprpub_config_Makefile.in) = daf6423b53385c32e658fa5d93e33a0c5f31ca91
+SHA1 (patch-nsprpub_pr_include_md__netbsd_cfg) = 4f65863a7516ed8c37a752e040ef1e3d4b881f29
+SHA1 (patch-nsprpub_pr_include_md__netbsd_h) = 059df4799777743947b74ae39ed250c17c78ad37
+SHA1 (patch-nsprpub_pr_src_io_prprf_c) = fabb1a52ced70a7640dd8a8d91e20e9672b22b76
diff --git a/www/nvu/patches/patch-netwerk_protocol_http_src_nshttpconnectionmgr_cpp b/www/nvu/patches/patch-netwerk_protocol_http_src_nshttpconnectionmgr_cpp
new file mode 100644
index 00000000000..4c45c1c040d
--- /dev/null
+++ b/www/nvu/patches/patch-netwerk_protocol_http_src_nshttpconnectionmgr_cpp
@@ -0,0 +1,17 @@
+$NetBSD: patch-netwerk_protocol_http_src_nshttpconnectionmgr_cpp,v 1.1 2011/08/13 22:20:14 dholland Exp $
+
+Build on amd64.
+
+--- netwerk/protocol/http/src/nsHttpConnectionMgr.cpp~ 2004-09-01 23:31:03.000000000 +0000
++++ netwerk/protocol/http/src/nsHttpConnectionMgr.cpp
+@@ -834,8 +834,8 @@ nsHttpConnectionMgr::OnMsgReclaimConnect
+ void
+ nsHttpConnectionMgr::OnMsgUpdateParam(nsresult status, void *param)
+ {
+- PRUint16 name = (PRUint32(param) & 0xFFFF0000) >> 16;
+- PRUint16 value = PRUint32(param) & 0x0000FFFF;
++ PRUint16 name = (PRUint32((uintptr_t)param) & 0xFFFF0000) >> 16;
++ PRUint16 value = PRUint32((uintptr_t)param) & 0x0000FFFF;
+
+ switch (name) {
+ case MAX_CONNECTIONS:
diff --git a/www/nvu/patches/patch-nsprpub_pr_include_md__netbsd_cfg b/www/nvu/patches/patch-nsprpub_pr_include_md__netbsd_cfg
new file mode 100644
index 00000000000..d181ad1547c
--- /dev/null
+++ b/www/nvu/patches/patch-nsprpub_pr_include_md__netbsd_cfg
@@ -0,0 +1,15 @@
+$NetBSD: patch-nsprpub_pr_include_md__netbsd_cfg,v 1.1 2011/08/13 22:20:14 dholland Exp $
+
+Build on amd64.
+
+--- nsprpub/pr/include/md/_netbsd.cfg~ 2000-12-01 21:29:17.000000000 +0000
++++ nsprpub/pr/include/md/_netbsd.cfg
+@@ -137,7 +137,7 @@
+ #define PR_ALIGN_OF_DOUBLE 8
+ #define PR_ALIGN_OF_POINTER 4
+
+-#elif defined(__alpha__)
++#elif defined(__alpha__) || defined(__x86_64__)
+ #define IS_LITTLE_ENDIAN 1
+ #undef IS_BIG_ENDIAN
+ #define HAVE_LONG_LONG
diff --git a/www/nvu/patches/patch-nsprpub_pr_include_md__netbsd_h b/www/nvu/patches/patch-nsprpub_pr_include_md__netbsd_h
new file mode 100644
index 00000000000..c6c9172142f
--- /dev/null
+++ b/www/nvu/patches/patch-nsprpub_pr_include_md__netbsd_h
@@ -0,0 +1,32 @@
+$NetBSD: patch-nsprpub_pr_include_md__netbsd_h,v 1.1 2011/08/13 22:20:14 dholland Exp $
+
+Build on amd64.
+
+--- nsprpub/pr/include/md/_netbsd.h~ 2003-09-11 17:24:53.000000000 +0000
++++ nsprpub/pr/include/md/_netbsd.h
+@@ -42,6 +42,8 @@
+ #define _PR_SI_SYSNAME "NetBSD"
+ #if defined(__i386__)
+ #define _PR_SI_ARCHITECTURE "x86"
++#elif defined(__x86_64__)
++#define _PR_SI_ARCHITECTURE "x86-64"
+ #elif defined(__alpha__)
+ #define _PR_SI_ARCHITECTURE "alpha"
+ #elif defined(__m68k__)
+@@ -108,6 +110,16 @@
+ }
+ #define _MD_GET_SP(_thread) CONTEXT(_thread)[2]
+ #endif
++#ifdef __x86_64__
++#define _MD_INIT_CONTEXT(_thread, _sp, _main, status) \
++{ \
++ sigsetjmp(CONTEXT(_thread), 1); \
++ CONTEXT(_thread)[_JB_RSP] = (unsigned char*) ((_sp) - 128); \
++ CONTEXT(_thread)[_JB_PC] = (int) _main; \
++ *status = PR_TRUE; \
++}
++#define _MD_GET_SP(_thread) CONTEXT(_thread)[_JB_RSP]
++#endif
+ #ifdef __sparc__
+ #define _MD_INIT_CONTEXT(_thread, _sp, _main, status) \
+ { \
diff --git a/www/nvu/patches/patch-nsprpub_pr_src_io_prprf_c b/www/nvu/patches/patch-nsprpub_pr_src_io_prprf_c
new file mode 100644
index 00000000000..11bcccf5395
--- /dev/null
+++ b/www/nvu/patches/patch-nsprpub_pr_src_io_prprf_c
@@ -0,0 +1,18 @@
+$NetBSD: patch-nsprpub_pr_src_io_prprf_c,v 1.1 2011/08/13 22:20:14 dholland Exp $
+
+Use valid va_list handling.
+
+--- nsprpub/pr/src/io/prprf.c~ 2004-03-09 03:18:19.000000000 +0000
++++ nsprpub/pr/src/io/prprf.c
+@@ -51,7 +51,10 @@
+ ** Note: on some platforms va_list is defined as an array,
+ ** and requires array notation.
+ */
+-#if (defined(LINUX) && defined(__x86_64__))
++#if __STDC__ >= 19990101 || defined(__NetBSD__) || defined(__FreeBSD__) || \
++ defined(__OpenBSD__) || defined(__DragonFly__)
++#define VARARGS_ASSIGN(foo, bar) va_copy((foo), (bar))
++#elif (defined(LINUX) && defined(__x86_64__))
+ #define VARARGS_ASSIGN(foo, bar) __va_copy((foo), (bar))
+ #elif (defined(LINUX) && defined(__powerpc__)) || \
+ (defined(LINUX) && defined(__s390__)) || \