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?
>
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(-)
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
> 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
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
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
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
# 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
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
${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
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
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
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
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
>
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
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 --
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
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
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
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.
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 |
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
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
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
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
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
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
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
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
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.
>
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
# 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
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
# 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
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
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
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
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
# 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
# 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
# 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
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
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
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
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
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
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
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
# 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
# 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
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
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
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
> -
# 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
"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
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
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
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
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
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
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
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
# 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
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
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
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
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
> >
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
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
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
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
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
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
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
# when -mfloat-abi is
> > soft, not softfp.
> > + if ${CTARGET}-cpp -E -
> > <<< __SOFTFP__ 2>/dev/null | grep -q __SOFTFP__; then
> > +
> > echo "softfp
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
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
>
201 - 300 of 529 matches
Mail list logo