From b671415033562057fa846fbdf1d2680c07c587a1 Mon Sep 17 00:00:00 2001 From: Jan Palus Date: Sat, 23 May 2020 02:25:30 +0200 Subject: [PATCH] fix build with new glibc --- glibc.patch | 16 ++++++++++++++++ reiserfsprogs.spec | 2 ++ 2 files changed, 18 insertions(+) create mode 100644 glibc.patch 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 +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 + #endif 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} -- 2.44.0