summaryrefslogtreecommitdiff
path: root/eclass
Commit message (Collapse)AuthorAgeFilesLines
* cannadic.eclass: Port to EAPI 7David Seifert2021-06-201-44/+53
| | | | | | | | * Add whitelist * eclassdoc * `EROOT` in `pkg_*` phases only Signed-off-by: David Seifert <soap@gentoo.org>
* findlib.eclass: fix licence headerSam James2021-06-191-1/+2
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* findlib.eclass: define IUSE="ocamlopt"Sam James2021-06-191-2/+4
| | | | | | | | | | | | Fixes failures such as: ``` dev-ml/camlbz2-0.7.0::gentoo (masked by: invalid: RDEPEND: USE flag 'ocamlopt' referenced in conditional 'ocamlopt?' in atom 'dev-lang/ocaml:=[ocamlopt?]' is not in IUSE) ``` in findlib.eclass consumers lacking IUSE="ocamlopt". Fixes: f498bcbd7c3fd328bd5f66f3286521b6db926f5e Signed-off-by: Sam James <sam@gentoo.org>
* fcaps.eclass: support EAPI 8David Michael2021-06-191-10/+12
| | | | | | | | | | | | | | | | | | | | | This defines the native install-time libcap dependency as: - EAPI < 7: RDEPEND Only regular ROOT=/ builds can be expected to work. - EAPI = 7: RDEPEND + BDEPEND Also install the native setcap at built time, so cross- compiling will work, but not installing binpkgs in ROOTs. - EAPI > 7: IDEPEND Install native setcap at install-time; it works everywhere. Since all remaining users are EAPI 6 and above, declare eclass compatibility with EAPIs 6, 7, and 8. Signed-off-by: David Michael <fedora.dm0@gmail.com> Signed-off-by: Mike Gilbert <floppym@gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/21239
* perl-module.eclass: Add EAPI=8 supportAndreas K. Hüttel2021-06-191-13/+76
| | | | | | | | | | New features: DIST_WIKI and DIST_MAKE File permissions are fixed on installation Bug: https://bugs.gentoo.org/733020 Bug: https://bugs.gentoo.org/554346 Bug: https://bugs.gentoo.org/261375 Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
* perl-functions.eclass: Add new helpers for EAPI=8 ...Andreas K. Hüttel2021-06-191-3/+32
| | | | | | | | | | ... and fix an existing one. fperms works on ${D} by default, so we can give it / to operate on. Bug: https://bugs.gentoo.org/554346 Bug: https://bugs.gentoo.org/733020 Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
* readme.gentoo-r1.eclass: Support EAPI 8, drop EAPIs 4 and 5Ulrich Müller2021-06-191-4/+4
| | | | | Reviewed-by: Pacho Ramos <pacho@gentoo.org> Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* elisp*.eclass: Support EAPI 8Ulrich Müller2021-06-192-4/+4
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* eclass/linux-info: Properly document CONFIG_CHECK and ERROR_<CFG>Mike Pagano2021-06-181-1/+6
| | | | | | Closes: https://bugs.gentoo.org/409207 Signed-off-by: Mike Pagano <mpagano@gentoo.org>
* eclass/linux-info: eclassdoc fixes. Mark variables correctlyMike Pagano2021-06-181-8/+8
| | | | Signed-off-by: Mike Pagano <mpagano@gentoo.org>
* eclass/linux-info: eclassdoc fixesMike Pagano2021-06-181-5/+12
| | | | | | Closes: https://bugs.gentoo.org/637780 Signed-off-by: Mike Pagano <mpagano@gentoo.org>
* eclass/findlib.eclass: add rdep on ocaml:=Alfredo Tupone2021-06-171-0/+1
| | | | Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
* eclass/kernel-2: Fix einfo/elog messagesMike Pagano2021-06-161-4/+4
| | | | | | | | | | Fix einfo/elog messages to be more aligned with guidance outlined in the devmanual Closes: https://bugs.gentoo.org/795354 Reported-by: Pacho Ramos Signed-off-by: Mike Pagano <mpagano@gentoo.org>
* kernel-build.eclass: Do not pass INSTALL_PATH in src_testMichał Górny2021-06-161-1/+1
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* kernel-build.eclass: Enable py3.10Michał Górny2021-06-161-1/+1
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* eclass/ada.eclass: removing support for gnat_2016Alfredo Tupone2021-06-111-7/+3
| | | | Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
* eclass/kernel-2: fix USE=symlinkTill Schäfer2021-06-091-1/+1
| | | | | | | | | | | | | the symlink to /usr/src/linux is longer removed bofore linking (see 7446cb850c5e0412e4d88b3aa5d207751241fb02). the latter ln -sf does not replace existing symlinks, since destination is a directory. Closes: https://bugs.gentoo.org/795057 Signed-off-by: Till Schäfer <till2.schaefer@uni-dortmund.de> Closes: https://bugs.gentoo.org/795057 Closes: https://github.com/gentoo/gentoo/pull/21171 Signed-off-by: Mike Pagano <mpagano@gentoo.org>
* multilib.eclass: Default values, not fixed values, for risc-v libdirAndreas K. Hüttel2021-06-081-6/+6
| | | | Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
* sys-libs/glibc: fix ld.so symlink for ppc64 LEAlexei Colin2021-06-071-1/+4
| | | | | | | | | | | | From https://sourceware.org/glibc/wiki/ABIList#powerpc glibc supports two dynamic linker paths: - 64-bit ELFv1 BE: /lib64/ld64.so.1 (ELFv2 BE is not supported) - 64-bit ELFv2 LE: /lib64/ld64.so.2 (ELFv1 LE is not supported) Bug: https://bugs.gentoo.org/755551 Signed-off-by: Alexei Colin <ac@alexeicolin.com> Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* eclass/lua-utils.eclass: remove EPREFIX from exported pathsWilliam Hubbs2021-06-071-1/+6
| | | | | | Closes: https://bugs.gentoo.org/768909 Signed-off-by: William Hubbs <williamh@gentoo.org> Signed-off-by: Marek Szuba <marecki@gentoo.org>
* eclass/kernel-2: respect USE=symlinkBertrand Jacquin2021-06-071-9/+3
| | | | | | | | | | | | | | | | | | | | | | | kernel-2 eclass postinst_sources() creates /usr/usr/linux symlink regardless of USE=symlink. MAKELINK variable controls the creation of /usr/src/linux, however MAKELINK is always set to 1 only if /usr/src/linux does not currently exist with no consideration for USE=symlink. This change simplify the whole /usr/usr/linux symlink creation to instead depend on K_SYMLINK which is set if USE=symlink. This change also refuse to remove existing /usr/usr/linux if it currently exist while not being a symlink Note that this is broken since 906501be57c0 ("adding symlink use flag support") Bug: https://bugs.gentoo.org/695592 Signed-off-by: Bertrand Jacquin <bertrand@jacquin.bzh> Closes: https://bugs.gentoo.org/695592 Closes: https://github.com/gentoo/gentoo/pull/13031 Signed-off-by: Mike Pagano <mpagano@gentoo.org>
* meson-multilib.eclass: Add new eclassMatt Turner2021-06-031-0/+131
| | | | Signed-off-by: Matt Turner <mattst88@gentoo.org>
* meson.eclass: Run einstalldocs from ${S}Matt Turner2021-06-031-0/+3
| | | | | | | | This is how cmake.eclass works, and it will allow easy use by meson-multilib.eclass. Closes: https://github.com/gentoo/gentoo/pull/20986 Signed-off-by: Matt Turner <mattst88@gentoo.org>
* eclass/kernel-install.eclass: omit some dracut modules for testsGeorgy Yakovlev2021-06-031-0/+14
| | | | | | | some modules slow down or even fail to boot in our test environment force qemu dracut module while at it. Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
* multilib-minimal.eclass: Make myself the maintainerMichał Górny2021-06-031-2/+2
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* multilib-build.eclass: Make myself the maintainerMichał Górny2021-06-031-1/+1
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* cmake-multilib.eclass: Make myself the maintainerMichał Górny2021-06-031-1/+1
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* vala.eclass: raise VALA_MAX_API_VERSION to 0.44Matt Turner2021-06-011-1/+1
| | | | | Closes: https://bugs.gentoo.org/793755 Signed-off-by: Matt Turner <mattst88@gentoo.org>
* distutils-r1.eclass: Introduce dift --via-venv install modeMichał Górny2021-06-021-34/+62
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* toolchain.eclass: add -march=znver3 manglingSergei Trofimovich2021-06-012-0/+2
| | | | | | Noticed as a gcc-9 build failure as it does not support -march=znver3. Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* rebar.eclass: add support for EAPI 7Florian Schmaus2021-06-011-10/+15
| | | | | | | | | Thanks To Sam James for reviewing this and providing feedback. Closes: https://bugs.gentoo.org/770283 Signed-off-by: Florian Schmaus <flo@geekplace.eu> Closes: https://github.com/gentoo/gentoo/pull/20424 Signed-off-by: Sam James <sam@gentoo.org>
* rebar.eclass: s,$1,${1},Florian Schmaus2021-06-011-2/+2
| | | | | Signed-off-by: Florian Schmaus <flo@geekplace.eu> Signed-off-by: Sam James <sam@gentoo.org>
* rebar.eclass: fix @RETURN argumentFlorian Schmaus2021-06-011-3/+1
| | | | | | | | | | | Previously "pkgcheck scan rebar.class" would complain about EclassDocError: rebar: failed parsing eclass docs: '@RETURN:', line 61: non-inline arg Thanks to Ulrich Müller for providing feedback. Signed-off-by: Florian Schmaus <flo@geekplace.eu> Signed-off-by: Sam James <sam@gentoo.org>
* python-utils-r1.eclass: Disable python3_7Michał Górny2021-06-011-2/+2
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* gstreamer-meson.eclass: Fix cycle dependency on gstreamerHaelwenn (lanodan) Monnier2021-05-311-1/+7
| | | | | | | Closes: https://bugs.gentoo.org/793032 Signed-off-by: Haelwenn (lanodan) Monnier <contact@hacktivis.me> Closes: https://github.com/gentoo/gentoo/pull/21052 Signed-off-by: Sam James <sam@gentoo.org>
* nsplugins.eclass: Remove last-rited eclassAndreas Sturmlechner2021-05-311-80/+0
| | | | | Closes: https://bugs.gentoo.org/671680 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* ada.eclass: SLOT has changed for gcc-10 and so for gnat-gpl-2021Alfredo Tupone2021-05-301-1/+9
| | | | Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
* gstreamer-meson.eclass: New eclass required for gstreamer-1.18.0+Haelwenn (lanodan) Monnier2021-05-301-0/+367
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Gstreamer switched to meson in 1.16.0 and removed autotools support in 1.18.0, this eclass is an update of gstreamer.eclass. One significant change is that we lost the gstreamer_system_link function. Differences from version 1: - Move to EAPI-7, including moving deps from DEPEND to BDEPEND when appropriate - Port python script to perl, this allows to avoid having to add PYTHON_COMPAT into a python-unrelated eclass - Drop errorneous MULTILIB_USEDEP on virtual/pkgconfig - Fix running tests: defining multilib_src_test, media-libs/gstreamer[test] dep - Fix ebuild emesonargs being ignored - Remove legacy prune_libtool_files - virtualx wrapped for testing Differences from version 2: - Get list of plugins from meson_options.txt instead of hard-coding them, this adds GST_PLUGINS_NOAUTO for ones managed by the ebuild - Fix @AUTHOR order - Sort inherits - remove stray semicolon in test - Add virtx to tests - Remove gstreamer_environment_reset - Put GST_ORG_MODULE conditions into gstreamer_multilib_src_{compile,install} - QA warn when IUSE=orc is defined but the option is absent - Pass gst_debug/examples/nls/tests options only when declared - Use code similar to orc for introspection Closes: https://bugs.gentoo.org/690468 Signed-off-by: Haelwenn (lanodan) Monnier <contact@hacktivis.me> Signed-off-by: Sam James <sam@gentoo.org>
* eclass: ada.eclass add gnat_2021Alfredo Tupone2021-05-291-3/+6
| | | | Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
* common-lisp-3.eclass: Don't run sbcl interactivelyMarco Sirabella2021-05-291-0/+1
| | | | | | | Closes: https://bugs.gentoo.org/777153 Signed-off-by: Marco Sirabella <marco@sirabella.org> Closes: https://github.com/gentoo/gentoo/pull/20150 Signed-off-by: Sam James <sam@gentoo.org>
* kernel-2.eclass: Drop `|| die` in install_universalDavid Seifert2021-05-281-2/+2
| | | | | | | * Breaks unprivileged install Acked-by: Sam James <sam@gentoo.org> Signed-off-by: David Seifert <soap@gentoo.org>
* kernel-2.eclass: drop additional unused 2.4 and 2.6 functionsDavid Michael2021-05-271-16/+0
| | | | | | | | * Invoking maintainer timeout after 14 days. Closes: https://github.com/gentoo/gentoo/pull/20639 Signed-off-by: David Michael <fedora.dm0@gmail.com> Signed-off-by: David Seifert <soap@gentoo.org>
* kernel-2.eclass: Remove deprecated code around 2.4, 2.6 and fbcondecorMike Pagano2021-05-271-70/+0
| | | | | Signed-off-by: Mike Pagano <mpagano@gentoo.org> Signed-off-by: David Seifert <soap@gentoo.org>
* kernel-2.eclass: drop EAPIs 2-5David Michael2021-05-271-12/+6
| | | | | Signed-off-by: David Michael <fedora.dm0@gmail.com> Signed-off-by: David Seifert <soap@gentoo.org>
* kernel-2.eclass: use consistent bash syntaxDavid Michael2021-05-271-79/+82
| | | | | Signed-off-by: David Michael <fedora.dm0@gmail.com> Signed-off-by: David Seifert <soap@gentoo.org>
* kernel-2.eclass: remove echoes for loggingDavid Michael2021-05-271-23/+6
| | | | | Signed-off-by: David Michael <fedora.dm0@gmail.com> Signed-off-by: David Seifert <soap@gentoo.org>
* kernel-2.eclass: die on command failuresDavid Michael2021-05-271-29/+21
| | | | | Signed-off-by: David Michael <fedora.dm0@gmail.com> Signed-off-by: David Seifert <soap@gentoo.org>
* kernel-2.eclass: fix whitespace problemsDavid Michael2021-05-271-13/+8
| | | | | Signed-off-by: David Michael <fedora.dm0@gmail.com> Signed-off-by: David Seifert <soap@gentoo.org>
* kernel-2.eclass: EAPI 7 supportDavid Michael2021-05-271-24/+23
| | | | | | | | | | | | | | | | | This converts installation paths prefixed with EROOT or ED to have a leading slash, switches DEPEND to BDEPEND for EAPI 7 so tools are installed in BROOT and natively executable, and makes eapply_user the default src_prepare behavior for EAPIs since 6. It also drops the binutils build-time dependency since it was added in the original kernel.eclass implementation ~20 years ago to enforce a minimum version to avoid old assembly bugs. All affected versions are long gone, and it isn't required to install sources anyway, so skip building the unused binutils dependency. Closes: https://bugs.gentoo.org/702280 Signed-off-by: David Michael <fedora.dm0@gmail.com> Signed-off-by: David Seifert <soap@gentoo.org>
* go-module.eclass: add go-module_setup_proxy functionWilliam Hubbs2021-05-251-0/+41
| | | | | | | This function is to be used in an ebuild that uses EGO_SUM and defines src_unpack. Signed-off-by: William Hubbs <williamh@gentoo.org>