diff options
author | Lei Zhang <zhanglei.april@gmail.com> | 2016-08-14 08:34:48 +0800 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2016-09-18 22:41:49 +0200 |
commit | 14ab27cbb07d851feb19003d2110d71d7c0c45ce (patch) | |
tree | dc47afdf275e0c2530c7fafb1dc0565a89c56117 /sys-libs | |
parent | 924fd320039089f63e16403b5b1920291cb8d09d (diff) | |
download | gentoo-14ab27cbb07d851feb19003d2110d71d7c0c45ce.tar.gz gentoo-14ab27cbb07d851feb19003d2110d71d7c0c45ce.tar.xz |
sys-libs/libunwind: add multilib support
Closes: https://github.com/gentoo/gentoo/pull/2212
Package-Manager: portage-2.2.28
Diffstat (limited to 'sys-libs')
-rw-r--r-- | sys-libs/libunwind/libunwind-1.2_rc1.ebuild | 26 |
1 files changed, 22 insertions, 4 deletions
diff --git a/sys-libs/libunwind/libunwind-1.2_rc1.ebuild b/sys-libs/libunwind/libunwind-1.2_rc1.ebuild index 8c8146944d4..3463a052e44 100644 --- a/sys-libs/libunwind/libunwind-1.2_rc1.ebuild +++ b/sys-libs/libunwind/libunwind-1.2_rc1.ebuild @@ -6,7 +6,7 @@ EAPI="5" MY_PV=${PV/_/-} MY_P=${PN}-${MY_PV} -inherit eutils libtool +inherit eutils libtool multilib-minimal DESCRIPTION="Portable and efficient API to determine the call-chain of a program" HOMEPAGE="https://savannah.nongnu.org/projects/libunwind" @@ -30,6 +30,23 @@ QA_DT_NEEDED_x86_fbsd="usr/lib/libunwind.so.7.0.0" S="${WORKDIR}/${MY_P}" +MULTILIB_WRAPPED_HEADERS=( + /usr/include/libunwind.h + + # see libunwind.h for the full list of arch-specific headers + /usr/include/libunwind-aarch64.h + /usr/include/libunwind-arm.h + /usr/include/libunwind-hppa.h + /usr/include/libunwind-ia64.h + /usr/include/libunwind-mips.h + /usr/include/libunwind-ppc32.h + /usr/include/libunwind-ppc64.h + /usr/include/libunwind-sh.h + /usr/include/libunwind-tilegx.h + /usr/include/libunwind-x86.h + /usr/include/libunwind-x86_64.h +) + src_prepare() { # These tests like to fail. bleh. echo 'int main(){return 0;}' > tests/Gtest-dyn1.c @@ -40,9 +57,10 @@ src_prepare() { sed -i -e '/^SUBDIRS/s:tests::' Makefile.in || die elibtoolize + multilib_copy_sources } -src_configure() { +multilib_src_configure() { # --enable-cxx-exceptions: always enable it, headers provide the interface # and on some archs it is disabled by default causing a mismatch between the # API and the ABI, bug #418253 @@ -63,13 +81,13 @@ src_configure() { $(use_enable debug) } -src_test() { +multilib_src_test() { # Explicitly allow parallel build of tests. # Sandbox causes some tests to freak out. SANDBOX_ON=0 emake check } -src_install() { +multilib_src_install() { default # libunwind-ptrace.a (and libunwind-ptrace.h) is separate API and without # shared library, so we keep it in any case |