]> git.pld-linux.org Git - packages/Mesa.git/commitdiff
- fix for Xorg crashes on Radeon cards auto/th/Mesa-17.2.1-2
authorJan Rękorajski <baggins@pld-linux.org>
Tue, 19 Sep 2017 21:50:42 +0000 (23:50 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Tue, 19 Sep 2017 21:50:42 +0000 (23:50 +0200)
- rel 2

Mesa.spec
b101832.patch [new file with mode: 0644]

index 856cc652086ce7045af8749da197d37df532bef5..d4a1a57dae2e335a6ab724ff0f38cc3b04231b01 100644 (file)
--- a/Mesa.spec
+++ b/Mesa.spec
@@ -64,12 +64,13 @@ Summary:    Free OpenGL implementation
 Summary(pl.UTF-8):     Wolnodostępna implementacja standardu OpenGL
 Name:          Mesa
 Version:       17.2.1
-Release:       1
+Release:       2
 License:       MIT (core) and others - see license.html file
 Group:         X11/Libraries
 Source0:       ftp://ftp.freedesktop.org/pub/mesa/mesa-%{version}.tar.xz
 # Source0-md5: f53ed38110237d9df5f9198c09ef0ab0
 Patch0:                %{name}-link.patch
+Patch1:                b101832.patch
 URL:           http://www.mesa3d.org/
 BuildRequires: autoconf >= 2.60
 BuildRequires: automake
@@ -1268,6 +1269,7 @@ radv - eksperymentalny sterownik Vulkan dla GPU firmy AMD.
 %prep
 %setup -q -n mesa-%{version}
 %patch0 -p1
+%patch1 -p1
 
 %build
 %{__libtoolize}
diff --git a/b101832.patch b/b101832.patch
new file mode 100644 (file)
index 0000000..57b13a6
--- /dev/null
@@ -0,0 +1,14 @@
+https://bugs.freedesktop.org/show_bug.cgi?id=101832
+
+--- mesa-17.2.0-rc5/src/gallium/drivers/swr/rasterizer/core/utils.h.omv~       2017-08-31 00:39:53.063561929 +0200
++++ mesa-17.2.0-rc5/src/gallium/drivers/swr/rasterizer/core/utils.h    2017-08-31 00:40:13.853833494 +0200
+@@ -347,7 +347,8 @@ static INLINE std::string GetEnv(const s
+     output.resize(valueSize - 1); // valueSize includes null, output.resize() does not
+     GetEnvironmentVariableA(variableName.c_str(), &output[0], valueSize);
+ #else
+-    output = getenv(variableName.c_str());
++    char *o = getenv(variableName.c_str());
++    output = o ? std::string(o) : std::string();
+ #endif
+     return output;
This page took 0.036866 seconds and 4 git commands to generate.