Re: [gentoo-dev] Feature request for pkgcheck (was: pkgdev new release v0.2.1 with breaking change)

2022-06-04 Thread Sam James
> On 5 Jun 2022, at 00:34, Anna V wrote: > > I'd like pkgcheck to detect if RDEPEND was changed without revbump. > pkgcheck scan --commits does. A solution for when _other_ people did this could be done by diffing metadata, I think. signature.asc Description: Message signed with OpenPGP

[gentoo-dev] [PATCH v3 2/2] eclass/tests/esed.sh: tests for esed.eclass

2022-06-04 Thread Ionen Wolkens
Bit sloppy, but should cover most of it. Signed-off-by: Ionen Wolkens --- eclass/tests/esed.sh | 263 +++ 1 file changed, 263 insertions(+) create mode 100755 eclass/tests/esed.sh diff --git a/eclass/tests/esed.sh b/eclass/tests/esed.sh new file mode 100

[gentoo-dev] [PATCH v3 0/2] Add esed.eclass for modifying with checks for no-op

2022-06-04 Thread Ionen Wolkens
Semi-new take on the eclass, also incorporating mgorny's erepl idea making this more or less a toolbox for replacements with no-op checks (still named esed.eclass, but could be reconsidered if seems better). See @EXAMPLE in eclass for quick usage overview, and below for nvidia-drivers ebuild chang

[gentoo-dev] [PATCH v3 1/2] esed.eclass: new eclass

2022-06-04 Thread Ionen Wolkens
Signed-off-by: Ionen Wolkens --- eclass/esed.eclass | 265 + 1 file changed, 265 insertions(+) create mode 100644 eclass/esed.eclass diff --git a/eclass/esed.eclass b/eclass/esed.eclass new file mode 100644 index 000..414daceaf8b --- /dev/null

Re: [gentoo-dev] it's time for 22.0 profiles

2022-06-04 Thread Kenton Groombridge
On 22/05/28 10:28PM, Andreas K. Huettel wrote: > Hi all, > > it's time for introducing 22.0 profiles [1] - so if you have any things that > need to > be switched in an incompatible way tree-wide, or if you have any suggestions > on how > to change our default settings, please reply to this mail w

Re: [gentoo-dev] [PATCH 0/2] Add esed.eclass for sed that dies if caused no changes

2022-06-04 Thread Ionen Wolkens
On Sat, Jun 04, 2022 at 06:19:30PM +0200, Alessandro Barbieri wrote: > When I use sed is for dynamic content and mostly like to do this: > s|lib|$(get_libdir)|g > In this case esed would be deleterious because it would fail on 32 bit > arches This case is noted in the docs fwiw. How to handle will

Re: [gentoo-dev] [PATCH 0/2] Add esed.eclass for sed that dies if caused no changes

2022-06-04 Thread Alessandro Barbieri
Il giorno mar 31 mag 2022 alle ore 13:23 Ionen Wolkens ha scritto: > Often preferable to use patches so this happens, but sed have its > uses/convenience and this intend to help reduce the amount of old > broken seds causing issues that go unnoticed on bumps. > > Inspired by app-portage/iwdevtool

[gentoo-dev] [PATCH] install-qa-check.d/60udev-eclass: check for udev_reload in pkg_postrm

2022-06-04 Thread Mike Gilbert
Bug: https://bugs.gentoo.org/847436 Signed-off-by: Mike Gilbert --- metadata/install-qa-check.d/60udev-eclass | 5 + 1 file changed, 5 insertions(+) diff --git a/metadata/install-qa-check.d/60udev-eclass b/metadata/install-qa-check.d/60udev-eclass index 4aadc9b1f18..24a4df38ec4 100644 --- a

[gentoo-dev] [PATCH] udev.eclass: document when udev_reload should be called

2022-06-04 Thread Mike Gilbert
Closes: https://bugs.gentoo.org/847436 Signed-off-by: Mike Gilbert --- eclass/udev.eclass | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/eclass/udev.eclass b/eclass/udev.eclass index 073e5d8acbc..830e3eeb125 100644 --- a/eclass/udev.eclass +++ b/eclass/udev.ec

[gentoo-dev] [PATCH 18/18] distutils-r1.eclass: Add "_trial_temp" to forbidden package names

2022-06-04 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 9536e5c466be..db5cced50952 100644 --- a/eclass/distutils-r1.eclass +++ b/eclass/distutils-r1.eclass @@ -1884

[gentoo-dev] [PATCH 17/18] distutils-r1.eclass: small docs format fixes

2022-06-04 Thread Michał Górny
From: Arthur Zamarin Signed-off-by: Arthur Zamarin --- eclass/distutils-r1.eclass | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass index 30f7d941f0d4..9536e5c466be 100644 --- a/eclass/distutils-r1.eclass +++ b/e

[gentoo-dev] [PATCH 16/18] python-any-r1.eclass: use python_has_version in examples

2022-06-04 Thread Michał Górny
From: Arthur Zamarin python_has_version is preferred as it gives nicer output and safer defaults, instead of has_version. --- eclass/python-any-r1.eclass | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/eclass/python-any-r1.eclass b/eclass/python-any-r1.eclass index

[gentoo-dev] [PATCH 15/18] app-admin/gnome-abrt: Use DISTUTILS_USE_PEP517=no

2022-06-04 Thread Michał Górny
Signed-off-by: Michał Górny --- .../gnome-abrt/gnome-abrt-1.4.1-r1.ebuild | 57 +++ 1 file changed, 57 insertions(+) create mode 100644 app-admin/gnome-abrt/gnome-abrt-1.4.1-r1.ebuild diff --git a/app-admin/gnome-abrt/gnome-abrt-1.4.1-r1.ebuild b/app-admin/gnome-abrt/gnome-

[gentoo-dev] [PATCH 14/18] dev-python/gpep517: Use DISTUTILS_USE_PEP517=no

2022-06-04 Thread Michał Górny
Signed-off-by: Michał Górny --- dev-python/gpep517/gpep517-6-r1.ebuild | 41 ++ 1 file changed, 41 insertions(+) create mode 100644 dev-python/gpep517/gpep517-6-r1.ebuild diff --git a/dev-python/gpep517/gpep517-6-r1.ebuild b/dev-python/gpep517/gpep517-6-r1.ebuild new fi

[gentoo-dev] [PATCH 13/18] dev-python/installer: Use DISTUTILS_USE_PEP517=no

2022-06-04 Thread Michał Górny
Signed-off-by: Michał Górny --- .../installer/installer-0.5.1-r1.ebuild | 37 +++ 1 file changed, 37 insertions(+) create mode 100644 dev-python/installer/installer-0.5.1-r1.ebuild diff --git a/dev-python/installer/installer-0.5.1-r1.ebuild b/dev-python/installer/installe

[gentoo-dev] [PATCH 12/18] dev-python/tomli: Use DISTUTILS_USE_PEP517=no

2022-06-04 Thread Michał Górny
Signed-off-by: Michał Górny --- dev-python/tomli/tomli-2.0.1-r1.ebuild | 36 ++ 1 file changed, 36 insertions(+) create mode 100644 dev-python/tomli/tomli-2.0.1-r1.ebuild diff --git a/dev-python/tomli/tomli-2.0.1-r1.ebuild b/dev-python/tomli/tomli-2.0.1-r1.ebuild new fi

[gentoo-dev] [PATCH 11/18] python-utils-r1.eclass: Add explicit checks for incorrect phase

2022-06-04 Thread Michał Górny
Signed-off-by: Michał Górny --- eclass/python-utils-r1.eclass | 13 + 1 file changed, 13 insertions(+) diff --git a/eclass/python-utils-r1.eclass b/eclass/python-utils-r1.eclass index fd04cf374ce4..b9cf9c03caeb 100644 --- a/eclass/python-utils-r1.eclass +++ b/eclass/python-utils-r1.e

[gentoo-dev] [PATCH 10/18] python-utils-r1.eclass: Support python_domodule outside src_install

2022-06-04 Thread Michał Górny
Make it possible to use python_domodule() outside src_install(), in order to install files into the ${BUILD_DIR}/install tree used by distutils-r1. Signed-off-by: Michał Górny --- eclass/python-utils-r1.eclass | 29 ++--- 1 file changed, 22 insertions(+), 7 deletions(-)

[gentoo-dev] [PATCH 09/18] python-utils-r1.eclass: Fix typo in python_moduleinto doc

2022-06-04 Thread Michał Górny
Fix python_moduleinto doc to mention python_domodule rather than python_doscript (copy-paste error, probably). Signed-off-by: Michał Górny --- eclass/python-utils-r1.eclass | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/eclass/python-utils-r1.eclass b/eclass/python-u

[gentoo-dev] [PATCH 08/18] distutils-r1.eclass: Introduce DISTUTILS_USE_PEP517=no mode

2022-06-04 Thread Michał Górny
Introduce a new DISTUTILS_USE_PEP517 value "no" that stands for "no build system". This is primarily meant to replace the legacy distutils-r1 logic used for bootstrapping baseline PEP 517 packages. At the same time, it provides a convenient replacement for some of the uses of python-r1. In this m

[gentoo-dev] [PATCH 07/18] distutils-r1.eclass: Move venv/merge-root logic to post-phases

2022-06-04 Thread Michał Górny
Move the PEP517 venv logic, install executable wrapping and root-merging logic all into post-phases. This will enable the ebuilds that do not use the standard phase implementations to use them. Signed-off-by: Michał Górny --- eclass/distutils-r1.eclass | 124 ++--

[gentoo-dev] [PATCH 06/18] distutils-r1.eclass: Make *-nspkg.pth warning fatal for EAPI 9+

2022-06-04 Thread Michał Górny
Now that we've essentially removed non-implicit namespace packages from Gentoo and setuptools upstream has deprecated their old solution, it's time to make this check fatal. Unfortunately, I did not think of it when adding PEP517 mode, so let's do that in EAPI 9. Signed-off-by: Michał Górny ---

[gentoo-dev] [PATCH 05/18] distutils-r1.eclass: Remove the obsolete pypy/share check

2022-06-04 Thread Michał Górny
The PyPy 'share' directory check was necessary because of the historical prefix logic that we patched in Gentoo. All modern versions of PyPy use '/usr' as sys.prefix natively, so the check is no longer needed. Signed-off-by: Michał Górny --- eclass/distutils-r1.eclass | 12 1 file

[gentoo-dev] [PATCH 04/18] distutils-r1.eclass: Move install QA checks to post-phase function

2022-06-04 Thread Michał Górny
Perform the install QA check (the invalid package name check) in a post- phase function. This enables it to be performed even when distutils-r1_python_install is not used. Signed-off-by: Michał Górny --- eclass/distutils-r1.eclass | 54 ++ 1 file changed, 31

[gentoo-dev] [PATCH 03/18] distutils-r1.eclass: Call egg-info cleanup via post-test phase

2022-06-04 Thread Michał Górny
Signed-off-by: Michał Górny --- eclass/distutils-r1.eclass | 15 --- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass index d6fd176192de..b690f21f9159 100644 --- a/eclass/distutils-r1.eclass +++ b/eclass/distutils-r

[gentoo-dev] [PATCH 02/18] distutils-r1.eclass: Support internal post-python_* phase functions

2022-06-04 Thread Michał Górny
Support running additional post-python_* phase functions for internal usage. The goal is to replace some of the inline logic in distutils-r1_python_* functions that relies on the user calling them and additional calls to python_foreach_impl. Signed-off-by: Michał Górny --- eclass/distutils-r1.e

[gentoo-dev] [PATCH 01/18] python-utils-r1.eclass: Strip stray *-pytest-*.pyc files in epytest

2022-06-04 Thread Michał Górny
The test suites of pytest plugins cause additional *-pytest-*.pyc files to be created. Remove them in order to prevent them from being installed alongside the package. Closes: https://bugs.gentoo.org/847235 Signed-off-by: Michał Górny --- eclass/python-utils-r1.eclass | 5 + 1 file changed,

[gentoo-dev] [PATCH 00/18] distutils-r1.eclass D_U_PEP517=no mode & other patches

2022-06-04 Thread Michał Górny
Hi, Here's another large-ish patchset for the Python eclass. The primary highlight is DISTUTILS_USE_PEP517=no mode explained below. In addition to that, some refactoring, bug fixes and other changes collected to avoid updating the metadata cache twice. D_U_PEP517=no mode basically gives you th

Re: [gentoo-dev] [PATCH v2 1/1] esed.eclass: new eclass

2022-06-04 Thread Ionen Wolkens
On Fri, Jun 03, 2022 at 07:15:17PM -0500, Oskari Pirhonen wrote: [snip[ > Testing for (in)equality between pre- and post-sed contents is > reasonable enough in most cases. This time, though, it would fail to > detect anything has changed since the pre-sed contents have their NULL's > unintentionall