Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 693252
Collapse All | Expand All

(-)a/sys-libs/libunwind/libunwind-1.2.1-r4.ebuild (-4 / +16 lines)
Lines 6-12 EAPI="7" Link Here
6
MY_PV=${PV/_/-}
6
MY_PV=${PV/_/-}
7
MY_P=${PN}-${MY_PV}
7
MY_P=${PN}-${MY_PV}
8
8
9
inherit autotools libtool multilib-minimal
9
inherit autotools libtool multilib multilib-minimal usr-ldscript
10
10
11
DESCRIPTION="Portable and efficient API to determine the call-chain of a program"
11
DESCRIPTION="Portable and efficient API to determine the call-chain of a program"
12
HOMEPAGE="https://savannah.nongnu.org/projects/libunwind"
12
HOMEPAGE="https://savannah.nongnu.org/projects/libunwind"
Lines 24-30 RDEPEND="lzma? ( app-arch/xz-utils[${MULTILIB_USEDEP}] )" Link Here
24
DEPEND="${RDEPEND}
24
DEPEND="${RDEPEND}
25
	libatomic? ( dev-libs/libatomic_ops[${MULTILIB_USEDEP}] )"
25
	libatomic? ( dev-libs/libatomic_ops[${MULTILIB_USEDEP}] )"
26
RDEPEND+="
26
RDEPEND+="
27
	!${CATEGORY}/${PN}:7"
27
	!${CATEGORY}/${PN}:7
28
	!<sys-devel/gcc-config-2.1"
28
29
29
S="${WORKDIR}/${MY_P}"
30
S="${WORKDIR}/${MY_P}"
30
31
Lines 103-108 multilib_src_test() { Link Here
103
multilib_src_install() {
104
multilib_src_install() {
104
	default
105
	default
105
106
107
	pushd "${ED}/usr/$(get_libdir)" > /dev/null || die
108
	(
109
		shopt -s extglob
110
		# Names of libraries are architecture-specific.
111
		# libunwind-generic should be skipped, because it is symbolic link
112
		# to another library in this list.
113
		eval "local libraries=(libunwind!(-generic)$(get_libname))"
114
		libraries=("${libraries[@]#lib}")
115
		libraries=("${libraries[@]%$(get_libname)}")
116
		gen_usr_ldscript -a "${libraries[@]}"
117
	)
118
	popd > /dev/null || die
119
106
	if ! use static-libs; then
120
	if ! use static-libs; then
107
		# Obsolete after http://git.savannah.gnu.org/gitweb/?p=libunwind.git;a=commitdiff;h=4e8b7a595e144e905fd9c8aed053d7529afb78a4
121
		# 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
122
		rm "${ED}/usr/$(get_libdir)/libunwind-generic.a" || die
109
- 
110
on IA64.
123
on IA64.
111
--
112
eclass/toolchain.eclass | 10 +++++++++-
124
eclass/toolchain.eclass | 10 +++++++++-
113
1 file changed, 9 insertions(+), 1 deletion(-)
125
1 file changed, 9 insertions(+), 1 deletion(-)
(-)a/eclass/toolchain.eclass (-2 / +9 lines)
Lines 186-191 RDEPEND="sys-libs/zlib Link Here
186
186
187
tc_version_is_at_least 3 && RDEPEND+=" virtual/libiconv"
187
tc_version_is_at_least 3 && RDEPEND+=" virtual/libiconv"
188
188
189
tc_version_is_at_least 3.4.3 && RDEPEND+=" ia64? ( sys-libs/libunwind:0= )"
190
189
if tc_version_is_at_least 4 ; then
191
if tc_version_is_at_least 4 ; then
190
	GMP_MPFR_DEPS=">=dev-libs/gmp-4.3.2:0= >=dev-libs/mpfr-2.4.2:0="
192
	GMP_MPFR_DEPS=">=dev-libs/gmp-4.3.2:0= >=dev-libs/mpfr-2.4.2:0="
191
	if tc_version_is_at_least 4.3 ; then
193
	if tc_version_is_at_least 4.3 ; then
Lines 966-972 toolchain_src_configure() { Link Here
966
		confgcc+=( --disable-nls )
968
		confgcc+=( --disable-nls )
967
	fi
969
	fi
968
970
969
	tc_version_is_at_least 3.4 || confgcc+=( --disable-libunwind-exceptions )
971
	if tc_version_is_at_least 3.4.3 ; then
972
		# libunwind is used only on ia64*-*-linux* targets.
973
		# This option is ignored on other targets.
974
		confgcc+=( --with-system-libunwind )
975
	else
976
		confgcc+=( --disable-libunwind-exceptions )
977
	fi
970
978
971
	# Use the default ("release") checking because upstream usually neglects
979
	# Use the default ("release") checking because upstream usually neglects
972
	# to test "disabled" so it has a history of breaking. #317217
980
	# to test "disabled" so it has a history of breaking. #317217
973
- 

Return to bug 693252