Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 693250 | Differences between
and this patch

Collapse All | Expand All

(-)a/sys-libs/libunwind/libunwind-1.2.1-r2.ebuild (-107 lines)
Lines 1-105 Link Here
1
# Copyright 1999-2018 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
3
4
EAPI=6
5
6
MY_PV=${PV/_/-}
7
MY_P=${PN}-${MY_PV}
8
inherit autotools eutils libtool multilib-minimal
9
10
DESCRIPTION="Portable and efficient API to determine the call-chain of a program"
11
HOMEPAGE="https://savannah.nongnu.org/projects/libunwind"
12
SRC_URI="mirror://nongnu/libunwind/${MY_P}.tar.gz"
13
14
LICENSE="MIT"
15
SLOT="7"
16
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 -sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux"
17
IUSE="debug debug-frame doc libatomic lzma +static-libs"
18
19
RESTRICT="test" # half of tests are broken (toolchain version dependent)
20
21
# We just use the header from libatomic.
22
RDEPEND="lzma? ( app-arch/xz-utils )"
23
DEPEND="${RDEPEND}
24
	libatomic? ( dev-libs/libatomic_ops )"
25
26
S="${WORKDIR}/${MY_P}"
27
28
MULTILIB_WRAPPED_HEADERS=(
29
	/usr/include/libunwind.h
30
31
	# see libunwind.h for the full list of arch-specific headers
32
	/usr/include/libunwind-aarch64.h
33
	/usr/include/libunwind-arm.h
34
	/usr/include/libunwind-hppa.h
35
	/usr/include/libunwind-ia64.h
36
	/usr/include/libunwind-mips.h
37
	/usr/include/libunwind-ppc32.h
38
	/usr/include/libunwind-ppc64.h
39
	/usr/include/libunwind-sh.h
40
	/usr/include/libunwind-tilegx.h
41
	/usr/include/libunwind-x86.h
42
	/usr/include/libunwind-x86_64.h
43
)
44
45
PATCHES=(
46
	"${FILESDIR}"/${PN}-1.2-coredump-regs.patch #586092
47
	"${FILESDIR}"/${PN}-1.2-ia64-undwarf.patch
48
	"${FILESDIR}"/${PN}-1.2-ia64-ptrace-coredump.patch
49
	"${FILESDIR}"/${PN}-1.2-ia64-missing.patch
50
	"${FILESDIR}"/${PN}-1.2.1-fix_version_macros.patch
51
	"${FILESDIR}"/${PN}-1.2.1-only-include-execinfo_h-if-avaliable.patch
52
	"${FILESDIR}"/${PN}-1.2.1-no-PROTECTED.patch #659732
53
	"${FILESDIR}"/${PN}-1.2.1-arm-__asm__.patch #635674
54
)
55
56
src_prepare() {
57
	default
58
	chmod +x src/ia64/mk_cursor_i || die
59
	# Since we have tests disabled via RESTRICT, disable building in the subdir
60
	# entirely.  This worksaround some build errors too. #484846
61
	sed -i -e '/^SUBDIRS/s:tests::' Makefile.in || die
62
63
	elibtoolize
64
	eautoreconf
65
}
66
67
multilib_src_configure() {
68
	# --enable-cxx-exceptions: always enable it, headers provide the interface
69
	# and on some archs it is disabled by default causing a mismatch between the
70
	# API and the ABI, bug #418253
71
	# conservative-checks: validate memory addresses before use; as of 1.0.1,
72
	# only x86_64 supports this, yet may be useful for debugging, couple it with
73
	# debug useflag.
74
	ECONF_SOURCE="${S}" \
75
	ac_cv_header_atomic_ops_h=$(usex libatomic) \
76
	econf \
77
		--enable-cxx-exceptions \
78
		--enable-coredump \
79
		--enable-ptrace \
80
		--enable-setjmp \
81
		$(use_enable debug-frame) \
82
		$(use_enable doc documentation) \
83
		$(use_enable lzma minidebuginfo) \
84
		$(use_enable static-libs static) \
85
		$(use_enable debug conservative_checks) \
86
		$(use_enable debug)
87
}
88
89
multilib_src_compile() {
90
	# Bug 586208
91
	CCACHE_NODIRECT=1 default
92
}
93
94
multilib_src_test() {
95
	# Explicitly allow parallel build of tests.
96
	# Sandbox causes some tests to freak out.
97
	SANDBOX_ON=0 emake check
98
}
99
100
multilib_src_install() {
101
	default
102
	# libunwind-ptrace.a (and libunwind-ptrace.h) is separate API and without
103
	# shared library, so we keep it in any case
104
	use static-libs || find "${ED}"usr '(' -name 'libunwind-generic.a' -o -name 'libunwind*.la' ')' -delete
105
}
106
- 
107
--
108
sys-libs/libunwind/libunwind-1.1-r1.ebuild   | 6 ++++--
0
sys-libs/libunwind/libunwind-1.1-r1.ebuild   | 6 ++++--
109
sys-libs/libunwind/libunwind-1.2.1-r1.ebuild | 8 +++++---
1
sys-libs/libunwind/libunwind-1.2.1-r1.ebuild | 8 +++++---
110
sys-libs/libunwind/libunwind-1.2.1-r3.ebuild | 8 +++++---
2
sys-libs/libunwind/libunwind-1.2.1-r3.ebuild | 8 +++++---
111
3 files changed, 14 insertions(+), 8 deletions(-)
3
3 files changed, 14 insertions(+), 8 deletions(-)
(-)a/sys-libs/libunwind/libunwind-1.1-r1.ebuild (-2 / +4 lines)
Lines 1-4 Link Here
1
# Copyright 1999-2018 Gentoo Foundation
1
# Copyright 2005-2019 Gentoo Authors
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
3
4
EAPI="5"
4
EAPI="5"
Lines 10-16 HOMEPAGE="https://savannah.nongnu.org/projects/libunwind" Link Here
10
SRC_URI="mirror://nongnu/libunwind/${P}.tar.gz"
10
SRC_URI="mirror://nongnu/libunwind/${P}.tar.gz"
11
11
12
LICENSE="MIT"
12
LICENSE="MIT"
13
SLOT="7"
13
SLOT="0/8"
14
KEYWORDS="amd64 arm hppa ia64 ~mips ppc ppc64 -sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux"
14
KEYWORDS="amd64 arm hppa ia64 ~mips ppc ppc64 -sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux"
15
IUSE="debug debug-frame libatomic lzma +static-libs"
15
IUSE="debug debug-frame libatomic lzma +static-libs"
16
16
Lines 20-25 RESTRICT="test" #461958 -- re-enable tests with >1.1 again for retesting, this i Link Here
20
RDEPEND="lzma? ( app-arch/xz-utils )"
20
RDEPEND="lzma? ( app-arch/xz-utils )"
21
DEPEND="${RDEPEND}
21
DEPEND="${RDEPEND}
22
	libatomic? ( dev-libs/libatomic_ops )"
22
	libatomic? ( dev-libs/libatomic_ops )"
23
RDEPEND+="
24
	!${CATEGORY}/${PN}:7"
23
25
24
DOCS=( AUTHORS ChangeLog NEWS README TODO )
26
DOCS=( AUTHORS ChangeLog NEWS README TODO )
25
27
(-)a/sys-libs/libunwind/libunwind-1.2.1-r1.ebuild (-3 / +5 lines)
Lines 1-18 Link Here
1
# Copyright 1999-2018 Gentoo Foundation
1
# Copyright 2005-2019 Gentoo Authors
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
3
4
EAPI=6
4
EAPI=6
5
5
6
MY_PV=${PV/_/-}
6
MY_PV=${PV/_/-}
7
MY_P=${PN}-${MY_PV}
7
MY_P=${PN}-${MY_PV}
8
inherit autotools eutils libtool multilib-minimal
8
inherit autotools libtool multilib-minimal
9
9
10
DESCRIPTION="Portable and efficient API to determine the call-chain of a program"
10
DESCRIPTION="Portable and efficient API to determine the call-chain of a program"
11
HOMEPAGE="https://savannah.nongnu.org/projects/libunwind"
11
HOMEPAGE="https://savannah.nongnu.org/projects/libunwind"
12
SRC_URI="mirror://nongnu/libunwind/${MY_P}.tar.gz"
12
SRC_URI="mirror://nongnu/libunwind/${MY_P}.tar.gz"
13
13
14
LICENSE="MIT"
14
LICENSE="MIT"
15
SLOT="7"
15
SLOT="0/8"
16
KEYWORDS="amd64 arm arm64 hppa ia64 ~mips ppc ppc64 -sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux"
16
KEYWORDS="amd64 arm arm64 hppa ia64 ~mips ppc ppc64 -sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux"
17
IUSE="debug debug-frame doc libatomic lzma +static-libs"
17
IUSE="debug debug-frame doc libatomic lzma +static-libs"
18
18
Lines 22-27 RESTRICT="test" # half of tests are broken (toolchain version dependent) Link Here
22
RDEPEND="lzma? ( app-arch/xz-utils )"
22
RDEPEND="lzma? ( app-arch/xz-utils )"
23
DEPEND="${RDEPEND}
23
DEPEND="${RDEPEND}
24
	libatomic? ( dev-libs/libatomic_ops )"
24
	libatomic? ( dev-libs/libatomic_ops )"
25
RDEPEND+="
26
	!${CATEGORY}/${PN}:7"
25
27
26
S="${WORKDIR}/${MY_P}"
28
S="${WORKDIR}/${MY_P}"
27
29
(-)a/sys-libs/libunwind/libunwind-1.2.1-r3.ebuild (-5 / +5 lines)
Lines 1-18 Link Here
1
# Copyright 1999-2019 Gentoo Authors
1
# Copyright 2005-2019 Gentoo Authors
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
3
4
EAPI=6
4
EAPI=6
5
5
6
MY_PV=${PV/_/-}
6
MY_PV=${PV/_/-}
7
MY_P=${PN}-${MY_PV}
7
MY_P=${PN}-${MY_PV}
8
inherit autotools eutils libtool multilib-minimal
8
inherit autotools libtool multilib-minimal
9
9
10
DESCRIPTION="Portable and efficient API to determine the call-chain of a program"
10
DESCRIPTION="Portable and efficient API to determine the call-chain of a program"
11
HOMEPAGE="https://savannah.nongnu.org/projects/libunwind"
11
HOMEPAGE="https://savannah.nongnu.org/projects/libunwind"
12
SRC_URI="mirror://nongnu/libunwind/${MY_P}.tar.gz"
12
SRC_URI="mirror://nongnu/libunwind/${MY_P}.tar.gz"
13
13
14
LICENSE="MIT"
14
LICENSE="MIT"
15
SLOT="7"
15
SLOT="0/8"
16
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv -sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux"
16
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv -sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux"
17
IUSE="debug debug-frame doc libatomic lzma +static-libs"
17
IUSE="debug debug-frame doc libatomic lzma +static-libs"
18
18
Lines 22-27 RESTRICT="test" # half of tests are broken (toolchain version dependent) Link Here
22
RDEPEND="lzma? ( app-arch/xz-utils[${MULTILIB_USEDEP}] )"
22
RDEPEND="lzma? ( app-arch/xz-utils[${MULTILIB_USEDEP}] )"
23
DEPEND="${RDEPEND}
23
DEPEND="${RDEPEND}
24
	libatomic? ( dev-libs/libatomic_ops[${MULTILIB_USEDEP}] )"
24
	libatomic? ( dev-libs/libatomic_ops[${MULTILIB_USEDEP}] )"
25
RDEPEND+="
26
	!${CATEGORY}/${PN}:7"
25
27
26
S="${WORKDIR}/${MY_P}"
28
S="${WORKDIR}/${MY_P}"
27
29
28
- 
29
--
30
sys-libs/libunwind/libunwind-1.2.1-r4.ebuild | 114 +++++++++++++++++++
30
sys-libs/libunwind/libunwind-1.2.1-r4.ebuild | 114 +++++++++++++++++++
31
1 file changed, 114 insertions(+)
31
1 file changed, 114 insertions(+)
32
create mode 100644 sys-libs/libunwind/libunwind-1.2.1-r4.ebuild
32
create mode 100644 sys-libs/libunwind/libunwind-1.2.1-r4.ebuild
(-)a/sys-libs/libunwind/libunwind-1.2.1-r4.ebuild (-1 / +114 lines)
Line 0 Link Here
0
- 
1
# Copyright 2005-2019 Gentoo Authors
2
# Distributed under the terms of the GNU General Public License v2
3
4
EAPI="7"
5
6
MY_PV=${PV/_/-}
7
MY_P=${PN}-${MY_PV}
8
9
inherit autotools libtool multilib-minimal
10
11
DESCRIPTION="Portable and efficient API to determine the call-chain of a program"
12
HOMEPAGE="https://savannah.nongnu.org/projects/libunwind"
13
SRC_URI="mirror://nongnu/libunwind/${MY_P}.tar.gz"
14
15
LICENSE="MIT"
16
SLOT="0/8"
17
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv -sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux"
18
IUSE="debug debug-frame doc libatomic lzma +static-libs"
19
20
RESTRICT="test" # half of tests are broken (toolchain version dependent)
21
22
# We just use the header from libatomic.
23
RDEPEND="lzma? ( app-arch/xz-utils[${MULTILIB_USEDEP}] )"
24
DEPEND="${RDEPEND}
25
	libatomic? ( dev-libs/libatomic_ops[${MULTILIB_USEDEP}] )"
26
RDEPEND+="
27
	!${CATEGORY}/${PN}:7"
28
29
S="${WORKDIR}/${MY_P}"
30
31
MULTILIB_WRAPPED_HEADERS=(
32
	/usr/include/libunwind.h
33
34
	# see libunwind.h for the full list of arch-specific headers
35
	/usr/include/libunwind-aarch64.h
36
	/usr/include/libunwind-arm.h
37
	/usr/include/libunwind-hppa.h
38
	/usr/include/libunwind-ia64.h
39
	/usr/include/libunwind-mips.h
40
	/usr/include/libunwind-ppc32.h
41
	/usr/include/libunwind-ppc64.h
42
	/usr/include/libunwind-sh.h
43
	/usr/include/libunwind-tilegx.h
44
	/usr/include/libunwind-x86.h
45
	/usr/include/libunwind-x86_64.h
46
)
47
48
PATCHES=(
49
	"${FILESDIR}"/${PN}-1.2-coredump-regs.patch #586092
50
	"${FILESDIR}"/${PN}-1.2-ia64-undwarf.patch
51
	"${FILESDIR}"/${PN}-1.2-ia64-ptrace-coredump.patch
52
	"${FILESDIR}"/${PN}-1.2-ia64-missing.patch
53
	"${FILESDIR}"/${PN}-1.2.1-fix_version_macros.patch
54
	"${FILESDIR}"/${PN}-1.2.1-only-include-execinfo_h-if-avaliable.patch
55
	"${FILESDIR}"/${PN}-1.2.1-no-PROTECTED.patch #659732
56
	"${FILESDIR}"/${PN}-1.2.1-arm-__asm__.patch #635674
57
)
58
59
src_prepare() {
60
	default
61
	chmod +x src/ia64/mk_cursor_i || die
62
	# Since we have tests disabled via RESTRICT, disable building in the subdir
63
	# entirely.  This worksaround some build errors too. #484846
64
	sed -i -e '/^SUBDIRS/s:tests::' Makefile.in || die
65
66
	elibtoolize
67
	eautoreconf
68
}
69
70
multilib_src_configure() {
71
	# --enable-cxx-exceptions: always enable it, headers provide the interface
72
	# and on some archs it is disabled by default causing a mismatch between the
73
	# API and the ABI, bug #418253
74
	# conservative-checks: validate memory addresses before use; as of 1.0.1,
75
	# only x86_64 supports this, yet may be useful for debugging, couple it with
76
	# debug useflag.
77
	ECONF_SOURCE="${S}" \
78
	ac_cv_header_atomic_ops_h=$(usex libatomic) \
79
	econf \
80
		--enable-cxx-exceptions \
81
		--enable-coredump \
82
		--enable-ptrace \
83
		--enable-setjmp \
84
		$(use_enable debug-frame) \
85
		$(use_enable doc documentation) \
86
		$(use_enable lzma minidebuginfo) \
87
		$(use_enable static-libs static) \
88
		$(use_enable debug conservative_checks) \
89
		$(use_enable debug)
90
}
91
92
multilib_src_compile() {
93
	# Bug 586208
94
	CCACHE_NODIRECT=1 default
95
}
96
97
multilib_src_test() {
98
	# Explicitly allow parallel build of tests.
99
	# Sandbox causes some tests to freak out.
100
	SANDBOX_ON=0 emake check
101
}
102
103
multilib_src_install() {
104
	default
105
106
	if ! use static-libs; then
107
		# Obsolete after http://git.savannah.gnu.org/gitweb/?p=libunwind.git;a=commitdiff;h=4e8b7a595e144e905fd9c8aed053d7529afb78a4
108
		rm "${ED}/usr/$(get_libdir)/libunwind-generic.a" || die
109
	fi
110
}
111
112
multilib_src_install_all() {
113
	find "${D}" -name "*.la" -type f -delete || die
114
}

Return to bug 693250