summaryrefslogtreecommitdiff
path: root/eclass
Commit message (Collapse)AuthorAgeFilesLines
* distutils-r1.eclass: Use config_settings with maturinIonen Wolkens2023-05-231-7/+29
| | | | | | | | | | | | | Replaces the deprecated MATURIN_PEP517_ARGS and will also allow ebuilds to enable/disable cargo --features through DISTUTILS_ARGS like the rest should the need arise. Support was technically added in 0.15.3, but 1.0.0 allows passing an array rather than only a to-be-shlex.split string. Signed-off-by: Ionen Wolkens <ionen@gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/31143 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Use unittest-or-fail on Python < 3.12 onlyMichał Górny2023-05-231-1/+8
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-utils-r1.eclass: use std test runner in eunittest in 3.12+Michał Górny2023-05-231-1/+6
| | | | | | | | Starting with Python 3.12, the standard unittest runner exits unsucessfully if no tests are found. Therefore, we no longer need to use unittest_or_fail. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* eclass/tests/python-utils-r1.sh: Fix patterns for pypy3.10Michał Górny2023-05-231-2/+2
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-utils-r1.eclass: Add python3_12 targetMichał Górny2023-05-232-5/+13
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* llvm.org.eclass: Add 17.0.0_pre20230520 snapshotMichał Górny2023-05-211-0/+3
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* Rename dev-python/{jupyter_packaging → jupyter-packaging}Michał Górny2023-05-201-2/+2
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* llvm.org.eclass: Fix llvm_are_manpages_built()Michał Górny2023-05-191-10/+1
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* waf-utils.eclass: enable parallel installMike Gilbert2023-05-181-2/+3
| | | | | | | | This gives a nice speedup to net-fs/samba, which (re)links several hundred files in its install phase. Bug: https://bugs.gentoo.org/715542 Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* toolchain.eclass: add links/info about USE=rust for gcc-13Sam James2023-05-191-0/+3
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* toolchain.eclass: return to using -j1 for make installSam James2023-05-191-2/+12
| | | | | | | | | | | | | | | | Unfortunately, we have to use -j1 for make install. Upstream don't really test it and there's not much appetite for fixing bugs with it. Several reported bugs exist where the resulting image was wrong, rather than a simple compile/install failure: This reverts commit db0387530cf744068f480b68a192d4fc10a81286. Closes: https://bugs.gentoo.org/906155 Bug: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=42980 Bug: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51814 Bug: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103656 Bug: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109898 Signed-off-by: Sam James <sam@gentoo.org>
* llvm.org.eclass: fix build w/o sphinx installedSam James2023-05-181-1/+11
| | | | | | | Thanks to Ionen for reporting. Fixes: 3bce8799e4791f9d2fcb94e5c1ae287632ad7286 Signed-off-by: Sam James <sam@gentoo.org>
* llvm.org.eclass: Do not require separate manpage dist for every PVMichał Górny2023-05-181-19/+20
| | | | | | | | | | Do not require a separate manpage dist for every minor release. Instead, use the 16.0.4 tarball for 16.x releases going forward. This makes sense since manpages rarely change -- at least for all the 16.x releases, all that's been changing were the build date and the version number in extraclangtools manpage. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* llvm.org.eclass: Enable manpages for 16.0.4Michał Górny2023-05-181-1/+1
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* llvm.org.eclass: Require >=sec-keys/openpgp-keys-llvm-16.0.4Michał Górny2023-05-181-1/+1
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* linux-mod.eclass: Store compression ext in variableMike Pagano2023-05-171-1/+10
| | | | | | | | | | When the kernel configuration contains the setting CONFIG_MODULE_COMPRESS_{GZIP,XZ,STD} we need to store the extension for a subsequent call to modinfo. Closes: https://bugs.gentoo.org/906303 Signed-off-by: Mike Pagano <mpagano@gentoo.org>
* Revert "stardict.eclass: Mark @DEAD"Matt Turner2023-05-161-1/+0
| | | | | | | This reverts commit 7a0a0ebb526cce917c052f540037ba0519a20c42. Bug: https://bugs.gentoo.org/905901 Signed-off-by: Matt Turner <mattst88@gentoo.org>
* distutils-r1.eclass: Fix sed mistakeMichał Górny2023-05-151-2/+2
| | | | | | Closes: https://bugs.gentoo.org/906385 Closes: https://bugs.gentoo.org/906376 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* eclass/tests: add Makefile to run eclass testsFlorian Schmaus2023-05-151-0/+27
| | | | | | | Thanks to robbat2 for providing feedback. Closes: https://github.com/gentoo/gentoo/pull/30603 Signed-off-by: Florian Schmaus <flow@gentoo.org>
* eclass/ruby-ng.eclass: mark ruby27 as removedHans de Graaff2023-05-151-1/+1
| | | | Signed-off-by: Hans de Graaff <graaff@gentoo.org>
* eclass/ruby-utils.eclass: remove ruby27 from list of targetsHans de Graaff2023-05-151-1/+1
| | | | Signed-off-by: Hans de Graaff <graaff@gentoo.org>
* Rename dev-python/{flit_core → flit-core}Michał Górny2023-05-151-6/+6
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* apache-2.eclass: add rustls supportSam James2023-05-151-0/+1
| | | | | | | Bug: https://bugs.gentoo.org/885099 Closes: https://bugs.gentoo.org/903746 Closes: https://github.com/gentoo/gentoo/pull/28634 Signed-off-by: Sam James <sam@gentoo.org>
* Revert "bash-completion-r1.eclass: mark get_bashcompdir, get_bashhelpersdir ↵Sam James2023-05-131-3/+1
| | | | | | | | | | | as @INCLUDES_EPREFIX" This reverts commit 8e995bcf32d50c7eae950eb42d84e37d31b0d76b. This confuses pkgcheck and eclass-manpages too much. Bug: https://github.com/pkgcore/pkgcore/issues/404 Signed-off-by: Sam James <sam@gentoo.org>
* bash-completion-r1.eclass: tweak eclassdoc for eclass-manpagesSam James2023-05-131-1/+1
| | | | | | It errors out otherwise with "no description". Signed-off-by: Sam James <sam@gentoo.org>
* llvm.org.eclass: Add 17.0.0_pre20230512 snapshotMichał Górny2023-05-121-0/+3
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* stardict.eclass: Mark @DEADMatt Turner2023-05-111-0/+1
| | | | | | Bug: https://bugs.gentoo.org/905901 Closes: https://github.com/gentoo/gentoo/pull/30923 Signed-off-by: Matt Turner <mattst88@gentoo.org>
* elisp-common.eclass: Drop EAPI 6 supportUlrich Müller2023-05-101-2/+1
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* multilib.eclass: Drop CONF_LIBDIRUlrich Müller2023-05-101-1/+1
| | | | | | | | | | | The CONF_LIBDIR variable was used exclusively in the 2004.3 profile (i.e. it was no longer defined in 2005.0), before the ABI and LIBDIR_${ABI} variables existed. Simply use "lib" as default, which is consistent with get_libdir(). Bug: https://bugs.gentoo.org/267159 Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* ecm.eclass: Drop Qt 5.15.8 from ECM_QTHELP Portage bug workaroundAndreas Sturmlechner2023-05-091-15/+6
| | | | Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* toolchain.eclass: filter-lto too (please use USE=lto instead)Sam James2023-05-091-0/+3
| | | | | | | Followup to e6dd349ea37663f3e3a6ce1df3fd9f7cf18e20cd. Closes: https://bugs.gentoo.org/906007 Signed-off-by: Sam James <sam@gentoo.org>
* toolchain.eclass: cleanup obsolete texinfo hacksSam James2023-05-081-30/+6
| | | | | | | | | | | | | | | | | These don't seem to be necessary at all now: - we don't sed info pages anymore because GCC has support for setting the bug URL + distributor now - there's info pages in other directories than gcc/ (e.g. libgccjit) With 12.3.0, I had without this: ``` * CMP: =sys-devel/gcc-12.2.1_p20230505 with sys-devel/gcc-12.3.0/image * FILES:-usr/share/gcc-data/x86_64-pc-linux-gnu/12/info/gfortran.info * FILES:-usr/share/gcc-data/x86_64-pc-linux-gnu/12/info/libgccjit.info * ------> FILES(-2) ABI(TIMEOUT) ``` Signed-off-by: Sam James <sam@gentoo.org>
* toolchain.eclass: conditionalize old awk sed fixupSam James2023-05-081-1/+4
| | | | | | Bug: https://bugs.gentoo.org/215828 Bug: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=35855 Signed-off-by: Sam James <sam@gentoo.org>
* flag-o-matic.eclass: allow -fno-lto too in strip-flagsSam James2023-05-071-1/+1
| | | | | | | Ionen rightly points out that people might have -flto by default and -fno-lto in package.env. Signed-off-by: Sam James <sam@gentoo.org>
* flag-o-matic.eclass: add -Oz to ALLOWED_FLAGS (strip-flags whitelist)Sam James2023-05-071-1/+1
| | | | | | We already allow -Os and -Oz is just a more aggressive version of that. Signed-off-by: Sam James <sam@gentoo.org>
* flag-o-matic.eclass: add -flto, -flto=* to ALLOWED_FLAGS (strip-flags whitelist)Sam James2023-05-071-0/+1
| | | | | | | LTO is pretty safe nowadays and packages broken with it should really use filter-lto specifically instead. Signed-off-by: Sam James <sam@gentoo.org>
* flag-o-matic.eclass: drop -fstack-check from ALLOWED_FLAGS (strip-flags ↵Sam James2023-05-071-1/+0
| | | | | | | | | | | | | | | | whitelist) -fstack-check is _not_ a safe flag: * https://developers.redhat.com/blog/2017/09/25/stack-clash-mitigation-gcc-background * https://developers.redhat.com/blog/2019/04/30/stack-clash-mitigation-in-gcc-why-fstack-check-is-not-the-answer Nobody is really interested in maintaining this functionality upstream in GCC anymore for this reason, it's not IIRC supported in Clang, and we're not testing it either. Please use the far superior -fstack-clash-protection instead. Signed-off-by: Sam James <sam@gentoo.org>
* flag-o-matic.eclass: add -O3 to ALLOWED_FLAGS (strip-flags whitelist)Sam James2023-05-071-1/+1
| | | | | | | | | | -O3 is perfectly safe in the absence of UB. And with UB, -O2 and friends can easily break with new compiler versions and such anyway. In addition, I'd say that -O/-O1 is probably as risky as -O3 nowadays, if not more, because if nothing else, you don't get a bunch of hardening. Signed-off-by: Sam James <sam@gentoo.org>
* llvm.org.eclass: Remove old snapshotsMichał Górny2023-05-061-9/+0
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Add IUSE=debug w/ DISTUTILS_EXT+_OPTIONALMichał Górny2023-05-051-1/+4
| | | | | | | Fix DISTUTILS_EXT to add IUSE=debug even if DISTUTILS_OPTIONAL is used. This was the intended behavior, as documented in the Python Guide. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* llvm.org.eclass: Enable manpages for 16.0.3Michał Górny2023-05-031-1/+1
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: ensure meson-python uses a stable build directoryEli Schwartz2023-05-021-0/+3
| | | | | | | | | | | | | | When not passing an explicit build directory, meson-python configures meson into a build directory that is rooted in a tempdir with a random suffix. This results in unstable paths, which currently disappear after meson-python completes (either with success or failure). It doesn't handle incremental or resumed builds, and it's very difficult to debug -- for example by inspecting the logfile that meson itself prints out when the configure stage fails. Bug: https://bugs.gentoo.org/905396 Signed-off-by: Eli Schwartz <eschwartz93@gmail.com> Signed-off-by: Sam James <sam@gentoo.org>
* llvm.org.eclass: Add 17.0.0_pre20230502 snapshotMichał Górny2023-05-021-0/+3
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-utils-r1.eclass: Disable python3_9Michał Górny2023-05-011-5/+3
| | | | | Signed-off-by: Michał Górny <mgorny@gentoo.org> Signed-off-by: Sam James <sam@gentoo.org>
* eclass/tests/python-utils-r1.sh: Stop testing python3_9Michał Górny2023-05-011-7/+1
| | | | | Signed-off-by: Michał Górny <mgorny@gentoo.org> Signed-off-by: Sam James <sam@gentoo.org>
* toolchain.eclass: record EGIT_VERSION correctly in gcc --version for live ↵Sam James2023-04-271-0/+5
| | | | | | | | | | | | ebuilds Without this, gcc --version ends up only showing the commit resulting from applying our patches on top. With this fixed, gcc --version shows both the upstream commit & the commit hash after applying patches. Signed-off-by: Sam James <sam@gentoo.org>
* toolchain.eclass: don't enable openmp by default for >= 13Sam James2023-04-261-1/+8
| | | | | | | This should be set in profiles going forward, not in toolchain.eclass. Bug: https://bugs.gentoo.org/890999 Signed-off-by: Sam James <sam@gentoo.org>
* bash-completion-r1.eclass: mark get_bashcompdir, get_bashhelpersdir as ↵Sam James2023-04-251-1/+3
| | | | | | @INCLUDES_EPREFIX Signed-off-by: Sam James <sam@gentoo.org>
* distutils-r1.eclass: Fix support for >=meson-python-0.13.0Michał Górny2023-04-241-17/+34
| | | | | Closes: https://bugs.gentoo.org/904677 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* acct-group.eclass: alpha, ia64, s390, m68k lack stable keywordsSam James2023-04-231-1/+1
| | | | | | We dropped them to ~arch a while ago. Signed-off-by: Sam James <sam@gentoo.org>