summaryrefslogtreecommitdiff
path: root/eclass
Commit message (Collapse)AuthorAgeFilesLines
...
* 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>
* texlive-*.eclass: move update_tldb from texlive-module to texlive-commonFlorian Schmaus2024-04-042-57/+56
| | | | | | | The TexLive package database (tlpdb) also needs to be updated by app-text/texlive-core, which only inherits texlive-common.eclass. Signed-off-by: Florian Schmaus <flow@gentoo.org>
* meson.eclass: set working directory to BUILD_DIREli Schwartz2024-04-041-3/+12
| | | | | | | | | | | | | | | | | In phases where the build directory has been configured and we are operating on it, it is better to change directories instead of passing -C options. This allows portage to know where we are, and in the case of errors it will then print: * Working directory: '/var/tmp/portage/www-client/elinks-0.16.1.1-r2/work/elinks-0.16.1.1-build' * S: '/var/tmp/portage/www-client/elinks-0.16.1.1-r2/work/elinks-0.16.1.1' instead of simply listing both as the same directory. This is much more convenient to copy/paste for the sake of entering the failed build and examining it. Signed-off-by: Eli Schwartz <eschwartz93@gmail.com> Signed-off-by: Sam James <sam@gentoo.org>
* meson.eclass: call die -n in phase helpersMike Gilbert2024-04-041-4/+4
| | | | | | | | This allows the ebuild author to treat some errors as nonfatal. Signed-off-by: Mike Gilbert <floppym@gentoo.org> Signed-off-by: Eli Schwartz <eschwartz93@gmail.com> Signed-off-by: Sam James <sam@gentoo.org>
* texlive-module.eclass: add texlive-module_update_tlpdbFlorian Schmaus2024-04-031-0/+57
| | | | | | | | Update (or create) the tlpdb based on the contents of /usr/share/tlpkg/tlpobj. Closes: https://bugs.gentoo.org/928162 Signed-off-by: Florian Schmaus <flow@gentoo.org>
* texlive-module.eclass: only invoke etexmf-update in postinst if not ↵Florian Schmaus2024-04-031-1/+1
| | | | | | replacing versions Signed-off-by: Florian Schmaus <flow@gentoo.org>
* gstreamer-meson.eclass: depend on glib-utils for -base and -bad splitsMart Raudsepp2024-04-011-0/+6
| | | | | Closes: https://bugs.gentoo.org/811807 Signed-off-by: Mart Raudsepp <leio@gentoo.org>
* gstreamer-meson.eclass: Avoid shm and waylandsink getting enabled for -bad ↵Mart Raudsepp2024-04-011-2/+2
| | | | | | | | | | splits This is mainly for correctness, as the bad split builds didn't actually end up building anything about shm or waylandsink as the subdirs of those are ignored by the split packages builds. Signed-off-by: Mart Raudsepp <leio@gentoo.org>
* gstreamer-meson.eclass: Install any preset files for split pluginsMart Raudsepp2024-04-011-1/+8
| | | | | | | | | gst-plugins-vpx, gst-plugins-voamrwbenc, gst-plugins-amrnb and gst-plugins-x264 have preset files that we weren't installing. This change makes them do so when they bump to EAPI-8. Bug: https://bugs.gentoo.org/915220 Signed-off-by: Mart Raudsepp <leio@gentoo.org>
* gstreamer-meson.eclass: Increase test timeoutMart Raudsepp2024-04-011-1/+1
| | | | | | | | gst-plugins-good fails flvmux or other tests sometimes for me on timeout otherwise, probably from running with a high amount of parallel tests having some longer-running take even longer. Signed-off-by: Mart Raudsepp <leio@gentoo.org>
* gstreamer-meson.eclass: add EAPI 8 support with pkg_setup and python-any-r1Mart Raudsepp2024-04-011-9/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | pkg_setup is exported in EAPI-8 to proxy to python-any-r1_pkg_setup while being future-proof for any other changes and make it less surprising when some ebuild needs to important something else that exports pkg_setup too by not having it be implicit export via an indirect inherit. Bug: https://bugs.gentoo.org/834789 Bug: https://bugs.gentoo.org/807959 Bug: https://bugs.gentoo.org/804597 Bug: https://bugs.gentoo.org/804600 Bug: https://bugs.gentoo.org/804948 Bug: https://bugs.gentoo.org/805515 Bug: https://bugs.gentoo.org/808111 Bug: https://bugs.gentoo.org/808114 Bug: https://bugs.gentoo.org/813029 Bug: https://bugs.gentoo.org/813156 Bug: https://bugs.gentoo.org/813159 Bug: https://bugs.gentoo.org/834790 Bug: https://bugs.gentoo.org/834791 Bug: https://bugs.gentoo.org/834878 Bug: https://bugs.gentoo.org/835398 Bug: https://bugs.gentoo.org/843986 Bug: https://bugs.gentoo.org/866797 Bug: https://bugs.gentoo.org/866800 Bug: https://bugs.gentoo.org/866803 Bug: https://bugs.gentoo.org/866806 Bug: https://bugs.gentoo.org/866824 Bug: https://bugs.gentoo.org/866827 Bug: https://bugs.gentoo.org/866830 Bug: https://bugs.gentoo.org/866833 Bug: https://bugs.gentoo.org/866836 Bug: https://bugs.gentoo.org/866845 Bug: https://bugs.gentoo.org/866848 Bug: https://bugs.gentoo.org/866851 Bug: https://bugs.gentoo.org/866854 Bug: https://bugs.gentoo.org/866857 Bug: https://bugs.gentoo.org/866860 Bug: https://bugs.gentoo.org/866863 Bug: https://bugs.gentoo.org/866866 Bug: https://bugs.gentoo.org/866914 Bug: https://bugs.gentoo.org/866917 Bug: https://bugs.gentoo.org/866920 Bug: https://bugs.gentoo.org/866926 Bug: https://bugs.gentoo.org/888129 Bug: https://bugs.gentoo.org/907435 Bug: https://bugs.gentoo.org/907437 Bug: https://bugs.gentoo.org/907438 Bug: https://bugs.gentoo.org/907440 Bug: https://bugs.gentoo.org/907441 Bug: https://bugs.gentoo.org/907466 Bug: https://bugs.gentoo.org/907467 Bug: https://bugs.gentoo.org/907468 Bug: https://bugs.gentoo.org/907469 Signed-off-by: Mart Raudsepp <leio@gentoo.org>
* gstreamer-meson.eclass: fix false positive missing IUSE=orc warningsMart Raudsepp2024-04-011-1/+23
| | | | | | | | | Main packages are assumed to always want IUSE=orc when the meson option is there, whereas split plugins are considered to need it when they refer to orc_dep in one of their plugin subdirs and not need it when none do. Closes: https://bugs.gentoo.org/810417 Signed-off-by: Mart Raudsepp <leio@gentoo.org>
* gstreamer-meson.eclass: fix false positive missing introspection warningsMart Raudsepp2024-04-011-1/+3
| | | | | | | | Split plugins would (almost?) never enable introspection build as they typically don't ship any libraries, much less those that would be set up for introspection. Bug: https://bugs.gentoo.org/810417 Signed-off-by: Mart Raudsepp <leio@gentoo.org>
* gstreamer-meson.eclass: Avoid ximagesrc and v4l2 getting enabled for -good ↵Mart Raudsepp2024-04-011-3/+8
| | | | | | | | | | splits This is mainly for correctness, as the good split builds didn't actually end up building anything about ximagesrc or v4l2 as the subdirs of those are ignored by the split packages builds. Signed-off-by: Mart Raudsepp <leio@gentoo.org>
* gstreamer-meson.eclass: Refactor away repetition in gstreamer_get_plugins()Mart Raudsepp2024-04-011-29/+16
| | | | Signed-off-by: Mart Raudsepp <leio@gentoo.org>
* gstreamer-meson.eclass: Drop bogus IUSE=test for split packagesMart Raudsepp2024-04-011-1/+7
| | | | | | | | virtualx was inherited unconditionally, but only used in non-splits. Unconditional virtualx inheriting is preserved for older than 1.22.10 versions to not cause any --newuse rebuilds for stable users. Signed-off-by: Mart Raudsepp <leio@gentoo.org>
* gstreamer-meson.eclass: Avoid gl getting automatically enabled for base splitsMart Raudsepp2024-04-011-0/+5
| | | | | | | | | This necessitates adding `gl` to GST_PLUGINS_NOAUTO in gst-plugins-base, or it gets disabled there as well due to eclass additions being appended to the ebuild ones. This is mainly for correctness, as the few base split builds didn't actually end up building anything about GL extra due to this. Signed-off-by: Mart Raudsepp <leio@gentoo.org>
* gstreamer-meson.eclass: Avoid needlessly compiling helper libraries in split ↵Mart Raudsepp2024-04-011-1/+5
| | | | | | | | | | | | | | | | | | | | | packages When a split package uses gstreamer_system_package() for a helper library in gst-libs/ that is in the same tarball, it wasn't working fully anymore these days because for subprojects support they all do a meson.override_dependency as well, which is also overriding the dependency our eclass helper adds at the top of the split plugins subdir meson.build. Because of that, it was building these helper libraries from scratch and link against them, only to discard it after linking against it and potentially also causing some ABI issues, as at runtime the system version from the main package is used (though that hasn't been observed as of yet, only the extra big compilation). Fix it by deleting the relevant override_dependency call as part of gstreamer_system_package() as well, which works as long as the syntax used for it is standard in terms of whitespace usage. For example gst-plugins-cdparanoia had 51 build units before due to this, but only 2 after the fix. Signed-off-by: Mart Raudsepp <leio@gentoo.org>
* media-libs/gstreamer: add 1.22.10, drop 1.22.3 (security)Haelwenn (lanodan) Monnier2024-04-011-0/+6
| | | | | | | | | | | | - eclass / gst-plugins-good: Add "soup" option in the special cases - gst-plugins-good: Backport fix against tests being enabled on libsoup presence automagic-style <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6058> Closes: https://bugs.gentoo.org/836163 Closes: https://bugs.gentoo.org/908978 Signed-off-by: Haelwenn (lanodan) Monnier <contact@hacktivis.me> Signed-off-by: Mart Raudsepp <leio@gentoo.org>
* python-utils-r1.eclass: epytest, error out on missing async pluginMichał Górny2024-04-011-0/+3
| | | | | | | | | | | | | Explicitly error out if epytest is run without an appropriate async plugin, and the test suite contains async tests. Currently, these tests are skipped with a warning but that is usually a mistake, and one can easily miss it when pytest-asyncio or a similar plugin is installed on the test system. However, a missing dependency can result in the tests being skipped afterwards on the tinderbox. Signed-off-by: Michał Górny <mgorny@gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/35913 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Remove more junk from .dist-infoMichał Górny2024-04-011-3/+12
| | | | | Closes: https://bugs.gentoo.org/927818 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Fix `det unittest` with 3.12 onlyMichał Górny2024-04-011-4/+4
| | | | | Closes: https://bugs.gentoo.org/926964 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Refactor `distutils_enable_tests pytest`Michał Górny2024-04-011-11/+9
| | | | | | | | Refactor `distutils_enable_tests pytest` to move `test_pkgs` logic straight into pytest block, as it is not used by any other variant anymore. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Remove nosetests supportMichał Górny2024-04-011-8/+0
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Run pdm.pep517.api via pdm-backendMichał Górny2024-04-011-17/+4
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Bump minimal dep versionsMichał Górny2024-04-011-14/+14
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* git-r3.eclass: Add the ability to checkout ignored submodules.Sebastian Parborg2024-04-011-1/+3
| | | | | | | | | If the submodules is specified in EGIT_SUBMODULES then it will ignore the "none" check. Signed-off-by: Sebastian Parborg <darkdefende@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/35911 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* git-r3.eclass: Fix fetching git lfs files at certain refs. Only prune when ↵Sebastian Parborg2024-04-011-5/+9
| | | | | | | | | | | | | | | | needed. If a lfs files was changed between the checked out ref and the git head commit, it would fail to fetch them. Now correctly specify the ref for the lfs fetch as well to ensure that we can fetch the correct lfs files. Only prune when we have existing lfs files. For bigger repos with submodules, it will be quite slow to try to prune. So if there are no files to prune, don't attempt it. This also speeds up checkout when only a few of the checked out git repos are lfs repos. Signed-off-by: Sebastian Parborg <darkdefende@gmail.com> Signed-off-by: Michał Górny <mgorny@gentoo.org>