commit:     9dc551eb72e41a6e2def5a52034c3bd0f25f3da0
Author:     Maksim Ivanov <emaxx <AT> google <DOT> com>
AuthorDate: Thu Oct  5 23:56:53 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Oct  6 12:29:23 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9dc551eb

dev-util/scons: Pass --no-same-owner to tar

Use tar with "--no-same-owner" when unpacking sources.

This is to avoid permission errors in specific environments, and also to
be consistent with existing code like unpacker.eclass or llvm.org.eclass.

Signed-off-by: Maksim Ivanov <emaxx <AT> google.com>
Closes: https://github.com/gentoo/gentoo/pull/33212
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-util/scons/scons-4.4.0-r1.ebuild | 5 +++--
 dev-util/scons/scons-4.4.0.ebuild    | 5 +++--
 dev-util/scons/scons-4.5.1-r2.ebuild | 5 +++--
 dev-util/scons/scons-4.5.2.ebuild    | 5 +++--
 4 files changed, 12 insertions(+), 8 deletions(-)

diff --git a/dev-util/scons/scons-4.4.0-r1.ebuild 
b/dev-util/scons/scons-4.4.0-r1.ebuild
index 6a9226c08f03..08f12df37ec8 100644
--- a/dev-util/scons/scons-4.4.0-r1.ebuild
+++ b/dev-util/scons/scons-4.4.0-r1.ebuild
@@ -4,7 +4,7 @@
 EAPI=8
 
 DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{9..11} )
+PYTHON_COMPAT=( python3_{10..11} )
 PYTHON_REQ_USE="threads(+)"
 
 inherit distutils-r1 multiprocessing
@@ -60,7 +60,8 @@ src_unpack() {
                mkdir -p "${P}"/src || die
        fi
 
-       tar -C "${P}"/src --strip-components=1 -xzf "${DISTDIR}/${MY_P}.tar.gz" 
|| die
+       tar -C "${P}"/src --strip-components=1 --no-same-owner \
+               -xzf "${DISTDIR}/${MY_P}.tar.gz" || die
 }
 
 src_prepare() {

diff --git a/dev-util/scons/scons-4.4.0.ebuild 
b/dev-util/scons/scons-4.4.0.ebuild
index ba0b51d2452c..7f8ec6d1a72d 100644
--- a/dev-util/scons/scons-4.4.0.ebuild
+++ b/dev-util/scons/scons-4.4.0.ebuild
@@ -4,7 +4,7 @@
 EAPI=8
 
 DISTUTILS_USE_SETUPTOOLS=rdepend
-PYTHON_COMPAT=( python3_{9..11} )
+PYTHON_COMPAT=( python3_{10..11} )
 PYTHON_REQ_USE="threads(+)"
 
 inherit distutils-r1 multiprocessing
@@ -50,7 +50,8 @@ src_unpack() {
                mkdir -p "${P}"/src || die
        fi
 
-       tar -C "${P}"/src --strip-components=1 -xzf "${DISTDIR}/${MY_P}.tar.gz" 
|| die
+       tar -C "${P}"/src --strip-components=1 --no-same-owner \
+               -xzf "${DISTDIR}/${MY_P}.tar.gz" || die
 }
 
 src_prepare() {

diff --git a/dev-util/scons/scons-4.5.1-r2.ebuild 
b/dev-util/scons/scons-4.5.1-r2.ebuild
index 0677fb162655..abf7ca5ec4a0 100644
--- a/dev-util/scons/scons-4.5.1-r2.ebuild
+++ b/dev-util/scons/scons-4.5.1-r2.ebuild
@@ -4,7 +4,7 @@
 EAPI=8
 
 DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{9..11} )
+PYTHON_COMPAT=( python3_{10..11} )
 PYTHON_REQ_USE="threads(+)"
 
 inherit distutils-r1 multiprocessing
@@ -47,7 +47,8 @@ src_unpack() {
        # use the git directory structure, then unpack the pypi tarball
        # on top of it to make our life easier
        unpack "${P}.gh.tar.gz"
-       tar -C "${P}" --strip-components=1 -xzf "${DISTDIR}/${MY_P}.tar.gz" || 
die
+       tar -C "${P}" --strip-components=1 --no-same-owner \
+               -xzf "${DISTDIR}/${MY_P}.tar.gz" || die
 }
 
 src_prepare() {

diff --git a/dev-util/scons/scons-4.5.2.ebuild 
b/dev-util/scons/scons-4.5.2.ebuild
index a21519501e5e..ffb0cc1ce2a0 100644
--- a/dev-util/scons/scons-4.5.2.ebuild
+++ b/dev-util/scons/scons-4.5.2.ebuild
@@ -4,7 +4,7 @@
 EAPI=8
 
 DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{9..11} )
+PYTHON_COMPAT=( python3_{10..11} )
 PYTHON_REQ_USE="threads(+)"
 
 inherit distutils-r1 multiprocessing
@@ -52,7 +52,8 @@ src_unpack() {
                mkdir -p "${P}" || die
        fi
 
-       tar -C "${P}" --strip-components=1 -xzf "${DISTDIR}/${MY_P}.tar.gz" || 
die
+       tar -C "${P}" --strip-components=1 --no-same-owner \
+               -xzf "${DISTDIR}/${MY_P}.tar.gz" || die
 }
 
 src_prepare() {

Reply via email to