commit:     88dd8dafe95fbb793523183a50013a5122bc393a
Author:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
AuthorDate: Wed May 18 21:10:54 2022 +0000
Commit:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
CommitDate: Wed May 18 21:10:54 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=88dd8daf

net-dialup/mgetty: add riscv patch

Closes: https://bugs.gentoo.org/844955
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>

 net-dialup/mgetty/files/mgetty-1.2.1-riscv64.patch | 11 +++++++++++
 net-dialup/mgetty/mgetty-1.2.1-r4.ebuild           |  1 +
 2 files changed, 12 insertions(+)

diff --git a/net-dialup/mgetty/files/mgetty-1.2.1-riscv64.patch 
b/net-dialup/mgetty/files/mgetty-1.2.1-riscv64.patch
new file mode 100644
index 000000000000..b57a04365e71
--- /dev/null
+++ b/net-dialup/mgetty/files/mgetty-1.2.1-riscv64.patch
@@ -0,0 +1,11 @@
+diff -U3 -r a/mgetty.h b/mgetty.h
+--- a/mgetty.h
++++ b/mgetty.h
+@@ -198,7 +198,7 @@
+  */
+ #if defined(__alpha__) || defined(__sparc64__) || \
+           defined(__ia64__) || defined(__s390x__) || defined(__x86_64__) || \
+-          defined(__powerpc64__) || defined(__aarch64__)
++          defined(__powerpc64__) || defined(__aarch64__) || (defined(__riscv) 
&& __riscv_xlen == 64)
+ # define PTR_IS_LONG
+ #endif

diff --git a/net-dialup/mgetty/mgetty-1.2.1-r4.ebuild 
b/net-dialup/mgetty/mgetty-1.2.1-r4.ebuild
index 8ccbf6fb0ed1..683aac2bf3a8 100644
--- a/net-dialup/mgetty/mgetty-1.2.1-r4.ebuild
+++ b/net-dialup/mgetty/mgetty-1.2.1-r4.ebuild
@@ -39,6 +39,7 @@ PATCHES=(
        "${FILESDIR}"/${PN}-1.2.1-Lucent.c.patch
        "${FILESDIR}"/${PN}-1.2.1-gentoo.patch
        "${FILESDIR}"/${PN}-1.2.1-aarch64.patch
+       "${FILESDIR}"/${PN}-1.2.1-riscv64.patch
 )
 
 src_prepare() {

Reply via email to