summaryrefslogtreecommitdiff
path: root/eclass
Commit message (Collapse)AuthorAgeFilesLines
* acct-user.eclass: Don't modify users when EPREFIX is non-emptyJames Le Cuirot2022-12-141-4/+4
| | | | | | | This was happening when running a prefix as root, which we don't really support, but also when building a prefixed system under ROOT. Signed-off-by: James Le Cuirot <chewi@gentoo.org>
* apache-2.eclass: add pcre2 supportSam James2022-12-141-19/+63
| | | | | | | | | | | Wire up a temporary eclass variable to allow older ebuilds to opt-in to legacy PCRE1 usage so we can transition gradually to PCRE2 in ~arch without affecting stable ebuilds. Stable ebuilds should set GENTOO_USE_PCRE1=1. Bug: https://bugs.gentoo.org/835151 Signed-off-by: Sam James <sam@gentoo.org>
* unpacker.eclass: fix unpack_gpkg with TAPE setSam James2022-12-141-1/+1
| | | | | | | Closes: https://bugs.gentoo.org/885719 Signed-off-by: Sam James <sam@gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/28603 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* unpacker.eclass: support >=app-arch/xz-utils-5.4.0 for lzip decompressionSam James2022-12-141-4/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | >=app-arch/xz-utils-5.4.0 supports lzip decompression (not compression). Add support for unpacker.eclass to handle it for .lz files. Note that xz-utils is part of @system (and PMS requires that .xz is unpackable), while most users do not have lzip and friends installed. (Note that xz does not (currently, but does not plan on either) implement parallel decompression for .lz, but most .lz distfiles are small, so this isn't an issue.) Historically, we've often repacked .lz distfiles for important packages to avoid users needing to install app-arch/lzip for a single distfile, so this avoids the need for that (although I've not done it out of principle for things like sys-apps/ed). Bug: https://bugs.gentoo.org/249059 Bug: https://bugs.gentoo.org/485462 Bug: https://bugs.gentoo.org/501912 Bug: https://bugs.gentoo.org/502990 Bug: https://bugs.gentoo.org/545344 Signed-off-by: Sam James <sam@gentoo.org> Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-utils.eclass: Bump minimal Python versionsMichał Górny2022-12-141-7/+5
| | | | | | | Bump minimal Python versions after the last security stabilizations, plus PyPy3 sysconfig bugfix. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* eclass/tests/python-utils-r1.sh: Remove old implsMichał Górny2022-12-141-17/+1
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Pass --sysroot to gpep517 when cross-compilingMichał Górny2022-12-141-5/+14
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Pass -b to best_version for buildsys pkgsMichał Górny2022-12-141-1/+1
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-utils-r1.eclass: Update python_optimize for PyPy3.9Michał Górny2022-12-141-2/+3
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-utils-r1.eclass: Clean up post disabling python2_7 compatMichał Górny2022-12-141-46/+19
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-any-r1.eclass: Stop allowing python2_7Michał Górny2022-12-141-1/+0
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Remove EAPI 6 supportMichał Górny2022-12-141-31/+11
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Require meson-python >= 0.11.0Michał Górny2022-12-141-24/+19
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* toolchain.eclass: add USE=rust for GCC 13.0.9999Sam James2022-12-131-2/+8
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* ada.eclass: enabling EAPI 8Alfredo Tupone2022-12-121-1/+1
| | | | Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
* llvm.org.eclass: Add 16.0.0_pre20221210 snapshotMichał Górny2022-12-101-0/+3
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* cmake.eclass: comment typo fixSam James2022-12-101-1/+1
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* cmake.eclass: drop use_enable reference in @DESCRIPTIONSam James2022-12-101-2/+1
| | | | | | | This is from cmake-utils.eclass and the use_enable-style functions it refers to are long-banned. Signed-off-by: Sam James <sam@gentoo.org>
* dune.eclass: fix typo in @DESCRIPTIONSam James2022-12-101-1/+1
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* ecm.eclass: Drop obsolete Qt 5.15.5Andreas Sturmlechner2022-12-091-15/+6
| | | | Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* llvm.eclass: Set LLVM_SLOT in pkg_setup()Michał Górny2022-12-081-17/+35
| | | | | | | | | | | Set LLVM_SLOT in pkg_setup() to the selected LLVM slot, for inspection from the package. For example, it can be used to easily compare the version number. Split get_llvm_slot() out of get_llvm_prefix() to factor out the common code. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* gstreamer.eclass: mark @DEAD for removalSam James2022-12-071-0/+1
| | | | | | No remaining consumers. Removal on 2023-01-07. Signed-off-by: Sam James <sam@gentoo.org>
* linux-mod.eclass: Warn about removal of econf called in compile phase funcMike Pagano2022-12-071-0/+1
| | | | | | | | | | Notify packaga maintainers that their package relies on the EAPI deprecated use of econf being called in linux-mod_src_compile, which will go away in 30 days (20230107) Bug: https://bugs.gentoo.org/340597 Signed-off-by: Mike Pagano <mpagano@gentoo.org>
* kernel-2.eclass: remove unnecessary BDEPEND on sys-apps/sedDavid Seifert2022-12-071-1/+0
| | | | | | | * guaranteed by PMS Closes: https://github.com/gentoo/gentoo/pull/28550 Signed-off-by: David Seifert <soap@gentoo.org>
* gstreamer.eclass: remove unnecessary DEPEND on sys-apps/sedDavid Seifert2022-12-071-2/+1
| | | | | | * guaranteed by PMS Signed-off-by: David Seifert <soap@gentoo.org>
* gstreamer-meson.eclass: remove unnecessary BDEPEND on sys-apps/sedDavid Seifert2022-12-071-1/+0
| | | | | | * guaranteed by PMS Signed-off-by: David Seifert <soap@gentoo.org>
* linux-mod.eclass: remove unnecessary DEPEND on sys-apps/sedDavid Seifert2022-12-071-1/+0
| | | | | | * guaranteed by PMS Signed-off-by: David Seifert <soap@gentoo.org>
* user.eclass: removeMike Gilbert2022-12-061-685/+0
| | | | Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* toolchain-funcs.eclass: Set CHOST within econf_build to fix config.siteJames Le Cuirot2022-12-061-1/+2
| | | | | | | | | | | | We were setting CBUILD within econf_build but not CHOST. crossdev's /usr/share/config.site relies on both of these to decide whether to load configure overrides needed when cross-compiling. Using the wrong overrides leads to packages such as Python failing. Doing this also avoids the need to duplicate the --build and --host configure arguments. Signed-off-by: James Le Cuirot <chewi@gentoo.org>
* llvm.org.eclass: Add 16.0.0_pre20221205 snapshotMichał Górny2022-12-061-0/+3
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* postgres.eclass: stop using which(1)Sam James2022-12-061-2/+2
| | | | | | | It's non-portable and we're looking to remove it from @system. Bug: https://bugs.gentoo.org/646588 Signed-off-by: Sam James <sam@gentoo.org>
* postgres-multi.eclass: stop using which(1)Sam James2022-12-061-3/+3
| | | | | | | It's non-portable and we're looking to remove it from @system. Bug: https://bugs.gentoo.org/646588 Signed-off-by: Sam James <sam@gentoo.org>
* usr-ldscript.eclass: stop using which(1)Sam James2022-12-061-1/+1
| | | | | | | It's non-portable and we're looking to remove it from @system. Bug: https://bugs.gentoo.org/646588 Signed-off-by: Sam James <sam@gentoo.org>
* toolchain-funcs.eclass: stop using which(1)Sam James2022-12-061-2/+2
| | | | | | | | It's non-portable and we're looking to remove it from @system. Bug: https://bugs.gentoo.org/487696 Bug: https://bugs.gentoo.org/646588 Signed-off-by: Sam James <sam@gentoo.org>
* toolchain-funcs.eclass: fix -Wstrict-prototypes in linker, openmp testsSam James2022-12-061-3/+3
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* flag-o-matic.eclass: fix -Wstrict-prototypes in append-atomic-flagsSam James2022-12-061-2/+2
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* tree-sitter-grammar.eclass: Add src_test implementationMatoro Mahri2022-12-051-1/+15
| | | | | | | | | | | | These packages have a standard way of implementing a test corpus that can be invoked by "tree-sitter test" from dev-util/tree-sitter-cli. Some have additional platform-specific tests that are invoked in a custom manner, but these are on top of the basic test corpus. See: https://tree-sitter.github.io/tree-sitter/creating-parsers#command-test Bug: https://bugs.gentoo.org/844223 Signed-off-by: Matoro Mahri <matoro@users.noreply.github.com> Signed-off-by: Matthew Smith <matthew@gentoo.org>
* app-alternatives.eclass: New eclass to streamline app-alternatives/*Michał Górny2022-12-051-0/+84
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* toolchain.eclass: fix default-* addition for new GCC 12 snapshotSam James2022-12-051-2/+2
| | | | | Fixes: adf44514cf590a860b3140efae31187854cf8cea Signed-off-by: Sam James <sam@gentoo.org>
* toolchain.eclass: allow default-znow, default-stack-clash-protection for ↵Sam James2022-12-051-2/+2
| | | | | | | | 12.2.1_p20221203 Bug: https://bugs.gentoo.org/675050 Bug: https://bugs.gentoo.org/876923 Signed-off-by: Sam James <sam@gentoo.org>
* eclass/toolchain.eclass: add USE=ieee-long-double for sys-devel/gccGeorgy Yakovlev2022-12-041-0/+8
| | | | | Bug: https://bugs.gentoo.org/882815 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
* Move {virtual -> app-alternatives}/yaccSam James2022-12-021-1/+1
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* linux-info.eclass: getfilevar: pass 'need-compiler=' to makeMike Gilbert2022-12-021-1/+3
| | | | | | | | | This avoids some unnecessary Makefile logic and gives a nice speed up. Before the change, linux-info_pkg_setup takes 11 to 15 seconds on my AMD Phenom II. After, it takes 3 to 4 seconds. Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* llvm.org.eclass: Remove old snapshot hashesMichał Górny2022-12-021-6/+0
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* llvm.org.eclass: Enable manpages for 15.0.6Michał Górny2022-11-301-1/+1
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* toolchain.eclass: restore style changes lost in GCC 13 sphinx revertSam James2022-11-301-2/+4
| | | | | Fixes: 476e425a52e834eb067f44c98a8c1faefdef260b Signed-off-by: Sam James <sam@gentoo.org>
* toolchain.eclass: fix comment typoSam James2022-11-301-1/+1
| | | | | | Noticed by Arfrever. Signed-off-by: Sam James <sam@gentoo.org>
* qt5-build.eclass: Set _QT5_GENTOOPATCHSET_REV=2 for >=Qt5Base-5.15.7Andreas Sturmlechner2022-11-291-6/+14
| | | | | | | - Apply gentoo-patchset before running sed over configure - _QT5_GENTOOPATCHSET_REV shall always be applied Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* ecm.eclass: Workaround Portage depgraph shortcomings from revdeps' sideAndreas Sturmlechner2022-11-291-1/+20
| | | | | Bug: https://bugs.gentoo.org/836726 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* toolchain.eclass: Split -z now and -fstack-clash-protection out for gcc13Andreas K. Hüttel2022-11-291-1/+13
| | | | Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>