summaryrefslogtreecommitdiff
path: root/dev-util/dwarves
diff options
context:
space:
mode:
Diffstat (limited to 'dev-util/dwarves')
-rw-r--r--dev-util/dwarves/Manifest11
-rw-r--r--dev-util/dwarves/dwarves-1.10_p20140618.ebuild44
-rw-r--r--dev-util/dwarves/dwarves-1.10_p20160519.ebuild44
-rw-r--r--dev-util/dwarves/dwarves-1.10_p20160630.ebuild44
-rw-r--r--dev-util/dwarves/dwarves-9999.ebuild39
-rw-r--r--dev-util/dwarves/files/dwarves-1.10-python-import.patch15
-rw-r--r--dev-util/dwarves/metadata.xml16
7 files changed, 213 insertions, 0 deletions
diff --git a/dev-util/dwarves/Manifest b/dev-util/dwarves/Manifest
new file mode 100644
index 000000000000..c11fb83cd9a7
--- /dev/null
+++ b/dev-util/dwarves/Manifest
@@ -0,0 +1,11 @@
+AUX dwarves-1.10-python-import.patch 399 SHA256 d18a0e7d7d64679c045a1209e86aa338b6e51a45bd490c76dddda2f5815b770d SHA512 c2f5c1e99ef2ffeaf0e7962cbdf28817f6896b27ff6894571823c81ba08b9e9440af1a5b6ad82770b8e8d6ec99ec2ef8f46a98b67fea7cd4ed7e8c22e716e314 WHIRLPOOL f75d4edc76c6122a80b88f8ff4c0071df4019551ed9f75cd46b18480ae239728c4b8fe6b9e736dc3a2627cd17743e9c96893ddeac6cd575f57f2494d8fa7dc8e
+DIST dwarves-1.10_p20140618.tar.xz 105912 SHA256 1955f854206ad26a2949fd2ff20da2403db84393fe9db5769fafcbaacde001c6 SHA512 522a6d674da5cc2316c180bcb4e90419d5811ff34e6aeeef875950dbcc4c12ea5a133d159360629d687f93ae2db622bb87d9b94a747aade90a61b239b9137a2c WHIRLPOOL 63a4ff06e76e55a0bdd1feb3c5e3c450170f3fbfae80b3d61a36e69f0616ed90e2cdbe065f47cd08caaf8de57e2ed366ded8f581eb2b228bac917b23f66f8ab8
+DIST dwarves-1.10_p20160519.tar.xz 106532 SHA256 01e7d1bc697c21253e9eef4e481fbb55a35c59d4e5e1eade571ea26aab0fae0b SHA512 74797e934db900e78235705f70de45667e4ba7f56c0b7454d148365b8c87b617dcbf07fa12bdfdcaa2c129cd2111b029b458e71f77261b237de46fc2759a37da WHIRLPOOL 8e574aad93fd3c32ade8476622c9d853291e5596b91570141f345f70d51645b2ee04f84801b1cc1367b23150c1156f92c29efb3e21b2dcc3706a85de6584e385
+DIST dwarves-1.10_p20160630.tar.xz 106700 SHA256 6b0eec55f564cfa0d5c24eca3a31145643938a91962eefa1712b321776b4d6a1 SHA512 f33ffbca0ef0dd89add5275c01a35e7c6298c4dae73be9c197887c54608ffb0edb95b8792f8a51ab29d80051682752d6f1c2596a486f61bc18e6cd47e2b7e4b0 WHIRLPOOL f4deb074cbffcf386b2d355d0bcdf60dceb9fec2b6a0551e437f7c9e3533b24e1858ec313312ffb48d3fe0b223cf6e73f4824d59478d54e97447a002674ed71a
+EBUILD dwarves-1.10_p20140618.ebuild 1038 SHA256 7745c7ed79c035018e142889960455b4e5ae23cd161765694868d5ae13700e79 SHA512 6cc3333ecaf75f0cf910f2c364d56eace6c7ea89b52377a4d79275e485e01398745d5ac45cf0201a4cf3215b6a57d53b3e8a96dc0a65b2cc5b4e864824b11637 WHIRLPOOL 53c7dc2a76ebab39cb52d716afec3e62192dabf6d29767515213668330b69391a81015f481aed4a7aeacf96159d02b35c459d5d9801f09feff412b2eced9e881
+EBUILD dwarves-1.10_p20160519.ebuild 1038 SHA256 0354e441e3eb633abcb445acc5e8c4be4b9287359faf6ad1919d89cbb270208f SHA512 b639ba81e22f559b1547e78ca1ec945471b946050f6a61892321403c4e283388067a4870835bf8a8fccc0b0367f2e14c192642ff210530604945662c91840f26 WHIRLPOOL f8fc7016e85deacd47024c268416acc4575ef5836b9adf1b1c4d4d54e216e38743fd3e6460f34d22f2682ec1a5a58c7188c7179f7ec0b629f3d27a8e24e9484a
+EBUILD dwarves-1.10_p20160630.ebuild 1038 SHA256 0354e441e3eb633abcb445acc5e8c4be4b9287359faf6ad1919d89cbb270208f SHA512 b639ba81e22f559b1547e78ca1ec945471b946050f6a61892321403c4e283388067a4870835bf8a8fccc0b0367f2e14c192642ff210530604945662c91840f26 WHIRLPOOL f8fc7016e85deacd47024c268416acc4575ef5836b9adf1b1c4d4d54e216e38743fd3e6460f34d22f2682ec1a5a58c7188c7179f7ec0b629f3d27a8e24e9484a
+EBUILD dwarves-9999.ebuild 926 SHA256 70eee4dd78ce478a1ba34dcb8b6c116e849409c17f5db3c95254d79df9ed934e SHA512 dbed04e6cf4e2c5f0aed91ba35c299ad88f1a3bbf95f278ce48c4ee1b34751f6246f73d6fabc207fc83d6d4b28918c549634bffd1e621da2cb7e8a26d9f58ab9 WHIRLPOOL 5b044559dec099962c8e2c5994a25401d6ca2e24f86744fa18f978cf744a690dd7782a3218a084ad16411c39108d1f1c7d784ca931fa51bb90445bde8399716a
+MISC ChangeLog 3370 SHA256 1da233b5ec97a1720b1d4ef440d493a58f6976870e6634a28f0f8a783165fd9a SHA512 6dab70f7aab79504b96d900d8df649ac23be87d27caa9830f2a04e4acbd116a93fb0ed6d4e8ded0090b23799297e5095c54e185e9e7506900240c0bc628175d8 WHIRLPOOL 50dc9f9c424daa9a1f145f86a8e7a6dd3042b8dfda3739e99d0152f9e080797deb3be8cf89851005379b219076a514854adcf53438cb7e7d28d25776df62fa11
+MISC ChangeLog-2015 3845 SHA256 d2629f97e90d846f22bf5fa5d37a3fa3a07c48bd81dec0fbe0fc0e05e38aa764 SHA512 a3a788c46958426e5dd781fe237aee57d1fc0248d68a6d448cf18c34fad5e06dac912b4aa225c344e31d2c29e90d3c47e7f9a7a11fdf6bb67598057cf30afbf0 WHIRLPOOL 04d5706eb696e4dfa85ce2d799115a95c69bb91b2d53ec0db6fd22d8302f4dde494bb5b09f5b8eaff9a55af4bf9bc2c224add90eaab58b6b88b875423f66b302
+MISC metadata.xml 671 SHA256 45e08195ab76f25b7b5ada0bd2066d48c56b7ebeffa2bde65b171f7826628e8a SHA512 0cdd2c3e4e76a9017120a409aec1f70327363ee146e5fb74684d0e08e2836f0079cb97be1c4874445b271b98c13daf04f75ee481ef21607aac8976a78437af11 WHIRLPOOL 65baf82950288e0e4fe7479dafdb3e83574b4ca13fb15a0e2c573c3b72665b1c3316f1518c29cd59734f629ff9f4dfb5032cc52043100bf3813b0b3d1cbd6ae1
diff --git a/dev-util/dwarves/dwarves-1.10_p20140618.ebuild b/dev-util/dwarves/dwarves-1.10_p20140618.ebuild
new file mode 100644
index 000000000000..eb68a1845533
--- /dev/null
+++ b/dev-util/dwarves/dwarves-1.10_p20140618.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+inherit multilib cmake-utils 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"
+IUSE="debug"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="${PYTHON_DEPS}
+ >=dev-libs/elfutils-0.131
+ sys-libs/zlib"
+DEPEND="${RDEPEND}"
+
+if [[ ${PV//_p} == ${PV} ]]; then
+ SRC_URI="http://fedorapeople.org/~acme/dwarves/${P}.tar.bz2"
+ S=${WORKDIR}
+else
+ SRC_URI="https://dev.gentoo.org/~flameeyes/${PN}/${P}.tar.xz"
+fi
+
+DOCS=( README README.ctracer NEWS )
+PATCHES=( "${FILESDIR}"/${PN}-1.10-python-import.patch )
+
+src_configure() {
+ local mycmakeargs=( "-D__LIB=$(get_libdir)" )
+ cmake-utils_src_configure
+}
+
+src_test() { :; }
+
+src_install() {
+ cmake-utils_src_install
+ python_fix_shebang "${D}"/usr/bin/ostra-cg \
+ "${D}"/usr/share/dwarves/runtime/python/ostra.py
+}
diff --git a/dev-util/dwarves/dwarves-1.10_p20160519.ebuild b/dev-util/dwarves/dwarves-1.10_p20160519.ebuild
new file mode 100644
index 000000000000..b9cd76e48e45
--- /dev/null
+++ b/dev-util/dwarves/dwarves-1.10_p20160519.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+inherit multilib cmake-utils 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 ~x86"
+IUSE="debug"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="${PYTHON_DEPS}
+ >=dev-libs/elfutils-0.131
+ sys-libs/zlib"
+DEPEND="${RDEPEND}"
+
+if [[ ${PV//_p} == ${PV} ]]; then
+ SRC_URI="http://fedorapeople.org/~acme/dwarves/${P}.tar.bz2"
+ S=${WORKDIR}
+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_configure() {
+ local mycmakeargs=( "-D__LIB=$(get_libdir)" )
+ cmake-utils_src_configure
+}
+
+src_test() { :; }
+
+src_install() {
+ cmake-utils_src_install
+ python_fix_shebang "${D}"/usr/bin/ostra-cg \
+ "${D}"/usr/share/dwarves/runtime/python/ostra.py
+}
diff --git a/dev-util/dwarves/dwarves-1.10_p20160630.ebuild b/dev-util/dwarves/dwarves-1.10_p20160630.ebuild
new file mode 100644
index 000000000000..b9cd76e48e45
--- /dev/null
+++ b/dev-util/dwarves/dwarves-1.10_p20160630.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+inherit multilib cmake-utils 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 ~x86"
+IUSE="debug"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="${PYTHON_DEPS}
+ >=dev-libs/elfutils-0.131
+ sys-libs/zlib"
+DEPEND="${RDEPEND}"
+
+if [[ ${PV//_p} == ${PV} ]]; then
+ SRC_URI="http://fedorapeople.org/~acme/dwarves/${P}.tar.bz2"
+ S=${WORKDIR}
+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_configure() {
+ local mycmakeargs=( "-D__LIB=$(get_libdir)" )
+ cmake-utils_src_configure
+}
+
+src_test() { :; }
+
+src_install() {
+ cmake-utils_src_install
+ python_fix_shebang "${D}"/usr/bin/ostra-cg \
+ "${D}"/usr/share/dwarves/runtime/python/ostra.py
+}
diff --git a/dev-util/dwarves/dwarves-9999.ebuild b/dev-util/dwarves/dwarves-9999.ebuild
new file mode 100644
index 000000000000..a82314e5ae50
--- /dev/null
+++ b/dev-util/dwarves/dwarves-9999.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+EGIT_REPO_URI="git://git.kernel.org/pub/scm/devel/pahole/pahole.git"
+
+PYTHON_COMPAT=( python2_7 )
+inherit multilib cmake-utils git-2 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=""
+IUSE="debug"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="${PYTHON_DEPS}
+ >=dev-libs/elfutils-0.131
+ sys-libs/zlib"
+DEPEND="${RDEPEND}"
+
+DOCS=( README README.ctracer NEWS )
+PATCHES=( "${FILESDIR}"/${PN}-1.10-python-import.patch )
+
+src_configure() {
+ local mycmakeargs=( "-D__LIB=$(get_libdir)" )
+ cmake-utils_src_configure
+}
+
+src_test() { :; }
+
+src_install() {
+ cmake-utils_src_install
+ python_fix_shebang "${D}"/usr/bin/ostra-cg \
+ "${D}"/usr/share/dwarves/runtime/python/ostra.py
+}
diff --git a/dev-util/dwarves/files/dwarves-1.10-python-import.patch b/dev-util/dwarves/files/dwarves-1.10-python-import.patch
new file mode 100644
index 000000000000..e308ac6e2788
--- /dev/null
+++ b/dev-util/dwarves/files/dwarves-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/dwarves/metadata.xml b/dev-util/dwarves/metadata.xml
new file mode 100644
index 000000000000..28be736073c3
--- /dev/null
+++ b/dev-util/dwarves/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>