In multilib.eclass, multilib_toolchain_setup() overrides the environment
variables PKG_CONFIG_LIBDIR, PKG_CONFIG_PATH,
PKG_CONFIG_SYSTEM_INCLUDE_PATH, and PKG_CONFIG_SYSTEM_LIBRARY_PATH so
that the .pc files for the correct ABI will be found and used.
As a reminder, pkgconfig is normally called upon to find packages that
have been installed into the *host* system — i.e., packages listed in
DEPEND. The "Ebuild writing: Variables" page[1] describes the SYSROOT
variable as "The absolute path to the root directory containing build
dependencies satisfied by DEPEND" and ESYSROOT as "The same as either
EROOT, BROOT or SYSROOT depending on the value of SYSROOT. Commonly used
to reference the location of headers and libraries at build time."
In order to support the use case of setting SYSROOT to a path other than
"/" while building packages for ABIs other than the default ABI, change
multilib.eclass so that it prefixes the PKG_CONFIG_* vars with
${ESYSROOT} rather than ${EPREFIX}.
For Gentoo users who do not set SYSROOT, this change will have no
bearing.
This change could conceivably affect crossdev users, but I think
typically crossdev sysroots do not support multilib anyway, so this
change wouldn't affect them either.
[1] https://devmanual.gentoo.org/ebuild-writing/variables/
Closes: https://bugs.gentoo.org/945108
Signed-off-by: Matt Whitlock <gentoo@mattwhitlock.name>
Part-of: https://github.com/gentoo/gentoo/pull/43088
Closes: https://github.com/gentoo/gentoo/pull/43088
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
mgorny and I discussed this ages ago but I never implemented it. dwz
is only used for `find-debuginfo` which basically nobody is going to use
in Gentoo (at least right now, see bug #938763 and bug #947387).
Avoid pulling in dwz on the system of everybody who wants installsources. This
is especially important as I'm contemplating proposing having debugedit in
@system.
Bug: https://bugs.gentoo.org/938763
Bug: https://bugs.gentoo.org/947387
Signed-off-by: Sam James <sam@gentoo.org>
I am going to maintain parallel releases of claude-code for a couple
weeks, just to ensure that the new ebuild style doesn't break anyone.
The -r1 uses a direct tarball download from the npm mirrors and
extracts it. The stable, not-r1 continues to use the normal npm
install method.
Signed-off-by: Jay Faulkner <jayf@gentoo.org>
It does two things:
1) define -DNDEBUG if off, which is used by list.c;
2) sets -pedantic -Werror
Given edac-utils is dead, I doubt 1) is that important, and 2) is causing
issues, drop it.
Also, cleanup now-redundant src_configure as w/ EAPI 8, we get --disable-static
for free.
Closes: https://bugs.gentoo.org/888938
Closes: https://bugs.gentoo.org/898544
Signed-off-by: Sam James <sam@gentoo.org>