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
%prep
%setup -q -n mesa-%{version}
%patch0 -p1
+%patch1 -p1
%build
%{__libtoolize}
--- /dev/null
+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;