diff options
author | Matthias Schwarzott <zzam@gentoo.org> | 2021-06-01 11:58:06 +0200 |
---|---|---|
committer | Matthias Schwarzott <zzam@gentoo.org> | 2021-06-01 15:52:55 +0200 |
commit | 56a33b831f6ca1afd71a0e66f397c0ff5dcc1a97 (patch) | |
tree | 8ae1c078d390df99b852226a666220051a730c53 /dev-util/pahole | |
parent | app-emulation/diskimage-builder: 3.11.0 stable amd64/x86 (diff) | |
download | gentoo-56a33b831f6ca1afd71a0e66f397c0ff5dcc1a97.tar.gz gentoo-56a33b831f6ca1afd71a0e66f397c0ff5dcc1a97.tar.bz2 gentoo-56a33b831f6ca1afd71a0e66f397c0ff5dcc1a97.zip |
dev-util/dwarves: Rename package to dev-util/pahole
Package-Manager: Portage-3.0.19, Repoman-3.0.3
Signed-off-by: Matthias Schwarzott <zzam@gentoo.org>
Diffstat (limited to 'dev-util/pahole')
-rw-r--r-- | dev-util/pahole/Manifest | 1 | ||||
-rw-r--r-- | dev-util/pahole/files/pahole-1.10-python-import.patch | 15 | ||||
-rw-r--r-- | dev-util/pahole/metadata.xml | 16 | ||||
-rw-r--r-- | dev-util/pahole/pahole-1.20.ebuild | 52 |
4 files changed, 84 insertions, 0 deletions
diff --git a/dev-util/pahole/Manifest b/dev-util/pahole/Manifest new file mode 100644 index 000000000000..3b69b6bf7767 --- /dev/null +++ b/dev-util/pahole/Manifest @@ -0,0 +1 @@ +DIST dwarves-1.20.tar.xz 688728 BLAKE2B c57f390f7e1d20c861a4acb8cd7fe238a3f7c3f2d915d96fc051dba2587942e8fabfa4f524d18555c486863fa02bc4ab63d90e90d477f376dc5e547aa36cccac SHA512 306bb74c498527a5a9bdae4d304e90511336cab627d9acad5237d93cbb48efe11dbca4418c540fa03e3ecdd168ce224cabe9fd2f6fbb50520d0dd17741c80817 diff --git a/dev-util/pahole/files/pahole-1.10-python-import.patch b/dev-util/pahole/files/pahole-1.10-python-import.patch new file mode 100644 index 000000000000..e308ac6e2788 --- /dev/null +++ b/dev-util/pahole/files/pahole-1.10-python-import.patch @@ -0,0 +1,15 @@ +https://bugs.gentoo.org/show_bug.cgi?id=423817 + +--- dwarves-1.10/ostra/ostra-cg ++++ dwarves-1.10/ostra/ostra-cg +@@ -10,7 +10,9 @@ + # under the terms of version 2 of the GNU General Public License as + # published by the Free Software Foundation. + +-import sys, datetime, os, ostra ++import sys ++sys.path.insert(0, "/usr/share/dwarves/runtime/python") ++import datetime, os, ostra + + class_def = None + diff --git a/dev-util/pahole/metadata.xml b/dev-util/pahole/metadata.xml new file mode 100644 index 000000000000..28be736073c3 --- /dev/null +++ b/dev-util/pahole/metadata.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>zzam@gentoo.org</email> + <name>Matthias Schwarzott</name> + </maintainer> + <longdescription lang="en"> + The more-than-seven dwarves is a collection of tools that allows + to inspect and query the DWARF2 information present in ELF files + built with full debug information. These tools include pahole + (Poke-a-hole) and codiff, and were originally designed to inspect + the Linux kernel and its modules, but can be used in for + user-space software too. + </longdescription> +</pkgmetadata> diff --git a/dev-util/pahole/pahole-1.20.ebuild b/dev-util/pahole/pahole-1.20.ebuild new file mode 100644 index 000000000000..40eb52fc5cdc --- /dev/null +++ b/dev-util/pahole/pahole-1.20.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{7,8,9} ) +inherit multilib cmake python-single-r1 + +DESCRIPTION="pahole (Poke-a-Hole) and other DWARF2 utilities" +HOMEPAGE="https://git.kernel.org/cgit/devel/pahole/pahole.git/" + +LICENSE="GPL-2" # only +SLOT="0" +KEYWORDS="amd64 ~arm ~arm64 ppc64 x86" +IUSE="debug" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND="${PYTHON_DEPS} + >=dev-libs/elfutils-0.178 + sys-libs/zlib" +DEPEND="${RDEPEND}" + +MY_PN=dwarves +MY_P=${MY_PN}-${PV} +S=${WORKDIR}/${MY_P} +if [[ ${PV//_p} == ${PV} ]]; then + SRC_URI="http://fedorapeople.org/~acme/${MY_PN}/${MY_P}.tar.xz" +else + SRC_URI="https://dev.gentoo.org/~zzam/${PN}/${P}.tar.xz" +fi + +DOCS=( README README.ctracer NEWS ) + +PATCHES=( + "${FILESDIR}"/${PN}-1.10-python-import.patch +) + +src_prepare() { + cmake_src_prepare + python_fix_shebang ostra/ostra-cg ostra/python/ostra.py +} + +src_configure() { + local mycmakeargs=( "-D__LIB=$(get_libdir)" ) + cmake_src_configure +} + +src_test() { :; } + +src_install() { + cmake_src_install +} |