summaryrefslogtreecommitdiff
path: root/eclass
Commit message (Collapse)AuthorAgeFilesLines
* vdr-plugin-2.eclass: fix variable VDRPLUGINMartin Dummer2021-12-241-2/+2
| | | | | | | | | | Variable VDRPLUGIN: remove declaration @INTERNAL, instead declare as @OUTPUT_VARIABLE as it is used in many packages This fixes errors thrown by pkgcheck Signed-off-by: Martin Dummer <martin.dummer@gmx.net> Closes: https://github.com/gentoo/gentoo/pull/23454 Signed-off-by: Sam James <sam@gentoo.org>
* tree-sitter-grammar.eclass: Fix compatibility with lldMatthew Smith2021-12-231-1/+1
| | | | | | | | | | | | | | | | | | | | -soname <soname> is only accepted by GNU ld, but --soname=<soname> is accepted by both GNU ld and LLVM lld. Closes: https://bugs.gentoo.org/829667 Closes: https://bugs.gentoo.org/829668 Closes: https://bugs.gentoo.org/829669 Closes: https://bugs.gentoo.org/829670 Closes: https://bugs.gentoo.org/829671 Closes: https://bugs.gentoo.org/829672 Closes: https://bugs.gentoo.org/829673 Closes: https://bugs.gentoo.org/829674 Closes: https://bugs.gentoo.org/829675 Closes: https://bugs.gentoo.org/829676 Closes: https://bugs.gentoo.org/829677 Signed-off-by: Matthew Smith <matt@offtopica.uk> Closes: https://github.com/gentoo/gentoo/pull/23436 Signed-off-by: Nick Sarnie <sarnex@gentoo.org>
* vdr-plugin-2.eclass: fix content of @SUPPORTED_EAPISMartin Dummer2021-12-211-1/+1
| | | | | | | | | The eclass variable @SUPPORTED_EAPIS does not contain EAPI 8, while the eclass itself supports EAPI 8. This leads to wrong warnings by pkgcheck. Signed-off-by: Martin Dummer <martin.dummer@gmx.net> Closes: https://github.com/gentoo/gentoo/pull/23440 Signed-off-by: Sam James <sam@gentoo.org>
* eclass/tree-sitter-grammar: fix ABI autodetectonVadim Misbakh-Soloviov2021-12-201-10/+10
| | | | | | | | | | | | | | | | | | | Some grammars packages (like, for example, tree-sitter-agda) uses different versioning scheme from vast majority of grammars in tree-sitter github organization. Also, third-party grammars doesn't follow tree-sitter versioning. Also, some grammars (like tree-sitter-haskell, for example) only had old release tagged, but having compatible and useful grammars in current HEAD. Also, some grammars like tree-sitter-verilog, even have only v0.0 tag. So, instead of assuming grammar ABI version based on ${PV} (ver_test) we decided to take ABI version drectly from source code. Signed-off-by: Vadim Misbakh-Soloviov <mva@gentoo.org>
* verify-sig.eclass: add app-crypt/signify supportAnna Vyalkova2021-12-191-31/+112
| | | | | | | | It is useful for verifying distfiles that come from OpenBSD folks, since signify produces signatures incompatible with GnuPG. Signed-off-by: Anna Vyalkova <cyber+gentoo@sysrq.in> Signed-off-by: Michał Górny <mgorny@gentoo.org>
* flag-o-matic.eclass: filter-lfs-flags: remove -D_TIME_BITS=64Mike Gilbert2021-12-181-1/+2
| | | | | | glibc only allows _TIME_BITS=64 when _FILE_OFFSET_BITS=64. Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* dune.eclass: fix default value of DUNE_PKG_NAMESam James2021-12-171-1/+3
| | | | | | | | | | We need to use :=, not :-, because we want to reassign DUNE_PKG_NAME, not just return the new value. Closes: https://bugs.gentoo.org/829199 Closes: https://bugs.gentoo.org/829299 Closes: https://bugs.gentoo.org/829327 Signed-off-by: Sam James <sam@gentoo.org>
* kernel-install.eclass: add ppc(32) supportGeorgy Yakovlev2021-12-161-0/+9
| | | | | Bug: https://bugs.gentoo.org/794799 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
* dist-kernel-utils.eclass: add ppc(32) supportGeorgy Yakovlev2021-12-161-1/+2
| | | | | Bug: https://bugs.gentoo.org/794799 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
* dev-lang/vala: drop old 0.44 slotMart Raudsepp2021-12-151-5/+4
| | | | | Package-Manager: Portage-3.0.20, Repoman-3.0.2 Signed-off-by: Mart Raudsepp <leio@gentoo.org>
* eclass/dune.eclass: fix dune-install functionMaciej Barć2021-12-141-21/+35
| | | | | | | | | | | Support EAPI 8 and drop support for EAPI 5. Set DUNE_PKG_NAME to PN by default. Move "Move docs to the appropriate place" block to dune-install to make dune-install now handle a list of subpackages correctly. Use ebegin and eend for dune calls instead of "|| die". Thanks to ULM for bash fixes. Signed-off-by: Maciej Barć <xgqt@gentoo.org>
* mount-boot.eclass: support EAPI 8John Helmert III2021-12-131-2/+2
| | | | Signed-off-by: John Helmert III <ajak@gentoo.org>
* toolchain-funcs.eclass: add detection for loongarchWANG Xuerui2021-12-141-0/+2
| | | | | | | | | | | | | | | The Linux port currently under review has arch/loongarch, and should almost certainly remain that way till merge; meanwhile it's ARCH=loong on the Gentoo side, per mailing list discussion[1] and eselect adaptation[2]. This architecture is little-endian-only according to the manual[3]. [1]: https://archives.gentoo.org/gentoo-dev/message/388a4b7428461660e89c8eae8c292f32 [2]: https://gitweb.gentoo.org/proj/eselect.git/commit/?id=a49477f39d3f000cc2ca57f18aafbd66656aba05 [3]: https://github.com/loongson/LoongArch-Documentation/blob/2021.08.17/docs/LoongArch-Vol1-EN/basic-integer-instructions/programming-model-of-basic-integer-instructions/endian.adoc Signed-off-by: WANG Xuerui <git@xen0n.name> Signed-off-by: Sam James <sam@gentoo.org>
* gnome2.eclass: support EAPI 8Marek Szuba2021-12-131-2/+2
| | | | Signed-off-by: Marek Szuba <marecki@gentoo.org>
* gnome2.eclass: standardise the EAPI guardMarek Szuba2021-12-131-2/+2
| | | | Signed-off-by: Marek Szuba <marecki@gentoo.org>
* gnome2.eclass: do not call xdg_src_prepareMarek Szuba2021-12-131-2/+2
| | | | | | | | | No longer available for EAPI-8+, and gnome2_src_prepare already calls xdg_environment_reset via gnome2_environment_reset. All that function did otherwise was call default src_prepare for EAPI-6+ so do just that directly. Signed-off-by: Marek Szuba <marecki@gentoo.org>
* gnome2-utils.eclass: support EAPI 8Marek Szuba2021-12-131-3/+3
| | | | | | | | Trivial now that emktemp is gone. While at it, include eclass name in the "EAPI x not supported" error message. Signed-off-by: Marek Szuba <marecki@gentoo.org>
* gnome2-utils.eclass: phase out emktempMarek Szuba2021-12-131-4/+3
| | | | | | | Has been deprecated for quite a while now, comes from eutils.eclass so it blocks EAPI 8+. Just call mktemp directly. Signed-off-by: Marek Szuba <marecki@gentoo.org>
* tmpfiles.eclass: add eapi 8 supportWilliam Hubbs2021-12-111-2/+2
| | | | Signed-off-by: William Hubbs <williamh@gentoo.org>
* go-module.eclass: Add GO_OPTIONAL flagFlorian Schmaus2021-12-111-9/+22
| | | | | | | | | | Following the pattern found in other eclasses, add GO_OPTIONAL to the go-module eclass. This allows inheriting the eclass without pulling its dependencies or exporting the unpack function. See, e.g., bug #775779 for the motivation. Signed-off-by: Florian Schmaus <flow@gentoo.org> Signed-off-by: William Hubbs <williamh@gentoo.org>
* llvm.org.eclass: VE target is non-experimental in 14.xMichał Górny2021-12-111-1/+8
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* eclass/java-{utils-2,pkg-2,pkg-simple}: bump to eapi8Miroslav Šulc2021-12-023-6/+6
| | | | Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
* xorg-3.eclass: don't override XORG_EAUTORECONF from ebuilds in 9999Sam James2021-12-011-1/+1
| | | | | Closes: https://bugs.gentoo.org/827941 Signed-off-by: Sam James <sam@gentoo.org>
* kde.org.eclass: Drop obsolete kdevelop* quirks, keep 5.6.2 supportedAndreas Sturmlechner2021-11-291-12/+2
| | | | Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* toolchain.eclass: add myself to GCC patches sourcesDavid Seifert2021-11-281-5/+9
| | | | | Signed-off-by: David Seifert <soap@gentoo.org> Signed-off-by: Sam James <sam@gentoo.org>
* eclass/java-vm-2.eclass: bump to eapi8Miroslav Šulc2021-11-271-4/+5
| | | | Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
* toolchain.eclass: enable CET by default on hardened for >= gcc 11.2.1Sam James2021-11-271-0/+5
| | | | | | | | | | 11.2.1 will include a patch to enable CET by default if: - USE=cet is enabled, and - USE=hardened is enabled, and - building for x86_64. See: https://github.com/gentoo/gentoo/pull/21588 Signed-off-by: Sam James <sam@gentoo.org>
* toolchain.eclass: add USE=cet supportDave Hughes2021-11-271-0/+5
| | | | | | | See: https://github.com/gentoo/gentoo/pull/21588 Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Dave Hughes <davidhughes205@gmail.com> Signed-off-by: Sam James <sam@gentoo.org>
* eclass/ruby-fakegem.eclass: add method to indicate extensions are installedHans de Graaff2021-11-251-4/+20
| | | | | | | | | | | Add a public method ruby_fakegem_extensions_installed to add the marker that rubygems uses to determine if extensions have been installed. We were already adding this as part of the extensions code, but rubygems also expects this to be present for extensions that we either ignore or handle differently. Without this marker rubygems 3.2.22 and newer will ignore this gem. Signed-off-by: Hans de Graaff <graaff@gentoo.org>
* drop gnat_2019 supportAlfredo Tupone2021-11-251-12/+1
| | | | Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
* eclass: Enable EAPI 8 on PHP eclassesBrian Evans2021-11-243-6/+9
| | | | Signed-off-by: Brian Evans <grknight@gentoo.org>
* toolchain.eclass: switch snapshot prefix _alpha → _pDavid Seifert2021-11-241-3/+3
| | | | Signed-off-by: David Seifert <soap@gentoo.org>
* eclass/ruby-ng.eclass: turn off loud publication banner in cucumberHans de Graaff2021-11-241-1/+1
| | | | | | | Use the environment variable rather than the command-line option for easy backward compatibility with cucumber < 7. Signed-off-by: Hans de Graaff <graaff@gentoo.org>
* toolchain.eclass: handle empty musl 'nocross' patches dirSam James2021-11-211-0/+6
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* sys-devel/gcc: import musl mechanisms prepared by sam_ from ::musl overlayAndreas K. Hüttel2021-11-211-1/+17
| | | | Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
* eclass/ruby-fakegem.eclass: fix CFLAGS and LDFLAGS for extensionsHans de Graaff2021-11-191-2/+2
| | | | | | | | | | | | Set the CFLAGS and LDFLAGS for extensions using the mkmf options during configuration. This ensures that the flags are correctly set in the Makefile and we don't need to second-guess any further actions of extensions themselves, leading to breakage that is hard to work around. Closes: https://bugs.gentoo.org/823730 Signed-off-by: Hans de Graaff <graaff@gentoo.org>
* ecm.eclass: set KDE_DEBUG=1 for ecm_src_testJames Beddek2021-11-191-1/+2
| | | | | | | | | | | | | | | | | | The KDE_DEBUG variable [1] prevents crash handlers such as DrKonqi from launching if a test were to segfault. This prevents a hanging test phase where DrKonqi has launched and is waiting for input on the virtx display. [sam: We already try to disable apport/similar crash reporters because they slow down tests, don't always play well in sandbox, and confuse users, so this seems like a natural change.] [1]: https://userbase.kde.org/KDE_System_Administration/Environment_Variables#KDE_DEBUG Signed-off-by: James Beddek <telans@posteo.de> Closes: https://github.com/gentoo/gentoo/pull/22643 Signed-off-by: Sam James <sam@gentoo.org>
* bazel.eclass: Fix distinct_host_configurationJason Zaman2021-11-151-1/+3
| | | | | | | The cross-compiler logic was inverted. Almost halves the build time for TensorFlow. Signed-off-by: Jason Zaman <perfinion@gentoo.org>
* eclass/ruby-fakegem.eclass: add options support for extensionsHans de Graaff2021-11-141-1/+8
| | | | | | | Introduce RUBY_FAKEGEM_EXTENSION_OPTIONS to allow setting options for extensions. Signed-off-by: Hans de Graaff <graaff@gentoo.org>
* eclass/ruby-fakegem.eclass: set flags for compilationHans de Graaff2021-11-141-2/+2
| | | | | | | | | | | | | | | | | | | | Explicitly pass CC, CFLAGS and LDFLAGS when compiling ruby extensions. By default ruby re-uses the stored flags used when compiling ruby itself. This is intended to create a better chance of compatibility between extensions and ruby itself, and extensions do not need to bother with this themselves, but it does not match the expectations of a Gentoo system where each compile action should use the currently defined flags. We also cannot guarantee this compatibility in any case since toolchain packages may have been updated in the meantime. This change uses the current CC, CFLAGS and LDFLAGS, and adds -fPIC which ruby extensions need and which would otherwise be added by ruby. This combination is already used in some ebuilds without any reported issues. Signed-off-by: Hans de Graaff <graaff@gentoo.org>
* gstreamer-meson.eclass: check for package-name and package-origin optionsMike Gilbert2021-11-131-5/+8
| | | | | Bug: https://bugs.gentoo.org/823617 Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* dev-lang/vala: bump to 0.54.3Mart Raudsepp2021-11-111-2/+2
| | | | | Package-Manager: Portage-3.0.20, Repoman-3.0.2 Signed-off-by: Mart Raudsepp <leio@gentoo.org>
* python-utils-r1.eclass: Bump min pypy3 dep to force pypy3.8Michał Górny2021-11-091-1/+1
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Update "predict" list for pypy3.8Michał Górny2021-11-091-2/+1
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* eclass/ruby-fakegem.eclass: also set sitelibdir for extensionsHans de Graaff2021-11-071-1/+1
| | | | | | | | | Normally extensions don't install in sitelibdir since they only deal with compiled code, but there are edge cases. Set sitelibdir correctly to the install destination so that we can keep using the "install" target in the Makefile. Signed-off-by: Hans de Graaff <graaff@gentoo.org>
* savedconfig.eclass: do not re-use config file schemeMike Gilbert2021-11-051-14/+1
| | | | | | | | | | This causes file collisions when save_config is used in a multi-slotted package and the config file is named ${PN}. Reverts: a0c35ad8ee8f8f89ba6044dd5b44e9479c6a1775 Bug: https://bugs.gentoo.org/686348 Closes: https://bugs.gentoo.org/818904 Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* distutils-r1.eclass: Skip pyproject.toml check if DUS=manualMichał Górny2021-11-041-0/+2
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* xdg-utils.eclass: disable fdatasync() in update-mime-databaseMike Gilbert2021-10-311-0/+3
| | | | | | | | | | | This speeds up installation dramatically on slow disks, and may reduce wear on solid state storage. Portage will call 'sync' after installation if FEATURES="merge-sync" is enabled, so the risk should be small. Closes: https://bugs.gentoo.org/819783 Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* ros-catkin.eclass: enable py3.10Arthur Zamarin2021-10-271-1/+1
| | | | | | | | | - CI passes for this bump - Have ran all tests for packages depending on this eclass, all of them passed. Acked-by: Alexis Ballier <aballier@gentoo.org> Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* linux-mod.eclass: fix minor typo in eclass documentationAlfred Wingate2021-10-251-1/+1
| | | | | | Signed-off-by: Alfred Wingate <parona@protonmail.com> Closes: https://github.com/gentoo/gentoo/pull/22697 Signed-off-by: Mike Pagano <mpagano@gentoo.org>