From 0b3fc58e5f4af8def81afeb5f6ffd5b6eb86ab6a Mon Sep 17 00:00:00 2001 From: Sergey Cherevko Date: Tue, 28 Nov 2023 13:09:35 +0300 Subject: [PATCH] Added #include in error.c for successful build --- SOURCES/0001-MSVSphere-include-stddef.h.patch | 25 +++++++++++++++++++ SPECS/mesa-libGLU.spec | 8 ++++-- 2 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 SOURCES/0001-MSVSphere-include-stddef.h.patch diff --git a/SOURCES/0001-MSVSphere-include-stddef.h.patch b/SOURCES/0001-MSVSphere-include-stddef.h.patch new file mode 100644 index 0000000..5f9e438 --- /dev/null +++ b/SOURCES/0001-MSVSphere-include-stddef.h.patch @@ -0,0 +1,25 @@ +From 6b4c55d80dd64ca850159d8497178bc70f8ec51c Mon Sep 17 00:00:00 2001 +From: Sergey Cherevko +Date: Tue, 28 Nov 2023 13:01:49 +0300 +Subject: [PATCH] MSVSphere include stddef.h + +--- + src/libutil/error.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/libutil/error.c b/src/libutil/error.c +index 7212748..c71ffdf 100644 +--- a/src/libutil/error.c ++++ b/src/libutil/error.c +@@ -31,7 +31,7 @@ + #include "gluos.h" + #include "gluint.h" + #include +- ++#include + + struct token_string + { +-- +2.39.3 + diff --git a/SPECS/mesa-libGLU.spec b/SPECS/mesa-libGLU.spec index 640f8a1..8361c13 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}.inferit Summary: Mesa libGLU library License: MIT @@ -12,6 +12,8 @@ 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 +# MSVSphere +Patch100: 0001-MSVSphere-include-stddef.h.patch BuildRequires: autoconf automake libtool BuildRequires: mesa-libGL-devel @@ -35,6 +37,7 @@ developing applications that use %{name}. %setup -q -n glu-%{?gitdate:%{gitdate}}%{?!gitdate:%{version}} %patch1 -p1 %patch2 -p1 +%patch100 -p1 %build autoreconf -v -i -f @@ -61,7 +64,8 @@ rm -rf $RPM_BUILD_ROOT%{_datadir}/man/man3/gl[A-Z]* %{_libdir}/pkgconfig/glu.pc %changelog -* Wed Jul 26 2023 MSVSphere Packaging Team - 9.0.0-15 +* Tue Nov 28 2023 Sergey Cherevko - 9.0.0-15.inferit +- Added #include in error.c for successful build - Rebuilt for MSVSphere 8.8 * Fri Jun 29 2018 Adam Jackson - 9.0.0-15