diff options
author | Mario Haustein <mario.haustein@hrz.tu-chemnitz.de> | 2024-01-15 20:12:35 +0100 |
---|---|---|
committer | Arthur Zamarin <arthurzam@gentoo.org> | 2024-03-08 11:44:28 +0200 |
commit | 6859ca45da0076117f01302bb1165bdafc710bb4 (patch) | |
tree | e631a2d5679b32c3729e0d168cdd851bb4c08ba9 /app-forensics/volatility3 | |
parent | dev-libs/imath: add 3.1.11 (diff) | |
download | gentoo-6859ca45da0076117f01302bb1165bdafc710bb4.tar.gz gentoo-6859ca45da0076117f01302bb1165bdafc710bb4.tar.bz2 gentoo-6859ca45da0076117f01302bb1165bdafc710bb4.zip |
app-forensics/volatility3: just install site-packages
Closes: https://bugs.gentoo.org/922169
Signed-off-by: Mario Haustein <mario.haustein@hrz.tu-chemnitz.de>
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'app-forensics/volatility3')
-rw-r--r-- | app-forensics/volatility3/files/volatility3-2.4.1-dont-install-tests.patch | 13 | ||||
-rw-r--r-- | app-forensics/volatility3/files/volatility3-2.4.1-install.patch | 81 | ||||
-rw-r--r-- | app-forensics/volatility3/volatility3-2.4.1-r2.ebuild (renamed from app-forensics/volatility3/volatility3-2.4.1-r1.ebuild) | 4 |
3 files changed, 83 insertions, 15 deletions
diff --git a/app-forensics/volatility3/files/volatility3-2.4.1-dont-install-tests.patch b/app-forensics/volatility3/files/volatility3-2.4.1-dont-install-tests.patch deleted file mode 100644 index 0d85c664ba35..000000000000 --- a/app-forensics/volatility3/files/volatility3-2.4.1-dont-install-tests.patch +++ /dev/null @@ -1,13 +0,0 @@ -Don't install test files -https://bugs.gentoo.org/886031 ---- a/setup.py -+++ b/setup.py -@@ -40,7 +40,7 @@ setuptools.setup( - include_package_data=True, - exclude_package_data={"": ["development", "development.*"], "development": ["*"]}, - packages=setuptools.find_namespace_packages( -- exclude=["development", "development.*"] -+ exclude=["development", "development.*", "test", "test.*"] - ), - entry_points={ - "console_scripts": [ diff --git a/app-forensics/volatility3/files/volatility3-2.4.1-install.patch b/app-forensics/volatility3/files/volatility3-2.4.1-install.patch new file mode 100644 index 000000000000..aee83bdf885a --- /dev/null +++ b/app-forensics/volatility3/files/volatility3-2.4.1-install.patch @@ -0,0 +1,81 @@ +From b4c6b661f01fc3dde54362a4f55be4d89e4cc6e5 Mon Sep 17 00:00:00 2001 +From: Mike Auty <mike.auty@gmail.com> +Date: Sun, 3 Sep 2023 21:11:36 +0100 +Subject: [PATCH] Core: Include only volatility3 in distributions packages +Upstream: https://github.com/volatilityfoundation/volatility3/commit/b4c6b661f01fc3dde54362a4f55be4d89e4cc6e5 + +Fixes #951 +--- a/setup.py ++++ b/setup.py +@@ -40,7 +40,7 @@ def get_install_requires(): + include_package_data=True, + exclude_package_data={"": ["development", "development.*"], "development": ["*"]}, + packages=setuptools.find_namespace_packages( +- exclude=["development", "development.*"] ++ include=["volatility3"] + ), + entry_points={ + "console_scripts": [ +From 05df365936a5965171632c7b0b0dbd1bee6c08a9 Mon Sep 17 00:00:00 2001 +From: Mike Auty <mike.auty@gmail.com> +Date: Tue, 5 Sep 2023 18:23:48 +0100 +Subject: [PATCH] Core: Fix missing packages in setup.py +Upstream: https://github.com/volatilityfoundation/volatility3/commit/05df365936a5965171632c7b0b0dbd1bee6c08a9 + +Fixes #1002. +--- a/setup.py ++++ b/setup.py +@@ -12,7 +12,7 @@ + + def get_install_requires(): + requirements = [] +- with open("requirements-minimal.txt", "r", encoding = "utf-8") as fh: ++ with open("requirements-minimal.txt", "r", encoding="utf-8") as fh: + for line in fh.readlines(): + stripped_line = line.strip() + if stripped_line == "" or stripped_line.startswith("#"): +@@ -20,6 +20,7 @@ def get_install_requires(): + requirements.append(stripped_line) + return requirements + ++ + setuptools.setup( + name="volatility3", + description="Memory forensics framework", +@@ -39,9 +40,8 @@ def get_install_requires(): + python_requires=">=3.7.0", + include_package_data=True, + exclude_package_data={"": ["development", "development.*"], "development": ["*"]}, +- packages=setuptools.find_namespace_packages( +- include=["volatility3"] +- ), ++ packages=setuptools.find_namespace_packages(where="volatility3"), ++ package_dir={"": "volatility3"}, + entry_points={ + "console_scripts": [ + "vol = volatility3.cli:main", +From 803c56e3c4c6495b2725b77cc7d045e39c98a9bd Mon Sep 17 00:00:00 2001 +From: Mike Auty <mike.auty@gmail.com> +Date: Tue, 5 Sep 2023 23:51:17 +0100 +Subject: [PATCH] Core: include the volatility3 package and all volatility3 + subpackages +Upstream: https://github.com/volatilityfoundation/volatility3/commit/803c56e3c4c6495b2725b77cc7d045e39c98a9bd + +--- a/setup.py ++++ b/setup.py +@@ -37,11 +37,12 @@ def get_install_requires(): + "Documentation": "https://volatility3.readthedocs.io/", + "Source Code": "https://github.com/volatilityfoundation/volatility3", + }, ++ packages=setuptools.find_namespace_packages( ++ include=["volatility3", "volatility3.*"] ++ ), ++ package_dir={"volatility3": "volatility3"}, + python_requires=">=3.7.0", + include_package_data=True, +- exclude_package_data={"": ["development", "development.*"], "development": ["*"]}, +- packages=setuptools.find_namespace_packages(where="volatility3"), +- package_dir={"": "volatility3"}, + entry_points={ + "console_scripts": [ + "vol = volatility3.cli:main", diff --git a/app-forensics/volatility3/volatility3-2.4.1-r1.ebuild b/app-forensics/volatility3/volatility3-2.4.1-r2.ebuild index 92aab0726506..dd3306085d41 100644 --- a/app-forensics/volatility3/volatility3-2.4.1-r1.ebuild +++ b/app-forensics/volatility3/volatility3-2.4.1-r2.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -45,7 +45,7 @@ RDEPEND=" DEPEND="${RDEPEND}" PATCHES=( - "${FILESDIR}/${P}-dont-install-tests.patch" + "${FILESDIR}/${P}-install.patch" ) # Tests require optional features |