* [gentoo-commits] repo/gentoo:master commit in: dev-build/gyp/
@ 2024-06-30 12:13 Sam James
0 siblings, 0 replies; 5+ messages in thread
From: Sam James @ 2024-06-30 12:13 UTC (permalink / raw
To: gentoo-commits
commit: 04b4e167832e175af14c401d0f95d099de482236
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Jun 30 12:10:37 2024 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Jun 30 12:12:17 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=04b4e167
dev-build/gyp: enable py3.12
With reluctance given the test issues, but users report it works
ok for them for mozc, which is all gyp is for.
Bug: https://bugs.gentoo.org/929323
Closes: https://bugs.gentoo.org/929378
Signed-off-by: Sam James <sam <AT> gentoo.org>
dev-build/gyp/gyp-20200512145953.ebuild | 2 +-
dev-build/gyp/gyp-99999999999999.ebuild | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dev-build/gyp/gyp-20200512145953.ebuild b/dev-build/gyp/gyp-20200512145953.ebuild
index 1e3d8e400eef..2a097d13e4b8 100644
--- a/dev-build/gyp/gyp-20200512145953.ebuild
+++ b/dev-build/gyp/gyp-20200512145953.ebuild
@@ -2,7 +2,7 @@
# Distributed under the terms of the GNU General Public License v2
EAPI="8"
-PYTHON_COMPAT=( python3_{10..11} )
+PYTHON_COMPAT=( python3_{10..12} )
DISTUTILS_SINGLE_IMPL="1"
inherit distutils-r1
diff --git a/dev-build/gyp/gyp-99999999999999.ebuild b/dev-build/gyp/gyp-99999999999999.ebuild
index 3ef8251ef799..d0cfc3580646 100644
--- a/dev-build/gyp/gyp-99999999999999.ebuild
+++ b/dev-build/gyp/gyp-99999999999999.ebuild
@@ -2,7 +2,7 @@
# Distributed under the terms of the GNU General Public License v2
EAPI="8"
-PYTHON_COMPAT=( python3_{10..11} )
+PYTHON_COMPAT=( python3_{10..12} )
DISTUTILS_SINGLE_IMPL="1"
inherit distutils-r1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-build/gyp/
@ 2025-03-31 17:33 Sam James
0 siblings, 0 replies; 5+ messages in thread
From: Sam James @ 2025-03-31 17:33 UTC (permalink / raw
To: gentoo-commits
commit: 6cc9b02ac62bfb6d4e83be553e683aaa0a6948e6
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Mar 31 17:19:31 2025 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Mar 31 17:32:00 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6cc9b02a
dev-build/gyp: port to python-single-r1
The package isn't suitable for PEP517, as it installs data files and
it simply happens to be written in Python, rather than intending to be
imported and so on.
Unfortunately, for the remaining PEP517 holdouts, there's little pressure
upstream for them to port to a proper build system yet, as while setuptools
deprecated the `setup.py` entrypoint some time ago, there's no removal
in sight yet, so the only pressing side is on Gentoo's where we want
to cleanup distutils-r1's support for that.
It was arguably a mistake to really have these packages use distutils-r1
in the first place.
The obvious workaround for now is to invoke setup.py manually w/ python-single-r1,
and punt the question until setuptools removal of the entrypoint looks
closer (at which time, other distros will be putting pressure on upstreams
too). Of course, if at the time of such a setuptools change, the package
is still not fixed, then we'd have to remove it.
(The same issues apply to bug #922396 which isn't fixed by this, but
hopefully won't be an actual problem until that aforementioned removal
in setuptools itself of the other bits.)
Bug: https://bugs.gentoo.org/922396
Closes: https://bugs.gentoo.org/909980
Closes: https://bugs.gentoo.org/923435
Closes: https://bugs.gentoo.org/952274
Signed-off-by: Sam James <sam <AT> gentoo.org>
...9999999.ebuild => gyp-20200512145953-r1.ebuild} | 48 ++++++++++++++--------
dev-build/gyp/gyp-99999999999999.ebuild | 48 ++++++++++++++--------
2 files changed, 62 insertions(+), 34 deletions(-)
diff --git a/dev-build/gyp/gyp-99999999999999.ebuild b/dev-build/gyp/gyp-20200512145953-r1.ebuild
similarity index 57%
copy from dev-build/gyp/gyp-99999999999999.ebuild
copy to dev-build/gyp/gyp-20200512145953-r1.ebuild
index d0cfc3580646..f46a15970ed9 100644
--- a/dev-build/gyp/gyp-99999999999999.ebuild
+++ b/dev-build/gyp/gyp-20200512145953-r1.ebuild
@@ -1,42 +1,46 @@
-# Copyright 2017-2024 Gentoo Authors
+# Copyright 2017-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI="8"
-PYTHON_COMPAT=( python3_{10..12} )
-DISTUTILS_SINGLE_IMPL="1"
+EAPI=8
-inherit distutils-r1
+PYTHON_COMPAT=( python3_{10..13} )
+inherit edo python-single-r1
DESCRIPTION="GYP (Generate Your Projects) meta-build system"
HOMEPAGE="https://gyp.gsrc.io/ https://chromium.googlesource.com/external/gyp"
-if [[ "${PV}" == "99999999999999" ]]; then
+if [[ ${PV} == 99999999999999 ]]; then
EGIT_REPO_URI="https://chromium.googlesource.com/external/gyp"
inherit git-r3
else
SRC_URI="https://home.apache.org/~arfrever/distfiles/${P}.tar.xz"
- KEYWORDS="amd64 ~arm64 ~loong ~ppc64 x86"
+ KEYWORDS="~amd64 ~arm64 ~loong ~ppc64 ~x86"
fi
LICENSE="BSD"
SLOT="0"
-IUSE=""
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+# Needs review after updating to a newer commit
+RESTRICT="test"
-BDEPEND=""
-DEPEND=""
-RDEPEND=""
+RDEPEND="${PYTHON_DEPS}"
+BDEPEND="
+ $(python_gen_cond_dep '
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ ')
+"
-python_prepare_all() {
- distutils-r1_python_prepare_all
+src_prepare() {
+ default
sed -e "s/' Linux %s' % ' '\.join(platform.linux_distribution())/' Linux'/" -i gyptest.py || die
sed \
- -e "s/^import collections/import collections.abc/" \
+ -e "s/import collections/import collections.abc/" \
-e "s/collections\.MutableSet/collections.abc.MutableSet/" \
-i pylib/gyp/common.py || die
sed -e "s/the_dict_key is 'variables'/the_dict_key == 'variables'/" -i pylib/gyp/input.py || die
sed \
- -e "s/^import collections/import collections.abc/" \
+ -e "s/import collections/import collections.abc/" \
-e "s/collections\.Iterable/collections.abc.Iterable/" \
-i pylib/gyp/msvs_emulation.py || die
sed \
@@ -45,9 +49,19 @@ python_prepare_all() {
-i test/lib/TestCmd.py || die
}
-python_test() {
+src_compile() {
+ edo ${EPYTHON} setup.py build
+}
+
+src_test() {
# More errors with DeprecationWarnings enabled.
local -x PYTHONWARNINGS=""
- "${PYTHON}" gyptest.py --all --verbose
+ edo "${PYTHON}" gyptest.py --all --verbose
+}
+
+src_install() {
+ edo ${EPYTHON} setup.py install --prefix="${EPREFIX}/usr" --root="${D}"
+ python_optimize
+ einstalldocs
}
diff --git a/dev-build/gyp/gyp-99999999999999.ebuild b/dev-build/gyp/gyp-99999999999999.ebuild
index d0cfc3580646..f46a15970ed9 100644
--- a/dev-build/gyp/gyp-99999999999999.ebuild
+++ b/dev-build/gyp/gyp-99999999999999.ebuild
@@ -1,42 +1,46 @@
-# Copyright 2017-2024 Gentoo Authors
+# Copyright 2017-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI="8"
-PYTHON_COMPAT=( python3_{10..12} )
-DISTUTILS_SINGLE_IMPL="1"
+EAPI=8
-inherit distutils-r1
+PYTHON_COMPAT=( python3_{10..13} )
+inherit edo python-single-r1
DESCRIPTION="GYP (Generate Your Projects) meta-build system"
HOMEPAGE="https://gyp.gsrc.io/ https://chromium.googlesource.com/external/gyp"
-if [[ "${PV}" == "99999999999999" ]]; then
+if [[ ${PV} == 99999999999999 ]]; then
EGIT_REPO_URI="https://chromium.googlesource.com/external/gyp"
inherit git-r3
else
SRC_URI="https://home.apache.org/~arfrever/distfiles/${P}.tar.xz"
- KEYWORDS="amd64 ~arm64 ~loong ~ppc64 x86"
+ KEYWORDS="~amd64 ~arm64 ~loong ~ppc64 ~x86"
fi
LICENSE="BSD"
SLOT="0"
-IUSE=""
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+# Needs review after updating to a newer commit
+RESTRICT="test"
-BDEPEND=""
-DEPEND=""
-RDEPEND=""
+RDEPEND="${PYTHON_DEPS}"
+BDEPEND="
+ $(python_gen_cond_dep '
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ ')
+"
-python_prepare_all() {
- distutils-r1_python_prepare_all
+src_prepare() {
+ default
sed -e "s/' Linux %s' % ' '\.join(platform.linux_distribution())/' Linux'/" -i gyptest.py || die
sed \
- -e "s/^import collections/import collections.abc/" \
+ -e "s/import collections/import collections.abc/" \
-e "s/collections\.MutableSet/collections.abc.MutableSet/" \
-i pylib/gyp/common.py || die
sed -e "s/the_dict_key is 'variables'/the_dict_key == 'variables'/" -i pylib/gyp/input.py || die
sed \
- -e "s/^import collections/import collections.abc/" \
+ -e "s/import collections/import collections.abc/" \
-e "s/collections\.Iterable/collections.abc.Iterable/" \
-i pylib/gyp/msvs_emulation.py || die
sed \
@@ -45,9 +49,19 @@ python_prepare_all() {
-i test/lib/TestCmd.py || die
}
-python_test() {
+src_compile() {
+ edo ${EPYTHON} setup.py build
+}
+
+src_test() {
# More errors with DeprecationWarnings enabled.
local -x PYTHONWARNINGS=""
- "${PYTHON}" gyptest.py --all --verbose
+ edo "${PYTHON}" gyptest.py --all --verbose
+}
+
+src_install() {
+ edo ${EPYTHON} setup.py install --prefix="${EPREFIX}/usr" --root="${D}"
+ python_optimize
+ einstalldocs
}
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-build/gyp/
@ 2025-04-09 13:47 Sam James
0 siblings, 0 replies; 5+ messages in thread
From: Sam James @ 2025-04-09 13:47 UTC (permalink / raw
To: gentoo-commits
commit: 3b70d8b1976075dd5f7c86c3b0ff6cb818b38e78
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Apr 9 13:45:12 2025 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Apr 9 13:46:55 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3b70d8b1
dev-build/gyp: stabilize 20200512145953-r1 for amd64, ppc64, x86
Bug: https://bugs.gentoo.org/909980
Signed-off-by: Sam James <sam <AT> gentoo.org>
dev-build/gyp/gyp-20200512145953-r1.ebuild | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dev-build/gyp/gyp-20200512145953-r1.ebuild b/dev-build/gyp/gyp-20200512145953-r1.ebuild
index f46a15970ed9..52b5da63dbcb 100644
--- a/dev-build/gyp/gyp-20200512145953-r1.ebuild
+++ b/dev-build/gyp/gyp-20200512145953-r1.ebuild
@@ -14,7 +14,7 @@ if [[ ${PV} == 99999999999999 ]]; then
inherit git-r3
else
SRC_URI="https://home.apache.org/~arfrever/distfiles/${P}.tar.xz"
- KEYWORDS="~amd64 ~arm64 ~loong ~ppc64 ~x86"
+ KEYWORDS="amd64 ~arm64 ~loong ppc64 x86"
fi
LICENSE="BSD"
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-build/gyp/
@ 2025-04-09 13:47 Sam James
0 siblings, 0 replies; 5+ messages in thread
From: Sam James @ 2025-04-09 13:47 UTC (permalink / raw
To: gentoo-commits
commit: 23ed76400f3836f7d9362e3aeed14ebc615805a5
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Apr 9 13:45:18 2025 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Apr 9 13:46:56 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=23ed7640
dev-build/gyp: drop 20200512145953
Bug: https://bugs.gentoo.org/909980
Signed-off-by: Sam James <sam <AT> gentoo.org>
dev-build/gyp/gyp-20200512145953.ebuild | 53 ---------------------------------
1 file changed, 53 deletions(-)
diff --git a/dev-build/gyp/gyp-20200512145953.ebuild b/dev-build/gyp/gyp-20200512145953.ebuild
deleted file mode 100644
index 2a097d13e4b8..000000000000
--- a/dev-build/gyp/gyp-20200512145953.ebuild
+++ /dev/null
@@ -1,53 +0,0 @@
-# Copyright 2017-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="8"
-PYTHON_COMPAT=( python3_{10..12} )
-DISTUTILS_SINGLE_IMPL="1"
-
-inherit distutils-r1
-
-DESCRIPTION="GYP (Generate Your Projects) meta-build system"
-HOMEPAGE="https://gyp.gsrc.io/ https://chromium.googlesource.com/external/gyp"
-
-if [[ "${PV}" == "99999999999999" ]]; then
- EGIT_REPO_URI="https://chromium.googlesource.com/external/gyp"
- inherit git-r3
-else
- SRC_URI="https://home.apache.org/~arfrever/distfiles/${P}.tar.xz"
- KEYWORDS="amd64 ~arm64 ~loong ppc64 x86"
-fi
-
-LICENSE="BSD"
-SLOT="0"
-IUSE=""
-
-BDEPEND=""
-DEPEND=""
-RDEPEND=""
-
-python_prepare_all() {
- distutils-r1_python_prepare_all
-
- sed -e "s/' Linux %s' % ' '\.join(platform.linux_distribution())/' Linux'/" -i gyptest.py || die
- sed \
- -e "s/import collections/import collections.abc/" \
- -e "s/collections\.MutableSet/collections.abc.MutableSet/" \
- -i pylib/gyp/common.py || die
- sed -e "s/the_dict_key is 'variables'/the_dict_key == 'variables'/" -i pylib/gyp/input.py || die
- sed \
- -e "s/import collections/import collections.abc/" \
- -e "s/collections\.Iterable/collections.abc.Iterable/" \
- -i pylib/gyp/msvs_emulation.py || die
- sed \
- -e "s/os\.environ\['PRESERVE'\] is not ''/os.environ['PRESERVE'] != ''/" \
- -e "s/conditions is ()/conditions == ()/" \
- -i test/lib/TestCmd.py || die
-}
-
-python_test() {
- # More errors with DeprecationWarnings enabled.
- local -x PYTHONWARNINGS=""
-
- "${PYTHON}" gyptest.py --all --verbose
-}
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-build/gyp/
@ 2025-04-09 13:50 Sam James
0 siblings, 0 replies; 5+ messages in thread
From: Sam James @ 2025-04-09 13:50 UTC (permalink / raw
To: gentoo-commits
commit: 44949e84360abd938cd25a4c4037d3502f754035
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Apr 9 13:49:25 2025 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Apr 9 13:49:25 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=44949e84
dev-build/gyp: Stabilize 20200512145953-r1 arm64, #922248
Signed-off-by: Sam James <sam <AT> gentoo.org>
dev-build/gyp/gyp-20200512145953-r1.ebuild | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dev-build/gyp/gyp-20200512145953-r1.ebuild b/dev-build/gyp/gyp-20200512145953-r1.ebuild
index 52b5da63dbcb..572241ccdc89 100644
--- a/dev-build/gyp/gyp-20200512145953-r1.ebuild
+++ b/dev-build/gyp/gyp-20200512145953-r1.ebuild
@@ -14,7 +14,7 @@ if [[ ${PV} == 99999999999999 ]]; then
inherit git-r3
else
SRC_URI="https://home.apache.org/~arfrever/distfiles/${P}.tar.xz"
- KEYWORDS="amd64 ~arm64 ~loong ppc64 x86"
+ KEYWORDS="amd64 arm64 ~loong ppc64 x86"
fi
LICENSE="BSD"
^ permalink raw reply related [flat|nested] 5+ messages in thread
end of thread, other threads:[~2025-04-09 13:50 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-30 12:13 [gentoo-commits] repo/gentoo:master commit in: dev-build/gyp/ Sam James
-- strict thread matches above, loose matches on Subject: below --
2025-03-31 17:33 Sam James
2025-04-09 13:47 Sam James
2025-04-09 13:47 Sam James
2025-04-09 13:50 Sam James
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox