[packages/reiserfsprogs] fix build with new glibc

atler atler at pld-linux.org
Sat May 23 02:25:54 CEST 2020


commit b671415033562057fa846fbdf1d2680c07c587a1
Author: Jan Palus <atler at pld-linux.org>
Date:   Sat May 23 02:25:30 2020 +0200

    fix build with new glibc

 glibc.patch        | 16 ++++++++++++++++
 reiserfsprogs.spec |  2 ++
 2 files changed, 18 insertions(+)
---
diff --git a/reiserfsprogs.spec b/reiserfsprogs.spec
index 3222f29..57017d3 100644
--- a/reiserfsprogs.spec
+++ b/reiserfsprogs.spec
@@ -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}
diff --git a/glibc.patch b/glibc.patch
new file mode 100644
index 0000000..f9fc530
--- /dev/null
+++ b/glibc.patch
@@ -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 at 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
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/reiserfsprogs.git/commitdiff/b671415033562057fa846fbdf1d2680c07c587a1



More information about the pld-cvs-commit mailing list