From: "Marek Szuba" <marecki@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/mc/, app-misc/mc/files/
Date: Wed, 22 Mar 2023 23:43:52 +0000 (UTC) [thread overview]
Message-ID: <1679528612.ba78d4f642d6ab7e287b45cbc6ecae872d45dcfd.marecki@gentoo> (raw)
commit: ba78d4f642d6ab7e287b45cbc6ecae872d45dcfd
Author: Marek Szuba <marecki <AT> gentoo <DOT> org>
AuthorDate: Wed Mar 22 22:56:54 2023 +0000
Commit: Marek Szuba <marecki <AT> gentoo <DOT> org>
CommitDate: Wed Mar 22 23:43:32 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ba78d4f6
app-misc/mc: fix implicit function declaration in configure
Closes: https://bugs.gentoo.org/900475
Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>
app-misc/mc/files/mc-4.8.29-autoconf-c99.patch | 24 ++++++++++++++++++++++++
app-misc/mc/mc-4.8.29.ebuild | 1 +
2 files changed, 25 insertions(+)
diff --git a/app-misc/mc/files/mc-4.8.29-autoconf-c99.patch b/app-misc/mc/files/mc-4.8.29-autoconf-c99.patch
new file mode 100644
index 000000000000..f1577dd7abbc
--- /dev/null
+++ b/app-misc/mc/files/mc-4.8.29-autoconf-c99.patch
@@ -0,0 +1,24 @@
+From a2dbad461b8a63630f9ad7cfa36b6613e85a91cb Mon Sep 17 00:00:00 2001
+From: Florian Weimer <fweimer@redhat.com>
+Date: Sun, 5 Feb 2023 18:38:37 +0100
+Subject: [PATCH] autoconf: Fix C99 compatibility issue in mc_GET_FS_INFO check
+Content-type: text/plain
+
+Include <fcntl.h> for the declaration of posix_fallocate. This
+avoids an implicit function declaration and build issues with future
+compilers.
+
+Signed-off-by: Florian Weimer <fweimer@redhat.com>
+--- 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 <stdlib.h>
++ #include <fcntl.h>
+ #if defined(__GLIBC__) && (__GLIBC__ < 2 || __GLIBC_MINOR__ < 7)
+ possibly broken posix_fallocate
+ #endif
+--
+2.39.1
+
diff --git a/app-misc/mc/mc-4.8.29.ebuild b/app-misc/mc/mc-4.8.29.ebuild
index e24016e2177e..7604d402b276 100644
--- a/app-misc/mc/mc-4.8.29.ebuild
+++ b/app-misc/mc/mc-4.8.29.ebuild
@@ -50,6 +50,7 @@ S="${WORKDIR}/${MY_P}"
PATCHES=(
"${FILESDIR}"/${PN}-4.8.26-ncurses-mouse.patch
"${FILESDIR}"/${PN}-4.8.29-gentoo-tools.patch
+ "${FILESDIR}"/${PN}-4.8.29-autoconf-c99.patch
)
src_prepare() {
next reply other threads:[~2023-03-22 23:44 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-22 23:43 Marek Szuba [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-03-16 9:10 [gentoo-commits] repo/gentoo:master commit in: app-misc/mc/, app-misc/mc/files/ Viorel Munteanu
2023-10-22 10:04 Marek Szuba
2023-08-19 11:15 Marek Szuba
2023-01-24 11:01 Marek Szuba
2022-04-05 15:25 Lars Wendler
2021-10-01 9:43 Lars Wendler
2021-03-31 22:17 Sergei Trofimovich
2021-02-03 8:09 Sergei Trofimovich
2020-11-27 10:54 Sergei Trofimovich
2020-03-03 9:42 Sergei Trofimovich
2019-03-10 17:43 Lars Wendler
2017-12-02 12:12 Sergei Trofimovich
2016-04-13 22:47 Sergei Trofimovich
2015-12-23 8:33 Lars Wendler
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1679528612.ba78d4f642d6ab7e287b45cbc6ecae872d45dcfd.marecki@gentoo \
--to=marecki@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox