summaryrefslogtreecommitdiff
path: root/eclass
Commit message (Collapse)AuthorAgeFilesLines
* unpacker.eclass: Unpack .deb packages on-the-fly as wellMichał Górny2022-09-271-27/+33
| | | | | Closes: https://github.com/gentoo/gentoo/pull/27431 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* unpacker.eclass: Fix handling GNU ar archives in handwoven implMichał Górny2022-09-272-0/+6
| | | | | | | | Fix the hand-weaved implementation of ar unpacking that is used on Prefix to handle slash-terminated filenames of GNU ar format correctly. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* unpacker.eclass: Support lbzip2 as parallel bz2 decompressorMichał Górny2022-09-271-2/+5
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* unpacker.eclass: decompress xz in parallelSam James2022-09-271-2/+2
| | | | | | | | | | >= xz 5.3.3_alpha supports parallel decompression, so let's use it. As recently added to Portage (see https://github.com/gentoo/portage/commit/48d107e5c1a103d59a053aebeefa9a5aac5c32ff). Signed-off-by: Sam James <sam@gentoo.org> Signed-off-by: Michał Górny <mgorny@gentoo.org>
* unpacker.eclass: Add on-the-fly .gpkg.tar unpacking supportMichał Górny2022-09-272-0/+85
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* unpacker.eclass: Add support for .lz4 and .lzo compressionMichał Górny2022-09-272-0/+15
| | | | | | | Add support for .lz4 and .lzo formats that can be used for .tar.gpkg compression. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* unpacker.eclass: Move decompressor recognition into a functionMichał Górny2022-09-271-18/+26
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* unpacker.eclass: Remove uppercase RAR/LHA variantsMichał Górny2022-09-271-4/+4
| | | | | | | | Remove the uppercase variants of RAR/LHA that were copied from Portage implementation. The functions always convert filenames to lowercase, so accounting for them is redundant. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* unpacker.eclass: Use lowercase in unpacker_src_uri_dependsMichał Górny2022-09-271-1/+2
| | | | | | | Transform the URIs to lowercase in unpacker_src_uri_depends() for consistency with the behavior of _unpacker(). Signed-off-by: Michał Górny <mgorny@gentoo.org>
* unpacker.eclass: Use bash substitution instead of tr for lowercaseMichał Górny2022-09-271-1/+1
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* unpacker.eclass: Remove support for EAPI 5Michał Górny2022-09-271-3/+3
| | | | | | | There are no ebuilds using it in EAPI 5 anymore, and it is the last EAPI requiring support for bash 3.2. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* unpacker.eclass: Fix unpack_7z to respect the exit statusMichał Górny2022-09-271-1/+4
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* unpacker.eclass: Remove `-f` from zstd argumentsMichał Górny2022-09-271-1/+1
| | | | | | | | | Remove `-f` from zstd arguments. This option causes zstd to ignore input errors, notably causing it to pass invalid files through rather than returning an error. Closes: https://bugs.gentoo.org/872662 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* eclass/tests: Add tests for unpacker.eclassMichał Górny2022-09-272-0/+240
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* llvm.org.eclass: Revert "Enable 16.0.0_pre20220926 snap"Michał Górny2022-09-261-3/+0
| | | | | | | The 16.x is far too broken right now for this to be usable. Reverts: de4df136bfa2fd8b1b28e9137991d1d95057a873 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* llvm.org.eclass: Enable 16.0.0_pre20220926 snapMichał Górny2022-09-261-0/+3
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* eclass/ruby-fakegem.eclass: turn off minitest pluginsHans de Graaff2022-09-251-1/+1
| | | | | | | | | By default dev-ruby/minitest loads all plugins that are installed in the system. Most of these are harmless, but some cause issues with dependencies and versions. None of these plugins are needed for tests to pass so we can avoid issues by not loading them. Signed-off-by: Hans de Graaff <graaff@gentoo.org>
* go-module.eclass: suggest XZ options and preferences for compressionSam James2022-09-251-2/+4
| | | | | | | | | | | | | | - Set XZ_OPT='-T0 -9' in the example tar call which: * uses threads to compress (and this will, with newer xz (>= 5.3.3 alpha), allow parallel decompression) * sets a higher compression level (default is -6) - Mention preferences for choice of compression method: developers should choose a method which supports parallel decompression if possible, and also choose a higher compression level given the size of these tarballs. Signed-off-by: Sam James <sam@gentoo.org>
* llvm.org.eclass: Enable manpage dist for 15.0.1Michał Górny2022-09-201-1/+1
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* llvm.org.eclass: Add a new snapshotMichał Górny2022-09-191-0/+3
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* Revert "toolchain.eclass: fix building Clang on pure LLVM profiles"Sam James2022-09-171-11/+0
| | | | | | | | This reverts commit 7011340a0f13dcada6f3be48054957035bc6e01a. This ended up being insufficient. Signed-off-by: Sam James <sam@gentoo.org>
* toolchain.eclass: fix building Clang on pure LLVM profilesSam James2022-09-171-0/+11
| | | | | | | | | | | | | | | The features/clang profile sets AS="clang -c". 1. We can't use llvm-as because it's essentially for internal use and isn't compatible anyway with cmdline args. 2. "clang -c" doesn't recognise --64 which configure tries to add. So, fake nothing to avoid configure trying to add that in. See: 59d666d032353b054e3cdf4f18ad55e3346e73ca Signed-off-by: Sam James <sam@gentoo.org>
* ada.eclass: add gcc_12_2_0 handlingAlfredo Tupone2022-09-161-3/+21
| | | | Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
* vala.eclass: Raise minimum supported version to 0.56Matt Turner2022-09-161-3/+3
| | | | | | | | No packages in tree are incompatible with 0.56, so by raising the requirement we can drop old vala slots from the tree and avoid a stream of bugs about packages not building with older slots. Signed-off-by: Matt Turner <mattst88@gentoo.org>
* llvm.org.eclass: Introduce snapshot supportMichał Górny2022-09-161-57/+95
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* 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>