pkgsrc-Changes archive

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

CVS commit: pkgsrc/graphics/MesaLib18



Module Name:    pkgsrc
Committed By:   tnn
Date:           Fri Jan 11 11:30:12 UTC 2019

Modified Files:
        pkgsrc/graphics/MesaLib18: Makefile

Log Message:
MesaLib18: make sure we use __builtin_alloca on NetBSD

Otherwise Xorg crashes in the radeon driver when mesa is built with clang.
Better fix welcome.
Bump PKGREVISION.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 pkgsrc/graphics/MesaLib18/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/graphics/MesaLib18/Makefile
diff -u pkgsrc/graphics/MesaLib18/Makefile:1.8 pkgsrc/graphics/MesaLib18/Makefile:1.9
--- pkgsrc/graphics/MesaLib18/Makefile:1.8      Thu Jan 10 22:30:10 2019
+++ pkgsrc/graphics/MesaLib18/Makefile  Fri Jan 11 11:30:11 2019
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.8 2019/01/10 22:30:10 tnn Exp $
+# $NetBSD: Makefile,v 1.9 2019/01/11 11:30:11 tnn Exp $
 
 DISTNAME=      mesa-18.3.1
+PKGREVISION=   1
 PKGNAME=       ${DISTNAME:S/mesa/MesaLib/}
 CATEGORIES=    graphics x11
 MASTER_SITES=  ftp://ftp.freedesktop.org/pub/mesa/
@@ -81,6 +82,10 @@ CPPFLAGS+=   -Dexp2\(x\)=exp\(\(x\)\*M_LN2
 CPPFLAGS+=     -Dexp2f\(x\)=expf\(\(x\)\*M_LN2\)
 .endif
 
+# Work around Xorg segfaulting in radeon driver due to wrong alloca being used
+CFLAGS.NetBSD+=                -Dalloca=__builtin_alloca
+CXXFLAGS.NetBSD+=      -Dalloca=__builtin_alloca
+
 pre-configure:
        cd ${WRKSRC} && autoreconf -vif
 # Manual patch for FDO bug 90311. Don't apply if not on Darwin as there could



Home | Main Index | Thread Index | Old Index