From: Sergei Trofimovich Date: Mon, 7 Aug 2017 21:54:46 +0000 (+0100) Subject: dev-libs/elfutils: make patch appliable with -p1 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=0b7fca2f0fc7284950bf7204942fb45cdb3879ba;p=gentoo.git dev-libs/elfutils: make patch appliable with -p1 Package-Manager: Portage-2.3.6, Repoman-2.3.3 --- diff --git a/dev-libs/elfutils/elfutils-0.170.ebuild b/dev-libs/elfutils/elfutils-0.170.ebuild index c6b460b456ef..bf9aa9d2e541 100644 --- a/dev-libs/elfutils/elfutils-0.170.ebuild +++ b/dev-libs/elfutils/elfutils-0.170.ebuild @@ -23,9 +23,11 @@ DEPEND="${RDEPEND} >=sys-devel/flex-2.5.4a sys-devel/m4" +PATCHES=("${FILESDIR}"/${PN}-0.118-PaX-support.patch) + src_prepare() { default - epatch "${FILESDIR}"/${PN}-0.118-PaX-support.patch + if use static-libs; then sed -i -e '/^lib_LIBRARIES/s:=.*:=:' -e '/^%.os/s:%.o$::' lib{asm,dw,elf}/Makefile.in || die fi diff --git a/dev-libs/elfutils/files/elfutils-0.118-PaX-support.patch b/dev-libs/elfutils/files/elfutils-0.118-PaX-support.patch index 083f32ff8553..0ae359fe7dbb 100644 --- a/dev-libs/elfutils/files/elfutils-0.118-PaX-support.patch +++ b/dev-libs/elfutils/files/elfutils-0.118-PaX-support.patch @@ -4,8 +4,8 @@ Patch by Kevin F. Quinn http://bugs.gentoo.org/115100 ---- libelf/elf.h -+++ libelf/elf.h +--- a/libelf/elf.h ++++ b/libelf/elf.h @@ -568,6 +568,7 @@ #define PT_GNU_EH_FRAME 0x6474e550 /* GCC .eh_frame_hdr segment */ #define PT_GNU_STACK 0x6474e551 /* Indicates stack executability */ @@ -14,8 +14,8 @@ http://bugs.gentoo.org/115100 #define PT_LOSUNW 0x6ffffffa #define PT_SUNWBSS 0x6ffffffa /* Sun Specific segment */ #define PT_SUNWSTACK 0x6ffffffb /* Stack segment */ ---- src/elflint.c -+++ src/elflint.c +--- a/src/elflint.c ++++ b/src/elflint.c @@ -3187,6 +3187,7 @@ if (phdr->p_type >= PT_NUM && phdr->p_type != PT_GNU_EH_FRAME