Commit Graph
6809 Commits
Author SHA1 Message Date
Ulrich Müller 17c11b3d82 plasma-mobile.kde.org.eclass: Mark as DEAD
Acked-by: Andreas Sturmlechner <asturm@gentoo.org>
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
2024-08-26 15:04:25 +02:00
Ulrich Müller dc3043d2bc eqawarn.eclass: Mark as DEAD
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
2024-08-26 15:04:24 +02:00
Ulrich Müller 1118079e4f eapi7-ver.eclass: Mark as DEAD
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
2024-08-26 15:04:23 +02:00
Ulrich Müller d1d31339c5 versionator.eclass: Mark as DEAD
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
2024-08-26 15:04:23 +02:00
Andreas Sturmlechner 37f7986b81 ecm-common.eclass: Add _ecm-common-check_deps to simplify pkg_setup()
Bug: https://bugs.gentoo.org/938507
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2024-08-26 08:33:46 +02:00
Andrew Ammerlaan 0dd42ac730 kernel-build.eclass: fix module signing with unspecified key
MODULES_SIGN_KEY may be unset when using USE=modules-sign. Fix an issue
introduced in e290c3c78b that breaks this
configuration due to modules-sign-key.config not existing.

Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
Closes: https://github.com/gentoo/gentoo/pull/38287
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
2024-08-25 17:36:53 +02:00
Rahul Sandhu 75d12a333e selinux-policy-2.eclass: Load unconfined module for mcs/mls policy types
Currently, there doesn't seem to be a reason to block the loading of
the unconfined policy module on the mcs and mls policy types. Let's
ensure we load the unconfined policy module unconditionally in the
eclass.

The loading of the unconfined policy module was initially blocked in
82e30f21ab, however as far as I can tell,
there is no longer a reason to do this. Considering there are use flags
for sec-policy/selinux-base and sec-policy/selinux-base-policy for the
unconfined policy module, and using the unconfined policy module is
supported for the mcs and mls policy types, it makes sense to no longer
block the loading of the policy module. It is also worth mentioning
that grabbing an selinux stage3 has the unconfined policy module
already loaded.

As the strict policy is effectively the targeted policy without support
for the unconfined domain, it makes sense to not load the unconfined
module for strict policy types. Let's keep a conitional check for the
strict policy to ensure we don't load the unconfined module in that
case.

Closes: https://bugs.gentoo.org/933709
Closes: https://github.com/gentoo/gentoo/pull/37931
Signed-off-by: Rahul Sandhu <rahul@sandhuservices.dev>
Signed-off-by: Jason Zaman <perfinion@gentoo.org>
2024-08-24 17:48:19 -07:00
Michał Górny 74140c80f7 kernel-build.eclass: Merge two ifs in kernel-build_merge_configs()
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2024-08-23 21:25:40 +02:00
Michał Górny e290c3c78b kernel-build.eclass: Apply savedconfig on top of merged configs
Move applying savedconfig from src_configure() into
kernel-build_merge_configs(), in order to make it possible to override
saved config options.  Previously, the saved config would
unconditionally overwrite everything, which could be between
inconvenient and plain broken (particularly if savedconfig contained
signing key paths referring to ${T}).

The new logic applies saved config via merge method, on top
of the default config along with ebuild and eclass overrides.  However,
MODULES_SIGN_KEY* and user config snippets do override saved config
for convenience.

Closes: https://bugs.gentoo.org/938130
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2024-08-23 21:25:40 +02:00
Andreas Sturmlechner 62094b61a0 ecm-common.eclass: Fix inverted logic in pkg_setup() re KFMIN
Closes: https://bugs.gentoo.org/938312
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2024-08-22 18:59:35 +02:00
Michał Górny 4e03f65e4c llvm.org.eclass: Add 20.0.0_pre20240822 snapshot
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2024-08-22 13:23:32 +02:00
Andreas Sturmlechner 595921bcb8 gear.kde.org.eclass: Drop obsolete SLOT 5 blockers
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2024-08-21 23:16:31 +02:00
Andreas Sturmlechner 29cc21181d ecm.eclass: Add ECM_REMOVE_FROM_INSTALL for install image file removal
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2024-08-21 23:07:42 +02:00
Andreas Sturmlechner 5ef231336f ecm.eclass: Add ECM_HANDBOOK="forceoff"
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2024-08-21 23:07:42 +02:00
Andreas Sturmlechner b541433c4a ecm.eclass: Add ecm_punt_po_install()
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2024-08-21 23:07:42 +02:00
Andreas Sturmlechner 67857f2e11 ecm-common.eclass: New eclass for standalone ECM common files handling
- ECM_INSTALL_ICONS and ECM_INSTALL_FILES arrays
- ecm-common_inject_heredoc() to inject custom CMake
- ECM_KCM_TARGETS to create desktop files out of json
  (emulating kcmutils_generate_desktop_file)
- ecm-common-check_deps() to add additional pkg_setup checks

Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2024-08-21 23:06:45 +02:00
Andreas Sturmlechner ab8d456f58 kde-apps/libkcompactdisc: Block SLOT 5 unconditionally
The only revdep is blocking the other slot as well.

Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2024-08-21 22:54:09 +02:00
Mike Gilbert 1f2079f01b eclass: remove marecki from maintainers
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
2024-08-20 16:16:58 -04:00
Mike Gilbert e723fd6d0e lua-utils.eclass: use BROOT or ESYSROOT where appropriate
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 <floppym@gentoo.org>
2024-08-20 16:06:06 -04:00
Robin H. Johnson b341ff7d28 virtualx.eclass: addpredict /dev/dri/ for Xvfb w/ mesa-24.2.0
Newer Mesa tries to access /dev/dri/ when used in Xvfb, and this
triggers a sandbox error; discovered and verified w/
sci-mathematics/fricas-1.3.11-r2.

Reference: https://public-inbox.gentoo.org/gentoo-dev/bb4927ba-5ced-3352-86bb-d87f37ceaab6@woodpecker.gentoo.org/T/#t
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2024-08-19 11:17:33 -07:00
Viorel Munteanu b1619cb5f7 toolchain-funcs.eclass: fix detecting ld.bfd
There is some more output from the compiler here.
We must use a regular expression to avoid a false positive from mold.

Acked-by: Sam James <sam@gentoo.org>
Signed-off-by: Viorel Munteanu <ceamac@gentoo.org>
2024-08-19 09:02:08 +03:00
Arsen Arsenović 92aece1db3 guile.eclass: new eclass, for guile multi-impl packages
Bug: https://bugs.gentoo.org/689408
Signed-off-by: Arsen Arsenović <arsen@gentoo.org>
2024-08-18 19:43:15 +02:00
Arsen Arsenović 4110a265b5 guile-single.eclass: new eclass, for single-impl guile packages
Bug: https://bugs.gentoo.org/689408
Signed-off-by: Arsen Arsenović <arsen@gentoo.org>
2024-08-18 19:43:15 +02:00
Arsen Arsenović 944c392114 guile-utils.eclass: new eclass, common code for guile packages
Bug: https://bugs.gentoo.org/689408
Signed-off-by: Arsen Arsenović <arsen@gentoo.org>
2024-08-18 19:43:15 +02:00
Sam James 8334456168 toolchain-funcs.eclass: tc-ld-force-bfd: mangle CFLAGS, CXXFLAGS too
This is kind of related to what Ionen mentioned at https://github.com/gentoo/gentoo/pull/28355#discussion_r1033001927
but a bit different.

Makefile rules are inconsistent, as are users, and -fuse-ld= might appear
in C{,XX}FLAGS, not just LDFLAGS.

Append -fuse-ld=bfd there too if asked to force bfd. This might
cause problems with Clang because the argument is unused. See the
mess in ddba1d149e.

Not having flag-o-matic here makes things a bit awkward. Let's try
the naive approach first because it seemed OK for me with Clang
with a quick test.

Signed-off-by: Sam James <sam@gentoo.org>
2024-08-16 18:21:22 +01:00
Sam James 87168789d5 toolchain-funcs.eclass: _tc-has-openmp: tweak style a bit
Signed-off-by: Sam James <sam@gentoo.org>
2024-08-16 18:21:21 +01:00
Sam James 3c2c0e0c0e toolchain-funcs.eclass: use generic filename for linker test
At https://github.com/gentoo/gentoo/pull/28355#discussion_r1089883885, juippis
points out that for mold, the test might be confused. Let's consistently
use 'linker' instead.

Signed-off-by: Sam James <sam@gentoo.org>
2024-08-16 18:21:20 +01:00
Sam James 65060aed10 toolchain-funcs.eclass: mark tc-ld-disable-gold as deprecated
I don't think this function makes sense in a world with lld and mold.

If there's a bug causing someone to reach for tc-ld-disable-gold,
it falls into one of the following:

1. there's bfdisms (like wine where there's no hope)
   => tc-ld-force-bfd is the correct solution

2. it's a generic problem like underlinking
   => patch the package please, but in extremis or as a temporary workaround,
      tc-ld-force-bfd could be used (but discouraged in this situation)

3. it's a gold bug (i.e. the package is definitely only broken with gold)
   => report the issue upstream or force bfd if the package is truly
      doing something a bit unusual ("the wine case"), but really, given
      gold seems to be rotting away, it doesn't appear likely any bugs
      would get fixed & users shouldn't be enabling it.

I also think tc-ld-disable-gold has been used hastily in the past
for cases like 2, so let's discourage that in deprecating this as well.

Signed-off-by: Sam James <sam@gentoo.org>
2024-08-16 18:21:20 +01:00
Sam James 20aa5cad2e toolchain-funcs.eclass: refine tc-ld-force-bfd description
Signed-off-by: Sam James <sam@gentoo.org>
2024-08-16 18:21:19 +01:00
Sam James 2d141fdf89 toolchain-funcs.eclass: fix tc-ld-force-bfd returning early for unknown linkers
For say, mold, until now tc-ld-force-bfd actually didn't work, because
it bailed early if not lld and not gold (assuming the linker was therefore bfd).

Closes: https://bugs.gentoo.org/877539
Signed-off-by: Sam James <sam@gentoo.org>
2024-08-16 18:21:19 +01:00
Sam James 67d7638410 toolchain-funcs.eclass: add tc-ld-is-mold
For completeness.

Bug: https://bugs.gentoo.org/877539
Signed-off-by: Sam James <sam@gentoo.org>
2024-08-16 18:21:18 +01:00
Sam James 2283662d49 toolchain-funcs.eclass: add tc-ld-is-bfd
This matches tc-ld-is-gold and tc-ld-is-lld.

Signed-off-by: Sam James <sam@gentoo.org>
2024-08-16 18:21:18 +01:00
Arthur Zamarin 99889ce76e rust-toolchain.eclass: transform sparc64 rust_abi
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
2024-08-16 13:14:35 +03:00
Arthur Zamarin 1533b604e7 rust-toolchain.eclass: hide glibc bins behind elibc_glibc?
I'm starting to add various bootstrap binaries for musl, so might as
well protect all downloads of glibc only behind "elibc_glibc?" to be
safe just in case.

Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
2024-08-16 08:55:35 +03:00
Sam James 1f754863ff go-env.eclass: improve debug workaround
Use what Ionen did in x11-terms/kitty to avoid touching flags for
non-Go parts of the build.

Bug: https://bugs.gentoo.org/847991
Bug: https://bugs.gentoo.org/924436
Bug: https://bugs.gentoo.org/924496
Bug: https://bugs.gentoo.org/929219
Signed-off-by: Sam James <sam@gentoo.org>
2024-08-15 22:24:05 +01:00
Sam James 116f54058a go-env.eclass: workaround debug info issues
Go can't handle some DWARF produced by GCC but nobody's been able
to produce a simple testcase for it, so add a workaround where we replace
-g3 with -g and -ggdb3 with -ggdb for GCC, like Ionen did in Kitty.

Bug: https://bugs.gentoo.org/847991
Bug: https://bugs.gentoo.org/924436
Bug: https://bugs.gentoo.org/924496
Closes: https://bugs.gentoo.org/929219
Signed-off-by: Sam James <sam@gentoo.org>
2024-08-15 22:18:23 +01:00
Michał Górny 740d0c3619 llvm.org.eclass: Add 20.0.0_pre20240815 snapshot
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2024-08-15 22:01:29 +02:00
Andreas Sturmlechner 5fc62d4f39 gear.kde.org.eclass: Add post-24.05 release SLOT=5 blocklist
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2024-08-15 19:46:52 +02:00
Andreas Sturmlechner 0e7a553e92 gear.kde.org.eclass: Cleanup >=24.01.75 SLOT 5 blocklist
Dropping kde-apps/kdegraphics-mobipocket, no file collision in the first place.
Dropping kde-apps/thumbnailers after it was turned into a metapackage.

Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2024-08-15 19:46:51 +02:00
Andreas Sturmlechner 882d006f2a ecm.eclass: For kde.org projects, try to rename metainfo file real hard
- detect if we are inheriting kde.org.eclass
- detect if package name is not the same as upstream name (KDE_ORG_NAME)
- iterate through "${ED}"/usr/share/metainfo/
- if file contains KDE_ORG_NAME or similar, rename that to ${PN}${SLOT/0*/}
- otherwise, prepend "${PN}${SLOT/0*/}-" after ^org.kde.

Notably, this does not (yet?) trigger if a package ${PN} == ${KDE_ORG_NAME}
but different SLOTs. Should we just do that all the time?

Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2024-08-15 19:46:50 +02:00
Andreas Sturmlechner 796a1fc618 cmake.eclass: If inherited from ecm.eclass, set ECM_DISABLE_GIT
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2024-08-15 19:46:50 +02:00
Andreas Sturmlechner 43ecd506f0 cmake.eclass: If inherited from ecm.eclass, set ECM_DISABLE_APPSTREAMTEST
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2024-08-15 19:46:49 +02:00
Andreas Sturmlechner 689be1a4af cmake.eclass: Set CMAKE_COMPILE_WARNING_AS_ERROR=OFF
Closes: https://bugs.gentoo.org/926121
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2024-08-15 19:46:44 +02:00
Andreas Sturmlechner da715b9764 cmake.eclass: Set CMAKE_TLS_VERIFY=ON
Closes: https://bugs.gentoo.org/927160
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2024-08-15 19:46:37 +02:00
Nic Boet 60a395b82a cmake.eclass: bug 811486 escape find patterns
Modify cmake_src_prepare to qoute escape filenames
within the find search patterns
This resolves build issues with some EAPI 7 packages,
i.e. sys-fs/dislocker via catalyst

Bug: https://bugs.gentoo.org/811486
Signed-off-by: Nic Boet <nic@boet.cc>
Closes: https://github.com/gentoo/gentoo/pull/35125
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2024-08-15 19:46:36 +02:00
Ulrich Müller bcc4c0d230 bzr.eclass: Remove dead eclass
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
2024-08-12 21:02:05 +02:00
Ulrich Müller a2b06caae0 ltprune.eclass: Remove dead eclass
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
2024-08-12 21:01:57 +02:00
Sam James eb9d324cb4 toolchain.eclass: add TODO re flags for building deps in src_test
Signed-off-by: Sam James <sam@gentoo.org>
2024-08-12 02:19:32 +01:00
Sam James efff53996b toolchain.eclass: drop filter-flags from src_test
This no longer does anything after the previous commit to use
custom variables for flags for tests.

Signed-off-by: Sam James <sam@gentoo.org>
2024-08-12 02:19:31 +01:00
Sam James 15ce82749d toolchain.eclass: don't pass user flags in src_test
This is obvious in hindsight. The flags we were passing *precisely because*
we wanted e.g. -Wno-format to be passed to every test also included
-O2 or whatever from the user's flags which breaks tests that may require
no optimisation and so on.

Instead of trying to filter out options in a whack-a-mole game, let's
introduce special GCC_TESTS_* *FLAGS variables which we append
the needed -Wno-* to (etc.) which users can also specify if they really want
or need to.

Note that this isn't as scary or as weird as it sounds. We were only
trying to jam these flags in **purely** to counteract some defaults
we set, these tests really aren't supposed to be run with arbitrary
flags stuck in, but a workaround we added started to introduce way
more than intended.

The torture tests are fine with being run with various optimisation flags
but the rest of the testesuite isn't.

This fixes 361c375864 and some of the
attempts afterwards, although not everything in those commits was bad.

Fixes: 361c375864
Signed-off-by: Sam James <sam@gentoo.org>
2024-08-12 02:19:30 +01:00