Add patch: libutil: Include stddef.h for NULL

This commit is contained in:
eabdullin 2021-11-02 14:24:49 +03:00
parent b2989960f1
commit 0247e5e185
2 changed files with 28 additions and 1 deletions

View File

@ -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 <stddef.h>
#include <GL/glu.h>

View File

@ -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 <eabdullin@almalinux.org> - 9.0.0-15.alma
- Add patch: Include stddef.h for NULL
* Fri Jun 29 2018 Adam Jackson <ajax@redhat.com> - 9.0.0-15
- Use ldconfig scriptlet macros