[gentoo-dev] Last rites: dev-python/wstools

2023-11-04 Thread Michał Górny
# 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

[gentoo-dev] [PATCH 6/6] dev-python/numpy: Switch to EPYTEST_XDIST

2023-11-04 Thread Michał Górny
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

[gentoo-dev] [PATCH 5/6] dev-python/pyrate-limiter: Use EPYTEST_XDIST

2023-11-04 Thread Michał Górny
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

[gentoo-dev] [PATCH 4/6] distutils-r1.eclass: Add pytest-xdist dep if EPYTEST_XDIST is set

2023-11-04 Thread Michał Górny
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

[gentoo-dev] [PATCH 3/6] python-utils-r1.eclass: Add EPYTEST_XDIST for epytest

2023-11-04 Thread Michał Górny
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

[gentoo-dev] [PATCH 2/6] distutils-r1.eclass: Refactor d_e_t to permit multiple test packages

2023-11-04 Thread Michał Górny
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

[gentoo-dev] [PATCH 1/6] distutils-r1.eclass: Refactor `d_e_t unittest` (NFC)

2023-11-04 Thread Michał Górny
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

[gentoo-dev] [PATCH 0/6] python-utils-r1/distutils-r1: EPYTEST_XDIST support

2023-11-04 Thread Michał Górny
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

[gentoo-dev] Last rites: dev-python/pushbullet-py

2023-11-01 Thread Michał Górny
# 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

[gentoo-dev] Last rites: dev-python/async_generator

2023-10-29 Thread Michał Górny
# 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

[gentoo-dev] Last rites: dev-games/cegui, games-rpg/sumwars

2023-10-27 Thread Michał Górny
# 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

[gentoo-dev] Last rites: dev-python/yamlpath

2023-10-27 Thread Michał Górny
# 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

[gentoo-dev] Last rites: games-strategy/defcon-demo

2023-10-26 Thread Michał Górny
# 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

[gentoo-dev] Last rites: dev-lang/ferite

2023-10-26 Thread Michał Górny
# 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

[gentoo-dev] Last rites: media-gfx/grub-splashes

2023-10-26 Thread Michał Górny
# 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

[gentoo-dev] Last rites: dev-php/securimage

2023-10-26 Thread Michał Górny
# 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

[gentoo-dev] Last rites: app-misc/realpath

2023-10-26 Thread Michał Górny
# 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

[gentoo-dev] Last rites: dev-libs/busybee, dev-libs/libe, dev-libs/libpo6, dev-libs/libtreadstone

2023-10-26 Thread Michał Górny
# 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

[gentoo-dev] Last rites: sci-electronics/freehdl

2023-10-26 Thread Michał Górny
# 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

[gentoo-dev] Last rites: dev-python/plyr

2023-10-26 Thread Michał Górny
# 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

[gentoo-dev] Last rites: dev-python/sphinx-testing

2023-10-22 Thread Michał Górny
# 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

Re: [gentoo-dev] [PATCH 2/2] profiles/use.desc: Add `lzip` for lzip compression

2023-10-22 Thread Michał Górny
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

[gentoo-dev] [PATCH 2/2] profiles/use.desc: Add `lzip` for lzip compression

2023-10-22 Thread Michał Górny
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

[gentoo-dev] [PATCH 1/2] profiles/use.desc: Add `brotli` for Brotli compression support

2023-10-22 Thread Michał Górny
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

[gentoo-dev] [PATCH 2/2] profiles/use.desc: Add `jpegxl` flag for JPEG XL image format

2023-10-22 Thread Michał Górny
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

[gentoo-dev] [PATCH 1/2] profiles/use.desc: Add `avif` flag for AV1 Image Format

2023-10-22 Thread Michał Górny
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

[gentoo-dev] Last rites: dev-python/exam

2023-10-22 Thread Michał Górny
# 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

[gentoo-dev] Last rites: dev-python/pydotplus

2023-10-20 Thread 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

[gentoo-dev] Last rites: dev-python/check-manifest, dev-python/jupyter-server-fileid, dev-python/jupyter-server-ydoc, dev-python/jupyter-ydoc, dev-python/nbclassic, dev-python/y-py, dev-python/ypy-web

2023-10-15 Thread 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

[gentoo-dev] Last rites: app-cdr/dvdshrink, media-plugins/vdr-burn, media-plugins/vdr-burn-templates, media-video/dvd9to5, media-video/dvdrip, media-video/transcode

2023-10-14 Thread Michał Górny
# 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

Re: [gentoo-dev] [DRAFT] GLEP 84: Standard format for package.mask files

2023-10-04 Thread Michał Górny
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

[gentoo-dev] Last rites: dev-python/memory-profiler

2023-10-03 Thread 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

[gentoo-dev] Last rites: dev-python/django-mptt

2023-09-28 Thread 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

[gentoo-dev] Last rites: dev-python/coreapi, dev-python/coreschema, dev-python/itypes

2023-09-17 Thread 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

Re: [gentoo-dev] [PATCH 1/2] distutils-r1.eclass: teach setuptools to respect (some) build options

2023-09-12 Thread Michał Górny
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

[gentoo-dev] [PATCH v2 4/4] verify-sig.eclass: Fix list formatting for VERIFY_SIG_METHOD

2023-09-08 Thread 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

[gentoo-dev] [PATCH v2 3/4] verify-sig.eclass: Fix handling multiple/duplicate signatures

2023-09-08 Thread Michał Górny
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

[gentoo-dev] [PATCH v2 2/4] verify-sig.eclass: Support `openssl dgst` format checksums

2023-09-08 Thread Michał Górny
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

[gentoo-dev] [PATCH v2 1/4] eclass/tests: Add initial tests for verify-sig

2023-09-08 Thread Michał Górny
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

Re: [gentoo-dev] [PATCH 2/3] verify-sig.eclass: Support `openssl dgst` format checksums

2023-09-08 Thread Michał Górny
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

Re: [gentoo-dev] [PATCH 2/3] verify-sig.eclass: Support `openssl dgst` format checksums

2023-09-08 Thread Michał Górny
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() { >

[gentoo-dev] [PATCH 3/3] verify-sig.eclass: Fix handling multiple/duplicate signatures

2023-09-03 Thread Michał Górny
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

[gentoo-dev] [PATCH 2/3] verify-sig.eclass: Support `openssl dgst` format checksums

2023-09-03 Thread Michał Górny
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

[gentoo-dev] [PATCH 1/3] eclass/tests: Add initial tests for verify-sig

2023-09-03 Thread Michał Górny
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

[gentoo-dev] [PATCH 0/3] verify-sig.eclass: `openssl dgst` format support

2023-09-03 Thread Michał Górny
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

[gentoo-dev] Last rites: dev-python/pytz_deprecation_shim

2023-08-28 Thread Michał Górny
# 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

Re: [gentoo-dev] [PATCH] python-utils-r1.eclass: Redo cross-prefix support using sysconfig

2023-08-25 Thread 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

Re: [gentoo-dev] [PATCH] python-utils-r1.eclass: Redo cross-prefix support using sysconfig

2023-08-25 Thread Michał Górny
> 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

[gentoo-dev] [PATCH] cmake.eclass: Remove duplicate eninja call from cmake_build

2023-08-23 Thread 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

[gentoo-dev] Last rites: dev-python/nptyping

2023-08-20 Thread Michał Górny
# 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

Re: [gentoo-dev] [PATCH v3] python-utils-r1.eclass: Fix PYTHON_SITEDIR/INCLUDEDIR for cross-prefix

2023-08-19 Thread 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

Re: [gentoo-dev] Add Hooks to Eselect

2023-08-18 Thread 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

Re: [gentoo-dev] [PATCH 1/1] kernel-build.eclass: Fix separate private and public module

2023-08-17 Thread 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

Re: [gentoo-dev] [PATCH v2] python-utils-r1.eclass: Fix PYTHON_SITEDIR/INCLUDEDIR for cross-prefix

2023-08-16 Thread 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

Re: [gentoo-dev] Massive Github PR Queue

2023-08-11 Thread 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

Re: [gentoo-dev] ghc support in multilib-build.eclass

2023-08-09 Thread 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

[gentoo-dev] [PATCH v2] python-utils-r1.eclass: Eliminate false positives from occluded check

2023-08-06 Thread 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

[gentoo-dev] [PATCH] python-utils-r1.eclass: Eliminate false positives from occluded check

2023-08-06 Thread 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 | 26 +- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/eclass/python-utils-r1.eclass b

Re: [gentoo-dev] [PATCH] python-utils-r1.eclass: Check for occluded packages before testing

2023-08-05 Thread Michał Górny
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

[gentoo-dev] [PATCH] python-utils-r1.eclass: Check for occluded packages before testing

2023-08-05 Thread Michał Górny
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

Re: [gentoo-dev] [PATCH 1/7] eclass/nuget.eclass: introduce new eclass

2023-07-31 Thread Michał Górny
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

Re: [gentoo-dev] [PATCH] cargo.eclass: use CARGO_CRATE_URIS if already available

2023-07-31 Thread Michał Górny
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

Re: [gentoo-dev] [PATCH 1/7] eclass/nuget.eclass: introduce new eclass

2023-07-30 Thread 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

Re: [gentoo-dev] [PATCH 1/7] eclass/nuget.eclass: introduce new eclass

2023-07-30 Thread Michał Górny
ceably. No fancy loops required, contrary to your great theory. -- Best regards, Michał Górny

Re: [gentoo-dev] [PATCH 1/3] multiprocessing.eclass: search also GNUMAKEFLAGS for --load-average

2023-07-25 Thread 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

Re: [gentoo-dev] [PATCH 1/3] multiprocessing.eclass: search also GNUMAKEFLAGS for --load-average

2023-07-24 Thread Michał Górny
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

[gentoo-dev] Last rites: dev-python/tikzplotlib

2023-07-24 Thread 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

[gentoo-dev] Last rites: dev-python/vncdotool

2023-07-23 Thread 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

Re: [gentoo-dev] [PATCH 4/6] kernel-install.eclass: kernel-install_get_qemu_arch: port to sparc

2023-07-21 Thread Michał Górny
;; > + 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

[gentoo-dev] Last rites: dev-python/cx_Freeze

2023-07-21 Thread 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

[gentoo-dev] Last rites: dev-python/ansible-runner

2023-07-21 Thread 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

[gentoo-dev] [PATCH 2/2] distutils-r1.eclass: wheel dep moved into setuptools

2023-07-15 Thread 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

[gentoo-dev] [PATCH 1/2] python-utils-r1.eclass: Loosen minimal Python versions

2023-07-15 Thread Michał Górny
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

Re: [gentoo-dev] [PATCH 4/4] distutils-r1.eclass: Disable LTO when using cargo.eclass

2023-07-12 Thread Michał Górny
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

[gentoo-dev] [PATCH 4/4] distutils-r1.eclass: Disable LTO when using cargo.eclass

2023-07-12 Thread Michał Górny
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

[gentoo-dev] [PATCH 3/4] distutils-r1.eclass: Update addpredict for PyPy3.10

2023-07-12 Thread Michał Górny
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

[gentoo-dev] [PATCH 2/4] python-utils-r1.eclass: pypy3 is now 3.10-only

2023-07-12 Thread Michał Górny
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

[gentoo-dev] [PATCH 1/4] python-utils-r1.eclass: Require >=dev-python/pypy3-7.3.12

2023-07-12 Thread Michał Górny
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

[gentoo-dev] [PATCH 0/4] python eclasses: PyPy3.10 update + cargo LTO strip-flags

2023-07-12 Thread Michał Górny
. 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

[gentoo-dev] Last rites: dev-python/typed-ast

2023-07-05 Thread Michał Górny
# 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

Re: [gentoo-dev] sys-kernel/gentoo-kernel on riscv

2023-07-03 Thread Michał Górny
o push it straight into ::gentoo after waiting some time for more comments. -- Best regards, Michał Górny

Re: [gentoo-dev] [PATCH 1/2] gradle.eclass: add new eclass

2023-06-28 Thread 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

Re: [gentoo-dev] [PATCH] acct-user.eclass: include exit status in death message

2023-06-25 Thread Michał Górny
I think a better approach would be to always include $? in die messages in Portage. -- Best regards, Michał Górny

[gentoo-dev] Migrating ebuilds to "optimized" cargo.eclass API

2023-06-19 Thread Michał Górny
ies/with/cargo-lock Note that pycargoebuild won't replace $(cargo_crate_uris) automatically though. -- Best regards, Michał Górny

[gentoo-dev] [PATCH v2 5/5] cargo.eclass: Mark GIT_CRATES as pre-inherit

2023-06-16 Thread 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

[gentoo-dev] [PATCH v2 4/5] cargo.eclass: Support separating crate names/versions via `@`

2023-06-16 Thread Michał Górny
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

[gentoo-dev] [PATCH v2 3/5] cargo.eclass: Optimize GIT_CRATES check

2023-06-16 Thread Michał Górny
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

[gentoo-dev] [PATCH v2 2/5] cargo.eclass: Add variable alternative to $(cargo_crate_uris)

2023-06-16 Thread Michał Górny
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

[gentoo-dev] [PATCH v2 1/5] eclass/tests: Add a minimal benchmark for cargo.eclass

2023-06-16 Thread Michał Górny
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

[gentoo-dev] [PATCH v2 0/5] cargo.eclass: optimizations

2023-06-16 Thread Michał Górny
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

Re: [gentoo-dev] [PATCH 4/5] cargo.eclass: Support separating crate names/versions via slash

2023-06-16 Thread Michał Górny
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

[gentoo-dev] [PATCH 5/5] cargo.eclass: Mark GIT_CRATES as pre-inherit

2023-06-16 Thread 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

[gentoo-dev] [PATCH 4/5] cargo.eclass: Support separating crate names/versions via slash

2023-06-16 Thread Michał Górny
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

[gentoo-dev] [PATCH 3/5] cargo.eclass: Optimize GIT_CRATES check

2023-06-16 Thread Michał Górny
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

[gentoo-dev] [PATCH 2/5] cargo.eclass: Add variable alternative to $(cargo_crate_uris)

2023-06-16 Thread Michał Górny
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

[gentoo-dev] [PATCH 1/5] eclass/tests: Add a minimal benchmark for cargo.eclass

2023-06-16 Thread Michał Górny
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

[gentoo-dev] [PATCH 0/5] cargo.eclass: optimizations

2023-06-16 Thread Michał Górny
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

[gentoo-dev] [PATCH] python-utils-r1.eclass: Use @a instead of declare check for array

2023-06-15 Thread Michał Górny
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

[gentoo-dev] [PATCH] pypi.eclass: Do extglob reset unconditionally

2023-06-15 Thread Michał Górny
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-dev] [PATCH v2 7/7] pypi.eclass: Avoid subshell for extglob setting

2023-06-14 Thread Michał Górny
/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

<    1   2   3   4   5   6   7   8   9   10   >