]> git.pld-linux.org Git - packages/reiserfsprogs.git/commitdiff
fix build with new glibc master
authorJan Palus <atler@pld-linux.org>
Sat, 23 May 2020 00:25:30 +0000 (02:25 +0200)
committerJan Palus <atler@pld-linux.org>
Sat, 23 May 2020 00:25:30 +0000 (02:25 +0200)
glibc.patch [new file with mode: 0644]
reiserfsprogs.spec

diff --git a/glibc.patch b/glibc.patch
new file mode 100644 (file)
index 0000000..f9fc530
--- /dev/null
@@ -0,0 +1,16 @@
+Description: Fix compilation with newer glibc
+Fixes compilation with newer glibc.
+If _XOPEN_SOURCE is defined _DEFAULT_SOURCE needs to be defined explicit
+to have the definition of loff_t.
+Author: Felix Zielcke <fzielcke@z-51.de>
+Bug-Debian: https://bugs.debian.org/916166
+Last-Update: 2018-12-12
+
+--- reiserfsprogs-3.6.27.orig/lib/parse_time.c
++++ reiserfsprogs-3.6.27/lib/parse_time.c
+@@ -1,4 +1,5 @@
+ #define _XOPEN_SOURCE
++#define _DEFAULT_SOURCE
+ #ifdef HAVE_CONFIG_H
+ #include <config.h>
+ #endif
index 3222f29ad30a1206d5ed6dc6ca4ab5c315f0ce30..57017d31c2fc3c9dd17a6ffa2a681f2647f037b4 100644 (file)
@@ -13,6 +13,7 @@ Group:                Applications/System
 Source0:       https://www.kernel.org/pub/linux/kernel/people/jeffm/reiserfsprogs/v%{version}/%{name}-%{version}.tar.xz
 # Source0-md5: 90c139542725efc6da3a6b1709695395
 Patch0:                %{name}-am.patch
+Patch1:                glibc.patch
 URL:           https://reiser4.wiki.kernel.org/index.php/Reiserfsprogs
 BuildRequires: autoconf >= 2.50
 BuildRequires: automake >= 1:1.11.1
@@ -101,6 +102,7 @@ Biblioteka statyczna ReiserFS Core.
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
 %build
 %{__libtoolize}
This page took 0.082232 seconds and 4 git commands to generate.