1 |
commit: 62be64b563d8bb8b9488edfdd72c30e9d3c77cf7 |
2 |
Author: WANG Xuerui <xen0n <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Aug 28 09:40:28 2022 +0000 |
4 |
Commit: WANG Xuerui <xen0n <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Aug 30 16:11:39 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=62be64b5 |
7 |
|
8 |
sys-libs/libunwind: 1.6.2-r1: add patches for loong |
9 |
|
10 |
Support for loong is already upstream for a good while, but upstream is |
11 |
still not cutting a new release. So integrating the patches ourselves |
12 |
in the meantime... And fix the ABI along the way. (The port is likely |
13 |
made on the mips-like old world, thus horribly broken for Gentoo which |
14 |
is decidedly new-world.) |
15 |
|
16 |
Signed-off-by: WANG Xuerui <xen0n <AT> gentoo.org> |
17 |
|
18 |
sys-libs/libunwind/Manifest | 1 + |
19 |
sys-libs/libunwind/libunwind-1.6.2-r1.ebuild | 6 +++++- |
20 |
2 files changed, 6 insertions(+), 1 deletion(-) |
21 |
|
22 |
diff --git a/sys-libs/libunwind/Manifest b/sys-libs/libunwind/Manifest |
23 |
index 77239b73ac2d..baadb9574aee 100644 |
24 |
--- a/sys-libs/libunwind/Manifest |
25 |
+++ b/sys-libs/libunwind/Manifest |
26 |
@@ -1,2 +1,3 @@ |
27 |
DIST libunwind-1.6.2-docs.tar.xz 25372 BLAKE2B d16562b29c49070f0cd6ad9211c7c3283b527bd88677d9ce50b15f27254bac504ea79b807e01f4f2bdb05649ff8980f94346ef9737bf5b5bd7c313e547222f10 SHA512 71bcb781cc37ccbef7b349225b1b3b4cd6ba4ce5a48d8478cea17f8245614b672d8e14b5a088e2d998ea717670a371925d4fbe407dde636611f7c2f2901065d8 |
28 |
+DIST libunwind-1.6.2-loong.patch.xz 122756 BLAKE2B 1d369d18e71c4b9faa79a31a917a0f42a7bb394acd3bf8dc9ef181f2ca55bee04bef070c57ea04853b756efd561cb60409770b1f6fa9095d0e14565eb0bfc621 SHA512 46c8a6022dbf099965cf121d91691aae0a38fb31901730f47f712a7078b323e04f278e6751a7d169ed7e87792f321b15471b253668541598b82edb6626b9518f |
29 |
DIST libunwind-1.6.2.tar.gz 901392 BLAKE2B 3d0313f7e92cbc3e1a84ad3831a5170f21cdf772f1697ca0a59dea63cdd47da382e9f1fd77325d9ff8bcd47559a425dc883a820c646c628cd00faed82cb0f83f SHA512 1d17dfb14f99a894a6cda256caf9ec481c14068aaf8f3a85fa3befa7c7cca7fca0f544a91a3a7c2f2fc55bab19b06a67ca79f55ac9081151d94478c7f611f8f7 |
30 |
|
31 |
diff --git a/sys-libs/libunwind/libunwind-1.6.2-r1.ebuild b/sys-libs/libunwind/libunwind-1.6.2-r1.ebuild |
32 |
index 007df2e2a734..9dce29efe6eb 100644 |
33 |
--- a/sys-libs/libunwind/libunwind-1.6.2-r1.ebuild |
34 |
+++ b/sys-libs/libunwind/libunwind-1.6.2-r1.ebuild |
35 |
@@ -21,7 +21,8 @@ inherit multilib-minimal |
36 |
|
37 |
DESCRIPTION="Portable and efficient API to determine the call-chain of a program" |
38 |
HOMEPAGE="https://savannah.nongnu.org/projects/libunwind" |
39 |
-SRC_URI="mirror://nongnu/libunwind/${MY_P}.tar.gz" |
40 |
+SRC_URI="mirror://nongnu/libunwind/${MY_P}.tar.gz |
41 |
+ loong? ( https://dev.gentoo.org/~xen0n/distfiles/${CATEGORY}/${PN}/${P}-loong.patch.xz )" |
42 |
if [[ ${LIBUNWIND_DOCS_PREBUILT} == 1 ]] ; then |
43 |
SRC_URI+=" !doc? ( https://dev.gentoo.org/~${LIBUNWIND_DOCS_PREBUILT_DEV}/distfiles/${CATEGORY}/${PN}/${PN}-${LIBUNWIND_DOCS_VERSION}-docs.tar.xz )" |
44 |
fi |
45 |
@@ -65,6 +66,9 @@ MULTILIB_WRAPPED_HEADERS=( |
46 |
) |
47 |
|
48 |
src_prepare() { |
49 |
+ local PATCHES=() |
50 |
+ use loong && PATCHES+=( "${WORKDIR}/${P}-loong.patch" ) |
51 |
+ |
52 |
default |
53 |
|
54 |
chmod +x src/ia64/mk_cursor_i || die |