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

Collapse All | Expand All

(-)/usr/portage/dev-libs/elfutils/elfutils-0.166.ebuild (-6 / +17 lines)
Lines 4-10 Link Here
4
4
5
EAPI="5"
5
EAPI="5"
6
6
7
inherit eutils flag-o-matic multilib-minimal
7
inherit eutils flag-o-matic multilib-minimal autotools
8
8
9
DESCRIPTION="Libraries/utilities to handle ELF objects (drop in replacement for libelf)"
9
DESCRIPTION="Libraries/utilities to handle ELF objects (drop in replacement for libelf)"
10
HOMEPAGE="https://fedorahosted.org/elfutils/"
10
HOMEPAGE="https://fedorahosted.org/elfutils/"
Lines 25-44 Link Here
25
	abi_x86_32? (
25
	abi_x86_32? (
26
		!<=app-emulation/emul-linux-x86-baselibs-20130224-r11
26
		!<=app-emulation/emul-linux-x86-baselibs-20130224-r11
27
		!app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
27
		!app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
28
	)"
28
	)
29
	elibc_uclibc? ( sys-libs/argp-standalone dev-libs/libintl )"
29
# We need to require a newer glibc for its elf.h defs. #571814
30
# We need to require a newer glibc for its elf.h defs. #571814
30
DEPEND="${RDEPEND}
31
DEPEND="${RDEPEND}
31
	!<sys-libs/glibc-2.22
32
	!<sys-libs/glibc-2.22
32
	nls? ( sys-devel/gettext )
33
	nls? ( sys-devel/gettext )
33
	>=sys-devel/flex-2.5.4a
34
	>=sys-devel/flex-2.5.4a
34
	sys-devel/m4"
35
	sys-devel/m4
36
	test? ( app-arch/bzip2 )"
35
37
36
src_prepare() {
38
src_prepare() {
39
	epatch "${FILESDIR}"/0001-libelf-elf_begin.c-fall-back-on-mempcpy-if-no-__memp.patch
40
	epatch "${FILESDIR}"/0006-Remove-DL_CALL_FCT-wrapper-which-is-used-in-profilin.patch
37
	epatch "${FILESDIR}"/${PN}-0.118-PaX-support.patch
41
	epatch "${FILESDIR}"/${PN}-0.118-PaX-support.patch
42
	epatch "${FILESDIR}"/elfutils-0.166-check-libc-dgettext.patch
43
	epatch "${FILESDIR}"/elfutils-0.166-utimes-fallback.patch
44
	epatch "${FILESDIR}"/elfutils-0.166-really-make-werror-conditional-to-build-werror.patch
45
	epatch "${FILESDIR}"/elfutils-0.166-asprintf-insteadof-obstack_printf.patch
46
38
	use static-libs || sed -i -e '/^lib_LIBRARIES/s:=.*:=:' -e '/^%.os/s:%.o$::' lib{asm,dw,elf}/Makefile.in
47
	use static-libs || sed -i -e '/^lib_LIBRARIES/s:=.*:=:' -e '/^%.os/s:%.o$::' lib{asm,dw,elf}/Makefile.in
39
	sed -i 's:-Werror::' */Makefile.in
48
	sed -i 's:-Werror::' */Makefile.in
40
	# some patches touch both configure and configure.ac
49
	eautoreconf
41
	find -type f -exec touch -r configure {} +
42
}
50
}
43
51
44
src_configure() {
52
src_configure() {
Lines 47-54 Link Here
47
}
55
}
48
56
49
multilib_src_configure() {
57
multilib_src_configure() {
58
	my_use_nls=$(use_enable nls)
59
	use elibc_uclibc && my_use_nls=--enable-nls
60
50
	ECONF_SOURCE="${S}" econf \
61
	ECONF_SOURCE="${S}" econf \
51
		$(use_enable nls) \
62
		${my_use_nls} \
52
		$(use_enable threads thread-safety) \
63
		$(use_enable threads thread-safety) \
53
		--program-prefix="eu-" \
64
		--program-prefix="eu-" \
54
		--with-zlib \
65
		--with-zlib \

Return to bug 470884