sys-fs/reiserfsprogs: fix build failure against glibc-2.28, bug #663930
authorSergei Trofimovich <slyfox@gentoo.org>
Sat, 13 Oct 2018 17:25:07 +0000 (18:25 +0100)
committerSergei Trofimovich <slyfox@gentoo.org>
Sat, 13 Oct 2018 17:50:39 +0000 (18:50 +0100)
Closes: https://bugs.gentoo.org/663930
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Package-Manager: Portage-2.3.51, Repoman-2.3.11

sys-fs/reiserfsprogs/files/reiserfsprogs-3.6.27-loff_t.patch [new file with mode: 0644]
sys-fs/reiserfsprogs/reiserfsprogs-3.6.27.ebuild

diff --git a/sys-fs/reiserfsprogs/files/reiserfsprogs-3.6.27-loff_t.patch b/sys-fs/reiserfsprogs/files/reiserfsprogs-3.6.27-loff_t.patch
new file mode 100644 (file)
index 0000000..9ab8519
--- /dev/null
@@ -0,0 +1,16 @@
+glibc-2.28 did hide loff_t indef system-specific macros:
+    https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=663e7d784977f6b15c0cab73f754f9f39c9c0c2c
+
+This caused build failure:
+    ../include/reiserfs_lib.h:300:55: error: unknown type name 'loff_t'; did you mean 'off_t'?
+
+Re-enable extensions to pull loff_t back.
+
+https://bugs.gentoo.org/663930
+--- a/configure.ac
++++ b/configure.ac
+@@ -23,2 +23,4 @@ AC_PROG_MAKE_SET
+ AC_PROG_LIBTOOL
++dnl pull in loff_t from glibc
++AC_USE_SYSTEM_EXTENSIONS
index c1feff860a2966b83003546a72b879bfab3ff5a0..04b0f4bf7daf472be810f4f595821ffae2ae4734 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -17,6 +17,7 @@ IUSE="static-libs"
 
 PATCHES=(
        "${FILESDIR}/${PN}-3.6.25-no_acl.patch"
+       "${FILESDIR}/${PN}-3.6.27-loff_t.patch"
 )
 
 src_prepare() {