summaryrefslogtreecommitdiff
path: root/eclass
Commit message (Collapse)AuthorAgeFilesLines
* gnuconfig.eclass: drop EAPI 5 supportSam James2024-05-031-4/+4
| | | | | | | | autotools.eclass hasn't had EAPI 5 support for ~2 years since 50710f3d0e8f19fab5571d9596c336314e96b5cf so this wasn't being used anyway (non-autotools.eclass use of gnuconfig.eclass is very niche). Signed-off-by: Sam James <sam@gentoo.org>
* autotools.eclass: conditionalize gnuconfig dependencySam James2024-05-031-2/+6
| | | | | | | Use newly-added GNUCONFIG_DEPEND so that AUTOTOOLS_AUTO_DEPEND=no doesn't result in a useless dependency on gnuconfig. Signed-off-by: Sam James <sam@gentoo.org>
* gnuconfig.eclass: add GNUCONFIG_DEPENDSam James2024-05-031-3/+19
| | | | | | | The motivation here is to allow autotools.eclass consumers setting AUTOTOOLS_AUTO_DEPEND=no to not have a useless gnuconfig dependency. Signed-off-by: Sam James <sam@gentoo.org>
* xorg-3.eclass: conditionalize autotools deps on XORG_EAUTORECONFSam James2024-05-031-3/+2
| | | | | | | | | | | | | | | xorg-3.eclass only calls autoreconf if XORG_EAUTORECONF is set, although the logic got cleaned up more in fae3e3b3eeec2d252ad42afeba11ac8ffeb70c42. We therefore don't need to depend on autoconf, automake, etc unless XORG_EAUTORECONF is set. Set AUTOTOOLS_AUTO_DEPEND from autotools.eclass to opt-out of the auto dependencies and use the AUTOTOOLS_DEPEND variable it sets when XORG_EAUTORECONF. Note that libtool.eclass still adds a dep on elt-patches so we're OK for that part (we call elibtoolize where we can). Signed-off-by: Sam James <sam@gentoo.org>
* xorg-3.eclass: cleanup autotools logic a bit moreSam James2024-05-031-2/+0
| | | | | | | EAUTORECONF_DEPENDS is always empty since 3db70e9c014e415ae38a713b47cf7b299fd11945. Fixes: 3db70e9c014e415ae38a713b47cf7b299fd11945 Signed-off-by: Sam James <sam@gentoo.org>
* texlive-module.eclass: install man pages in right locationFlorian Schmaus2024-05-021-0/+187
| | | | | | | | | | | | | | | | | | | | The TeX Live packages under dev-texlive/* currently do not install the man pages in the right location. They are under /usr/share/texmf-dist/doc/man. Install them at the right location using doman. Having dev-texlive/* packages installing man pages requires that we filter man pages already installed by app-text/texlive-core to avoid file collisions. As a consequence, unfortunately, we have to hard code the list of man pages installed by texlive-core. Or, at least, folks from #-tex and myself could not come up with a solution that does not require hard coding that list. Thanks to ulm for providing feedback. Signed-off-by: Florian Schmaus <flow@gentoo.org> Thanks-to: Ulrich Müller <ulm@gentoo.org>
* toolchain.eclass: fix validate_failures.py cp for non-gccSam James2024-05-021-1/+1
| | | | | | | Thanks to matoro for reporting. Fixes: 5e9a0a17e43d3f5d7d7c1e3a8a7e58f8d26861cf Signed-off-by: Sam James <sam@gentoo.org>
* toolchain.eclass: add another TODO for tests (multilib)Sam James2024-05-011-0/+1
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* toolchain.eclass: update validate_failures.py for Python 3.12Sam James2024-05-011-3/+3
| | | | | | | | | | | | The only change is that we've imported Gabi Falk's patch to fix a SyntaxWarning in its regexes. See https://inbox.sourceware.org/gcc-patches/20240415233833.104460-1-gabifalk@gmx.com/. While here, fix a typo in a comment. Closes: https://bugs.gentoo.org/929834 Signed-off-by: Sam James <sam@gentoo.org>
* toolchain.eclass: add TODO for JITSam James2024-05-011-0/+1
| | | | | | Suggested by Arsen. Signed-off-by: Sam James <sam@gentoo.org>
* toolchain.eclass: iterate over older slots if test manifest doesn't existSam James2024-05-011-1/+11
| | | | | | | | | | | | | | Iterate over all known slots (at least those using the "new" SLOT value from --with-major-version-only since ~GCC 10 in Gentoo) if we couldn't find a test manifest for GCC_TESTS_COMPARISON_SLOT, rather than expecting pristine results. This makes life easier when installing a new slot (or newly enabling tests for one). It's *particularly* useful, I think, for arch testers who might want to establish a baseline once but not have to keep doing it across many chroots for each new slot. Signed-off-by: Sam James <sam@gentoo.org>
* Building the ada compiler require both c++ and ada USE flags enabled.Alfredo Tupone2024-04-301-1/+1
| | | | | | Otherwise drop ada. Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
* toolchain.eclass: To make "tc_has_feature ada" actually workAlfredo Tupone2024-04-301-1/+1
| | | | | | | tc_has_feature ada is used to add BDEPEND on a ada compiler,. Without setting TC_FEATURES the test does not work Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
* stardict.eclass: inline mirror://sourceforgeLucio Sauer2024-04-301-2/+2
| | | | | | | bump copyright to 2024 Signed-off-by: Lucio Sauer <watermanpaint@posteo.net> Signed-off-by: Michał Górny <mgorny@gentoo.org>
* ruby-ng-gnome2.eclass: inline mirror://sourceforgeLucio Sauer2024-04-301-3/+3
| | | | | | | bump copyright to 2024 Signed-off-by: Lucio Sauer <watermanpaint@posteo.net> Signed-off-by: Michał Górny <mgorny@gentoo.org>
* toolchain.eclass: wire up TC_FEATURES for rustSam James2024-04-301-1/+1
| | | | | | | Otherwise we don't actually end up adding a BDEPEND for USE=rust. Closes: https://bugs.gentoo.org/930953 Signed-off-by: Sam James <sam@gentoo.org>
* texlive-common.eclass: add newline between tlpobj entries in tlpdbFlorian Schmaus2024-04-291-1/+3
| | | | | | | | | | | | | | | We previously created the texlive.tlpdb by concatenating all tlpobj files. This means that the entries will be right after another. As it turns out, some TeX Live tools require a newline (e.g., tlmgr) between the entries, while others do not (e.g., texdoc). And the "official" tlpdb also has the entries separated by newlines. Therefore this changes texlive-common_update_tlpdb() to also add them. Thanks to ulm for showing how this can be done with sed. Signed-off-by: Florian Schmaus <flow@gentoo.org> Thanks-to: Ulrich Müller <ulm@gentoo.org>
* eclass/apache2.eclass: Revert "use fcaps eclass to set capabilities"Michał Górny2024-04-281-5/+1
| | | | | | | | This is causing fatal postinst errors with some USE flag combinations. Reverts: 8b19280613e0efdbd5dd39860e835565e6a48c0e Bug: https://bugs.gentoo.org/930455 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* eclass/apache2.eclass: use fcaps eclass to set capabilitiesHans de Graaff2024-04-281-1/+5
| | | | | | | Thanks to Manuel Mausz for the bug report and initial patch. Closes: https://bugs.gentoo.org/930455 Signed-off-by: Hans de Graaff <graaff@gentoo.org>
* llvm.org.eclass: Add 19.0.0_pre20240427 snapshotMichał Górny2024-04-271-0/+3
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* gear.kde.org.eclass: Add post-24.02 release SLOT=5 blocklistAndreas Sturmlechner2024-04-251-0/+13
| | | | Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* ecm.eclass: Restrict ECM_TEST="optional" and punting dep to _KFSLOT=5Andreas Sturmlechner2024-04-251-21/+29
| | | | | | | | | | | In dev-qt/qtbase:6, Qt6Test is always provided so it makes no sense to go through the trouble of ripping out the build dependency. We should still aim to avoid needless building of tests if not requested, either by detecting unconditional use of ecm_add_test or expose existing force* logic to ebuild developers to catch those as errors. Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* eutils.eclass: fix @DEAD tagSam James2024-04-231-1/+1
| | | | | | | | | ``` eutils.eclass: error:10: eutils.eclass: unknown keyword @DEAD ``` Signed-off-by: Sam James <sam@gentoo.org>
* toolchain.eclass: propagate USE=zstd to libgccjit buildSam James2024-04-221-1/+1
| | | | | | | | | | | You *can* do LTO with libgccjit, apparently, and it even works if we don't break the compression used for LTO with it. Pass down the zstd arg from USE=zstd like we do for the regular build. Thanks to StrawberryTea for reporting. Closes: https://bugs.gentoo.org/926953 Signed-off-by: Sam James <sam@gentoo.org>
* qt6-build.eclass: sort eclass variablesIonen Wolkens2024-04-201-7/+7
| | | | Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
* qt6-build.eclass: add QT6_RESTRICT_TESTS variableIonen Wolkens2024-04-201-2/+13
| | | | | | | | At same time, remove the qttranslations special logic, it can just make use of the variable instead. Bug: https://bugs.gentoo.org/930266 Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
* llvm.org.eclass: Add 19.0.0_pre20240420 snapshotMichał Górny2024-04-201-0/+3
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* llvm.org.eclass: Remove support for old snapshotsMichał Górny2024-04-201-6/+0
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* meson.eclass: preserve exit status in phase funcsMike Gilbert2024-04-191-4/+16
| | | | | | | | | | When the functions are called with nonfatal, we need to ensure 'popd' does not clobber the exit status of the called command. Update meson_src_configure as well just for consistency. Closes: https://bugs.gentoo.org/930119 Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* distutils-r1.eclass: Pass arguments to scikit-build-coreMichał Górny2024-04-191-0/+43
| | | | | | | | | | | | Support passing DISTUTILS_ARGS to scikit-build-core, along with some standard arguments that: - ensure that CFLAGS, CXXFLAGS, CPPFLAGS and so on, are respected - respect CMAKE_BUILD_TYPE, along with the default of RelWithDebInfo - enable verbose builds - disable stripping Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Document DISTUTILS_ARGS for maturin & mesonMichał Górny2024-04-191-0/+6
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* toolchain.eclass: depend on virtual/rust for USE=rust (!)Sam James2024-04-181-0/+6
| | | | | | | | This is a temporary measure from upstream commit r14-9968-g3e1e73fc995844. See also https://inbox.sourceware.org/gcc/34fec7ea-8762-4cac-a1c8-ff54e20e31ed@embecosm.com/. Signed-off-by: Sam James <sam@gentoo.org>
* toolchain.eclass: add a variable to force baseline regenerationGabi Falk2024-04-161-8/+25
| | | | | | | Suggested-by: Sam James <sam@gentoo.org> Signed-off-by: Gabi Falk <gabifalk@gmx.com> Closes: https://github.com/gentoo/gentoo/pull/36244 Signed-off-by: Sam James <sam@gentoo.org>
* toolchain.eclass: always generate a new test-suite baseline manifestGabi Falk2024-04-161-7/+9
| | | | | | | | | | | | | Previously, a new baseline was generated only in cases of test suite success or when GCC_TESTS_IGNORE_NO_BASELINE was enabled. After this change, if there is a test suite regression, users will have the option to copy the new baseline file to the cache if they choose to tolerate the regression. Additionally, the toolchain_pkg_preinst() function will update the baseline automatically if the package is built with the FEATURES=test-fail-continue setting. Signed-off-by: Gabi Falk <gabifalk@gmx.com> Signed-off-by: Sam James <sam@gentoo.org>
* toolchain.eclass: do not ignore a baseline with GCC_TESTS_IGNORE_NO_BASELINEGabi Falk2024-04-161-1/+1
| | | | | | | | | | The GCC_TESTS_IGNORE_NO_BASELINE flag is intended to facilitate the initial generation of a baseline file, but it shouldn't affect the behavior if a baseline file already exists. Fixes: 1d93a491096f1cc0234fcf44458bfec142c213bb ("toolchain.eclass: rework tests more") Signed-off-by: Gabi Falk <gabifalk@gmx.com> Signed-off-by: Sam James <sam@gentoo.org>
* ant-tasks.eclass: mark ant-tasks.eclass deadVolkmar W. Pogatzki2024-04-131-1/+1
| | | | | | Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/36240 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
* toolchain.eclass: fix installation of gcc[test] packages from binaryGabi Falk2024-04-131-1/+1
| | | | | | | | | Fixes: abf8e2ee55c52c8ae894e0b3845ea1cebfcfd4e8 ("toolchain.eclass: install test results as orphaned files in /var/cache/gcc") Signed-off-by: Gabi Falk <gabifalk@gmx.com> Closes: https://github.com/gentoo/gentoo/pull/36224 Signed-off-by: Sam James <sam@gentoo.org>
* rpm.eclass: Drop support for EAPI 6Ulrich Müller2024-04-131-60/+3
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* java-ant-2.eclass: drop EAPI 6Volkmar W. Pogatzki2024-04-111-2/+2
| | | | | | Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/36199 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
* gnustep-*.eclass: Drop support for EAPI 6Ulrich Müller2024-04-102-17/+8
| | | | | | In EAPI 6, gnustep-base inherits eutils which is going to be last-rited. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* llvm.org.eclass: Add 19.0.0_pre20240410 snapshotMichał Górny2024-04-101-0/+3
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* java-pkg-simple.eclass: use --module-path for ejavadoc when applicableManuel Mommertz2024-04-101-4/+11
| | | | | | | Bug: https://bugs.gentoo.org/925691 Signed-off-by: Manuel Mommertz <manuel.mommertz@desy.de> Closes: https://github.com/gentoo/gentoo/pull/35302 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
* eutils.eclass: Mark as DEADUlrich Müller2024-04-091-1/+2
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* java-vm-2.eclass: drop EAPI 6Volkmar W. Pogatzki2024-04-081-10/+3
| | | | | Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
* llvm.org.eclass: Add 19.0.0_pre20240404 snapshotMichał Górny2024-04-061-0/+3
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* llvm.org.eclass: Remove support for old snapshotsMichał Górny2024-04-061-6/+0
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* texlive-common_update_tlpdb: only run find if tlpobj dir existsFlorian Schmaus2024-04-051-4/+6
| | | | | | | | | | | | Closes: https://bugs.gentoo.org/928638 Closes: https://bugs.gentoo.org/928639 Closes: https://bugs.gentoo.org/928640 Closes: https://bugs.gentoo.org/928641 Closes: https://bugs.gentoo.org/928642 Closes: https://bugs.gentoo.org/928643 Closes: https://bugs.gentoo.org/928644 Closes: https://bugs.gentoo.org/928645 Signed-off-by: Florian Schmaus <flow@gentoo.org>
* eclass/apache-2.eclass: select compatible rustls-ffi versionHans de Graaff2024-04-051-1/+1
| | | | | | | The apache tls module does not compile with rustls-ffi 0.12.x versions. Bug: https://bugs.gentoo.org/928046 Signed-off-by: Hans de Graaff <graaff@gentoo.org>
* elisp-common.eclass: Drop test for existence of ${T}Ulrich Müller2024-04-041-3/+0
| | | | | | | This was the remnant of a 2008 workaround for Paludis (bug #517), which didn't define T in the postrm phase. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* elisp-common.eclass: Use EROOT instead of ROOT+EPREFIXUlrich Müller2024-04-041-2/+2
| | | | | | This was a leftover of pre-EAPI-3 compatibility. Signed-off-by: Ulrich Müller <ulm@gentoo.org>