[gentoo-dev] [PATCH v2] skel.ebuild: update SRC_URI

2025-07-05 Thread kangie
From: Matt Jolly In 2025 FTP is increasingly uncommon. The world we live in is (mostly) HTTPS, and SRC_URI should reflect that. Add commentry about renaming distfiles with `->` when required. Signed-off-by: Matt Jolly --- skel.ebuild | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)

[gentoo-dev] [PATCH v2] install-qa-check.d: Add namespace package check to 60python-site

2025-05-29 Thread Michał Górny
Add an explicit check for deprecated pkg_resources namespace packages to 60python-site. The eclass handled the most common case of installing them via the deprecated `namespace_packages` setuptools key, but it does not handle packages that worked around the deprecation warning by installing the f

Re: [gentoo-dev] [PATCH v2 1/2] sysroot.eclass: New eclass for using a different sysroot

2025-05-27 Thread James Le Cuirot
On Tue, 2025-05-27 at 17:35 +0100, Roy Bamford wrote: > On 2025.05.27 12:08, James Le Cuirot wrote: > > I also intend to add another wrapper script generation function for > > running executables while changing the root directory. > > > +# Return the QEMU architecture name for the given target or

Re: [gentoo-dev] [PATCH v2 1/2] sysroot.eclass: New eclass for using a different sysroot

2025-05-27 Thread Roy Bamford
On 2025.05.27 12:08, James Le Cuirot wrote: > I also intend to add another wrapper script generation function for > running executables while changing the root directory. > +# Return the QEMU architecture name for the given target or CHOST. > This name is > +# used in qemu-user binary filenames, e

[gentoo-dev] [PATCH v2 2/2] waf-utils.eclass: Use a sysroot wrapper script when appropriate

2025-05-27 Thread James Le Cuirot
waf supports executing binaries via a wrapper for cross-compiling. I have used this to cross-compile Samba and its waf-based dependencies. Signed-off-by: James Le Cuirot --- eclass/waf-utils.eclass | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/eclass/waf-utils.ecl

[gentoo-dev] [PATCH v2 1/2] sysroot.eclass: New eclass for using a different sysroot

2025-05-27 Thread James Le Cuirot
I also intend to add another wrapper script generation function for running executables while changing the root directory. Signed-off-by: James Le Cuirot --- eclass/sysroot.eclass | 85 +++ 1 file changed, 85 insertions(+) create mode 100644 eclass/sysroo

Re: [gentoo-dev] [PATCH v2] linux-mod-r1.eclass: Fix building with different arch than KV_OUT_DIR

2025-05-24 Thread James Le Cuirot
On Fri, 2025-05-23 at 20:02 -0400, Ionen Wolkens wrote: > On Fri, May 23, 2025 at 06:40:38PM +0100, James Le Cuirot wrote: > > The kernel we're building against may have had its tools (e.g. modpost) > > built for the target arch or even some other arch than the we're > > building with now. To work

Re: [gentoo-dev] [PATCH v2] linux-mod-r1.eclass: Fix building with different arch than KV_OUT_DIR

2025-05-23 Thread Ionen Wolkens
On Fri, May 23, 2025 at 06:40:38PM +0100, James Le Cuirot wrote: > The kernel we're building against may have had its tools (e.g. modpost) > built for the target arch or even some other arch than the we're > building with now. To work around this, rebuild those tools with make > modules_prepare whe

[gentoo-dev] [PATCH v2] linux-mod-r1.eclass: Fix building with different arch than KV_OUT_DIR

2025-05-23 Thread James Le Cuirot
The kernel we're building against may have had its tools (e.g. modpost) built for the target arch or even some other arch than the we're building with now. To work around this, rebuild those tools with make modules_prepare when necessary. Doing this in pkg_setup is not ideal, but some ebuilds have

Re: [gentoo-dev] [PATCH v2 1/3] cmake.eclass: Add recursive CMakeLists.txt unsupported version detection

2025-05-19 Thread Andreas Sturmlechner
On Montag, 19. Mai 2025 20:51:49 Mitteleuropäische Sommerzeit Michał Górny wrote: > > --- a/eclass/cmake.eclass > > +++ b/eclass/cmake.eclass > > @@ -362,6 +362,18 @@ cmake_src_configure() { > > > > # Fix xdg collision with sandbox > > xdg_environment_reset > > > > + local file re="cma

Re: [gentoo-dev] [PATCH v2 1/3] cmake.eclass: Add recursive CMakeLists.txt unsupported version detection

2025-05-19 Thread Michał Górny
On Mon, 2025-05-19 at 20:44 +0200, Andreas Sturmlechner wrote: > We need to ramp up detection of unsupported CMake build systems with > CMake 4. This will detect CMakeLists.txt files setting insufficient > cmake_minimum_required VERSION level even in project subdirectories, > putting out appropriat

Re: [gentoo-dev] [PATCH v2 3/3] cmake.eclass: Add CMAKE_QA_COMPAT_SKIP flag to skip compat checks

2025-05-19 Thread Andreas Sturmlechner
--- eclass/cmake.eclass | 25 - 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/eclass/cmake.eclass b/eclass/cmake.eclass index 8e3454fca5..d9013fbc01 100644 --- a/eclass/cmake.eclass +++ b/eclass/cmake.eclass @@ -117,6 +117,12 @@ fi # for econf and is neede

Re: [gentoo-dev] [PATCH v2 2/3] cmake.eclass: If CMake 4 is detected, build w/ compat cmake arg

2025-05-19 Thread Andreas Sturmlechner
-DCMAKE_POLICY_VERSION_MINIMUM=3.5 Signed-off-by: Andreas Sturmlechner --- eclass/cmake.eclass | 4 1 file changed, 4 insertions(+) diff --git a/eclass/cmake.eclass b/eclass/cmake.eclass index ca6c03f335..8e3454fca5 100644 --- a/eclass/cmake.eclass +++ b/eclass/cmake.eclass @@ -560,6 +560,

[gentoo-dev] [PATCH v2 1/3] cmake.eclass: Add recursive CMakeLists.txt unsupported version detection

2025-05-19 Thread Andreas Sturmlechner
We need to ramp up detection of unsupported CMake build systems with CMake 4. This will detect CMakeLists.txt files setting insufficient cmake_minimum_required VERSION level even in project subdirectories, putting out appropriate eqawarn message about the need to fix ${PN}. That makes us not rely

[gentoo-dev] [PATCH v2] edo.eclass: Fix two issues with edo() output

2025-05-12 Thread Ulrich Müller
This updates the edo function to behave similar to its possible implementation in the package manager for EAPI 9: - Backslash-escaping (as einfo does via "echo -e") is not wanted. - Arguments should be printed in a quoted format that could be reused as shell input. We quote arguments using the

[gentoo-dev] [PATCH v2] elisp-common.eclass: Add lexbind cookie to site-init files

2025-04-22 Thread Ulrich Müller
This is needed for individual site-init files to be loaded, since Emacs from Git now complains about missing lexical-binding cookies. Drop any initial blank lines when installing site-init files in elisp-site-file-install. Instead, insert blank lines when concatenating the files in elisp-site-rege

[gentoo-dev] [PATCH v2 3/4] dev-java/jna: add 5.17.0 multi-release with generated module-info

2025-03-17 Thread Volkmar W. Pogatzki
- switches to default slot (SLOT=0) - consumers should be switched on version bumps Signed-off-by: Volkmar W. Pogatzki --- dev-java/jna/Manifest | 1 + dev-java/jna/jna-5.17.0.ebuild | 193 + 2 files changed, 194 insertions(+) create mode 100644 dev-ja

[gentoo-dev] [PATCH v2 2/4] dev-java/asm-jdk-bridge: new package, add 0.0.2

2025-03-17 Thread Volkmar W. Pogatzki
Dependency of newer dev-java/byte-buddy versions. Signed-off-by: Volkmar W. Pogatzki --- dev-java/asm-jdk-bridge/Manifest | 1 + .../asm-jdk-bridge-0.0.2.ebuild | 56 +++ dev-java/asm-jdk-bridge/metadata.xml | 10 3 files changed, 67 inse

[gentoo-dev] [PATCH v2 1/4] java-pkg-simple.eclass: support Multi-Release JAR Files (JEP 238)

2025-03-17 Thread Volkmar W. Pogatzki
See https://openjdk.org/jeps/238 This commit adds basic support for building multi-release jar files. A multi-release jar file has release-specific classes in directories under META-INF/versions/ and its MANIFEST.MF contains a line with 'Multi-Release: true'. The probably most common case of a mu

[gentoo-dev] [PATCH v2 4/4] dev-java/byte-buddy: add 1.17.2

2025-03-17 Thread Volkmar W. Pogatzki
Simplifies ebuild by generating module-info with eclass functionality. Switches to dev-java/jna:0 (from dev-java/jna:4) Restricted to asm-9 since bytecode 69 starts from Java 25. Also restricted to presently stable Java versions because with Java 25, there are still too many test failures. Close

[gentoo-dev] [PATCH v2] Add 'host' variable to GIT_CRATES to support other host like self-host gitlab or gitea

2024-12-03 Thread MYT
This change indroduces possibility to fetch git crates from hosts other than github/main gitlab instance, like the gnome's gitlab which wasn't possible before. This is done by adding new key in the crate value `;gitlab` for example. Signed-off-by: MYT --- eclass/cargo.eclass | 41 +++

Re: [gentoo-dev] [PATCH v2 1/2] sec-keys.eclass: new eclass

2024-11-29 Thread Eli Schwartz
On 11/29/24 1:31 PM, Robin H. Johnson wrote: > From a technical perspective, that depends on the keyserver design. > > But the canonical "why" is GDPR Article 17 - right-to-erasure. > > Hockeypuck even ships a script to make it easy for admins to delete > keys: > https://github.com/hockeypuck/hoc

Re: [gentoo-dev] [PATCH v2 1/2] sec-keys.eclass: new eclass

2024-11-29 Thread Robin H. Johnson
On Thu, Nov 28, 2024 at 10:36:36AM -0500, Eli Schwartz wrote: > This doesn't test a useful property. > > People cannot "remove" compromised keys from a keyserver to begin with. > If they did, then checking to build the package with GENTOO_MIRRORS= > DISTDIR=$(mktemp -d) is a significantly more use

Re: [gentoo-dev] [PATCH v2 1/2] sec-keys.eclass: new eclass

2024-11-28 Thread Florian Schmaus
On 28/11/2024 05.32, Eli Schwartz wrote: The current state of verify-sig support is a bit awkward. We rely on validating distfiles against a known trusted keyring, but creating the known trusted keyring is basically all manual verification. We somehow decide an ascii armored key is good enough wi

Re: [gentoo-dev] [PATCH v2 1/2] sec-keys.eclass: new eclass

2024-11-28 Thread Sam James
Michał Górny writes: > On Thu, 2024-11-28 at 16:56 +, Sam James wrote: >> Eli Schwartz writes: >> >> > On 11/28/24 8:10 AM, Michał Górny wrote: >> > > On Wed, 2024-11-27 at 23:32 -0500, Eli Schwartz wrote: >> > > >> > > That looks like something you could do in src_compile() already. >> >

Re: [gentoo-dev] [PATCH v2 1/2] sec-keys.eclass: new eclass

2024-11-28 Thread Michał Górny
On Thu, 2024-11-28 at 16:56 +, Sam James wrote: > Eli Schwartz writes: > > > On 11/28/24 8:10 AM, Michał Górny wrote: > > > On Wed, 2024-11-27 at 23:32 -0500, Eli Schwartz wrote: > > > > > > That looks like something you could do in src_compile() already. > > > > > > Perhaps. But it felt l

Re: [gentoo-dev] [PATCH v2 1/2] sec-keys.eclass: new eclass

2024-11-28 Thread Sam James
Eli Schwartz writes: > On 11/28/24 8:10 AM, Michał Górny wrote: >> On Wed, 2024-11-27 at 23:32 -0500, Eli Schwartz wrote: >> >> That looks like something you could do in src_compile() already. > > > Perhaps. But it felt like exporting keys is work that is conceptually > part of installing, in mu

Re: [gentoo-dev] [PATCH v2 1/2] sec-keys.eclass: new eclass

2024-11-28 Thread Michał Górny
On Thu, 2024-11-28 at 10:36 -0500, Eli Schwartz wrote: > On 11/28/24 8:10 AM, Michał Górny wrote: > > > > +# separated by colons. The allowed values for a location are: > > > +# > > > +# - gentoo -- fetch key by fingerprint from https://keys.gentoo.org > > > +# > > > +# - github -- fetch key fro

Re: [gentoo-dev] [PATCH v2 1/2] sec-keys.eclass: new eclass

2024-11-28 Thread Eli Schwartz
On 11/28/24 8:10 AM, Michał Górny wrote: > On Wed, 2024-11-27 at 23:32 -0500, Eli Schwartz wrote: >> +# @ECLASS_VARIABLE: SEC_KEYS_VALIDPGPKEYS >> +# @PRE_INHERIT >> +# @DEFAULT_UNSET >> +# @DESCRIPTION: >> +# Mapping of fingerprints, name, and optional location of PGP keys to >> include, > > So

Re: [gentoo-dev] [PATCH v2 1/2] sec-keys.eclass: new eclass

2024-11-28 Thread Michał Górny
On Wed, 2024-11-27 at 23:32 -0500, Eli Schwartz wrote: > +# @ECLASS_VARIABLE: SEC_KEYS_VALIDPGPKEYS > +# @PRE_INHERIT > +# @DEFAULT_UNSET > +# @DESCRIPTION: > +# Mapping of fingerprints, name, and optional location of PGP keys to > include, So "location" or "locations", plural? > +# separated by

[gentoo-dev] [PATCH v2 2/2] sec-keys/openpgp-keys-gnutls: update to use sec-keys.eclass

2024-11-27 Thread Eli Schwartz
Bump EAPI 7 -> 8 as required by eclass. ;) This is a nice demonstration of using the eclass. It showcases some advanced usage, in particular, how to augment a single key within a keyring published on upstream's website with an extended expiration date from the openpgp.org keyserver. The ebuild wa

[gentoo-dev] [PATCH v2 1/2] sec-keys.eclass: new eclass

2024-11-27 Thread Eli Schwartz
The current state of verify-sig support is a bit awkward. We rely on validating distfiles against a known trusted keyring, but creating the known trusted keyring is basically all manual verification. We somehow decide an ascii armored key is good enough without any portage assistance, then arrange

[gentoo-dev] [PATCH v2 0/2] sec-keys.eclass

2024-11-27 Thread Eli Schwartz
v2 changes: - add src_test - add support for gentoo keyserver - fix small typo in handling multiple sources - remove outdated die based on review Eli Schwartz (2): sec-keys.eclass: new eclass sec-keys/openpgp-keys-gnutls: update to use sec-keys.eclass eclass/sec-keys.eclass

[gentoo-dev] [PATCH v2 1/2] dev-python/setuptools: allow disabling validation of pypi.org allowed strings

2024-11-12 Thread Eli Schwartz
Trove classifiers, and their officialness, have no effect on a wheel other than determining whether they are allowed to be uploaded to a non-Gentoo website, and enabling the search index of that other site. We don't need this, and we don't need to validate it. Setuptools will disable validation if

[gentoo-dev] [PATCH v2 2/2] distutils-r1.eclass: disable setuptools validation of pypi.org allowed strings

2024-11-12 Thread Eli Schwartz
In the previous commit, a change was patched into setuptools to enable skipping pypi.org specific validations we do not want. Export the environment variable which activates this, whenever the build backend is setuptools. Bug: https://github.com/pypa/setuptools/issues/4459 Signed-off-by: Eli Schwa

[gentoo-dev] [PATCH v2 2/5] zig-build.eclass: new eclass

2024-10-26 Thread Eric Joldasov
Signed-off-by: Eric Joldasov --- eclass/zig-build.eclass | 580 1 file changed, 580 insertions(+) create mode 100644 eclass/zig-build.eclass diff --git a/eclass/zig-build.eclass b/eclass/zig-build.eclass new file mode 100644 index ..ffa075043

[gentoo-dev] [PATCH v2 0/5] Ziglang eclasses for 0.13+

2024-10-25 Thread Eric Joldasov
Hello everyone, This patch series adds new eclasses for packages that use Zig toolchain with varying level of integration. Since some projects or ebuilds use only Zig compiler directly, without touching Zig Build System, I have decided to split eclasses into 2: * zig-toolchain.eclass: handles dep

[gentoo-dev] [PATCH v2 5/5] sys-fs/ncdu: add 2.6-r1

2024-10-25 Thread Eric Joldasov
Now uses "zig-build" eclass. Signed-off-by: Eric Joldasov --- sys-fs/ncdu/ncdu-2.6-r1.ebuild | 50 ++ 1 file changed, 50 insertions(+) create mode 100644 sys-fs/ncdu/ncdu-2.6-r1.ebuild diff --git a/sys-fs/ncdu/ncdu-2.6-r1.ebuild b/sys-fs/ncdu/ncdu-2.6-r1.ebuild

[gentoo-dev] [PATCH v2 4/5] dev-lang/zig: sync 9999 with 0.13.0-r1

2024-10-25 Thread Eric Joldasov
From: Eric Joldasov * Update to use zig-build and zig-toolchain functions instead of local get_zig_mcpu etc. functions. * Port "sys-apps/sandbox-2.39" test dependency requirement from 0.13.0 ebuild. * Stage3 compilation is unified by combining build.zig options, now both cmake (+llvm) and b

[gentoo-dev] [PATCH v2 3/5] dev-lang/zig: add 0.13.0-r1

2024-10-25 Thread Eric Joldasov
From: Eric Joldasov * Update to use llvm-r1 eclass instead of llvm, zig-build and zig-toolchain functions instead of local get_zig_mcpu etc. functions. * Port "llvm USE-flag" and "removing memory limit flags" from ebuild. * Stage3 compilation is unified by combining build.zig options,

[gentoo-dev] [PATCH v2 1/5] zig-toolchain.eclass: new eclass

2024-10-25 Thread Eric Joldasov
Signed-off-by: Eric Joldasov --- eclass/zig-toolchain.eclass | 375 1 file changed, 375 insertions(+) create mode 100644 eclass/zig-toolchain.eclass diff --git a/eclass/zig-toolchain.eclass b/eclass/zig-toolchain.eclass new file mode 100644 index 000

[gentoo-dev] [PATCH v2 3/4] cvs.eclass: New eclass variable ECVS_SSH_EXTRA_OPTS

2024-10-17 Thread Ulrich Müller
This allows passing additional options to ssh. Signed-off-by: Ulrich Müller --- v2: Quote the options in the wrapper script eclass/cvs.eclass | 12 1 file changed, 12 insertions(+) diff --git a/eclass/cvs.eclass b/eclass/cvs.eclass index 1289ee54cc3b..007240e6ba25 100644 --- a/ecl

[gentoo-dev] [PATCH v2] elisp.eclass: New function elisp_pkg_info

2024-09-05 Thread Ulrich Müller
Signed-off-by: Ulrich Müller --- eclass/elisp.eclass | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/eclass/elisp.eclass b/eclass/elisp.eclass index 20139491c976..5b08d34a867f 100644 --- a/eclass/elisp.eclass +++ b/eclass/elisp.eclass @@ -1,4 +1,4 @@ -# Copyrig

[gentoo-dev] [PATCH v2 4/4] kernel-2.eclass: Drop reference to BUILD_FIXES variable

2024-07-03 Thread Ulrich Müller
Undocumented, and not used by any ebuilds inheriting this eclass. Signed-off-by: Ulrich Müller --- eclass/kernel-2.eclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eclass/kernel-2.eclass b/eclass/kernel-2.eclass index ffbe986f3e87..c60fcb04dd73 100644 --- a/eclass/kerne

[gentoo-dev] [PATCH v2 3/4] linux-info.eclass: Drop reference to BUILD_FIXES variable

2024-07-03 Thread Ulrich Müller
Undocumented, and not used by any ebuilds inheriting this eclass. Signed-off-by: Ulrich Müller --- eclass/linux-info.eclass | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/eclass/linux-info.eclass b/eclass/linux-info.eclass index 154be2a46888..0f6138150144 100644 --- a/ecla

[gentoo-dev] [PATCH v2 2/4] linux-info.eclass: Drop support for EAPI 6

2024-07-03 Thread Ulrich Müller
Signed-off-by: Ulrich Müller --- eclass/linux-info.eclass | 20 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/eclass/linux-info.eclass b/eclass/linux-info.eclass index 90982445fdab..154be2a46888 100644 --- a/eclass/linux-info.eclass +++ b/eclass/linux-info.ec

[gentoo-dev] [PATCH v2 1/4] linux-info.eclass: Drop temporary fix for powerpc

2024-07-03 Thread Ulrich Müller
Apparently there is no reference to a .tmp_gas_check file or to a TOUT variable in Linux sources any more. Bug: https://bugs.gentoo.org/75034#c14 Signed-off-by: Ulrich Müller --- eclass/linux-info.eclass | 6 -- 1 file changed, 6 deletions(-) diff --git a/eclass/linux-info.eclass b/eclass/l

[gentoo-dev] [PATCH v2] java-pkg-simple.eclass: allow java-pkg-opt-2

2024-07-02 Thread Volkmar W. Pogatzki
Presently, "java-pkg-simple eclass can only be inherited AFTER java-pkg-2". This prevents packages with optional Java like dev-lang/cxprolog to be built with java-pkg-simple. This patch allows to inherit java-pkg-simple after any of java-pkg-2 and java-pkg-opt-2. Poposed by Alfred Wingate on #gent

[gentoo-dev] [PATCH v2] cargo.eclass: Add cargo_target_dir helper function

2024-06-15 Thread James Le Cuirot
Several Cargo-based ebuilds cannot use cargo_src_install for various reasons and manually install binaries from within the target directory instead. It is common to see `target/$(usex debug debug release)`, but this lacks the target ABI when cross-compiling, so provide a helper function. There are

[gentoo-dev] [PATCH v2] toolchain-funcs.eclass: Add tc-has-64bit-time_t

2024-06-13 Thread Michał Górny
Add a helper function to check whether time_t is 64-bit. This could be used e.g. to deselect tests that rely on timestamps exceeding Y2k38. It is meant to be more future-proof than hardcoding a list of 32-bit architectures, given the necessity of switching to 64-bit time_t in the future. Signed-o

[gentoo-dev] [PATCH v2 2/2] cargo.eclass: Enable cross-compiling by setting environment variables

2024-06-11 Thread James Le Cuirot
CARGO_BUILD_TARGET and CARGO_TARGET__LINKER are enough for pure Rust. The linker otherwise defaults to `cc`. This doesn't respect any linker specified in LDFLAGS, but this is also true for native builds. We would need to do something with RUSTFLAGS. The HOST_* variables are for the cc-rs crate, wh

[gentoo-dev] [PATCH v2 1/2] cargo.eclass: Drop EAPI 7 support

2024-06-11 Thread James Le Cuirot
It is going to inherit rust-toolchain, which is EAPI 8 only. Closes: https://bugs.gentoo.org/715890 Signed-off-by: James Le Cuirot --- eclass/cargo.eclass | 19 ++- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/eclass/cargo.eclass b/eclass/cargo.eclass index a685

[gentoo-dev] [PATCH v2 2/2] common-lisp-3.eclass: sbcl supports --no-sysinit --no-userinit

2024-06-08 Thread Ulrich Müller
Signed-off-by: Ulrich Müller --- eclass/common-lisp-3.eclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eclass/common-lisp-3.eclass b/eclass/common-lisp-3.eclass index b859c7859bfb..99825190f32e 100644 --- a/eclass/common-lisp-3.eclass +++ b/eclass/common-lisp-3.eclass @@

[gentoo-dev] [PATCH v2 1/2] common-lisp-3.eclass: Support EAPI 8

2024-06-08 Thread Ulrich Müller
Minor stylistic changes. Signed-off-by: Ulrich Müller --- eclass/common-lisp-3.eclass | 22 +- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/eclass/common-lisp-3.eclass b/eclass/common-lisp-3.eclass index 26d31268a598..b859c7859bfb 100644 --- a/eclass/common-

Re: [gentoo-dev] [PATCH v2] verify-sig.eclass: avoid calling unpack on sig files

2024-05-22 Thread Mike Gilbert
On Tue, May 21, 2024 at 11:38 PM Michał Górny wrote: > > On Tue, 2024-05-21 at 22:05 -0400, Mike Gilbert wrote: > > Signed-off-by: Mike Gilbert > > --- > > eclass/verify-sig.eclass | 10 +++--- > > 1 file changed, 7 insertions(+), 3 deletions(-) > > > > diff --git a/eclass/verify-sig.eclass

Re: [gentoo-dev] [PATCH v2] verify-sig.eclass: avoid calling unpack on sig files

2024-05-22 Thread Mike Gilbert
On Wed, May 22, 2024 at 1:53 AM Ulrich Mueller wrote: > Please provide an explanation what problem this patch fixes. > > Why is calling unpack on sig files bad? It should silently skip files > with unknown extensions. The main reason is that Portage does not *silently* skip unknown extensions in

Re: [gentoo-dev] [PATCH v2] verify-sig.eclass: avoid calling unpack on sig files

2024-05-21 Thread Ulrich Mueller
> On Wed, 22 May 2024, Mike Gilbert wrote: > Signed-off-by: Mike Gilbert > --- > eclass/verify-sig.eclass | 10 +++--- > 1 file changed, 7 insertions(+), 3 deletions(-) > diff --git a/eclass/verify-sig.eclass b/eclass/verify-sig.eclass > index b74ed78290aa..4d48c9ed8503 100644 > --- a/e

Re: [gentoo-dev] [PATCH v2] verify-sig.eclass: avoid calling unpack on sig files

2024-05-21 Thread Michał Górny
On Tue, 2024-05-21 at 22:05 -0400, Mike Gilbert wrote: > Signed-off-by: Mike Gilbert > --- > eclass/verify-sig.eclass | 10 +++--- > 1 file changed, 7 insertions(+), 3 deletions(-) > > diff --git a/eclass/verify-sig.eclass b/eclass/verify-sig.eclass > index b74ed78290aa..4d48c9ed8503 100644

[gentoo-dev] [PATCH v2] verify-sig.eclass: avoid calling unpack on sig files

2024-05-21 Thread Mike Gilbert
Signed-off-by: Mike Gilbert --- eclass/verify-sig.eclass | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/eclass/verify-sig.eclass b/eclass/verify-sig.eclass index b74ed78290aa..4d48c9ed8503 100644 --- a/eclass/verify-sig.eclass +++ b/eclass/verify-sig.eclass @@ -426

[gentoo-dev] [PATCH v2 7/7] distutils-r1.eclass: Pass ninja options to scikit-build-core

2024-05-17 Thread Michał Górny
Signed-off-by: Michał Górny --- eclass/distutils-r1.eclass | 6 ++ 1 file changed, 6 insertions(+) diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass index 3aa2c8984ab2..71b80fafe1a5 100644 --- a/eclass/distutils-r1.eclass +++ b/eclass/distutils-r1.eclass @@ -1457,11 +1457,

[gentoo-dev] [PATCH v2 6/7] distutils-r1.eclass: Update scikit-build-core to 0.9.4

2024-05-17 Thread Michał Górny
Signed-off-by: Michał Górny --- eclass/distutils-r1.eclass | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass index a8f9817a3cf0..3aa2c8984ab2 100644 --- a/eclass/distutils-r1.eclass +++ b/eclass/distutils-r1.eclass

[gentoo-dev] [PATCH v2 5/7] python-utils-r1.eclass: Support passing EPYTEST_FLAGS

2024-05-17 Thread Michał Górny
Closes: https://bugs.gentoo.org/905863 Signed-off-by: Michał Górny --- eclass/python-utils-r1.eclass | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/eclass/python-utils-r1.eclass b/eclass/python-utils-r1.eclass index 275ac3a96523..584ed831f816 100644 --- a/eclass/p

[gentoo-dev] [PATCH v2 4/7] distutils-r1.eclass: Support reusing prior wheels when compatible

2024-05-17 Thread Michał Górny
Support reusing the wheels built for earlier Python implementations if they are compatible with the subsequent implementations being built. This includes pure Python wheels in packages that do not set DISTUTILS_EXT, and stable ABI wheels. Closes: https://bugs.gentoo.org/931689 Signed-off-by: Micha

[gentoo-dev] [PATCH v2 3/7] distutils-r1.eclass: Add a QA warning for pure Python file mismatch

2024-05-17 Thread Michał Górny
If the package is creating at least one pure Python wheel, check whether the baseline package contents (i.e. everything but compiled Python modules, extensions and .dist-info) match between implementations. This is meant to ensure that we can safely optimize builds by reusing pure Python wheels fro

[gentoo-dev] [PATCH v2 2/7] distutils-r1.eclass: Store created wheels in DISTUTILS_WHEELS

2024-05-17 Thread Michał Górny
Signed-off-by: Michał Górny --- eclass/distutils-r1.eclass | 11 +++ 1 file changed, 11 insertions(+) diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass index 1037c0abe239..955c41fe4e2d 100644 --- a/eclass/distutils-r1.eclass +++ b/eclass/distutils-r1.eclass @@ -1532,6

[gentoo-dev] [PATCH v2 1/7] distutils-r1.eclass: Set DISTUTILS_WHEEL_PATH in PEP517 install

2024-05-17 Thread Michał Górny
Store the created wheel path in DISTUTILS_WHEEL_PATH when returning from distutils_pep517_install. Signed-off-by: Michał Górny --- eclass/distutils-r1.eclass | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass index

[gentoo-dev] [PATCH v2 0/7] wheel reuse optimization, EPYTEST_FLAGS and scikit-build-core

2024-05-17 Thread Michał Górny
Hi, Changed in v2: Made DISTUTILS_WHEELS an associative array, and included source directory in it. This ensures that if an ebuild calls distutils-r1_python_compile multiple times, we don't end up reusing wheels created for another source directory. Michał Górny (7): distutils-r1.eclass: Set

[gentoo-dev] [PATCH v2] cargo.eclass: Optimize crate unpacking

2024-05-15 Thread Michał Górny
Unpack crates in parallel using xargs to utilize multicore systems better. Perform checksumming via a single sha256sum invocation. For dev-python/watchfiles, this speeds up unpacking on my machine from 2.6 s to 0.75 s (warm cache). Signed-off-by: Michał Górny --- eclass/cargo.eclass | 56 +

Re: [gentoo-dev] [PATCH v2 0/4] acct-{user,group}.eclass: make user/group names writable

2024-05-13 Thread Michael Orlitzky
On Thu, 2024-05-09 at 16:41 -0400, Michael Orlitzky wrote: > Support changing the user/group name of GLEP81 packages. This is > sometimes required in overlays because package naming restrictions > prohibit valid user/group names from being package names. Pushed.

[gentoo-dev] [PATCH v2 4/4] eclass/acct-group.eclass: use $PN to construct make.conf override vars

2024-05-09 Thread Michael Orlitzky
If (after upcasing and replacing hyphens by underscores) ACCT_GROUP_NAME is set to something that isn't valid in a bash variable name, the eclass will crash: it uses ACCT_GROUP_NAME to construct the make.conf override variables in pkg_pretend() and src_install(). This commit constructs the variable

[gentoo-dev] [PATCH v2 3/4] eclass/acct-user.eclass: use $PN to construct make.conf override vars

2024-05-09 Thread Michael Orlitzky
If (after upcasing and replacing hyphens by underscores) ACCT_USER_NAME is set to something that isn't valid in a bash variable name, the eclass will crash: it uses ACCT_USER_NAME to construct the make.conf override variables in pkg_pretend() and src_install(). This commit constructs the variable n

[gentoo-dev] [PATCH v2 2/4] acct-group.eclass: make ACCT_GROUP_NAME writable

2024-05-09 Thread Michael Orlitzky
The ACCT_GROUP_NAME variable is set to $PN by Gentoo policy. Prior to this commit, it was also marked "readonly", preventing it from being changed in an ebuild. In an overlay, and combined with the package naming restrictions in the PMS, this has the unfortunate side effect of prohibiting some othe

[gentoo-dev] [PATCH v2 1/4] acct-user.eclass: make ACCT_USER_NAME writable

2024-05-09 Thread Michael Orlitzky
The ACCT_USER_NAME variable is set to $PN by Gentoo policy. Prior to this commit, it was also marked "readonly", preventing it from being changed in an ebuild. In an overlay, and combined with the package naming restrictions in the PMS, this has the unfortunate side effect of prohibiting some other

[gentoo-dev] [PATCH v2 0/4] acct-{user,group}.eclass: make user/group names writable

2024-05-09 Thread Michael Orlitzky
Support changing the user/group name of GLEP81 packages. This is sometimes required in overlays because package naming restrictions prohibit valid user/group names from being package names. We drop "readonly" from the eclasses, and use PN instead of ACCT_{USER,GROUP}_NAME to construct the make.con

Re: [gentoo-dev] [PATCH v2] 2024-05-03-wireplumber-0_5-bump: add news item

2024-05-03 Thread James Calligeros
On Sat, May 4, 2024 at 1:30 PM Sam James wrote: > If you feel it'd be useful to commit pw+wp masked before then, we can, > but my gut is that it isn't. I see no reason to do so either. > Thanks again for working on this. No worries at all :) > best, > sam Regards, James

Re: [gentoo-dev] [PATCH v2] 2024-05-03-wireplumber-0_5-bump: add news item

2024-05-03 Thread Sam James
James Calligeros writes: > Signed-off-by: James Calligeros > --- > .../2024-05-03-wireplumber-0_5-bump.en.txt| 25 +++ > 1 file changed, 25 insertions(+) > create mode 100644 > 2024-05-03-wireplumber-0_5-bump/2024-05-03-wireplumber-0_5-bump.en.txt > > diff --git > a/2024-

[gentoo-dev] [PATCH v2] 2024-05-03-wireplumber-0_5-bump: add news item

2024-05-03 Thread James Calligeros
Signed-off-by: James Calligeros --- .../2024-05-03-wireplumber-0_5-bump.en.txt| 25 +++ 1 file changed, 25 insertions(+) create mode 100644 2024-05-03-wireplumber-0_5-bump/2024-05-03-wireplumber-0_5-bump.en.txt diff --git a/2024-05-03-wireplumber-0_5-bump/2024-05-03-wirepl

[gentoo-dev] [PATCH v2 3/3] gnuconfig.eclass: drop EAPI 5 support

2024-05-03 Thread Sam James
autotools.eclass hasn't had EAPI 5 support for ~2 years since 50710f3d0e8f19fab5571d9596c336314e96b5cf so this wasn't being used anyway (non-autotools.eclass use of gnuconfig.eclass is very niche). Signed-off-by: Sam James --- eclass/gnuconfig.eclass | 8 1 file changed, 4 insertions(+)

[gentoo-dev] [PATCH v2 2/3] autotools.eclass: conditionalize gnuconfig dependency

2024-05-03 Thread Sam James
Use newly-added GNUCONFIG_DEPEND so that AUTOTOOLS_AUTO_DEPEND=no doesn't result in a useless dependency on gnuconfig. Signed-off-by: Sam James --- eclass/autotools.eclass | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/eclass/autotools.eclass b/eclass/autotools.eclas

[gentoo-dev] [PATCH v2 1/3] gnuconfig.eclass: add GNUCONFIG_DEPEND

2024-05-03 Thread Sam James
The motivation here is to allow autotools.eclass consumers setting AUTOTOOLS_AUTO_DEPEND=no to not have a useless gnuconfig dependency. Signed-off-by: Sam James --- eclass/gnuconfig.eclass | 22 +++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/eclass/gnuconfi

Re: [gentoo-dev] [PATCH v2] texlive-module.eclass: install man pages in right location

2024-05-01 Thread Ulrich Mueller
> On Wed, 01 May 2024, Florian Schmaus wrote: > + local grep_expressions=() Declare f as local, too. > + # Transform texlive_core_man_pages into grep expressions > + # that will be used to filter out any man page that is > +

[gentoo-dev] [PATCH v2] texlive-module.eclass: install man pages in right location

2024-05-01 Thread Florian Schmaus
The TeX Live packages under dev-texlive/* currently do not install the man pages in the right location. They are under /usr/share/texmf-dist/doc/man. Install them at the right location using doman. Having dev-texlive/* packages installing man pages requires that we filter man pages already instal

Re: [gentoo-dev] [PATCH v2 4/7] distutils-r1.eclass: Make vars local before calling filter-lto

2024-03-09 Thread Eli Schwartz
On 3/9/24 2:59 PM, Mike Gilbert wrote: > On Tue, Mar 5, 2024 at 12:16 PM Michał Górny wrote: >> >> Make LTO filtering local to the compilation code. This avoids disabling >> LTO for non-Python parts of an ebuild. >> >> Signed-off-by: Michał Górny >> --- >> eclass/distutils-r1.eclass | 4 >>

Re: [gentoo-dev] [PATCH v2 4/7] distutils-r1.eclass: Make vars local before calling filter-lto

2024-03-09 Thread Mike Gilbert
On Tue, Mar 5, 2024 at 12:16 PM Michał Górny wrote: > > Make LTO filtering local to the compilation code. This avoids disabling > LTO for non-Python parts of an ebuild. > > Signed-off-by: Michał Górny > --- > eclass/distutils-r1.eclass | 4 > 1 file changed, 4 insertions(+) > > diff --git

[gentoo-dev] [PATCH v2 7/7] distutils-r1.eclass: wire up meson-python to meson.eclass

2024-03-05 Thread Michał Górny
From: Eli Schwartz The meson-python build backend -- as the name suggests -- uses meson under the hood. We have a meson eclass which does lots of useful things pertinent to meson. Make sure it gets invoked, by prying out the options that meson_src_configure would use and setting passing them as o

[gentoo-dev] [PATCH v2 6/7] meson.eclass: move python_export_utf8_locale to meson_src_configure

2024-03-05 Thread Michał Górny
From: Sam James We don't need it in setup_meson_src_configure as distutils-r1 uses it and it'll get called twice then. Signed-off-by: Sam James --- eclass/meson.eclass | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/eclass/meson.eclass b/eclass/meson.eclass index 3bf0

[gentoo-dev] [PATCH v2 5/7] python-utils-r1.eclass: Fix python_doheader install location with ROOT

2024-03-05 Thread Michał Górny
From: James Le Cuirot python_get_includedir is prefixed with ESYSROOT, not EPREFIX, so we need to strip off the former, not the latter. This is currently only used for dev-python/pillow, which I have tested. Signed-off-by: James Le Cuirot --- eclass/python-utils-r1.eclass | 2 +- 1 file chang

[gentoo-dev] [PATCH v2 4/7] distutils-r1.eclass: Make vars local before calling filter-lto

2024-03-05 Thread Michał Górny
Make LTO filtering local to the compilation code. This avoids disabling LTO for non-Python parts of an ebuild. Signed-off-by: Michał Górny --- eclass/distutils-r1.eclass | 4 1 file changed, 4 insertions(+) diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass index ee1dcef

[gentoo-dev] [PATCH v2 3/7] distutils-r1.eclass: Move filter-lto into DISTUTILS_EXT block

2024-03-05 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 60554944a5a0..ee1dcef24ff6 100644 --- a/eclass/distutils-r1.eclass +++ b/eclass/distutils-r1.ec

[gentoo-dev] [PATCH v2 2/7] distutils-r1.eclass: Limit DISTUTILS_EXT logic to compile & test

2024-03-05 Thread Michał Górny
Perform the environment modifications specific to DISTUTILS_EXT to python_compile and python_test phases. These are the only phases where we expect extension builds to be called. This allows us to limit the scope of localized CPPFLAGS, as we both want to avoid leaking changes to non-Python parts

[gentoo-dev] [PATCH v2 1/7] distutils-r1.eclass: Remove -Werror... hack (now in cython)

2024-03-05 Thread Michał Górny
Signed-off-by: Michał Górny --- eclass/distutils-r1.eclass | 5 - 1 file changed, 5 deletions(-) diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass index c0d1992ccce0..fb0c2dfaa693 100644 --- a/eclass/distutils-r1.eclass +++ b/eclass/distutils-r1.eclass @@ -1813,11 +1813,6

[gentoo-dev] [PATCH v2 0/7] distutils-r1.eclass + python-utils-r1.eclass + meson.eclass: combined patches

2024-03-05 Thread Michał Górny
Hi, The same set as previously + extra patches from Eli, James and Sam. Eli Schwartz (1): distutils-r1.eclass: wire up meson-python to meson.eclass James Le Cuirot (1): python-utils-r1.eclass: Fix python_doheader install location with ROOT Michał Górny (4): distutils-r1.eclass: Remove -

Re: [gentoo-dev] [PATCH v2 1/2] */*: Remove dependency on virtual/linuxtv-dvb-headers

2024-03-01 Thread Matthias Schwarzott
Hi! These changes will be commited later today. Regards Matthias

[gentoo-dev] [PATCH v2] java-ant-2.eclass: change JAVA_ANT_E_DEPEND to dev-java/ant

2024-02-28 Thread Volkmar W. Pogatzki
Also removes unused eclass variable JAVA_ANT_DISABLE_ANT_CORE_DEP which becomes obsolete by removal of old dev-java/ant-core-1.10.9-r5. Signed-off-by: Volkmar W. Pogatzki --- eclass/java-ant-2.eclass | 14 ++ 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/eclass/java-a

Re: [gentoo-dev] [PATCH v2 1/2] check-reqs.eclass: runtime disk checks for any path.

2024-02-26 Thread Michał Górny
On Sun, 2024-02-25 at 22:31 -0800, Robin H. Johnson wrote: > Allow checking any runtime path for installing ever-larger packages. > > CHECKREQS_DISK_RUNTIME=( /boot:40M /:350M /opt:500M ) > > Recent example of large packages: > > gentoo-kernel-bin: > / >=350MB/version (in /lib/modules) > /bo

Re: [gentoo-dev] [PATCH v2 1/2] check-reqs.eclass: runtime disk checks for any path.

2024-02-26 Thread Robin H. Johnson
On Mon, Feb 26, 2024 at 08:01:28AM +0100, z...@gentoo.org wrote: > Am 26.02.24 um 07:31 schrieb Robin H. Johnson: > > Allow checking any runtime path for installing ever-larger packages. > > > > CHECKREQS_DISK_RUNTIME=( /boot:40M /:350M /opt:500M ) > > In the example case: Shouldn't the eclass ch

Re: [gentoo-dev] [PATCH v2 1/2] check-reqs.eclass: runtime disk checks for any path.

2024-02-25 Thread zzam
Am 26.02.24 um 07:31 schrieb Robin H. Johnson: Allow checking any runtime path for installing ever-larger packages. CHECKREQS_DISK_RUNTIME=( /boot:40M /:350M /opt:500M ) In the example case: Shouldn't the eclass check for 850M on / if /opt is not a separate partition? I am not sure how often

[gentoo-dev] [PATCH v2 2/2] sys-firmware/intel-microcode: check-reqs for /boot space

2024-02-25 Thread Robin H. Johnson
Signed-off-by: Robin H. Johnson --- .../intel-microcode-20231114_p20231114.ebuild | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/sys-firmware/intel-microcode/intel-microcode-20231114_p20231114.ebuild b/sys-firmware/intel-microcode/intel-microcode-202311

[gentoo-dev] [PATCH v2 1/2] check-reqs.eclass: runtime disk checks for any path.

2024-02-25 Thread Robin H. Johnson
Allow checking any runtime path for installing ever-larger packages. CHECKREQS_DISK_RUNTIME=( /boot:40M /:350M /opt:500M ) Recent example of large packages: gentoo-kernel-bin: / >=350MB/version (in /lib/modules) /boot >=40MB/version rust-bin: /opt >=450MB/version Signed-off-by: Robin H. J

[gentoo-dev] [PATCH v2 2/2] virtual/linuxtv-dvb-headers: Remove obsolete ebuild

2024-02-25 Thread Matthias Schwarzott
Closes: https://bugs.gentoo.org/924398 Signed-off-by: Matthias Schwarzott --- .../linuxtv-dvb-headers-5.8.ebuild | 11 --- virtual/linuxtv-dvb-headers/metadata.xml | 12 2 files changed, 23 deletions(-) delete mode 100644 virtual/linuxtv-dvb-hea

  1   2   3   4   5   6   7   8   >