summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConrad Kostecki <conikost@gentoo.org>2022-05-18 23:10:54 +0200
committerConrad Kostecki <conikost@gentoo.org>2022-05-18 23:10:54 +0200
commit88dd8dafe95fbb793523183a50013a5122bc393a (patch)
treeb7944a4e72dd3f137379d746acb29bb554fe0365 /net-dialup/mgetty
parentapp-benchmarks/geekbench: add 5.4.5 (diff)
downloadgentoo-88dd8dafe95fbb793523183a50013a5122bc393a.tar.gz
gentoo-88dd8dafe95fbb793523183a50013a5122bc393a.tar.bz2
gentoo-88dd8dafe95fbb793523183a50013a5122bc393a.zip
net-dialup/mgetty: add riscv patch
Closes: https://bugs.gentoo.org/844955 Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'net-dialup/mgetty')
-rw-r--r--net-dialup/mgetty/files/mgetty-1.2.1-riscv64.patch11
-rw-r--r--net-dialup/mgetty/mgetty-1.2.1-r4.ebuild1
2 files changed, 12 insertions, 0 deletions
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() {