Diff elftoolchain-0.7.1-r2 with a elftoolchain-0.7.1_p20210319
/usr/portage/sys-devel/elftoolchain/elftoolchain-0.7.1_p20210319.ebuild 2023-10-09 14:52:35.484368501 +0300 | ||
---|---|---|
3 | 3 | |
4 | 4 |
EAPI=7 |
5 | 5 | |
6 |
inherit toolchain-funcs |
|
6 |
inherit flag-o-matic toolchain-funcs |
|
7 | ||
8 |
MY_COMMIT="58584bb3e5276586e1cb246641525f72843ebc08" |
|
7 | 9 | |
8 | 10 |
DESCRIPTION="Libraries/utilities to handle ELF objects (BSD drop in replacement for libelf)" |
9 | 11 |
HOMEPAGE="https://wiki.freebsd.org/LibElf" |
10 |
SRC_URI="https://netcologne.dl.sourceforge.net/project/elftoolchain/Sources/${P}/${P}.tar.bz2" |
|
12 |
SRC_URI="https://github.com/elftoolchain/elftoolchain/archive/${MY_COMMIT}.tar.gz -> ${P}.tar.gz" |
|
13 |
S="${WORKDIR}"/${PN}-${MY_COMMIT} |
|
11 | 14 | |
12 | 15 |
LICENSE="BSD" |
13 | 16 |
SLOT="0" |
... | ... | |
15 | 18 | |
16 | 19 |
RDEPEND=" |
17 | 20 |
app-arch/libarchive:= |
21 |
dev-libs/uthash |
|
18 | 22 |
!dev-libs/elfutils |
19 | 23 |
!dev-libs/libelf" |
20 | 24 |
DEPEND="${RDEPEND}" |
... | ... | |
24 | 28 |
>=sys-devel/bmake-20210314-r1 |
25 | 29 |
app-alternatives/yacc" |
26 | 30 | |
27 |
PATCHES=( "${FILESDIR}"/${P}-fno-common.patch ) |
|
28 | ||
29 | 31 |
src_prepare() { |
30 | 32 |
default |
31 | 33 | |
34 |
sed -e 's/-Werror//' -i libelf/os.Linux.mk || die |
|
35 | ||
36 |
# use system uthash |
|
37 |
rm common/{utarray,uthash}.h || die |
|
38 | ||
32 | 39 |
# needs unpackaged TET tools |
33 | 40 |
rm -r test || die |
34 | ||
35 |
sed -i -e "s@cc@$(tc-getCC)@" common/native-elf-format || die |
|
36 |
sed -i -e "s@readelf@$(tc-getREADELF)@" common/native-elf-format || die |
|
37 | 41 |
} |
38 | 42 | |
39 | 43 |
src_configure() { |
44 |
# -pg is used and the two are incompatible |
|
45 |
filter-flags -fomit-frame-pointer |
|
40 | 46 |
tc-export AR CC LD RANLIB |
41 | 47 |
export MAKESYSPATH="${BROOT}"/usr/share/mk/bmake |
42 | 48 |
} |