summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gentoo.org>2022-03-22 11:15:20 -0700
committerMatt Turner <mattst88@gentoo.org>2022-03-22 11:16:16 -0700
commit326082ed7b1ff11df336794facf472191101d0cd (patch)
treef4dacacc1384456e499e079d0bca3dee5e98d9ea /app-misc/tmux
parentsys-process/cronie: Bump to version 1.6.0 (diff)
downloadgentoo-326082ed7b1ff11df336794facf472191101d0cd.tar.gz
gentoo-326082ed7b1ff11df336794facf472191101d0cd.tar.bz2
gentoo-326082ed7b1ff11df336794facf472191101d0cd.zip
app-misc/tmux: Add patch to fix cross compiling
Signed-off-by: Matt Turner <mattst88@gentoo.org>
Diffstat (limited to 'app-misc/tmux')
-rw-r--r--app-misc/tmux/files/tmux-3.2a-Fix-crosscompiling-Marco-A-L-Barbosa.patch24
-rw-r--r--app-misc/tmux/tmux-3.2a.ebuild1
2 files changed, 25 insertions, 0 deletions
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.marriott@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() {