summaryrefslogtreecommitdiff
path: root/sysutils/dbus
diff options
context:
space:
mode:
authortnn <tnn@pkgsrc.org>2008-02-05 22:03:02 +0000
committertnn <tnn@pkgsrc.org>2008-02-05 22:03:02 +0000
commite7990daf1258ef001843468cbbee425a47fff97d (patch)
treea0174dd3a5641b6188c5e8ea710f12a28de5bcd2 /sysutils/dbus
parent943c20192b0c3c4bfb522e75c852b3dcda5b21d9 (diff)
downloadpkgsrc-e7990daf1258ef001843468cbbee425a47fff97d.tar.gz
Kludge around the fact that the return value from vsnprintf is broken on hp-ux.
Diffstat (limited to 'sysutils/dbus')
-rw-r--r--sysutils/dbus/distinfo3
-rw-r--r--sysutils/dbus/hacks.mk3
-rw-r--r--sysutils/dbus/patches/patch-ab23
3 files changed, 27 insertions, 2 deletions
diff --git a/sysutils/dbus/distinfo b/sysutils/dbus/distinfo
index d08f2e8a21f..c0a2644c47c 100644
--- a/sysutils/dbus/distinfo
+++ b/sysutils/dbus/distinfo
@@ -1,8 +1,9 @@
-$NetBSD: distinfo,v 1.16 2006/12/17 15:39:33 jmmv Exp $
+$NetBSD: distinfo,v 1.17 2008/02/05 22:03:02 tnn Exp $
SHA1 (dbus-1.0.2.tar.gz) = 2870efd6ea0b5b0d14e52195f560238a74bb1e0e
RMD160 (dbus-1.0.2.tar.gz) = d5eddfb058c4c026d4a9f091ad90abcc6e54861a
Size (dbus-1.0.2.tar.gz) = 1400278 bytes
SHA1 (patch-aa) = 71c903a268e8ece66c39f48937c9544b7c82d1b3
+SHA1 (patch-ab) = ecda96c45e9782dc8611f843f940c8e7c4a4b510
SHA1 (patch-ac) = eae0564535d36cb0082dd2e66d74fea808800d4e
SHA1 (patch-ag) = 469993db97a74da50c61449454c02c8a7c69e7bd
diff --git a/sysutils/dbus/hacks.mk b/sysutils/dbus/hacks.mk
index 1dbae21caf7..268785610f8 100644
--- a/sysutils/dbus/hacks.mk
+++ b/sysutils/dbus/hacks.mk
@@ -1,4 +1,5 @@
-# $NetBSD: hacks.mk,v 1.1 2006/08/23 09:44:27 jmmv Exp $
+# $NetBSD: hacks.mk,v 1.2 2008/02/05 22:03:02 tnn Exp $
# gcc 2.95 does not understand -Wfloat-equal
BUILDLINK_TRANSFORM+= rm:-Wfloat-equal
+#XXX_DISABLED=yes
diff --git a/sysutils/dbus/patches/patch-ab b/sysutils/dbus/patches/patch-ab
new file mode 100644
index 00000000000..d344f0f0adb
--- /dev/null
+++ b/sysutils/dbus/patches/patch-ab
@@ -0,0 +1,23 @@
+$NetBSD: patch-ab,v 1.7 2008/02/05 22:03:02 tnn Exp $
+
+--- dbus/dbus-sysdeps-unix.c.orig 2006-12-11 14:21:09.000000000 -0500
++++ dbus/dbus-sysdeps-unix.c
+@@ -2311,8 +2311,18 @@ int
+ _dbus_printf_string_upper_bound (const char *format,
+ va_list args)
+ {
++#ifdef __hpux
++/* this code from libnbcompat's vsnprintf */
++ static FILE *devnull = 0;
++ if (!devnull) {
++ devnull = fopen("/dev/null", "w");
++ if (!devnull) return -1;
++ }
++ return vfprintf(devnull, format, args);
++#else
+ char c;
+ return vsnprintf (&c, 1, format, args);
++#endif
+ }
+
+ /**