From 0247e5e18561f7055867ed8c798d26d266dbf8c5 Mon Sep 17 00:00:00 2001 From: eabdullin Date: Tue, 2 Nov 2021 14:24:49 +0300 Subject: [PATCH] Add patch: libutil: Include stddef.h for NULL --- SOURCES/include_stddef.patch | 19 +++++++++++++++++++ SPECS/mesa-libGLU.spec | 10 +++++++++- 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 SOURCES/include_stddef.patch diff --git a/SOURCES/include_stddef.patch b/SOURCES/include_stddef.patch new file mode 100644 index 0000000..cedc7c2 --- /dev/null +++ b/SOURCES/include_stddef.patch @@ -0,0 +1,19 @@ +diff --git a/glu.pc.in b/glu.pc.in +index 939740d..8bb957a 100644 +--- a/glu.pc.in ++++ b/glu.pc.in +@@ -9,3 +9,4 @@ Requires: @GLU_REQUIRES@ + Version: @VERSION@ + Libs: -L${libdir} -lGLU + Libs.private: -lm ++Cflags: -I${includedir} +diff --git a/src/libutil/error.c b/src/libutil/error.c +index 7212748..d3b2666 100644 +--- a/src/libutil/error.c ++++ b/src/libutil/error.c +@@ -30,6 +30,7 @@ + + #include "gluos.h" + #include "gluint.h" ++#include + #include diff --git a/SPECS/mesa-libGLU.spec b/SPECS/mesa-libGLU.spec index 44d9a4a..a80e0d3 100644 --- a/SPECS/mesa-libGLU.spec +++ b/SPECS/mesa-libGLU.spec @@ -2,7 +2,7 @@ Name: mesa-libGLU Version: 9.0.0 -Release: 15%{?dist} +Release: 15%{?dist}.alma Summary: Mesa libGLU library License: MIT @@ -13,6 +13,9 @@ Source2: make-git-snapshot.sh Patch1: 0001-glu-initialize-PriorityQ-order-field-to-NULL-in-pqNe.patch Patch2: 0002-Add-D-N-DEBUG-to-CFLAGS-dependent-on-enable-debug.patch +# Fixed in the 9.0.1 version +Patch9999: include_stddef.patch + BuildRequires: autoconf automake libtool BuildRequires: mesa-libGL-devel #Requires: @@ -36,6 +39,8 @@ developing applications that use %{name}. %patch1 -p1 %patch2 -p1 +%patch9999 -p1 + %build autoreconf -v -i -f %configure --disable-static @@ -61,6 +66,9 @@ rm -rf $RPM_BUILD_ROOT%{_datadir}/man/man3/gl[A-Z]* %{_libdir}/pkgconfig/glu.pc %changelog +* Tue Nov 02 2021 Eduard Abdullin - 9.0.0-15.alma +- Add patch: Include stddef.h for NULL + * Fri Jun 29 2018 Adam Jackson - 9.0.0-15 - Use ldconfig scriptlet macros