summaryrefslogtreecommitdiff
path: root/x11/modular-xorg-server
diff options
context:
space:
mode:
authortnn <tnn@pkgsrc.org>2015-02-22 11:08:45 +0000
committertnn <tnn@pkgsrc.org>2015-02-22 11:08:45 +0000
commitcfdbfb9d09aa5d253bb8647a0de4b95719a40519 (patch)
tree4ecd7cf5db0705eafce38900f79c80b06d58a592 /x11/modular-xorg-server
parentf897c1255daff31738d61a3bd5dce52781e14ad4 (diff)
downloadpkgsrc-cfdbfb9d09aa5d253bb8647a0de4b95719a40519.tar.gz
fix segfault in DRI2CreateDrawable2 due to uninitialized variable
Diffstat (limited to 'x11/modular-xorg-server')
-rw-r--r--x11/modular-xorg-server/Makefile4
-rw-r--r--x11/modular-xorg-server/distinfo3
-rw-r--r--x11/modular-xorg-server/patches/patch-hw_xfree86_dri2_dri2.c40
3 files changed, 44 insertions, 3 deletions
diff --git a/x11/modular-xorg-server/Makefile b/x11/modular-xorg-server/Makefile
index a5c621107ef..95eed3392d9 100644
--- a/x11/modular-xorg-server/Makefile
+++ b/x11/modular-xorg-server/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.87 2015/02/11 09:43:39 wiz Exp $
+# $NetBSD: Makefile,v 1.88 2015/02/22 11:08:45 tnn Exp $
DISTNAME= xorg-server-1.12.4
PKGNAME= modular-${DISTNAME}
-PKGREVISION= 8
+PKGREVISION= 9
CATEGORIES= x11
MASTER_SITES= ${MASTER_SITE_XORG:=xserver/}
EXTRACT_SUFX= .tar.bz2
diff --git a/x11/modular-xorg-server/distinfo b/x11/modular-xorg-server/distinfo
index e96da57c044..9b17444419c 100644
--- a/x11/modular-xorg-server/distinfo
+++ b/x11/modular-xorg-server/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.56 2015/02/11 09:43:39 wiz Exp $
+$NetBSD: distinfo,v 1.57 2015/02/22 11:08:45 tnn Exp $
SHA1 (xorg-server-1.12.4.tar.bz2) = 6d616874f9c7677bda08dc073c03f83e78fbc585
RMD160 (xorg-server-1.12.4.tar.bz2) = 4907b5dc42efd6b3fb6bf9d64f1441080a6a6983
@@ -44,6 +44,7 @@ SHA1 (patch-glx_singlepixswap.c) = 1e3d54d3082a59d21edd81276980b953efc39ebb
SHA1 (patch-glx_swap__interval.c) = 2ff4e2e7d2793dd8558b04c1f72abfa81998f2c6
SHA1 (patch-glx_unpack.h) = 5ae5c10c93835cb51c08f5dae05c5a5e2afaad98
SHA1 (patch-hw_xfree86_common_compiler.h) = 88de747715b80b22f448869ab32dce1641bcb6db
+SHA1 (patch-hw_xfree86_dri2_dri2.c) = 32a8c309f9ae417c99fe81b6a9c3b1f402880981
SHA1 (patch-hw_xfree86_dri2_dri2ext.c) = bc2b57e4bef5ae386d1d3a015c01d243f8880ab4
SHA1 (patch-hw_xfree86_os-support_xf86__OSlib.h) = 7c2760509610b44915da077b22899bef9c338cc1
SHA1 (patch-include_dix.h) = ab0dc2debd87f29c0ac7f971a3cad4850b239c3a
diff --git a/x11/modular-xorg-server/patches/patch-hw_xfree86_dri2_dri2.c b/x11/modular-xorg-server/patches/patch-hw_xfree86_dri2_dri2.c
new file mode 100644
index 00000000000..ca25df6ad5a
--- /dev/null
+++ b/x11/modular-xorg-server/patches/patch-hw_xfree86_dri2_dri2.c
@@ -0,0 +1,40 @@
+$NetBSD: patch-hw_xfree86_dri2_dri2.c,v 1.1 2015/02/22 11:08:45 tnn Exp $
+
+Fix uninitialized variables warning from clang (X crashes without this)
+
+dri2.c:242:27: note: initialize the variable 'ref' to silence this warning
+ DRI2DrawableRefPtr ref;
+dri2.c:320:27: note: initialize the variable 'ref' to silence this warning
+ DRI2DrawableRefPtr ref, next;
+dri2.c:601:27: note: initialize the variable 'ref' to silence this warning
+ DRI2DrawableRefPtr ref;
+
+--- hw/xfree86/dri2/dri2.c.orig 2012-08-02 00:05:32.000000000 +0000
++++ hw/xfree86/dri2/dri2.c
+@@ -239,7 +239,7 @@ typedef struct DRI2DrawableRefRec {
+ static DRI2DrawableRefPtr
+ DRI2LookupDrawableRef(DRI2DrawablePtr pPriv, XID id)
+ {
+- DRI2DrawableRefPtr ref;
++ DRI2DrawableRefPtr ref = NULL;
+
+ xorg_list_for_each_entry(ref, &pPriv->reference_list, link) {
+ if (ref->id == id)
+@@ -317,7 +317,7 @@ DRI2DrawableGone(pointer p, XID id)
+ {
+ DRI2DrawablePtr pPriv = p;
+ DRI2ScreenPtr ds = pPriv->dri2_screen;
+- DRI2DrawableRefPtr ref, next;
++ DRI2DrawableRefPtr ref = NULL, next;
+ WindowPtr pWin;
+ PixmapPtr pPixmap;
+ DrawablePtr pDraw;
+@@ -598,7 +598,7 @@ static void
+ DRI2InvalidateDrawable(DrawablePtr pDraw)
+ {
+ DRI2DrawablePtr pPriv = DRI2GetDrawable(pDraw);
+- DRI2DrawableRefPtr ref;
++ DRI2DrawableRefPtr ref = NULL;
+
+ if (!pPriv || !pPriv->needInvalidate)
+ return;