pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/sysutils/dbus Kludge around the fact that the return v...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/889a64dc72bf
branches:  trunk
changeset: 538315:889a64dc72bf
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Tue Feb 05 22:03:02 2008 +0000

description:
Kludge around the fact that the return value from vsnprintf is broken on hp-ux.

diffstat:

 sysutils/dbus/distinfo         |   3 ++-
 sysutils/dbus/hacks.mk         |   3 ++-
 sysutils/dbus/patches/patch-ab |  23 +++++++++++++++++++++++
 3 files changed, 27 insertions(+), 2 deletions(-)

diffs (51 lines):

diff -r 2a3d0d62d633 -r 889a64dc72bf sysutils/dbus/distinfo
--- a/sysutils/dbus/distinfo    Tue Feb 05 22:02:12 2008 +0000
+++ b/sysutils/dbus/distinfo    Tue Feb 05 22:03:02 2008 +0000
@@ -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 -r 2a3d0d62d633 -r 889a64dc72bf sysutils/dbus/hacks.mk
--- a/sysutils/dbus/hacks.mk    Tue Feb 05 22:02:12 2008 +0000
+++ b/sysutils/dbus/hacks.mk    Tue Feb 05 22:03:02 2008 +0000
@@ -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 -r 2a3d0d62d633 -r 889a64dc72bf sysutils/dbus/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/dbus/patches/patch-ab    Tue Feb 05 22:03:02 2008 +0000
@@ -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
+ }
+ 
+ /**



Home | Main Index | Thread Index | Old Index