Gentoo Archives: gentoo-commits

From: Conrad Kostecki <conikost@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-dialup/mgetty/, net-dialup/mgetty/files/
Date: Wed, 18 May 2022 21:11:46
Message-Id: 1652908254.88dd8dafe95fbb793523183a50013a5122bc393a.conikost@gentoo
1 commit: 88dd8dafe95fbb793523183a50013a5122bc393a
2 Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
3 AuthorDate: Wed May 18 21:10:54 2022 +0000
4 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
5 CommitDate: Wed May 18 21:10:54 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=88dd8daf
7
8 net-dialup/mgetty: add riscv patch
9
10 Closes: https://bugs.gentoo.org/844955
11 Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>
12
13 net-dialup/mgetty/files/mgetty-1.2.1-riscv64.patch | 11 +++++++++++
14 net-dialup/mgetty/mgetty-1.2.1-r4.ebuild | 1 +
15 2 files changed, 12 insertions(+)
16
17 diff --git a/net-dialup/mgetty/files/mgetty-1.2.1-riscv64.patch b/net-dialup/mgetty/files/mgetty-1.2.1-riscv64.patch
18 new file mode 100644
19 index 000000000000..b57a04365e71
20 --- /dev/null
21 +++ b/net-dialup/mgetty/files/mgetty-1.2.1-riscv64.patch
22 @@ -0,0 +1,11 @@
23 +diff -U3 -r a/mgetty.h b/mgetty.h
24 +--- a/mgetty.h
25 ++++ b/mgetty.h
26 +@@ -198,7 +198,7 @@
27 + */
28 + #if defined(__alpha__) || defined(__sparc64__) || \
29 + defined(__ia64__) || defined(__s390x__) || defined(__x86_64__) || \
30 +- defined(__powerpc64__) || defined(__aarch64__)
31 ++ defined(__powerpc64__) || defined(__aarch64__) || (defined(__riscv) && __riscv_xlen == 64)
32 + # define PTR_IS_LONG
33 + #endif
34
35 diff --git a/net-dialup/mgetty/mgetty-1.2.1-r4.ebuild b/net-dialup/mgetty/mgetty-1.2.1-r4.ebuild
36 index 8ccbf6fb0ed1..683aac2bf3a8 100644
37 --- a/net-dialup/mgetty/mgetty-1.2.1-r4.ebuild
38 +++ b/net-dialup/mgetty/mgetty-1.2.1-r4.ebuild
39 @@ -39,6 +39,7 @@ PATCHES=(
40 "${FILESDIR}"/${PN}-1.2.1-Lucent.c.patch
41 "${FILESDIR}"/${PN}-1.2.1-gentoo.patch
42 "${FILESDIR}"/${PN}-1.2.1-aarch64.patch
43 + "${FILESDIR}"/${PN}-1.2.1-riscv64.patch
44 )
45
46 src_prepare() {