summaryrefslogtreecommitdiff
path: root/eclass
Commit message (Collapse)AuthorAgeFilesLines
* haskell-cabal.eclass: synchronize with gentoo-haskell overlayMiezhiko2022-09-151-2/+49
| | | | | Closes: https://github.com/gentoo/gentoo/pull/27252 Signed-off-by: Sam James <sam@gentoo.org>
* rebar.eclass: add support for EAPI=8Arthur Zamarin2022-09-121-10/+4
| | | | | Closes: https://github.com/gentoo/gentoo/pull/27123 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* myspell-r2.eclass: improve code examples formatArthur Zamarin2022-09-121-0/+6
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* myspell-r2.eclass: drop support for EAPI<7Arthur Zamarin2022-09-121-11/+6
| | | | | | | | - No consumers for EAPI<7 remain in ::gentoo tree - Simplifies dependency logic - fix UnquotedVariable of DISTDIR Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* kodi-addon.eclass: drop support for EAPI<7Arthur Zamarin2022-09-121-16/+10
| | | | | | | | | | - No consumers for EAPI<7 remain in ::gentoo tree - For those EAPIs, it tries to inherit cmake-utils eclass, which doesn't exist, so it would just fail! - Simplify the eclass logic - Fix UnquotedVariable for EPREFIX Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* udev.eclass: simplify EPREFIX usageArthur Zamarin2022-09-121-1/+1
| | | | | | EPREFIX is never slash terminated, in all EAPIs. Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* rebar.eclass: simplify EPREFIX usageArthur Zamarin2022-09-121-4/+4
| | | | | | EPREFIX is never slash terminated, in all EAPIs. Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* bazel.eclass: simplify EPREFIX usageArthur Zamarin2022-09-121-1/+1
| | | | | | EPREFIX is never slash terminated, in all EAPIs. Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* webapp.eclass: fix UnquotedVariable of DArthur Zamarin2022-09-121-1/+1
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* vdr-plugin-2.eclass: fix UnquotedVariableArthur Zamarin2022-09-121-4/+3
| | | | | | | For the change in vdr_detect_po_dir, use quoted [@] for better catching cases when members in po_subdir have spaces Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* selinux-policy-2.eclass: fix UnquotedVariable of SArthur Zamarin2022-09-121-4/+4
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* ruby-ng-gnome2.eclass: fix UnquotedVariable of EPREFIXArthur Zamarin2022-09-121-1/+1
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* ruby-ng.eclass: fix UnquotedVariable of EPREFIXArthur Zamarin2022-09-121-1/+1
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* haskell-cabal.eclass: fix UnquotedVariable of EPREFIXArthur Zamarin2022-09-121-3/+3
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* gstreamer-meson.eclass: fix UnquotedVariable of BUILD_DIRArthur Zamarin2022-09-121-1/+1
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* gnustep-base.eclass: fix UnquotedVariable of EPREFIXArthur Zamarin2022-09-121-1/+1
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* toolchain.eclass: BDEPEND on an Ada compilerSam James2022-09-121-0/+8
| | | | | | | | Necessary but not sufficient. Needs a pkg_setup/pkg_pretend check for whether the active compiler supports Ada still, just like D needs this too (which isn't done either). Signed-off-by: Sam James <sam@gentoo.org>
* rocm.eclass: new eclassYiyang Wu2022-09-121-0/+223
| | | | | | | | | | | | | | | | | This eclass provides utilities for ROCm libraries in https://github.com/ROCmSoftwarePlatform, e.g. rocBLAS, rocFFT. It contains a USE_EXPAND, amdgpu_targets_*, which handles the GPU architecture to compile, and keep targets coherent among dependencies. Packages that depend on ROCm libraries, like cupy, can also make use of this eclass, mainly specify GPU architecture and it's corresponding dependencies via USE_EXPAND. Closes: https://github.com/gentoo/gentoo/pull/26784 Closes: https://bugs.gentoo.org/810619 Bug: https://bugs.gentoo.org/817440 Reference: https://archives.gentoo.org/gentoo-dev/message/49b17ca059187a4b5d983a9500507158 Signed-off-by: Yiyang Wu <xgreenlandforwyy@gmail.com> Signed-off-by: Benda Xu <heroxbd@gentoo.org>
* toolchain.eclass: allow re-generation of info pages for snapshotsSam James2022-09-101-3/+23
| | | | | | | | | | | | | | | | | | Snapshots don't (yet?) contain pre-generated info pages (and man pages, but that's turned out not to be an issue, as they get regenerated and nobody notices). Given it's often easier and more sensible to keyword a snapshot from one of the stable branches upstream rather than cherry-picking patches, we need to make sure we don't regress with the documentation provided when we do that. Allow re-generation of info pages using texinfo for snapshots; we have a safeguard (eqawarn) for if they start appearing in snapshots and nobody noticed. Closes: https://bugs.gentoo.org/834845 Signed-off-by: Sam James <sam@gentoo.org>
* kernel-build.eclass: support EAPI 8Mike Gilbert2022-09-091-10/+4
| | | | Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* savedconfig.eclass: support EAPI 8, drop EAPI 5Mike Gilbert2022-09-091-3/+3
| | | | Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* portability.eclass: support EAPI 8, drop EAPI 5Mike Gilbert2022-09-091-3/+3
| | | | Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* kernel-install.eclass: support EAPI 8Mike Gilbert2022-09-091-12/+10
| | | | Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* dist-kernel-utils.eclass: support EAPI 8Mike Gilbert2022-09-091-10/+4
| | | | Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* python-utils-r1.eclass: Pass "-p no:xvfb" in epytestMichał Górny2022-09-071-0/+5
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* kernel-install.eclass: pkg_preinst: fix symlinks for merged-usrMike Gilbert2022-09-061-0/+6
| | | | | Closes: https://bugs.gentoo.org/843821 Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* llvm.org.eclass: Enable manpages for 15.0.0Michał Górny2022-09-061-1/+1
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* linux-info.eclass: Add SKIP_KERNEL_CHECK in addl funcs to support tinderboxMike Pagano2022-09-041-0/+5
| | | | Signed-off-by: Mike Pagano <mpagano@gentoo.org>
* multilib-build.eclass: canonical `debug-print-function` callsDavid Seifert2022-09-041-9/+9
| | | | | Closes: https://github.com/gentoo/gentoo/pull/26689 Signed-off-by: David Seifert <soap@gentoo.org>
* multilib-build.eclass: add multilib_native_usevDavid Seifert2022-09-041-0/+9
| | | | Signed-off-by: David Seifert <soap@gentoo.org>
* multilib-build.eclass: add multilib_native_useDavid Seifert2022-09-041-0/+9
| | | | Signed-off-by: David Seifert <soap@gentoo.org>
* xemacs-packages.eclass: WhitespaceUlrich Müller2022-09-031-2/+2
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* xemacs-packages.eclass: Support EAPI 8Ulrich Müller2022-09-031-3/+3
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* xemacs-packages.eclass: Drop backwards compatibility codeUlrich Müller2022-09-031-5/+1
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* go-module.eclass: add build flag to ignore version control informationWilliam Hubbs2022-09-031-2/+3
| | | | | | | | This adds -buildvcs=false to the default build flags and bumps the minimum version of go to 1.18. Bug: https://bugs.gentoo.org/836261 Signed-off-by: William Hubbs <williamh@gentoo.org>
* haskell-cabal.eclass: fix egrep resurgenceSam James2022-09-031-2/+2
| | | | | | | | Thanks to ionen for spotting. Fixes: acecfa43882156c2e00e6babae105289e4d29675 See: 35f856adc153ee2697e71a280f80613ad3dedb20 Signed-off-by: Sam James <sam@gentoo.org>
* toolchain.eclass: adjust D dep for non-gccSam James2022-08-311-2/+2
| | | | | | Needed for sys-devel/kgcc64. Signed-off-by: Sam James <sam@gentoo.org>
* ruby-ng.eclass: add ruby26 to the list of removed implementationsHans de Graaff2022-08-271-1/+1
| | | | Signed-off-by: Hans de Graaff <graaff@gentoo.org>
* ruby-single.eclass: update ruby versions in examplesHans de Graaff2022-08-271-3/+3
| | | | Signed-off-by: Hans de Graaff <graaff@gentoo.org>
* flag-o-matic.eclass: test-flag-PROG, strip unused args that generate warningsAlexander Miller2022-08-241-11/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | A number of configure checks used by CMake and autoconf (and probably other build systems) relies on warning-free compiler runs. A combination of compiler and flags that always generates warnings can cause misconfiguration and/or build failures. Since commit ae9870d9f6b1394ede86176443770b36d7e60ac1, flags that generate warnings that could be suppressed with -Qunused-arguments are accepted anyway to avoid stripping all linker flags (#627474). But commit 28d6437fc7009002f98f28e8900e994109927726 added linker invocation for linker flags tests, so the workaround shouldn't be necessary any more. Drop the extra -Qunused-arguments check and reject all flags that generate warnings to avoid configuration issues. If it turns out that stripping these unused flags is still problematic, we could accept them and actually add -Qunused-arguments to the relevant *FLAGS to silence the warnings, but that would require bigger changes, so let's try the simpler and cleaner solution first. Bug: https://bugs.gentoo.org/627474 Bug: https://bugs.gentoo.org/714742 Bug: https://bugs.gentoo.org/862798 Signed-off-by: Alexander Miller <alex.miller@gmx.de> Closes: https://github.com/gentoo/gentoo/pull/26773 Signed-off-by: Sam James <sam@gentoo.org>
* python-any-r1.eclass: localise 'i' in python_setupSam James2022-08-241-0/+1
| | | | | Reported-by: Kerin Millar <kfm@plushkava.net> Signed-off-by: Sam James <sam@gentoo.org>
* python-r1.eclass: localise 'i' in python_setupSam James2022-08-241-1/+1
| | | | | Reported-by: Kerin Millar <kfm@plushkava.net> Signed-off-by: Sam James <sam@gentoo.org>
* cmake-multilib.eclass: fix EclassDocError (for @DEPRECATED)Sam James2022-08-241-1/+1
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* Revert "toolchain.eclass: ensure thumb mode for armv6m"Marek Behún2022-08-231-2/+0
| | | | | | | | | | | | | | | | | | This reverts commit 903b71810e0b270a7d494e16e2d799fcd95ae50f. The commit caused default libgcc to be built in thumb mode for armv6m target, but it broke subsequent compilation of newlib via crossdev. The whole reason of this commit was to have the compiler generate correct code when libgcc was used in thumb mode, but now this is not needed anymore, because now we configure gcc with --with-multilib-list=aprofile,rmprofile for CTARGET=arm-* when used with multilib, which generates compiler that builds correct binaries for -march=armv6-m even if libgcc is used. Signed-off-by: Marek Behún <kabel@kernel.org> Closes: https://github.com/gentoo/gentoo/pull/26914 Signed-off-by: Sam James <sam@gentoo.org>
* toolchain.eclass: build multilibs for ARM's A, R and M architecture profilesMarek Behún2022-08-231-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For ARM targets, with USE=multilib and with CTARGET that does not imply any of --with-arch, --with-cpu, --with-mode or --with-float options to gcc's configuration (when arm_arch=arm), pass option --with-multilib-list=aprofile,rmprofile to gcc's configuration to make it build multilibs for A, R and M architecture profiles. This makes it possible to have one compiler capable of generating correct code (linking correct libgcc/CRT) for various ARM targets: from armv6 to armv7, for both soft float and half float, for various FPU types. Example of arm-none-eabi-gcc -print-libgcc-file-name output for various options: default: /usr/lib/gcc/arm-none-eabi/12.1.1/libgcc.a -mcpu=cortex-m0 /usr/lib/gcc/arm-none-eabi/12.1.1/thumb/v6-m/nofp/libgcc.a -march=armv7-m /usr/lib/gcc/arm-none-eabi/12.1.1/thumb/v7-m/nofp/libgcc.a -march=armv7-a /usr/lib/gcc/arm-none-eabi/12.1.1/thumb/v7-a/nofp/libgcc.a -march=armv7-a -mhard-float -mfpu=neon /usr/lib/gcc/arm-none-eabi/12.1.1/thumb/v7-a+simd/hard/libgcc.a -march=armv7-a -mhard-float -mfpu=vfp /usr/lib/gcc/arm-none-eabi/12.1.1/thumb/v7-a+fp/hard/libgcc.a Signed-off-by: Marek Behún <kabel@kernel.org> Signed-off-by: Sam James <sam@gentoo.org>
* ecm.eclass: Support single dependency ecm_punt_bogus_dep callAndreas Sturmlechner2022-08-221-6/+19
| | | | | | Bringing back usefulness outside of KF5/Qt5 calls with multiple components. Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* cmake-multilib.eclass: Drop cmake-utils supportAndreas Sturmlechner2022-08-191-20/+10
| | | | | | | cmake-utils.eclass was dropped on 2022-08-01 in commit 3e744f5a. Bug: https://bugs.gentoo.org/834110 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* elisp-common.eclass: fix for Emacs 29 (explicitly require autoload)Sam James2022-08-191-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Emacs 29's NEWS says: "The autoload.el library is now obsolete." We should therefore explicitly 'require it in order to have the eclass machinery work. Fix build failures with e.g. exec-path-from-shell, flycheck: ``` * Generating autoload file for GNU Emacs ... Error: void-function (batch-update-autoloads) debug-early-backtrace() debug-early(error (void-function batch-update-autoloads)) batch-update-autoloads() command-line-1(("--eval" "(setq make-backup-files nil)" "--eval" "(setq generated-autoload-file (expand-file-name \"exec-path-from-shell-autoloads.el\"))" "-f" "batch-update-autoloads" ".")) command-line() normal-top-level() Symbol’s function definition is void: batch-update-autoloads * elisp-make-autoload-file: batch-update-autoloads failed [ !! ] * ERROR: app-emacs/exec-path-from-shell-1.12::gentoo failed (compile phase): * (no error message) ``` See https://www.mail-archive.com/freebsd-pkg-fallout@freebsd.org/msg1982134.html and https://lists.gnu.org/archive/html/bug-gnu-emacs/2022-08/msg01259.html. Thanks-to: John Turner <jturner.usa+gentoo@gmail.com> Signed-off-by: Sam James <sam@gentoo.org> Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* toolchain.eclass: extend GCC 12 workaround for older GCCsSam James2022-08-151-1/+1
| | | | | | Needed to build older GCCs with GCC 12. Noticed w/ 9.5.0. Signed-off-by: Sam James <sam@gentoo.org>
* kde.org.eclass: Destructive Frameworks/Plasma/Gear quirk cleanupAndreas Sturmlechner2022-08-151-96/+11
| | | | Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>