summaryrefslogtreecommitdiff
path: root/eclass
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* xorg-3.eclass: pass --with-fontrootdir to configureMike Gilbert2021-10-241-5/+10
| | | | | | | | | | | | | | The XORG_FONTROOTDIR autoconf macro calls pkg-config to obtain the fontrootdir path defined in fontutil.pc. pkgconf automatically prepends SYSROOT to variable values that start with a "/". For installation paths, we don't want SYSROOT prepended. Passing --with-fontrootdir bypasses the pkg-config call and avoids the problem with SYSROOT. Bug: https://bugs.gentoo.org/815520 Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* meson.eclass: add EMESON_BUILDTYPE variableMike Gilbert2021-10-241-1/+9
| | | | | | | | | | | | | This allows the buildtype option to be overridden or omitted. This may be necessary if an ebuild makes use of the 'debug' built-in option control project-specific debug functionality. meson emits a warning if both buildtype and debug are specified, since the former overrides the latter. See discussion in https://github.com/gentoo/gentoo/pull/22574. Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* tree-sitter-grammar.eclass: InitMatt Smith2021-10-211-0/+96
| | | | | Signed-off-by: Matt Smith <matt@offtopica.uk> Signed-off-by: Nick Sarnie <sarnex@gentoo.org>
* linux-info.eclass: add --no-print-directory to emakeMike Pagano2021-10-181-1/+1
| | | | | | | | | | | | | | Thanks to Jocelyn Mayer for the report and the patch. When MAKEOPTS contains '-w' or '--print-directory', getfilevar echoed value contains make: Entering directory 'xxx' and make: Leaving directory 'xxx' which result in a wrong multiline version string thus making kernel versions comparisons always fail. Closes: https://bugs.gentoo.org/816888 Signed-off-by: Mike Pagano <mpagano@gentoo.org>
* eclass/ruby-fakegem.eclass: provide PKG_CONFIG to extensionsHans de Graaff2021-10-171-0/+1
| | | | | | Some extensions, e.g. dev-ruby/hiredis, require this to be present. Signed-off-by: Hans de Graaff <graaff@gentoo.org>
* qt5-build.eclass: Drop EAPI-7 support and obsolete quirksAndreas Sturmlechner2021-10-171-12/+8
| | | | Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* toolchain.eclass: add sam to distfilesSam James2021-10-131-1/+1
| | | | | | | | slyfox has retired but I've got his distfiles mirrored in my devspace. Closes: https://bugs.gentoo.org/812278 Signed-off-by: Sam James <sam@gentoo.org>
* cvs.eclass: Fix eclass documentationUlrich Müller2021-10-041-1/+3
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* cvs.eclass: Don't rely on sandbox internalsUlrich Müller2021-10-041-4/+4
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* cvs.eclass: Support EAPI 8, drop EAPI 6 and olderUlrich Müller2021-10-041-9/+8
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* eclass/dune.eclass: build with release profileAlfredo Tupone2021-10-031-1/+1
| | | | Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
* gstreamer-meson.eclass: Fix eclass documentationUlrich Müller2021-10-021-1/+1
| | | | | Fixes: 0f014c97162ec8ee23f1355f00bf488c9178e6b9 Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* autotools.eclass: mark AUTOTOOLS_DEPEND as an output variableMike Gilbert2021-10-011-1/+1
| | | | | | This variable is used in several ebuilds for optional dependencies. Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* eclass/postgresql.eclass: Support postgres14Patrick Lauer2021-09-301-1/+1
| | | | Signed-off-by: Patrick Lauer <patrick@gentoo.org>
* savedconfig.eclass: drop faulty permissions checkMike Gilbert2021-09-291-7/+3
| | | | | | | | | | | | | | | | | | | | | | | | | This check was meant to test if the user has accidentally restricted access to the /etc/portage/savedconfig directory. There are a few problems: 1. We don't actually need read access on the directory. We really need the execute bit set so that we can access files within the directory. 2. There may be permissions issues on subdirectories, and we would fail to detect them. 3. There is no easy way to distingish between EACCES and ENOENT using shell commands. We get an exit status of 1 from [[ -r ${path} ]] if there is a permissions problem or if some component of the path does not exist. This makes resolving problem 2 difficult without using a more robust language with direct access to errno. Instead of trying to detect a permissions problem, just output a warning telling the user to check permissions if we cannot find a config file. Bug: https://bugs.gentoo.org/289168 Bug: https://bugs.gentoo.org/814995 Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* mozcoreconf-v6.eclass: Support EAPI-8Lars Wendler2021-09-281-3/+4
| | | | Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
* mozlinguas-v2.eclass: Support EAPI-8Lars Wendler2021-09-281-2/+2
| | | | Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
* mozextension.eclass: Drop eutils inheritLars Wendler2021-09-281-2/+0
| | | | Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
* distutils-r1.eclass: fix formattingArthur Zamarin2021-09-271-0/+4
| | | | | | | - mark _distutils-r1_check_all_phase_mismatch as @INTERNAL - fix list appearance for distutils_enable_tests options Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* bzr.eclass: Drop support for EBZR_INITIAL_URIUlrich Müller2021-09-271-24/+1
| | | | | | | This was historically used only for GNU Emacs, which had a slow original repository and a fast (but possibly out of date) mirror. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* bzr.eclass: Don't rely on sandbox internalsUlrich Müller2021-09-271-10/+8
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* bzr.eclass: Fix EBZR_OFFLINE logicUlrich Müller2021-09-271-4/+3
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* bzr.eclass: Names of internal functions, eclassdoc, messagesUlrich Müller2021-09-271-22/+25
| | | | | | This should not make any functional difference. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* bzr.eclass: Update for dev-vcs/breezy, support EAPIs 7 and 8Ulrich Müller2021-09-271-24/+15
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* bzr.eclass: Reinstate eclassUlrich Müller2021-09-271-0/+289
| | | | | | Taken from commit 320fcf034f5e860454e0d2a28ed405c5b843c60c. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* go-modules.eclass: allow the module cache to be read/writeWilliam Hubbs2021-09-231-1/+1
| | | | | | | | | | | | | | | This allows the modules to be cleaned up on prefix systems. More information is available here: https://github.com/golang/go/issues/27161 I would like to thank Raffaele Spinelli <rafspiny@gmail.com> for the original patch this was based on. Closes: https://bugs.gentoo.org/812977 Closes: https://github.com/gentoo/gentoo/pull/22365 Signed-off-by: William Hubbs <williamh@gentoo.org>
* meson.eclass: depend in >=dev-util/meson-0.58.2-r1Mike Gilbert2021-09-211-1/+1
| | | | | Bug: https://bugs.gentoo.org/810655 Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* toolchain.eclass: Add minimal eclassdoc to enable parsingMichał Górny2021-09-211-1/+4
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>