# Michał Górny (2023-11-04)
# Broken on py3.12. Last commit in 2020. Already a second fork
# of the package. No revdeps.
# Removal on 2023-12-04. Bug #916856.
dev-python/wstools
--
Best regards,
Michał Górny
signature.asc
Description: This is a digitally signed message part
Signed-off-by: Michał Górny
---
dev-python/numpy/numpy-1.26.1.ebuild | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dev-python/numpy/numpy-1.26.1.ebuild
b/dev-python/numpy/numpy-1.26.1.ebuild
index 3255d05e2c00..92564017966e 100644
--- a/dev-python/numpy/numpy-1.26.1
Signed-off-by: Michał Górny
---
dev-python/pyrate-limiter/pyrate-limiter-3.1.0.ebuild | 6 +-
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/dev-python/pyrate-limiter/pyrate-limiter-3.1.0.ebuild
b/dev-python/pyrate-limiter/pyrate-limiter-3.1.0.ebuild
index 47947453dc89
Make `distutils_enable_tests pytest` automatically add
the `dev-python/pytest-xdist` dependency if `EPYTEST_XDIST` is set.
Signed-off-by: Michał Górny
---
eclass/distutils-r1.eclass| 3 +++
eclass/python-utils-r1.eclass | 4 +++-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git
Add an `EPYTEST_XDIST` variable that can be used to enable running
the test suite in parallel via the dev-python/pytest-xdist plugin.
This also includes user-facing `EPYTEST_JOBS` to control the job count
independently of `MAKEOPTS`.
Signed-off-by: Michał Górny
---
eclass/python-utils-r1.eclass
Signed-off-by: Michał Górny
---
eclass/distutils-r1.eclass | 12 ++--
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass
index 9dd091921391..3d69911d9209 100644
--- a/eclass/distutils-r1.eclass
+++ b/eclass/distutils-r1
Signed-off-by: Michał Górny
---
eclass/distutils-r1.eclass | 17 -
1 file changed, 8 insertions(+), 9 deletions(-)
diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass
index 1cc91110dccf..9dd091921391 100644
--- a/eclass/distutils-r1.eclass
+++ b/eclass/distutils
an EPYTEST_JOBS variable to allow overriding the job
count independently of MAKEOPTS.
The patches also include some prior refactoring and two example ebuild
conversions.
PR: https://github.com/gentoo/gentoo/pull/33667
--
Best regards,
Michał Górny
Michał Górny (6):
distutils-r1.eclass
# Michał Górny (2023-11-01)
# Broken on py3.12. Repository archived upstream. No revdeps.
# Removal on 2023-12-01. Bug #916670.
dev-python/pushbullet-py
--
Best regards,
Michał Górny
signature.asc
Description: This is a digitally signed message part
# Michał Górny (2023-10-29)
# Backports from Python 3.6/3.7 to Python 3.5. Finally the last revdep
# is gone.
# Removal on 2023-11-28. Bug #916485.
dev-python/async_generator
--
Best regards,
Michał Górny
signature.asc
Description: This is a digitally signed message part
# Michał Górny (2023-10-27)
# dev-games/cegui is unmaintained, does not support Python 3.11 and has
# a ton of open bugs. It is only used by games-rpg/sumwars. CeGUI has
# had no release since 2016, and apparently the current git
# is incompatible with SumWars. SumWars have had no activity
# Michał Górny (2023-10-27)
# The package does not work with any of the dev-python/ruamel-yaml
# versions in ::gentoo. No revdeps.
# Removal on 2023-11-26. Bug #915986.
dev-python/yamlpath
--
Best regards,
Michał Górny
signature.asc
Description: This is a digitally signed message part
# Michał Górny (2023-10-26)
# Non-installable since the distfile is gone and the package
# is mirror-restricted.
# Removal on 2023-11-25. Bug #753515.
games-strategy/defcon-demo
--
Best regards,
Michał Górny
signature.asc
Description: This is a digitally signed message part
# Michał Górny (2023-10-26)
# An unmaintained programming language with last release in 2009.
# Multiple bugs reported. No revdeps.
# Removal on 2023-11-25.
dev-lang/ferite
--
Best regards,
Michał Górny
signature.asc
Description: This is a digitally signed message part
# Michał Górny (2023-10-26)
# Obsolete package for GRUB 1.x. No updates since 2009, multiple bugs
# reported.
# Removal on 2023-11-25. Bug #912684.
media-gfx/grub-splashes
--
Best regards,
Michał Górny
signature.asc
Description: This is a digitally signed message part
# Michał Górny (2023-10-26)
# Dead (and discouraged prior to death). No revdeps.
# Removal on 2023-11-25. Bug #912879.
dev-php/securimage
--
Best regards,
Michał Górny
signature.asc
Description: This is a digitally signed message part
# Michał Górny (2023-10-26)
# Not installable due to conflict with sys-apps/coreutils.
# Removal on 2023-11-25. Bug #908406.
app-misc/realpath
--
Best regards,
Michał Górny
signature.asc
Description: This is a digitally signed message part
# Michał Górny (2023-10-26)
# Hyperdex "support libraries". Hyperdex was removed in 2020.
# No revdeps outside the bunch.
# Removal on 2023-11-25. Bug #527386.
dev-libs/busybee
dev-libs/libe
dev-libs/libpo6
dev-libs/libtreadstone
--
Best regards,
Michał Górny
signature.asc
D
# Michał Górny (2023-10-26)
# Fails to compile with modern C++ compilers. Last release in 2011.
# No revdeps.
# Removal on 2023-11-25. Bug #722006.
sci-electronics/freehdl
--
Best regards,
Michał Górny
signature.asc
Description: This is a digitally signed message part
# Michał Górny (2023-10-26)
# Incompatible with Cython 3. Last commit in 2016. No revdeps.
# Removal on 2023-11-25. Bug #898696.
dev-python/plyr
--
Best regards,
Michał Górny
signature.asc
Description: This is a digitally signed message part
# Michał Górny (2023-10-23)
# Broken on Python 3.11. Archived upstream since 2020. No revdeps.
# Removal on 2023-11-22. Bug #896886.
dev-python/sphinx-testing
--
Best regards,
Michał Górny
signature.asc
Description: This is a digitally signed message part
On Sun, 2023-10-22 at 14:55 +0200, Ulrich Mueller wrote:
> > > > > > On Sun, 22 Oct 2023, Michał Górny wrote:
>
> > lzma - Support for LZMA (de)compression algorithm
> > lz4 - Enable support for lz4 compression (as implemented in app-arch/lz4)
> > +lzi
Make `lzip` a global flag. It is used consistently in 6 packages.
Signed-off-by: Michał Górny
---
profiles/use.desc | 1 +
1 file changed, 1 insertion(+)
diff --git a/profiles/use.desc b/profiles/use.desc
index fcd11046a2d5..054d163e8264 100644
--- a/profiles/use.desc
+++ b/profiles/use.desc
Make `brotli` a global flag. It is used consistently by 17 packages.
Signed-off-by: Michał Górny
---
profiles/use.desc | 1 +
1 file changed, 1 insertion(+)
diff --git a/profiles/use.desc b/profiles/use.desc
index c77746fe71b1..fcd11046a2d5 100644
--- a/profiles/use.desc
+++ b/profiles
Make `jpegxl` a global flag for JPEG XL image support. It is used
consistently in 12 packages.
Signed-off-by: Michał Górny
---
profiles/use.desc | 1 +
1 file changed, 1 insertion(+)
diff --git a/profiles/use.desc b/profiles/use.desc
index 3ef66ec84193..c77746fe71b1 100644
--- a/profiles
Make `avif` a global flag for AV1 Image Format support. It is used
consistently in 7 packages.
Signed-off-by: Michał Górny
---
profiles/use.desc | 1 +
1 file changed, 1 insertion(+)
diff --git a/profiles/use.desc b/profiles/use.desc
index 6034f3bf6fc3..3ef66ec84193 100644
--- a/profiles
# Michał Górny (2023-10-22)
# Incompatible with Python 3.12. Last commit in 2016. No revdeps.
# Removal on 2023-11-21. Bug #909917.
dev-python/exam
--
Best regards,
Michał Górny
# Michał Górny (2023-10-20)
# The test suite is broken and does not fail correctly. No maintainer.
# No revdeps.
# Removal on 2023-11-19. Bug #916047.
dev-python/pydotplus
--
Best regards,
Michał Górny
# Michał Górny (2023-10-15)
# These packages were required by old version of dev-python/jupyterlab
# and dev-python/notebook, and are no longer used.
# Removal on 2023-11-14. Bug #915824.
dev-python/check-manifest
dev-python/jupyter-server-fileid
dev-python/jupyter-server-ydoc
dev-python/jupyter
# Michał Górny (2023-10-14)
# media-video/transcode is dead for many years. We already piled up
# a lot of downstream patches just to keep it working, and it's broken
# again (ffmpeg-5 this time). The mask includes revdeps.
# Removal on 2023-11-13. Bug #861311.
app-cdr/dvdshrink
media-plugins
ragraph starts with "Removal after", then this mask entry is
> considered as last-rite mask, and the last paragraph must conform to the
> last-rite epilogue format.
This is inconsistent with the current usage, and confusing. "After"
makes it unclear whether the list is inclusive (i.e. "remove on that day
or later") or exclusive ("remove the next day or later"),
and in the latter case it's quite backwards.
--
Best regards,
Michał Górny
# Michał Górny (2023-10-04)
# The project was abandoned upstream. The test suite is broken
# with python3.12. It was used only as an optional test dep
# for dev-python/Arpeggio.
# Removal on 2023-11-03. Bug #915162.
dev-python/memory-profiler
--
Best regards,
Michał Górny
# Michał Górny (2023-09-29)
# The project is no longer maintained upstream. We haven't handled
# the version bump from a year ago yet. No reverse dependencies.
# Removal on 2023-10-29. Bug #894592.
dev-python/django-mptt
--
Best regards,
Michał Górny
# Michał Górny (2023-09-17)
# Core API has not been maintained since 2017, and all the repositories
# have been archived in 2019. It remained in ::gentoo only
# as an optional test dependency, and all reverse dependencies have been
# updated not to depend on it.
# Removal on 2023-10-17. Bug
mmand.
>
>
> Redirecting output to a file in a directory you have just guaranteed to
> exist cannot fail.
Eh, you make me prove you wrong:
# cat > dupa <<-EOF
blahblah
> EOF
cat: write error: No space left on device
--
Best regards,
Michał Górny
Thanks to ulm for reporting.
Signed-off-by: Michał Górny
---
eclass/verify-sig.eclass | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/eclass/verify-sig.eclass b/eclass/verify-sig.eclass
index 010361bfbc98..49557b633c87 100644
--- a/eclass/verify-sig.eclass
+++ b/eclass
Signed-off-by: Michał Górny
---
eclass/tests/verify-sig.sh | 11 +++
eclass/verify-sig.eclass | 5 +++--
2 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/eclass/tests/verify-sig.sh b/eclass/tests/verify-sig.sh
index fb7f2cdb2a5d..a87e2c7703d7 100755
--- a/eclass/tests
Signed-off-by: Michał Górny
---
eclass/tests/verify-sig.sh | 18 +
eclass/verify-sig.eclass | 54 +-
2 files changed, 54 insertions(+), 18 deletions(-)
Changes:
- referring to the var as `format` consistently
- fixed eclassdoc
- used explicit
Signed-off-by: Michał Górny
---
eclass/tests/verify-sig.sh | 65 ++
1 file changed, 65 insertions(+)
create mode 100755 eclass/tests/verify-sig.sh
diff --git a/eclass/tests/verify-sig.sh b/eclass/tests/verify-sig.sh
new file mode 100755
index
On Fri, 2023-09-08 at 12:03 +0200, Michał Górny wrote:
> On Mon, 2023-09-04 at 08:42 +0200, Ulrich Mueller wrote:
> > > > > > > On Mon, 04 Sep 2023, Michał Górny wrote:
> >
> > > --- a/eclass/verify-sig.eclass
> > > +++ b/eclass/veri
On Mon, 2023-09-04 at 08:42 +0200, Ulrich Mueller wrote:
> > > > > > On Mon, 04 Sep 2023, Michał Górny wrote:
>
> > --- a/eclass/verify-sig.eclass
> > +++ b/eclass/verify-sig.eclass
> > @@ -214,12 +214,15 @@ verify-sig_verify_message() {
>
Signed-off-by: Michał Górny
---
eclass/tests/verify-sig.sh | 11 +++
eclass/verify-sig.eclass | 5 +++--
2 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/eclass/tests/verify-sig.sh b/eclass/tests/verify-sig.sh
index fb7f2cdb2a5d..a87e2c7703d7 100755
--- a/eclass/tests
Signed-off-by: Michał Górny
---
eclass/tests/verify-sig.sh | 18 ++
eclass/verify-sig.eclass | 51 +-
2 files changed, 52 insertions(+), 17 deletions(-)
diff --git a/eclass/tests/verify-sig.sh b/eclass/tests/verify-sig.sh
index fcd2ee7480a2
Signed-off-by: Michał Górny
---
eclass/tests/verify-sig.sh | 65 ++
1 file changed, 65 insertions(+)
create mode 100755 eclass/tests/verify-sig.sh
diff --git a/eclass/tests/verify-sig.sh b/eclass/tests/verify-sig.sh
new file mode 100755
index
ot; hashes. The latter primarily means
`openssl dgst` files with multiple hashes but also could mean shaXsum
files with actual duplicate entries.
This is going to be used for wireshark:
https://github.com/gentoo/gentoo/pull/32575
--
Best regards,
Michał Górny
Michał Górny (3):
eclass/tests: Add ini
# Michał Górny (2023-08-28)
# A shim that is no longer needed. No reverse dependencies.
# Removal on 2023-09-27. Bug #906516.
dev-python/pytz_deprecation_shim
--
Best regards,
Michał Górny
On Sat, 2023-08-26 at 06:09 +0200, Michał Górny wrote:
> On Fri, 2023-08-25 at 22:18 +0100, James Le Cuirot wrote:
> > We recently supported cross-prefix by rewriting PYTHON_SITEDIR and
> > PYTHON_INCLUDEDIR from BROOT to EPREFIX. We now know that you can get
> > sys
> print(sysconfig.get_path("platinclude", vars={"installed_platbase":
> sys.argv[1]}))
> EOF
> )
> -
> PYTHON_INCLUDEDIR=${ESYSROOT}${PYTHON_INCLUDEDIR#"${BROOT-${EPREFIX}}"}
> export PYTHON_INCLUDEDIR
> debug-print "${FUNCNAME}: PYTHON_INCLUDEDIR =
> ${PYTHON_INCLUDEDIR}"
>
I'm thinking we should probably set all base/prefix vars instead of
making assumptions which one will actually be used.
--
Best regards,
Michał Górny
Signed-off-by: Michał Górny
---
eclass/cmake.eclass | 1 -
1 file changed, 1 deletion(-)
diff --git a/eclass/cmake.eclass b/eclass/cmake.eclass
index fb3f9b6352be..d0f6d0b4bd91 100644
--- a/eclass/cmake.eclass
+++ b/eclass/cmake.eclass
@@ -661,7 +661,6 @@ cmake_build
# Michał Górny (2023-08-20)
# Broken for a long time. Barely any activity upstream, does not
# manage to follow dev-python/numpy releases. It was only an optional
# test dep for one package.
# Removal on 2023-09-19. Bug #880415.
dev-python/nptyping
--
Best regards,
Michał Górny
export PYTHON_INCLUDEDIR
> debug-print "${FUNCNAME}: PYTHON_INCLUDEDIR =
> ${PYTHON_INCLUDEDIR}"
>
> --
> 2.41.0
>
Pushed (along with some other pending changes), thanks!
--
Best regards,
Michał Górny
478279
>
You have to provide the rationale here. You can't expect people to sign
up for some shady third-party service to read it.
--
Best regards,
Michał Górny
. ]], and then use && for line wrapping instead
of backslashes.
> + cat "${MODULES_SIGN_CERT}"
> "${MODULES_SIGN_KEY}" >
> "${T}/kernel_key.pem" || die
> + MODULES_SIGN_KEY="${T}/kernel_key.pem"
> + fi
> if [[ ${MODULES_SIGN_KEY} == pkcs11:* || -e
> ${MODULES_SIGN_KEY} ]];
> then
> echo
> "CONFIG_MODULE_SIG_KEY=\"${MODULES_SIGN_KEY}\"" \
> >> "${WORKDIR}/modules-sign.config"
>
--
Best regards,
Michał Górny
> export PYTHON_INCLUDEDIR
> debug-print "${FUNCNAME}: PYTHON_INCLUDEDIR =
> ${PYTHON_INCLUDEDIR}"
>
>
You don't seem to have changed that, actually.
--
Best regards,
Michał Górny
rovement over both.
I'm sure that having to go through 15 threads where people reposted
the same patches with updates to find all the comments will be a great
productivity booster.
--
Best regards,
Michał Górny
workaround with a very small change, replacing
> ```
> #elif defined(SWIG)
> ```
> with
> ```
> #elif defined(SWIG) || defined(__GLASGOW_HASKELL__)
> ```
> in the template inside the eclass.
>
> If everybody's happy with that, I'll be also happy to open a PR with
> that change.
Yes, please.
--
Best regards,
Michał Górny
). As a side effect, we no longer compare .py files for
equality but that shouldn't be such a big deal.
Signed-off-by: Michał Górny
---
eclass/python-utils-r1.eclass | 29 +
Changes in v2: inlined the find calls into comm args, removed grep
and added assert
). As a side effect, we no longer compare .py files for
equality but that shouldn't be such a big deal.
Signed-off-by: Michał Górny
---
eclass/python-utils-r1.eclass | 26 +-
1 file changed, 17 insertions(+), 9 deletions(-)
diff --git a/eclass/python-utils-r1.eclass b
On Sat, 2023-08-05 at 14:39 +0200, Michał Górny wrote:
> Add a check for installed packages being occluded by the working
> directory when calling epytest and eunittest. This is primarily meant
> to detect C extensions being missed.
By the way, I've finally figured out which package
Add a check for installed packages being occluded by the working
directory when calling epytest and eunittest. This is primarily meant
to detect C extensions being missed.
Signed-off-by: Michał Górny
---
eclass/python-utils-r1.eclass | 51 +++
1 file changed, 51
On Mon, 2023-07-31 at 12:49 +0200, Florian Schmaus wrote:
> On 31/07/2023 11.32, Sam James wrote:
> >
> > Florian Schmaus writes:
> >
> > > [[PGP Signed Part:Undecided]]
> > > On 31/07/2023 07.02, Michał Górny wrote:
> > > > On Su
ot;${CARGO_CRATE_URIS}" ]]; then
> + echo "${CARGO_CRATE_URIS}"
> + return
> + fi
> +
> local crates=${*-${CRATES}}
> if [[ -z ${crates} ]]; then
> eerror "CRATES variable is not defined and nothing passed as
> argument"
This incorrectly assumes that the value of CRATES did not change which
isn't guaranteed anywhere.
--
Best regards,
Michał Górny
; > > +
> > > + local nuget_name="${1##*/}"
> > > +
> > > + if [[ -f "${NUGET_PACKAGES}"/${nuget_name} ]] ; then
> > > + ewarn "${FUNCNAME}: ${nuget_name} already exists"
> >
> > What does that mean? What is the user supposed to do about it? Is it
> > normal? If it's normal, then why are you warning about it? If it isn't
> > normal, then why isn't this fatal?
>
> This can happen if NuGets copied from SYSTEM_NUGETS are overwritten by
> ones specified in ebuild.
>
> This might be desired by ebuild author.
>
> We need to have this logged, I think ewarn is appropriate.
ewarn is a warning for the end user. The end user doesn't benefit from
being warned for "ebuild is doing something that might be wrong, or
might be perfectly fine, ignore this".
--
Best regards,
Michał Górny
ceably. No fancy
loops required, contrary to your great theory.
--
Best regards,
Michał Górny
On Tue, 2023-07-25 at 08:26 +0200, Florian Schmaus wrote:
> On 25/07/2023 06.50, Michał Górny wrote:
> > On Mon, 2023-07-24 at 20:57 +0200, Florian Schmaus wrote:
> > > Since --load-average may not be found in other Make implementations
> > > besides GNU MA
y than the second .*
> # since POSIX doesn't specify a non-greedy match (i.e. ".*?").
> local lavg=$(echo " $* " | sed -r -n \
I'm pretty sure [GNU]MAKEFLAGS has incompatible format, in particular it
makes hyphens optional.
--
Best regards,
Michał Górny
# Michał Górny (2023-07-24)
# Incompatible with modern dev-python/matplotlib versions. No upstream
# activity since 2022-02. No revdeps.
# Removal on 2023-08-23. Bug #904734.
dev-python/tikzplotlib
--
Best regards,
Michał Górny
# Michał Górny (2023-07-23)
# Package with no maintainer and tests restricted (also test deps look
# suspicious). It was only needed for tests
# in dev-python/pyvirtualdisplay, and that package didn't support
# the newest version anyway. No revdeps left.
# Removal on 2023-08-22. Bug #910708
;;
> + sparc64)
> + echo sparc64
> + ;;
> riscv)
> echo riscv
> ;;
I suppose I originally didn't anticipate this many "matching" arches but
perhaps it's time to add something like:
arm|ppc|ppc64|riscv|sparc|sparc64)
echo ${ARCH}
;;
--
Best regards,
Michał Górny
# Michał Górny (2023-07-21)
# Fragile package requiring custom patching. The maintainer resigned.
# No reverse dependencies.
# Removal on 2023-08-20. Bug #910619.
dev-python/cx_Freeze
--
Best regards,
Michał Górny
# Michał Górny (2023-07-21)
# The ebuild has not been bumped for a year now. It doesn't have
# working tests. No reverse dependencies.
# Removal on 2023-08-20. Bug #907460.
dev-python/ansible-runner
--
Best regards,
Michał Górny
Signed-off-by: Michał Górny
---
eclass/distutils-r1.eclass | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass
index e4f0589e191b..658d26f2a440 100644
--- a/eclass/distutils-r1.eclass
+++ b/eclass/distutils-r1.eclass
ignore minimal versions but that sounds like
unnecessary complexity. In the end, minimum versions were primarily
enforced to make sure users got the latest bugfixes but that doesn't
seem strictly necessary.
Closes: https://bugs.gentoo.org/910288
Signed-off-by: Michał Górny
---
eclass/python-utils
On Wed, 2023-07-12 at 19:42 +0200, Ulrich Mueller wrote:
> > > > > > On Wed, 12 Jul 2023, Michał Górny wrote:
>
> > + if [[ ${_CARGO_ECLASS} ]]; then
> > + filter-lto
> > + fi
>
> Testing for an internal variable of another eclass
Strip LTO flags when cargo.eclass is inherited. This means that Rust
extensions are being built, and linking them with C/C++ style LTO
results in broken shared libraries.
Closes: https://bugs.gentoo.org/910220
Signed-off-by: Michał Górny
---
eclass/distutils-r1.eclass | 7 +++
1 file
Signed-off-by: Michał Górny
---
eclass/distutils-r1.eclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass
index 046277d0371c..924e83b54ad8 100644
--- a/eclass/distutils-r1.eclass
+++ b/eclass/distutils-r1.eclass
Signed-off-by: Michał Górny
---
eclass/python-utils-r1.eclass | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/eclass/python-utils-r1.eclass b/eclass/python-utils-r1.eclass
index 81051699f1d9..a395538be39c 100644
--- a/eclass/python-utils-r1.eclass
+++ b/eclass/python
Signed-off-by: Michał Górny
---
eclass/python-utils-r1.eclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/eclass/python-utils-r1.eclass b/eclass/python-utils-r1.eclass
index 40c15b65d7a5..81051699f1d9 100644
--- a/eclass/python-utils-r1.eclass
+++ b/eclass/python-utils-r1
.
The second commit is a bit hacky but I think it's a good enough approach
that doesn't require us to strip LTO unconditionally or add yet another
control variable to tell the eclass if we're dealing with Rust or not.
Michał Górny (4):
python-utils-r1.eclass: Require >=dev-python/pypy3-7.3
# Michał Górny (2023-07-05)
# Discontinued in favor of built-in `ast` module on all supported
# versions of Python. No revdeps left.
# Removal on 2023-08-04.
dev-python/typed-ast
--
Best regards,
Michał Górny
o push it straight into ::gentoo after waiting some
time for more comments.
--
Best regards,
Michał Górny
mp -d || die)
> + for pseudo_gradle in "${@}"; do
> + local pseudo_gradle_path="${tmpdir}/${pseudo_gradle}"
> + touch "${pseudo_gradle_path}"
> + chmod 755 "${pseudo_gradle_path}"
> + done
> +
> + local saved_PATH="${PATH}"
> + PATH="${tmpdir}"
> +
> + local test_desc=(
> + test_set_EGRADLE
> + )
> + [[ -v EGRADLE_MIN ]] && test_desc+=( "EGRADLE_MIN=${EGRADLE_MIN}" )
> + [[ -v EGRADLE_MAX_EXCLUSIVE ]] && test_desc+=(
> "EGRADLE_MAX_EXCLUSIVE=${EGRADLE_MAX_EXCLUSIVE}" )
> + test_desc+=( $@ )
> +
> + tbegin "${test_desc[@]}"
> + gradle-set_EGRADLE
> +
> + local saved_EGRADLE="${EGRADLE}"
> + unset EGRADLE
> +
> + PATH="${saved_PATH}"
> + rm -rf "${tmpdir}"
> +
> + [[ "${saved_EGRADLE}" == "${expected_EGRADLE}" ]]
> + tend $?
> +
> + if (( $? > 0 )); then
> + >&2 echo -e "\t expected=${expected_EGRADLE}
> actual=${saved_EGRADLE}"
> + fi
> +}
> +
> +test_set_EGRADLE gradle-2.0 gradle-1.0 gradle-2.0
> +EGRADLE_MIN=2.0 test_set_EGRADLE gradle-2.2.3 gradle-1.0 gradle-2.0
> gradle-2.2.3
> +EGRADLE_MAX_EXCLUSIVE=2.2 test_set_EGRADLE gradle-2.0 gradle-1.0 gradle-2.0
> gradle-2.2.3
> +
> +
> +texit
--
Best regards,
Michał Górny
I think a better approach would be to always include $? in die messages
in Portage.
--
Best regards,
Michał Górny
ies/with/cargo-lock
Note that pycargoebuild won't replace $(cargo_crate_uris) automatically
though.
--
Best regards,
Michał Górny
The variable needs to be set before inherit in order for
${CARGO_CRATE_URIS} to be set correctly. Currently all ebuilds using
GIT_CRATES except for one define it pre-inherit anyway, and this makes
it consistent with CRATES.
Signed-off-by: Michał Górny
---
eclass/cargo.eclass | 1 +
1 file
it/s
user 952 it/s
* CRATES with '-' separator
real 339 it/s
user 339 it/s
```
Signed-off-by: Michał Górny
---
eclass/cargo.eclass | 24 +---
eclass/tests/cargo-bench.sh | 111 +++-
2 files changed, 75 insertions(+), 60 deletions(-)
diff --git
it/s
```
Signed-off-by: Michał Górny
---
eclass/cargo.eclass | 58 ++---
1 file changed, 29 insertions(+), 29 deletions(-)
diff --git a/eclass/cargo.eclass b/eclass/cargo.eclass
index 4e0cd1e4de70..d97bb0df9348 100644
--- a/eclass/cargo.eclass
+++ b/eclass
Add a helper function that sets ${CARGO_CRATE_URIS} variable to make
it possible to set SRC_URI without subshells. This gives a slight
speedup (~20%):
```
real 300 it/s
user 324 it/s
```
Signed-off-by: Michał Górny
---
eclass/cargo.eclass | 48
The initial results on my machine are:
```
real 252 it/s
user 289 it/s
```
Signed-off-by: Michał Górny
---
eclass/tests/cargo-bench.sh | 107
1 file changed, 107 insertions(+)
create mode 100755 eclass/tests/cargo-bench.sh
diff --git a/eclass/tests
Hi,
Changes from v1: `@` is used to separate crate names and versions
rather than `/`. Thanks to Denis Lisov for the suggestion.
--
Best regards,
Michał Górny
Michał Górny (5):
eclass/tests: Add a minimal benchmark for cargo.eclass
cargo.eclass: Add variable alternative
On Fri, 2023-06-16 at 17:48 +0300, Denis Lisov wrote:
> Hello Michał,
>
> On Fri, Jun 16, 2023 at 3:09 PM Michał Górny wrote:
> > Support specifying crate names and versions separated by forward slashes
> > rather than hyphens. Since slashes are not valid in crate
The variable needs to be set before inherit in order for
${CARGO_CRATE_URIS} to be set correctly. Currently all ebuilds using
GIT_CRATES except for one define it pre-inherit anyway, and this makes
it consistent with CRATES.
Signed-off-by: Michał Górny
---
eclass/cargo.eclass | 1 +
1 file
real 952 it/s
user 952 it/s
* CRATES with hyphens
real 339 it/s
user 339 it/s
```
Signed-off-by: Michał Górny
---
eclass/cargo.eclass | 24 +---
eclass/tests/cargo-bench.sh | 111 +++-
2 files changed, 75 insertions(+), 60 deletions(-)
diff --git
it/s
```
Signed-off-by: Michał Górny
---
eclass/cargo.eclass | 58 ++---
1 file changed, 29 insertions(+), 29 deletions(-)
diff --git a/eclass/cargo.eclass b/eclass/cargo.eclass
index 4e0cd1e4de70..d97bb0df9348 100644
--- a/eclass/cargo.eclass
+++ b/eclass
Add a helper function that sets ${CARGO_CRATE_URIS} variable to make
it possible to set SRC_URI without subshells. This gives a slight
speedup (~20%):
```
real 300 it/s
user 324 it/s
```
Signed-off-by: Michał Górny
---
eclass/cargo.eclass | 48
The initial results on my machine are:
```
real 252 it/s
user 289 it/s
```
Signed-off-by: Michał Górny
---
eclass/tests/cargo-bench.sh | 107
1 file changed, 107 insertions(+)
create mode 100755 eclass/tests/cargo-bench.sh
diff --git a/eclass/tests
optimized form (using variable and slashes)
give:
real 952 it/s
user 952 it/s
--
Best regards,
Michał Górny
Michał Górny (5):
eclass/tests: Add a minimal benchmark for cargo.eclass
cargo.eclass: Add variable alternative to $(cargo_crate_uris)
cargo.eclass: Optimize GIT_CRATES
total sourcing time for `dev-python/*`
from 57-58 s to 54 s.
Signed-off-by: Michał Górny
---
eclass/python-utils-r1.eclass | 15 +++
1 file changed, 11 insertions(+), 4 deletions(-)
diff --git a/eclass/python-utils-r1.eclass b/eclass/python-utils-r1.eclass
index 52e9e061d6bd
to be set.
This makes the code simpler.
Signed-off-by: Michał Górny
---
eclass/pypi.eclass | 14 ++
1 file changed, 6 insertions(+), 8 deletions(-)
diff --git a/eclass/pypi.eclass b/eclass/pypi.eclass
index 8a842c450ebc..594216a7fd96 100644
--- a/eclass/pypi.eclass
+++ b/eclass
/gentoo/pull/31404
Signed-off-by: Michał Górny
---
eclass/pypi.eclass | 11 +++
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/eclass/pypi.eclass b/eclass/pypi.eclass
index 8911628994eb..8a842c450ebc 100644
--- a/eclass/pypi.eclass
+++ b/eclass/pypi.eclass
@@ -71,10 +71,13
301 - 400 of 8163 matches
Mail list logo