commit: 8d4d6bd4de28a5f9efc783d947397dabe7ffd568 Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Wed Jun 7 01:50:27 2023 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Wed Jun 7 01:50:27 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8d4d6bd4
sys-apps/dtc: set SETUPTOOLS_SCM_PRETEND_VERSION I test with a git repo in WORKDIR so I didn't hit this myself before. Bug: https://bugs.gentoo.org/835733 Closes: https://bugs.gentoo.org/907960 Signed-off-by: Sam James <sam <AT> gentoo.org> sys-apps/dtc/dtc-1.7.0.ebuild | 5 ++++- sys-apps/dtc/dtc-9999.ebuild | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/sys-apps/dtc/dtc-1.7.0.ebuild b/sys-apps/dtc/dtc-1.7.0.ebuild index 6427393029fc..a56040b060aa 100644 --- a/sys-apps/dtc/dtc-1.7.0.ebuild +++ b/sys-apps/dtc/dtc-1.7.0.ebuild @@ -47,7 +47,10 @@ PATCHES=( ) pkg_setup() { - use python && python-single-r1_pkg_setup + if use python ; then + export SETUPTOOLS_SCM_PRETEND_VERSION=${PV} + python-single-r1_pkg_setup + fi } src_prepare() { diff --git a/sys-apps/dtc/dtc-9999.ebuild b/sys-apps/dtc/dtc-9999.ebuild index 72cf9d539b46..ef30384edbe0 100644 --- a/sys-apps/dtc/dtc-9999.ebuild +++ b/sys-apps/dtc/dtc-9999.ebuild @@ -42,7 +42,10 @@ DOCS=( ) pkg_setup() { - use python && python-single-r1_pkg_setup + if use python ; then + export SETUPTOOLS_SCM_PRETEND_VERSION=${PV} + python-single-r1_pkg_setup + fi } src_prepare() {
