summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWANG Xuerui <xen0n@gentoo.org>2022-08-28 17:40:28 +0800
committerWANG Xuerui <xen0n@gentoo.org>2022-08-31 00:11:39 +0800
commit62be64b563d8bb8b9488edfdd72c30e9d3c77cf7 (patch)
treee3eb04e30e3a4fb4890fec5a64a53d31217bee56 /sys-libs/libunwind
parentapp-admin/sysstat: Stabilize 12.6.0 arm64, #867406 (diff)
downloadgentoo-62be64b563d8bb8b9488edfdd72c30e9d3c77cf7.tar.gz
gentoo-62be64b563d8bb8b9488edfdd72c30e9d3c77cf7.tar.bz2
gentoo-62be64b563d8bb8b9488edfdd72c30e9d3c77cf7.zip
sys-libs/libunwind: 1.6.2-r1: add patches for loong
Support for loong is already upstream for a good while, but upstream is still not cutting a new release. So integrating the patches ourselves in the meantime... And fix the ABI along the way. (The port is likely made on the mips-like old world, thus horribly broken for Gentoo which is decidedly new-world.) Signed-off-by: WANG Xuerui <xen0n@gentoo.org>
Diffstat (limited to 'sys-libs/libunwind')
-rw-r--r--sys-libs/libunwind/Manifest1
-rw-r--r--sys-libs/libunwind/libunwind-1.6.2-r1.ebuild6
2 files changed, 6 insertions, 1 deletions
diff --git a/sys-libs/libunwind/Manifest b/sys-libs/libunwind/Manifest
index 77239b73ac2d..baadb9574aee 100644
--- a/sys-libs/libunwind/Manifest
+++ b/sys-libs/libunwind/Manifest
@@ -1,2 +1,3 @@
DIST libunwind-1.6.2-docs.tar.xz 25372 BLAKE2B d16562b29c49070f0cd6ad9211c7c3283b527bd88677d9ce50b15f27254bac504ea79b807e01f4f2bdb05649ff8980f94346ef9737bf5b5bd7c313e547222f10 SHA512 71bcb781cc37ccbef7b349225b1b3b4cd6ba4ce5a48d8478cea17f8245614b672d8e14b5a088e2d998ea717670a371925d4fbe407dde636611f7c2f2901065d8
+DIST libunwind-1.6.2-loong.patch.xz 122756 BLAKE2B 1d369d18e71c4b9faa79a31a917a0f42a7bb394acd3bf8dc9ef181f2ca55bee04bef070c57ea04853b756efd561cb60409770b1f6fa9095d0e14565eb0bfc621 SHA512 46c8a6022dbf099965cf121d91691aae0a38fb31901730f47f712a7078b323e04f278e6751a7d169ed7e87792f321b15471b253668541598b82edb6626b9518f
DIST libunwind-1.6.2.tar.gz 901392 BLAKE2B 3d0313f7e92cbc3e1a84ad3831a5170f21cdf772f1697ca0a59dea63cdd47da382e9f1fd77325d9ff8bcd47559a425dc883a820c646c628cd00faed82cb0f83f SHA512 1d17dfb14f99a894a6cda256caf9ec481c14068aaf8f3a85fa3befa7c7cca7fca0f544a91a3a7c2f2fc55bab19b06a67ca79f55ac9081151d94478c7f611f8f7
diff --git a/sys-libs/libunwind/libunwind-1.6.2-r1.ebuild b/sys-libs/libunwind/libunwind-1.6.2-r1.ebuild
index 007df2e2a734..9dce29efe6eb 100644
--- a/sys-libs/libunwind/libunwind-1.6.2-r1.ebuild
+++ b/sys-libs/libunwind/libunwind-1.6.2-r1.ebuild
@@ -21,7 +21,8 @@ inherit multilib-minimal
DESCRIPTION="Portable and efficient API to determine the call-chain of a program"
HOMEPAGE="https://savannah.nongnu.org/projects/libunwind"
-SRC_URI="mirror://nongnu/libunwind/${MY_P}.tar.gz"
+SRC_URI="mirror://nongnu/libunwind/${MY_P}.tar.gz
+ loong? ( https://dev.gentoo.org/~xen0n/distfiles/${CATEGORY}/${PN}/${P}-loong.patch.xz )"
if [[ ${LIBUNWIND_DOCS_PREBUILT} == 1 ]] ; then
SRC_URI+=" !doc? ( https://dev.gentoo.org/~${LIBUNWIND_DOCS_PREBUILT_DEV}/distfiles/${CATEGORY}/${PN}/${PN}-${LIBUNWIND_DOCS_VERSION}-docs.tar.xz )"
fi
@@ -65,6 +66,9 @@ MULTILIB_WRAPPED_HEADERS=(
)
src_prepare() {
+ local PATCHES=()
+ use loong && PATCHES+=( "${WORKDIR}/${P}-loong.patch" )
+
default
chmod +x src/ia64/mk_cursor_i || die