diff --git a/mc-configure-c99.patch b/mc-configure-c99.patch new file mode 100644 index 0000000..0a70858 --- /dev/null +++ b/mc-configure-c99.patch @@ -0,0 +1,18 @@ +Include for the declaration of posix_fallocate. This +avoids an implicit function declaration and build issues with future +compilers. + +Submitted upstream: + +diff --git a/m4.include/mc-get-fs-info.m4 b/m4.include/mc-get-fs-info.m4 +index 5afc9f1bb938bfcd..403045aadc810ba7 100644 +--- a/m4.include/mc-get-fs-info.m4 ++++ b/m4.include/mc-get-fs-info.m4 +@@ -8,6 +8,7 @@ AC_DEFUN([gl_POSIX_FALLOCATE], [ + AC_LINK_IFELSE([AC_LANG_PROGRAM([[ + #define _XOPEN_SOURCE 600 + #include ++ #include + #if defined(__GLIBC__) && (__GLIBC__ < 2 || __GLIBC_MINOR__ < 7) + possibly broken posix_fallocate + #endif diff --git a/mc.spec b/mc.spec index 576a184..c1f0fbb 100644 --- a/mc.spec +++ b/mc.spec @@ -5,7 +5,7 @@ Summary: User-friendly text console file manager and visual shell Name: mc Epoch: 1 Version: 4.8.28 -Release: 4%{?dist} +Release: 5%{?dist} License: GPL-3.0-or-later URL: https://midnight-commander.org/ VCS: https://github.com/MidnightCommander/mc/ @@ -15,6 +15,7 @@ Patch: %{name}-python3.patch Patch: %{name}-default_setup.patch Patch: %{name}-tmpdir.patch Patch: %{VCS}/commit/34d3726b.patch#/%{name}-Ticket-4374-fix-file-sort-by-version.patch +Patch: mc-configure-c99.patch BuildRequires: autoconf BuildRequires: automake BuildRequires: gcc @@ -102,6 +103,9 @@ Midnight Commander s3+ and UC1541 EXTFS backend scripts. %{_libexecdir}/mc/extfs.d/{s3+,uc1541} %changelog +* Sun Feb 05 2023 Florian Weimer - 1:4.8.28-5 +- Port configure script to C99 + * Thu Jan 19 2023 Fedora Release Engineering - 1:4.8.28-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild