commit:     326082ed7b1ff11df336794facf472191101d0cd
Author:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
AuthorDate: Tue Mar 22 18:15:20 2022 +0000
Commit:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
CommitDate: Tue Mar 22 18:16:16 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=326082ed

app-misc/tmux: Add patch to fix cross compiling

Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>

 ...3.2a-Fix-crosscompiling-Marco-A-L-Barbosa.patch | 24 ++++++++++++++++++++++
 app-misc/tmux/tmux-3.2a.ebuild                     |  1 +
 2 files changed, 25 insertions(+)

diff --git 
a/app-misc/tmux/files/tmux-3.2a-Fix-crosscompiling-Marco-A-L-Barbosa.patch 
b/app-misc/tmux/files/tmux-3.2a-Fix-crosscompiling-Marco-A-L-Barbosa.patch
new file mode 100644
index 000000000000..331ffd7b6eb9
--- /dev/null
+++ b/app-misc/tmux/files/tmux-3.2a-Fix-crosscompiling-Marco-A-L-Barbosa.patch
@@ -0,0 +1,24 @@
+From b1a8c0fe022e99cffb0fb4f321740464f35bc6b9 Mon Sep 17 00:00:00 2001
+From: Nicholas Marriott <nicholas.marri...@gmail.com>
+Date: Tue, 22 Jun 2021 12:16:48 +0100
+Subject: [PATCH] Fix crosscompiling, Marco A L Barbosa.
+
+---
+ configure.ac | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/configure.ac b/configure.ac
+index f6bdd3c7..30b4d370 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -160,6 +160,7 @@ AC_RUN_IFELSE([AC_LANG_PROGRAM(
+          [return (strtonum("0", 0, 1, NULL) == 0 ? 0 : 1);]
+        )],
+        [AC_DEFINE(HAVE_STRTONUM) AC_MSG_RESULT(yes)],
++       [AC_LIBOBJ(strtonum) AC_MSG_RESULT(no)],
+        [AC_LIBOBJ(strtonum) AC_MSG_RESULT(no)]
+ )
+ 
+-- 
+2.34.1
+

diff --git a/app-misc/tmux/tmux-3.2a.ebuild b/app-misc/tmux/tmux-3.2a.ebuild
index 5e9de30cf012..dc9fe95fd7e4 100644
--- a/app-misc/tmux/tmux-3.2a.ebuild
+++ b/app-misc/tmux/tmux-3.2a.ebuild
@@ -44,6 +44,7 @@ PATCHES=(
        "${FILESDIR}/${PN}-2.4-flags.patch"
 
        # upstream fixes (can be removed with next version bump)
+       "${FILESDIR}"/${P}-Fix-crosscompiling-Marco-A-L-Barbosa.patch
 )
 
 src_prepare() {

Reply via email to