]> git.pld-linux.org Git - packages/pspp.git/commitdiff
- fix building with glibc 2.28+ auto/th/pspp-1.0.1-4
authorJan Rękorajski <baggins@pld-linux.org>
Sun, 21 Oct 2018 15:03:25 +0000 (17:03 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Sun, 21 Oct 2018 15:03:25 +0000 (17:03 +0200)
- rel 4

glibc.patch [new file with mode: 0644]
pspp.spec

diff --git a/glibc.patch b/glibc.patch
new file mode 100644 (file)
index 0000000..21c2b09
--- /dev/null
@@ -0,0 +1,11 @@
+--- pspp-1.0.1/gl/fseterr.c~   2017-07-16 00:06:38.000000000 +0200
++++ pspp-1.0.1/gl/fseterr.c    2018-10-21 17:00:26.932630785 +0200
+@@ -29,7 +29,7 @@
+   /* Most systems provide FILE as a struct and the necessary bitmask in
+      <stdio.h>, because they need it for implementing getc() and putc() as
+      fast macros.  */
+-#if defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */
++#if defined _IO_EOF_SEEN || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */
+   fp->_flags |= _IO_ERR_SEEN;
+ #elif defined __sferror || defined __DragonFly__ || defined __ANDROID__
+   /* FreeBSD, NetBSD, OpenBSD, DragonFly, Mac OS X, Cygwin, Minix 3, Android */
index 9af5ce4253ce50dc68834ac722cf5550ea4abd1b..47cc50bea0163a660ab99d3ed5ffd3192f59e304 100644 (file)
--- a/pspp.spec
+++ b/pspp.spec
@@ -1,6 +1,6 @@
 #
 # Conditional build:
-%bcond_without         glade   # Glade extensions for PSPP development
+%bcond_without glade   # Glade extensions for PSPP development
 %bcond_without perl    # Perl module
 
 %include       /usr/lib/rpm/macros.perl
@@ -8,7 +8,7 @@ Summary:        GNU PSPP - program for statistical analysis of sampled data
 Summary(pl.UTF-8):     GNU PSPP - program do analizy statystycznej danych próbkowanych
 Name:          pspp
 Version:       1.0.1
-Release:       3
+Release:       4
 License:       GPL v3+
 Group:         Applications/Science
 Source0:       http://ftp.gnu.org/gnu/pspp/%{name}-%{version}.tar.gz
@@ -16,6 +16,7 @@ Source0:      http://ftp.gnu.org/gnu/pspp/%{name}-%{version}.tar.gz
 Patch0:                %{name}-info.patch
 Patch1:                %{name}-perl.patch
 Patch2:                %{name}-glade.patch
+Patch3:                glibc.patch
 URL:           http://www.gnu.org/software/pspp/
 BuildRequires: autoconf >= 2.63
 BuildRequires: automake
@@ -100,6 +101,7 @@ Rozszerzenia Glade do rozwijania PSPP.
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
 
 %build
 %{__libtoolize}
This page took 0.12817 seconds and 4 git commands to generate.