Re: [gentoo-dev] Putting CC and CXX into make.conf

2023-02-09 Thread James Le Cuirot
On Thu, 2023-02-09 at 14:03 +0100, Michał Górny wrote: > Hi, > > I'd like to propose that we work towards having good defaults for CC > and CXX variables in make.conf files. Something like: > > CC=${CHOST}-gcc > CXX=${CHOST}-g++ > > or: > > CC=${CHOST}-cc > CXX=${CHOST}-c++ > > Why? >

[gentoo-dev] [PATCH] cmake.eclass: Set CMAKE_SYSROOT in toolchain file when necessary

2023-02-28 Thread James Le Cuirot
cript from this directory, does not apply any sysroot to the paths within because the script is outside the sysroot, and finally fails when attempting to link the host's libc.so.6. Signed-off-by: James Le Cuirot --- eclass/cmake.eclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

Re: [gentoo-dev] [PATCH] distutils-r1.eclass: Add PYTHON_DEPS to DEPEND unconditionally

2023-04-12 Thread James Le Cuirot
On 12 April 2023 16:58:58 BST, "Michał Górny" wrote: >From: Raul E Rangel > >Python distutils packages that build C extensions are currently not >declaring PYTHON_DEPS as part of their DEPEND declaration. This results >in build errors when cross compiling using ROOT=. > >i.e., > In file include

Re: [gentoo-dev] Last rites: www-client/chromium-bin

2023-05-04 Thread James Le Cuirot
> On May 4, 2023 6:38:32 PM UTC, Mike Gilbert wrote: > > # Out of date by several versions. Many unresolved security > > # vulnerabilities. Lack of manpower/interest in keeping it up to date. > > # Removal on 2023-06-03. > > www-client/chromium-bin > > > On Thu, 2023-05-04 at 18:59 +, Maciej

Re: [gentoo-dev] wxGTK:3.0-gtk3 vs wxGTK:3.2-gtk3

2023-05-31 Thread James Le Cuirot
On Wed, 2023-05-31 at 11:43 +, Andrey Grozin wrote: > Hello *, > > wxGTK:3.2-gtk3 is now stable. But there are 98 ebuilds depending on > wxGTK:3.0-gtk3 and only 22 ebuilds depending on wxGTK:3.2-gtk3 in the > tree. Probably, in a vast majority of cases 3.0 can be simply replaced by > 3.2 wi

[gentoo-dev] [PATCH] qmake-utils.eclass: Force QMAKE_*FLAGS_RELEASE_WITH_DEBUGINFO to blank

2023-06-04 Thread James Le Cuirot
QMAKE_LFLAGS_RELEASE_WITH_DEBUGINFO += They can take precedence over our provided flags, so they need to be blanked out. They are normally only used when the user specifies -force-debug-info, but sometimes upstreams enable this themselves. Signed-off-by: James Le Cuirot --- eclass/qmake-utils.eclass | 5 - 1

[gentoo-dev] [PATCH] cmake.eclass: Set CMAKE_SYSROOT when building with SYSROOT=

2023-06-15 Thread James Le Cuirot
built into a new SYSROOT. ROOT=/build/amd64-host emerge sys-devel/llvm Signed-off-by: Raul E Rangel Closes: https://github.com/gentoo/gentoo/pull/30658 Signed-off-by: James Le Cuirot --- eclass/cmake.eclass | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff

[gentoo-dev] Last rites: games-action/descent3 and games-action/descent3-demo

2023-06-25 Thread James Le Cuirot
# James Le Cuirot (2023-06-25) # Impossible to legally obtain the native full game now. It freezes on keyboard # input, is incompatible with PipeWire, and requires gamescope to display under # Wayland. In short, it's a lost cause. Removal in 30 days. Bug #436140. games-action/descent3

[gentoo-dev] [PATCH 1/2] python-utils-r1.eclass: Remove old EAPI hack for exporting PYTHON

2023-07-29 Thread James Le Cuirot
This eclass is EAPI 7+ now, so we can assume that BROOT is available. This was broken anyway because it seems that Portage doesn't set BROOT when it's empty. Signed-off-by: James Le Cuirot --- eclass/python-utils-r1.eclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) di

[gentoo-dev] [PATCH 2/2] python-utils-r1.eclass: Fix shebangs using ${EPYTHON}, not ${PYTHON}

2023-07-29 Thread James Le Cuirot
${PYTHON} points to BROOT's Python because it's usually used for calling Python during the build. This value will be wrong at runtime after building cross-prefix. Signed-off-by: James Le Cuirot --- eclass/python-utils-r1.eclass | 4 +--- 1 file changed, 1 insertion(+), 3 deletion

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

2023-08-15 Thread James Le Cuirot
ex. We would need to take this approach for PYTHON_LIBPATH and PYTHON_CONFIG, but these are only used by handful of packages. ${BROOT-${EPREFIX}} is needed rather than plain ${BROOT} for the same reason we need it for PYTHON, namely that Portage <3.0.50 was buggy. Signed-off-by: James Le Cuirot

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

2023-08-15 Thread James Le Cuirot
On Tue, 2023-08-15 at 18:25 -0400, Ionen Wolkens wrote: > On Tue, Aug 15, 2023 at 11:02:54PM +0100, James Le Cuirot wrote: > > We dynamically determine Python's SITEDIR and INCLUDEDIR using the build > > host's Python. This breaks down when the build host's pref

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

2023-08-15 Thread James Le Cuirot
ex. We would need to take this approach for PYTHON_LIBPATH and PYTHON_CONFIG, but these are only used by handful of packages. ${BROOT-${EPREFIX}} is needed rather than plain ${BROOT} for the same reason we need it for PYTHON, namely that Portage <3.0.50 was buggy. Signed-off-by: James Le Cuirot

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

2023-08-16 Thread James Le Cuirot
On Wed, 2023-08-16 at 12:47 +0200, Michał Górny wrote: > On Wed, 2023-08-16 at 07:39 +0100, James Le Cuirot wrote: > > We dynamically determine Python's SITEDIR and INCLUDEDIR using the build > > host's Python. This breaks down when the build host's prefix differs >

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

2023-08-16 Thread James Le Cuirot
ex. We would need to take this approach for PYTHON_LIBPATH and PYTHON_CONFIG, but these are only used by handful of packages. ${BROOT-${EPREFIX}} is needed rather than plain ${BROOT} for the same reason we need it for PYTHON, namely that Portage <3.0.50 was buggy. Signed-off-by: James Le Cuirot

[gentoo-dev] [PATCH] distutils-r1.eclass: Use gpep517's new prefix rewriting options

2023-08-23 Thread James Le Cuirot
It is okay for these to be given as an empty string. Signed-off-by: James Le Cuirot --- This cannot be applied until gpep517-14 is stable, but I'm just getting it reviewed in readiness. eclass/distutils-r1.eclass | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --

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

2023-08-25 Thread James Le Cuirot
We recently supported cross-prefix by rewriting PYTHON_SITEDIR and PYTHON_INCLUDEDIR from BROOT to EPREFIX. We now know that you can get sysconfig to use EPREFIX in the first place, which is cleaner. Signed-off-by: James Le Cuirot --- eclass/python-utils-r1.eclass | 14 ++ 1 file

[gentoo-dev] [PATCH] distutils-r1.eclass: Make use of gpep517's new build-wheel --prefix arg

2023-09-27 Thread James Le Cuirot
This fixes cross-prefix installations. Signed-off-by: James Le Cuirot --- eclass/distutils-r1.eclass | 1 + 1 file changed, 1 insertion(+) diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass index 56afcdc5bcb8..838162c6b0f8 100644 --- a/eclass/distutils-r1.eclass +++ b/eclass

[gentoo-dev] [PATCH v2] distutils-r1.eclass: Make use of gpep517's new build-wheel --prefix arg

2023-09-28 Thread James Le Cuirot
This fixes cross-prefix installations. Signed-off-by: James Le Cuirot --- eclass/distutils-r1.eclass | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass index 56afcdc5bcb8..1cc91110dccf 100644 --- a/eclass/distutils-r1

Re: [gentoo-dev] [PATCH] distutils-r1.eclass: Make use of gpep517's new build-wheel --prefix arg

2023-09-28 Thread James Le Cuirot
On Thu, 2023-09-28 at 02:15 +0100, Sam James wrote: > James Le Cuirot writes: > > > This fixes cross-prefix installations. > > Do we need to crank the minimum version we depend on for gpep517 then? Woops, yes. Got over-excited when I saw it was stabilised. Thanks.

[gentoo-dev] [PATCH] eclass/go-env.eclass: add helper to set compile env

2023-11-01 Thread James Le Cuirot
of existing Go packages. Signed-off-by: Thilo Fromm Closes: https://github.com/gentoo/gentoo/pull/33539 Signed-off-by: James Le Cuirot --- eclass/go-env.eclass | 48 +++ eclass/go-module.eclass | 5 +++- eclass/golang-vcs-snapshot.eclass |

[gentoo-dev] [PATCH] toolchain-funcs.eclass: Add functions to get pointer size in bytes

2023-11-06 Thread James Le Cuirot
tc-get-ptr-size for CHOST and tc-get-build-ptr-size for CBUILD. Closes: https://bugs.gentoo.org/328401 Signed-off-by: James Le Cuirot --- eclass/toolchain-funcs.eclass | 14 ++ 1 file changed, 14 insertions(+) diff --git a/eclass/toolchain-funcs.eclass b/eclass/toolchain

[gentoo-dev] [PATCH V2 0/4] eclass/go-env.eclass: add helper to enable cross compiling

2023-11-19 Thread James Le Cuirot
See the GitHub link for earlier discussion. This still doesn't work for cross-prefix builds, unless you set CGO_ENABLED=1, but fixing that involves different code and can be done later. https://github.com/gentoo/gentoo/pull/33539

[gentoo-dev] [PATCH 1/4] eclass/go-env.eclass: add helper to set compile env

2023-11-19 Thread James Le Cuirot
function go-env_set_compile_environment() intended to be called by other Go eclasses in an early build stage. Ebuilds may also explicitly call this function. Signed-off-by: Thilo Fromm Signed-off-by: James Le Cuirot --- eclass/go-env.eclass | 48 1 file changed, 48 insert

[gentoo-dev] [PATCH 2/4] eclass/go-module.eclass: export compile env in src_unpack

2023-11-19 Thread James Le Cuirot
From: Thilo Fromm This change calls go-env_set_compile_environment in go-module's src_unpack to set up a sane compile environment early in the go build process. This un-breaks cross compiling of all golang ebuilds that inherit go-module. Signed-off-by: Thilo Fromm Signed-off-by: Jam

[gentoo-dev] [PATCH 3/4] eclass/golang-vcs-snapshot.eclass: set up compile env

2023-11-19 Thread James Le Cuirot
igned-off-by: James Le Cuirot --- eclass/golang-vcs-snapshot.eclass | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/eclass/golang-vcs-snapshot.eclass b/eclass/golang-vcs-snapshot.eclass index 9c199bbbd8c5..d34b8a6e913d 100644 --- a/eclass/golang-vcs-snapshot.eclass +++ b/e

[gentoo-dev] [PATCH 4/4] eclass/golang-vcs.eclass: set up compile env

2023-11-19 Thread James Le Cuirot
b.com/gentoo/gentoo/pull/33539 Signed-off-by: James Le Cuirot --- eclass/golang-vcs.eclass | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/eclass/golang-vcs.eclass b/eclass/golang-vcs.eclass index 7558db4776cb..6f7a837bc15f 100644 --- a/eclass/golang-vcs.eclass +++ b/e

Re: [gentoo-dev] [RFC PATCH 00/10] Upgrading cups-filters to 2.0.0

2023-12-05 Thread James Le Cuirot
On Tue, 2023-12-05 at 00:20 -0500, Eli Schwartz wrote: > I've been working with Sam for a bit on this update. It's a bit of a > fiddly one, as a lot of stuff has changed upstream. It's probably best > described via my proposed news post. Please review. It would also be > quite nice to get a bit of

Re: [gentoo-dev] RFC: Setting default HOME_MODE in /etc/login.defs

2024-02-11 Thread James Le Cuirot
On Sun, 2024-02-11 at 09:00 +0100, Ulrich Mueller wrote: > > > > > > On Sat, 10 Feb 2024, Daniel Simionato wrote: > > >  I'd like to start a discussion regarding setting HOME_MODE by default in > > the /etc/login.defs file (owned by sys-apps/shadow package). > > > Upstream keeps HOME_MODE comment

Re: [gentoo-dev] Important note on tinderbox behavior

2024-02-23 Thread James Le Cuirot
On Fri, 2024-02-23 at 15:35 +0100, Agostino Sarubbo wrote: > Dear all, > > TL;DR: tinderbox will skip packages with know failures > > it's a matter of fact that on bugzilla there are hundreds of bugs that > tinderbox continues to reproduce. > > That results in a waste of resources and time. >

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

2024-03-02 Thread 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 changed, 1 insertion(+), 1

[gentoo-dev] Last rites: games-sports/gracer

2024-03-30 Thread James Le Cuirot
# James Le Cuirot (2024-03-30) # Old, ugly, broken, and requires OSS sound. Removal on 2024-04-30. # Bug #928066. games-sports/gracer signature.asc Description: This is a digitally signed message part

Re: [gentoo-dev] Current unavoidable use of xz utils in Gentoo

2024-04-01 Thread James Le Cuirot
On Mon, 2024-04-01 at 20:51 +0200, Kévin GASPARD DE RENEFORT wrote: > > Thanks for clarifying that, it wasn't clear to me when I read the > > earlier e-mail. > > > > Personally I think the long term solution is to identify critical code > > bases that have a low bus factor before the bad actors do

[gentoo-dev] Last rites: games-board/xmille

2024-04-05 Thread James Le Cuirot
# James Le Cuirot (2024-04-05) # Dead upstream and broken beyond repair. Removal on 2024-05-05. Bug #928591. games-board/xmille signature.asc Description: This is a digitally signed message part

Re: [gentoo-dev] [PATCH] toolchain-funcs.eclass: tc-env_build: override (E)SYSROOT

2024-04-19 Thread James Le Cuirot
On Fri, 2024-04-19 at 12:14 -0400, Mike Gilbert wrote: > When using the CBUILD toolchain, it makes no sense to look for headers > and libraries in the CHOST-based SYSROOT. > > Signed-off-by: Mike Gilbert > --- > eclass/toolchain-funcs.eclass | 8 +++- > 1 file changed, 7 insertions(+), 1 del

Re: [gentoo-dev] Up for grabs: Raspberry Pi stack

2024-04-20 Thread James Le Cuirot
On Sat, 2024-04-20 at 04:24 +0100, Sam James wrote: > I don't have the hardware set up at the moment (and haven't for a while) > to test this properly. > > The following packages are up for grabs: > * media-libs/raspberrypi-userland-bin > * sys-kernel/raspberrypi-image > > I dropped myself as a c

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

2024-06-07 Thread James Le Cuirot
It is going to inherit rust-toolchain, which is EAPI 8 only. Signed-off-by: James Le Cuirot --- There are still some EAPI 7 ebuilds left right now, but I'm working on that! eclass/cargo.eclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eclass/cargo.eclass b/e

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

2024-06-07 Thread James Le Cuirot
crate, which is often used to build non-Rust code. It uses the usual variables (CC, CFLAGS, etc) for the target. Signed-off-by: James Le Cuirot --- eclass/cargo.eclass | 17 - 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/eclass/cargo.eclass b/eclass/cargo.eclass

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

2024-06-09 Thread James Le Cuirot
# James Le Cuirot (2024-06-09) # Download no longer available, license prevents mirroring. # Removal on 2024-07-09. Bug #791115. games-strategy/darwinia-demo signature.asc Description: This is a digitally signed message part

[gentoo-dev] Last rites: games-fps/wolfgl

2024-06-09 Thread James Le Cuirot
# James Le Cuirot (2024-06-09) # Super ancient and broken 32-bit only port. Package ECWolf instead. # Removal on 2024-07-09. Bug #926467. games-fps/wolfgl signature.asc Description: This is a digitally signed message part

[gentoo-dev] Last rites: games-emulation/gcube

2024-06-09 Thread James Le Cuirot
# James Le Cuirot (2024-06-09) # Long dead upstream. Probably broken. Use games-emulation/dolphin instead. # Removal on 2024-07-09. Bug #739140. games-emulation/gcube signature.asc Description: This is a digitally signed message part

[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

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

2024-06-11 Thread James Le Cuirot
crate, which is often used to build non-Rust code. It uses the usual variables (CC, CFLAGS, etc) for the target. Signed-off-by: James Le Cuirot --- eclass/cargo.eclass | 17 - 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/eclass/cargo.eclass b/eclass/cargo.eclass

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

2024-06-13 Thread James Le Cuirot
On Thu, 2024-06-13 at 17:23 +0200, Michał Górny wrote: > 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 n

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

2024-06-13 Thread James Le Cuirot
are some multilib Cargo-based ebuilds that always set the target ABI, even when not cross-compiling. It would be simpler to do this in general, so once ebuilds have been updated to use this new helper, I might change the eclass again accordingly. Signed-off-by: James Le Cuirot --- eclass

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

2024-06-14 Thread James Le Cuirot
On Thu, 2024-06-13 at 21:32 +, Lucio Sauer wrote: > On Thu, Jun 13, 2024 at 04:03:44PM +0100, James Le Cuirot wrote: > > Several Cargo-based ebuilds cannot use cargo_src_install for various > > reasons and manually install binaries from within the target directory > > ins

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

2024-06-15 Thread James Le Cuirot
are some multilib Cargo-based ebuilds that always set the target ABI, even when not cross-compiling. It would be simpler to do this in general, so once ebuilds have been updated to use this new helper, I might change the eclass again accordingly. Signed-off-by: James Le Cuirot --- eclass

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

2024-06-15 Thread James Le Cuirot
On Sat, 2024-06-15 at 17:56 -0400, Ionen Wolkens wrote: > On Sat, Jun 15, 2024 at 08:14:34PM +0200, Florian Schmaus wrote: > > On 13/06/2024 17.03, James Le Cuirot wrote: > > > Several Cargo-based ebuilds cannot use cargo_src_install for various > > > reasons and man

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

2024-06-20 Thread James Le Cuirot
# James Le Cuirot (2024-06-20) # Apparently a good game, but you cannot buy the full Linux version any more. # Get the HD version from Steam or the Windows original from GOG instead. # Removal on 2024-07-20. Bug #934637. games-strategy/majesty-demo signature.asc Description: This is a

[gentoo-dev] Last rites: games-util/xgame and games-util/xgame-gtk2

2024-06-20 Thread James Le Cuirot
# James Le Cuirot (2024-06-20) # Ancient, dead upstream, X11-based, probably doesn't work any more, and there # are better ways of running games in different sessions now. # Removal on 2024-07-20. Bug #934640. games-util/xgame games-util/xgame-gtk2 signature.asc Description: This

Re: [gentoo-dev] [PATCH 0/5] Fixing automagic dependencies on gtk[wayland,X],

2024-06-23 Thread James Le Cuirot
On Sun, 2024-06-23 at 13:35 -0400, Eli Schwartz wrote: > There is a bug in how gtk 3 and gtk 4 are built against by other > packages. GTK supports optionally enabling X and wayland support -- when > you do so, the ABI of GTK changes. > > It is historically common for X11 packages to check for a ma

Re: [gentoo-dev] Arch Status and Future Plans

2024-06-25 Thread James Le Cuirot
On Tue, 2024-06-25 at 20:33 +0300, Arthur Zamarin wrote: > x86 > > Stable 32-bit arch. I'll be honest, I don't believe at all this should > be stable arch anymore. I propose making it dev arch, and mass-dekeyword > stuff we got because of inertia. This arch is close to HW die. (l

Re: [gentoo-dev] [PATCH] unpacker.eclass: Drop support for EAPI 6

2024-07-01 Thread James Le Cuirot
On Mon, 2024-07-01 at 23:36 +0200, Ulrich Müller wrote: > Signed-off-by: Ulrich Müller > --- > eclass/unpacker.eclass | 11 --- > 1 file changed, 4 insertions(+), 7 deletions(-) > > diff --git a/eclass/unpacker.eclass b/eclass/unpacker.eclass > index 2957ca02d3f4..91520a36d16a 100644 > -

[gentoo-dev] Last rites: games-arcade/{spacerider,tuxdash,xsfcave}

2024-07-01 Thread James Le Cuirot
# James Le Cuirot (2024-07-01) # Ancient, dead upstream, generally awful. # Removal on 2024-08-01. Bugs #935307, #935308, #935309. games-arcade/spacerider games-arcade/tuxdash games-arcade/xsfcave signature.asc Description: This is a digitally signed message part

Re: [gentoo-dev] Last rites: games-arcade/{spacerider,tuxdash,xsfcave}

2024-07-02 Thread James Le Cuirot
On Tue, 2024-07-02 at 14:39 +0400, Vitaly Zdanevich wrote: > > On 7/2/24 14:12, Sam James wrote: > > > > Vitaly Zdanevich writes: > > > > > > > > Ancient > > > > > > Oh, ancient games are sooo bad, no ray tracing, no soul. > > > > > Please see https://wiki.gentoo.org/wiki/Project:Council/Code

[gentoo-dev] [PATCH 1/8] golang-vcs.eclass: Drop support for EAPI 6

2024-07-09 Thread James Le Cuirot
All such usage has gone. Signed-off-by: James Le Cuirot --- eclass/golang-vcs.eclass | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/eclass/golang-vcs.eclass b/eclass/golang-vcs.eclass index 6f7a837bc15fd..dee040505d237 100644 --- a/eclass/golang-vcs.eclass +++ b

[gentoo-dev] [PATCH 2/8] golang-vcs-snapshot.eclass: Drop support for EAPI 6

2024-07-09 Thread James Le Cuirot
All such usage has gone. Signed-off-by: James Le Cuirot --- eclass/golang-vcs-snapshot.eclass | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/eclass/golang-vcs-snapshot.eclass b/eclass/golang-vcs-snapshot.eclass index d34b8a6e913da..a91ddbbe36150 100644 --- a/eclass

[gentoo-dev] [PATCH 3/8] golang-build.eclass: Drop support for EAPI 6

2024-07-09 Thread James Le Cuirot
All such usage has gone. Signed-off-by: James Le Cuirot --- eclass/golang-build.eclass | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/eclass/golang-build.eclass b/eclass/golang-build.eclass index 235313bd70f5d..b5218ce36572f 100644 --- a/eclass/golang-build.eclass

[gentoo-dev] [PATCH 4/8] golang-base.eclass: Drop support for EAPI 5 and 6

2024-07-09 Thread James Le Cuirot
All such usage has gone. Signed-off-by: James Le Cuirot --- eclass/golang-base.eclass | 13 + 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/eclass/golang-base.eclass b/eclass/golang-base.eclass index 4bba00200cfc9..a2996e3b06836 100644 --- a/eclass/golang-base.eclass

[gentoo-dev] [PATCH 5/8] go-env.eclass: Establish EAPI 7 and 8 as supported

2024-07-09 Thread James Le Cuirot
Signed-off-by: James Le Cuirot --- eclass/go-env.eclass | 15 +++ 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/eclass/go-env.eclass b/eclass/go-env.eclass index 1a2c9787a146b..c34c634bb6003 100644 --- a/eclass/go-env.eclass +++ b/eclass/go-env.eclass @@ -6,11 +6,17

[gentoo-dev] [PATCH 6/8] go-env.eclass: Rewrite the go-env_goarch() logic

2024-07-09 Thread James Le Cuirot
The previous logic was flawed, incomplete, and needlessly made use of USE flags. We can rely on the tuple instead. Tested against all the tuples we have in our profiles. Signed-off-by: James Le Cuirot --- eclass/go-env.eclass | 32 +--- 1 file changed, 17 insertions

[gentoo-dev] [PATCH 7/8] go-env.eclass: Add the go-env_goos() helper function

2024-07-09 Thread James Le Cuirot
This code is taken from dev-lang/go. No other packages have code like this, but some erroneously call `go env GOOS`, which is bad for cross-compiling. They should use this function instead. Signed-off-by: James Le Cuirot --- eclass/go-env.eclass | 18 ++ 1 file changed, 18

[gentoo-dev] [PATCH 8/8] dev-lang/go: Use go-env.eclass in 1.22.5 and 9999

2024-07-09 Thread James Le Cuirot
This deduplicates some helper functions. Signed-off-by: James Le Cuirot --- dev-lang/go/go-1.22.5.ebuild | 65 +--- dev-lang/go/go-.ebuild | 65 +--- 2 files changed, 18 insertions(+), 112 deletions(-) diff --git a/dev-lang

[gentoo-dev] [PATCH 1/3] cargo.eclass: Add cargo_env helper and use it in compile, test, install

2024-07-24 Thread James Le Cuirot
now kept local to each invocation of this helper, preventing leakage. Signed-off-by: James Le Cuirot --- eclass/cargo.eclass | 37 +++-- 1 file changed, 23 insertions(+), 14 deletions(-) diff --git a/eclass/cargo.eclass b/eclass/cargo.eclass index 7db34efb4e174

[gentoo-dev] [PATCH 2/3] cargo.eclass: Handle LDFLAGS and RUSTFLAGS better

2024-07-24 Thread James Le Cuirot
use of CARGO_BUILD_RUSTFLAGS while cross-compiling, but as far as I can tell, it should work. Signed-off-by: James Le Cuirot --- eclass/cargo.eclass | 47 - 1 file changed, 34 insertions(+), 13 deletions(-) diff --git a/eclass/cargo.eclass b/eclass

[gentoo-dev] [PATCH 3/3] cargo.eclass: Explicitly tell rustc not to strip binaries

2024-07-24 Thread James Le Cuirot
Most projects don't strip binaries in release mode by default, but there are exceptions like app-misc/broot. Signed-off-by: James Le Cuirot --- eclass/cargo.eclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eclass/cargo.eclass b/eclass/cargo.eclass

[gentoo-dev] [PATCH 1/3 v2] cargo.eclass: Add cargo_env helper and use it in compile, test, install

2024-07-24 Thread James Le Cuirot
now kept local to each invocation of this helper, preventing leakage. Signed-off-by: James Le Cuirot --- eclass/cargo.eclass | 37 +++-- 1 file changed, 23 insertions(+), 14 deletions(-) diff --git a/eclass/cargo.eclass b/eclass/cargo.eclass index 7db34efb4e174

[gentoo-dev] [PATCH 2/3 v2] cargo.eclass: Handle LDFLAGS and RUSTFLAGS better

2024-07-24 Thread James Le Cuirot
use of CARGO_BUILD_RUSTFLAGS while cross-compiling, but as far as I can tell, it should work. Signed-off-by: James Le Cuirot --- eclass/cargo.eclass | 45 - 1 file changed, 32 insertions(+), 13 deletions(-) diff --git a/eclass/cargo.eclass b/eclass

[gentoo-dev] [PATCH 3/3 v2] cargo.eclass: Explicitly tell rustc not to strip binaries

2024-07-24 Thread James Le Cuirot
Most projects don't strip binaries in release mode by default, but there are exceptions like app-misc/broot. Signed-off-by: James Le Cuirot --- eclass/cargo.eclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eclass/cargo.eclass b/eclass/cargo.eclass

Re: [gentoo-dev] [PATCH] savedconfig.eclass: Drop support for EAPI 6

2024-07-25 Thread James Le Cuirot
On Thu, 2024-07-25 at 07:35 +0200, Ulrich Müller wrote: > Signed-off-by: Ulrich Müller > --- > eclass/savedconfig.eclass | 12 ++-- > 1 file changed, 6 insertions(+), 6 deletions(-) > > diff --git a/eclass/savedconfig.eclass b/eclass/savedconfig.eclass > index cc5748543078..65a1f3bfd800

Re: [gentoo-dev] [PATCH 1/3] cargo.eclass: Add cargo_env helper and use it in compile, test, install

2024-07-25 Thread James Le Cuirot
On Wed, 2024-07-24 at 18:14 -0400, Eli Schwartz wrote: > On 7/24/24 6:07 PM, James Le Cuirot wrote: > > Rust packages have a tendency to rebuild parts during test and install. > > It is not clear whether this can be addressed. We were therefore relying > > on some environment

[gentoo-dev] [PATCH 1/5 v3] cargo.eclass: Add cargo_env helper and use it in compile, test, install

2024-07-25 Thread James Le Cuirot
now kept local to each invocation of this helper, preventing leakage. Signed-off-by: James Le Cuirot --- eclass/cargo.eclass | 37 +++-- 1 file changed, 23 insertions(+), 14 deletions(-) diff --git a/eclass/cargo.eclass b/eclass/cargo.eclass index 7db34efb4e174

[gentoo-dev] [PATCH 2/5 v3] cargo.eclass: Handle LDFLAGS and RUSTFLAGS better

2024-07-25 Thread James Le Cuirot
use of CARGO_BUILD_RUSTFLAGS while cross-compiling, but as far as I can tell, it should work. Signed-off-by: James Le Cuirot --- eclass/cargo.eclass | 47 +++-- 1 file changed, 33 insertions(+), 14 deletions(-) diff --git a/eclass/cargo.eclass b/eclass

[gentoo-dev] [PATCH 3/5 v3] cargo.eclass: Explicitly tell rustc not to strip binaries

2024-07-25 Thread James Le Cuirot
Most projects don't strip binaries in release mode by default, but there are exceptions like app-misc/broot. Signed-off-by: James Le Cuirot --- eclass/cargo.eclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eclass/cargo.eclass b/eclass/cargo.eclass

[gentoo-dev] [PATCH 4/5 v3] cargo.eclass: Shadow flag variables so that LTO filtering remains local

2024-07-25 Thread James Le Cuirot
Signed-off-by: James Le Cuirot --- eclass/cargo.eclass | 9 + 1 file changed, 9 insertions(+) diff --git a/eclass/cargo.eclass b/eclass/cargo.eclass index 44d3f7ee31f59..9f0bffee0e048 100644 --- a/eclass/cargo.eclass +++ b/eclass/cargo.eclass @@ -532,7 +532,16 @@ cargo_src_configure

[gentoo-dev] [PATCH 5/5 v3] distutils-r1.eclass: Use cargo_env when appropriate for flag handling

2024-07-25 Thread James Le Cuirot
cargo_env handles linker flags and enables cross-compiling. It also handles LTO filtering, so we can remove that from this eclass. Signed-off-by: James Le Cuirot --- eclass/distutils-r1.eclass | 16 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/eclass/distutils

[gentoo-dev] [PATCH v4 0/6] cargo.eclass: Handle LDFLAGS and RUSTFLAGS better

2024-07-25 Thread James Le Cuirot
Sorry for yet another iteration of this. I noticed that the build host flags were not being applied to rustc when cross-compiling. Upon investigation, I found that this isn't actually possible right now. I have reworked it to be close to what we need when it does become possible. James Le C

[gentoo-dev] [PATCH 1/6] cargo.eclass: Use newer Cargo config file name

2024-07-25 Thread James Le Cuirot
"config" is deprecated and "config.toml" has been valid for ages. Signed-off-by: James Le Cuirot --- eclass/cargo.eclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eclass/cargo.eclass b/eclass/cargo.eclass index 7db34efb4e174..aab28dbbac167

[gentoo-dev] [PATCH 2/6] cargo.eclass: Add cargo_env helper and use it in compile, test, install

2024-07-25 Thread James Le Cuirot
now kept local to each invocation of this helper, preventing leakage. Signed-off-by: James Le Cuirot --- eclass/cargo.eclass | 37 +++-- 1 file changed, 23 insertions(+), 14 deletions(-) diff --git a/eclass/cargo.eclass b/eclass/cargo.eclass index aab28dbbac167

[gentoo-dev] [PATCH 3/6] cargo.eclass: Handle LDFLAGS and RUSTFLAGS better

2024-07-25 Thread James Le Cuirot
host. It should not be necessary for ebuilds to figure out which Rust ABI is applicable in order to set flags only for the target host, so the helper reads from a simple CARGO_TARGET_RUSTFLAGS variable without the triple for convenience. Signed-off-by: James Le Cuirot --- eclass/cargo.eclass | 65

[gentoo-dev] [PATCH 4/6] cargo.eclass: Explicitly tell rustc not to strip binaries

2024-07-25 Thread James Le Cuirot
Most projects don't strip binaries in release mode by default, but there are exceptions like app-misc/broot. Signed-off-by: James Le Cuirot --- eclass/cargo.eclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eclass/cargo.eclass b/eclass/cargo.eclass

[gentoo-dev] [PATCH 5/6] cargo.eclass: Shadow flag variables so that LTO filtering remains local

2024-07-25 Thread James Le Cuirot
This is currently done for Cargo by distutils-r1.eclass. The next commit will remove that code, leaving cargo_env responsible for it. Signed-off-by: James Le Cuirot --- eclass/cargo.eclass | 9 + 1 file changed, 9 insertions(+) diff --git a/eclass/cargo.eclass b/eclass/cargo.eclass

[gentoo-dev] [PATCH 6/6] distutils-r1.eclass: Use cargo_env when appropriate for flag handling

2024-07-25 Thread James Le Cuirot
cargo_env handles linker flags and enables cross-compiling. It also handles LTO filtering, so we can remove that from this eclass. Signed-off-by: James Le Cuirot --- eclass/distutils-r1.eclass | 16 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/eclass/distutils

[gentoo-dev] [PATCH 7/8] distutils-r1.eclass: Add python_get_stdlib helper function

2024-07-25 Thread James Le Cuirot
This is just like python_get_sitedir, but it returns the stdlib directory such as /usr/lib/python3.12. This is useful for locating the sysconfigdata file. Signed-off-by: James Le Cuirot --- eclass/python-utils-r1.eclass | 23 +++ 1 file changed, 23 insertions(+) diff --git

[gentoo-dev] [PATCH 8/8] distutils-r1.eclass: Support cross-compiling with PyO3

2024-07-25 Thread James Le Cuirot
Only one variable needs to be set. For details, see https://pyo3.rs/latest/building-and-distribution.html#cross-compiling. Signed-off-by: James Le Cuirot --- eclass/distutils-r1.eclass | 3 +++ 1 file changed, 3 insertions(+) diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass

[gentoo-dev] Last rites: media-tv/v4l-utils

2024-07-29 Thread James Le Cuirot
# James Le Cuirot (2024-07-29) # Superseded by media-libs/libv4l[utils]. # Removal on 2024-08-29. Bug #936674. media-tv/v4l-utils signature.asc Description: This is a digitally signed message part

[gentoo-dev] [PATCH 0/2] cargo.eclass: Change RUSTFLAGS approach following recent build failures

2024-08-07 Thread James Le Cuirot
is a little controverial, using app-misc/yq's tomlq (a jq wrapper) to read flags from the project's config files. On the plus side, it should avoid upstreams complaining that we're not using their flags. See what you think. I've kept it in a separate commit so that it

[gentoo-dev] [PATCH 1/2] cargo.eclass: Change RUSTFLAGS approach following recent build failures

2024-08-07 Thread James Le Cuirot
ready being overridden by users and ebuilds setting RUSTFLAGS themselves. Closes: https://bugs.gentoo.org/937453 Closes: https://bugs.gentoo.org/937470 Signed-off-by: James Le Cuirot --- eclass/cargo.eclass | 65 +++-- 1 file changed, 39 insertions(+), 26 dele

[gentoo-dev] [PATCH 2/2] cargo.eclass: Preserve project-specific [build] flags by reading config

2024-08-07 Thread James Le Cuirot
environment variable. Signed-off-by: James Le Cuirot --- eclass/cargo.eclass | 28 +--- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/eclass/cargo.eclass b/eclass/cargo.eclass index 6d4cf1b425eb..dea8c49e4585 100644 --- a/eclass/cargo.eclass +++ b/eclass

Re: [gentoo-dev] [PATCH 2/2] cargo.eclass: Preserve project-specific [build] flags by reading config

2024-08-07 Thread James Le Cuirot
On Wed, 2024-08-07 at 19:39 +0200, Michał Górny wrote: > On Wed, 2024-08-07 at 16:52 +0100, James Le Cuirot wrote: > > The flags we set an a target-specific environment variable override any > > generic [build] flags set by the project, requiring ebuilds to set these > >

Re: [gentoo-dev] [PATCH] lua-utils.eclass: use BROOT or ESYSROOT where appropriate

2024-08-19 Thread James Le Cuirot
On Sun, 2024-08-18 at 14:31 -0400, Mike Gilbert wrote: > The LUA variable points to a lua binary that is likely to be executed by > the build system. Use BROOT for this. > > Use ESYSROOT for the pkg-config symlink, since this is likely used for > linking a library. > > Signed-off-by: Mike Gilbert

Re: [gentoo-dev] RFC: gles global USE flag, USE=opengl clarifying

2018-07-23 Thread James Le Cuirot
ARM, it can be a little frustrating so any improvements are very welcome. +1 -- James Le Cuirot (chewi) Gentoo Linux Developer pgpCzqykaKfOp.pgp Description: OpenPGP digital signature

Re: [gentoo-dev] RFC: gles global USE flag, USE=opengl clarifying

2018-07-24 Thread James Le Cuirot
ease in years but Neverball's git master supports GLESv1! Even my Vivante-based ARM board can run it with OpenGL though as it only requires 1.4 or something. -- James Le Cuirot (chewi) Gentoo Linux Developer

[gentoo-dev] [arm17] Background to ARM 17.0 profile migration

2018-07-24 Thread James Le Cuirot
olchain-funcs.eclass patch 3. A crossdev patch Catalyst will need updating too but I will leave it to the RelEng team to decide whether they want to update the existing specs or create new ones. Cheers, -- James Le Cuirot (chewi) Gentoo Linux Developer pgpuweuydAtyN.pgp Description: OpenPGP digital signature

[gentoo-dev] [arm17] [News] ARM 17.0 profile migration with CHOST change

2018-07-24 Thread James Le Cuirot
on of this kind can justify rebuilding @world but with ARM typically being very slow, the script does just the minimum necessary. You are free to rebuild @world yourself after running it. -- James Le Cuirot (chewi) Gentoo Linux Developer pgpMdWOiCWQCY.pgp Description: OpenPGP digital signature

[gentoo-dev] [arm17] [PATCH] toolchain-funcs.eclass: Update tc-is-softfloat for new ARM triplets

2018-07-24 Thread James Le Cuirot
The triplet will change from armv7a-hardfloat-linux-gnueabi to armv7a-unknown-linux-gnueabihf or similar. The function already treated the latter as hardfloat but ambiguous triplets such as arm-unknown-linux-gnueabi will change from hardfloat to softfloat in line with most everyone else. However, w

[gentoo-dev] [arm17] [PATCH] crossdev: Make armv[67] default to hardfloat following eclass change

2018-07-24 Thread James Le Cuirot
armv7a-unknown-linux-gnueabi would have previously been treated as hardfloat but is now softfloat. I have removed the armv7a-hardfloat-linux-gnueabi-7.3.0 example from the README to avoid confusion even though it does still work. Signed-off-by: James Le Cuirot --- README | 3 +-- crossdev

Re: [gentoo-dev] [arm17] [PATCH] toolchain-funcs.eclass: Update tc-is-softfloat for new ARM triplets

2018-07-25 Thread James Le Cuirot
# when -mfloat-abi is > > soft, not softfp. > > + if ${CTARGET}-cpp -E - > > <<< __SOFTFP__ 2>/dev/null | grep -q __SOFTFP__; then > > + > > echo "softfp

Re: [gentoo-dev] [arm17] [News] ARM 17.0 profile migration with CHOST change

2018-07-25 Thread James Le Cuirot
heck this in someplace? (gentoo/scripts?) I knew someone would ask that! What is this gentoo/scripts you speak of? I don't feel too strongly about it but Gist is a handy place for tracking changes to stand-alone scripts. I expect it may need a tweak or two after some feedback. -- Ja

Re: [gentoo-dev] [arm17] [PATCH] toolchain-funcs.eclass: Update tc-is-softfloat for new ARM triplets

2018-07-25 Thread James Le Cuirot
On Wed, 25 Jul 2018 00:34:16 +0100 Sergei Trofimovich wrote: > On Wed, 25 Jul 2018 00:09:28 +0100 > James Le Cuirot wrote: > > > The triplet will change from armv7a-hardfloat-linux-gnueabi to > > armv7a-unknown-linux-gnueabihf or similar. The function already >

<    1   2   3   4   5   6   >