diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-04 16:47:34 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-04 16:47:34 -0500 |
| commit | dda948891d3731927b821ce31f9d9a2d03ba20c5 (patch) | |
| tree | 99cd40be4cbb0606260da212cd81b8ab2db9da9b /dev-util/elf_diff | |
| parent | a3ceca1b4c0d9bdb550dc23f06ffbb5a8e033bc7 (diff) | |
| download | baldeagleos-repo-dda948891d3731927b821ce31f9d9a2d03ba20c5.tar.gz baldeagleos-repo-dda948891d3731927b821ce31f9d9a2d03ba20c5.tar.xz baldeagleos-repo-dda948891d3731927b821ce31f9d9a2d03ba20c5.zip | |
Adding metadata
Diffstat (limited to 'dev-util/elf_diff')
| -rw-r--r-- | dev-util/elf_diff/Manifest | 1 | ||||
| -rw-r--r-- | dev-util/elf_diff/elf_diff-0.7.1.ebuild | 43 | ||||
| -rw-r--r-- | dev-util/elf_diff/files/elf_diff-0.7.1-test-runner-exit.patch | 12 | ||||
| -rw-r--r-- | dev-util/elf_diff/metadata.xml | 10 |
4 files changed, 66 insertions, 0 deletions
diff --git a/dev-util/elf_diff/Manifest b/dev-util/elf_diff/Manifest new file mode 100644 index 000000000000..7a61d0ece587 --- /dev/null +++ b/dev-util/elf_diff/Manifest @@ -0,0 +1 @@ +DIST elf_diff-0.7.1.tar.gz 885542 BLAKE2B 1e601d81ba616847ae7b042ea40aea1ad150e673f4491f35a86e58047d6985dbee3ef6b5b9bc00a35d210432e8b0cc802ff3f4a86280acc62c90ec44b9815db4 SHA512 b1eef9954ceabf3a1936423131eacd71cf942a5d2f28419b3afac837b6b56cf81a9ff884f6e36495d0f61840aa9f5e68836960d29b0a7d7e00f4a0e938fcc141 diff --git a/dev-util/elf_diff/elf_diff-0.7.1.ebuild b/dev-util/elf_diff/elf_diff-0.7.1.ebuild new file mode 100644 index 000000000000..ab01393d16ae --- /dev/null +++ b/dev-util/elf_diff/elf_diff-0.7.1.ebuild @@ -0,0 +1,43 @@ +# Copyright 2025-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{13..14} ) +inherit distutils-r1 pypi + +DESCRIPTION="Tool to compare ELF binaries" +HOMEPAGE="https://github.com/noseglasses/elf_diff https://pypi.org/project/elf_diff" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64" +IUSE="test" +# Tests fail for now but probably gone unnoticed as its exit status was +# wrong on failure. +RESTRICT="!test? ( test ) test" + +RDEPEND=" + dev-python/anytree[${PYTHON_USEDEP}] + dev-python/dict2xml[${PYTHON_USEDEP}] + dev-python/gitpython[${PYTHON_USEDEP}] + dev-python/jinja2[${PYTHON_USEDEP}] + dev-python/progressbar2[${PYTHON_USEDEP}] + dev-python/pyyaml[${PYTHON_USEDEP}] + dev-python/weasyprint[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/beautifulsoup4[${PYTHON_USEDEP}] + dev-python/deepdiff[${PYTHON_USEDEP}] + ) +" + +PATCHES=( + "${FILESDIR}"/${PN}-0.7.1-test-runner-exit.patch +) + +python_test() { + "${EPYTHON}" tests/test_main.py -p || die "Tests failed with ${EPYTHON}" +} diff --git a/dev-util/elf_diff/files/elf_diff-0.7.1-test-runner-exit.patch b/dev-util/elf_diff/files/elf_diff-0.7.1-test-runner-exit.patch new file mode 100644 index 000000000000..036b6ea46647 --- /dev/null +++ b/dev-util/elf_diff/files/elf_diff-0.7.1-test-runner-exit.patch @@ -0,0 +1,12 @@ +https://github.com/noseglasses/elf_diff/pull/123 + +Make the exit status of test_main.py reflect whether tests passed. +--- a/tests/test_main.py ++++ b/tests/test_main.py +@@ -48,4 +48,5 @@ if __name__ == "__main__": + tests = loader.loadTestsFromNames(test_modules) + + test_runner = unittest.runner.TextTestRunner() +- test_runner.run(tests) ++ result = test_runner.run(tests) ++ sys.exit(not result.wasSuccessful()) diff --git a/dev-util/elf_diff/metadata.xml b/dev-util/elf_diff/metadata.xml new file mode 100644 index 000000000000..1852c8beba1b --- /dev/null +++ b/dev-util/elf_diff/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>sam@gentoo.org</email> + <name>Sam James</name> + </maintainer> + <stabilize-allarches /> + <origin>baldeagleos-repo</origin> +</pkgmetadata> |
