mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-13 16:06:59 +02:00
dev-util/patchelf: Sync with Gentoo
It's from Gentoo commit bd357ea56a817343b7bbca3b0393622ab73b3f25.
This commit is contained in:
parent
4fc640091d
commit
2e5fb139ba
@ -0,0 +1,14 @@
|
||||
--- /dev/null 2024-11-05 18:50:26.176666244 +0000
|
||||
+++ b/src/elfmips.h 2024-11-10 19:02:29.662347993 +0000
|
||||
@@ -0,0 +1,3 @@
|
||||
+#ifndef DT_MIPS_XHASH
|
||||
+#define DT_MIPS_XHASH 0x70000036
|
||||
+#endif
|
||||
--- a/src/patchelf.h 2024-11-10 18:59:50.300318823 +0000
|
||||
+++ b/src/patchelf.h 2024-11-10 19:11:20.597382739 +0000
|
||||
@@ -1,3 +1,5 @@
|
||||
+#include "elfmips.h"
|
||||
+
|
||||
using FileContents = std::shared_ptr<std::vector<unsigned char>>;
|
||||
|
||||
#define ElfFileParams class Elf_Ehdr, class Elf_Phdr, class Elf_Shdr, class Elf_Addr, class Elf_Off, class Elf_Dyn, class Elf_Sym, class Elf_Verneed, class Elf_Versym
|
26
sdk_container/src/third_party/portage-stable/dev-util/patchelf/patchelf-0.17.2-r1.ebuild
vendored
Normal file
26
sdk_container/src/third_party/portage-stable/dev-util/patchelf/patchelf-0.17.2-r1.ebuild
vendored
Normal file
@ -0,0 +1,26 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit autotools
|
||||
|
||||
DESCRIPTION="Small utility to modify the dynamic linker and RPATH of ELF executables"
|
||||
HOMEPAGE="https://github.com/NixOS/patchelf"
|
||||
SRC_URI="https://github.com/NixOS/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~loong ~m68k ~ppc ~ppc64 ~riscv ~s390 sparc ~x86 ~amd64-linux ~riscv-linux ~x86-linux"
|
||||
LICENSE="GPL-3"
|
||||
|
||||
PATCHES=("${FILESDIR}"/${PN}-0.17.2-dt-mips-xhash.patch)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
rm src/elf.h || die
|
||||
|
||||
sed -i \
|
||||
-e 's:-Werror::g' \
|
||||
configure.ac || die
|
||||
|
||||
eautoreconf
|
||||
}
|
Loading…
Reference in New Issue
Block a user