summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authortnn <tnn@pkgsrc.org>2015-10-11 14:20:57 +0000
committertnn <tnn@pkgsrc.org>2015-10-11 14:20:57 +0000
commitb99b5e8bfe0ce7fa54a67e410ecafae7ae3ccfa4 (patch)
tree34f6aec6d8248c0011cf513cdb542f3828753ad7 /net
parent7fcb926c5823247db050561edb3b6601484abb9e (diff)
downloadpkgsrc-b99b5e8bfe0ce7fa54a67e410ecafae7ae3ccfa4.tar.gz
Fix startup segfault on 64-bit platforms due to pointer to int conversion.
Why this didn't surface before is anyone's guess. Bump rev.
Diffstat (limited to 'net')
-rw-r--r--net/wireshark/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/net/wireshark/Makefile b/net/wireshark/Makefile
index 4ace61185e6..c93cc80c13b 100644
--- a/net/wireshark/Makefile
+++ b/net/wireshark/Makefile
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.137 2015/09/12 19:03:59 tnn Exp $
+# $NetBSD: Makefile,v 1.138 2015/10/11 14:20:57 tnn Exp $
DISTNAME= wireshark-1.12.7
+PKGREVISION= 1
CATEGORIES= net
MASTER_SITES= https://www.wireshark.org/download/src/
EXTRACT_SUFX= .tar.bz2
@@ -62,6 +63,13 @@ post-install: ${POST_INSTALL_TARGETS}
# wireshark no longer builds with NetBSD 3.x provided zlib
BUILDLINK_API_DEPENDS.zlib=zlib>=1.2.1
+# wireshark uses gdk_pixbuf_new_from_inline which is deprecated, but asks
+# to hide deprecated prototypes. This leads to pointer truncation.
+# gui_utils.c:514:12: warning: incompatible integer to pointer conversion
+# assigning to 'GdkPixbuf *' (aka 'struct _GdkPixbuf *') from 'int'
+# [-Wint-conversion]
+BUILDLINK_TRANSFORM+= rm:-DGDK_PIXBUF_DISABLE_DEPRECATED
+
.include "../../devel/glib2/buildlink3.mk"
.include "../../devel/pcre/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"