dev-libs/elfutils: make patch appliable with -p1
authorSergei Trofimovich <slyfox@gentoo.org>
Mon, 7 Aug 2017 21:54:46 +0000 (22:54 +0100)
committerSergei Trofimovich <slyfox@gentoo.org>
Mon, 7 Aug 2017 21:54:56 +0000 (22:54 +0100)
Package-Manager: Portage-2.3.6, Repoman-2.3.3

dev-libs/elfutils/elfutils-0.170.ebuild
dev-libs/elfutils/files/elfutils-0.118-PaX-support.patch

index c6b460b456ef6c6f2ca16a01cee3ed0e1d50cbae..bf9aa9d2e5412f4c21028f0a8e6a95a47db24836 100644 (file)
@@ -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
index 083f32ff8553b505ef2d83083def0b224a1058ac..0ae359fe7dbb23afd17901a2e4274de0b995556d 100644 (file)
@@ -4,8 +4,8 @@ Patch by Kevin F. Quinn <kevquinn@gentoo.org>
 
 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