summaryrefslogtreecommitdiff
path: root/eclass
Commit message (Collapse)AuthorAgeFilesLines
* eclass/cmake-utils: switch Darwin to rpath mode, bug #642668Fabian Groffen2018-01-021-3/+1
| | | | | | | By Michael Weiser, relying on the other support that enables @rpath entries, supported in macOS 10.5 and up. Closes: https://bugs.gentoo.org/642668
* tmpfiles.eclass: allow EAPI 5 usageMike Gilbert2018-01-011-1/+1
|
* x-modular.eclass: Mark @DEAD for removalDavid Seifert2018-01-011-0/+3
|
* toolchain-funcs.eclass: Use host vars in tc-getBUILD* when not crossMichał Górny2018-01-011-2/+8
| | | | | | | | | | Make tc-getBUILD* functions respect host variables (CC & co.) when not cross-compiling. This removes the necessity of overriding BUILD_* along with the regular variables on the systems that are not concerned about cross-compilation, and does not change the behavior for those which are. Closes: https://bugs.gentoo.org/630282
* tmpfiles.eclass: Explicit warn on ROOT != / to avoid breakageMichał Górny2018-01-011-1/+12
| | | | Closes: https://github.com/gentoo/gentoo/pull/4526
* tmpfiles.eclass: Support using on non-Linux systemsMichał Górny2018-01-011-7/+10
| | | | | | | | | | | | | | Fix the eclass code to remove the misguided Linux conditionals. The whole purpose of the eclass was to avoid having to implement fallback logic for systems not having service manager tmpfiles.d support. Making it conditional to Linux implied that for non-Linux systems (Prefix, FreeBSD) we would have to implement explicit fallback to create the necessary directories. While systemd (and therefore systemd-tmpfilesd) is indeed Linux-specific, the opentmpfiles implementation should be pretty portable and there is no reason to restrict it to Linux only, or to prevent using it on non-Linux OpenRC (and non-OpenRC) systems.
* toolchain.eclass: update to EAPI=5 standardsAnthony G. Basile2018-01-011-33/+36
| | | | | | | | | | | This eclass is inherited by ebuilds in sys-devel/{gcc,kgcc64,gcc-apple}, each which make use of different IUSE flags. This causes problems with `use X` constructions when X is not in the IUSE flags. At EAPI=4 this simply emitted a warning, while at EAPI=5 this is an error. We update the eclass to make use of use_if_iuse and similar constructions where necessary to bring the eclass into compliance with EAPI=5. Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
* vmware-bundle.eclass: mark @DEADMike Gilbert2017-12-301-0/+1
|
* php-ext-pecl-r2.eclass: drop unused and last-rited eclass.Michael Orlitzky2017-12-301-105/+0
| | | | | | | The php-ext-pecl-r2.eclass has no more in-tree consumers, and it was last-rited on 2017-10-19. This commit removes it. Closes: https://bugs.gentoo.org/642708
* java-utils-2.eclass: Fix java-pkg_gen-cp regex for chained PV suffixesJames Le Cuirot2017-12-291-1/+1
|
* elisp.eclass: Inherit epatch rather than eutils.Ulrich Müller2017-12-291-3/+3
| | | | | The only function needed from eutils was epatch() which has been split off into its own eclass.
* ruby-utils.eclass: add ruby25 to preference listHans de Graaff2017-12-271-1/+1
|
* eclass: Fix eclass documentation syntax to fix manpage generationJustin Lecher2017-12-262-4/+3
| | | | Signed-off-by: Justin Lecher <jlec@gentoo.org>
* eclass/toolchain.eclass: use CXXFLAGS=CFLAGS if CFLAGS_<CTARGET> is not setSergei Trofimovich2017-12-251-1/+1
| | | | Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* ruby-ng.eclass: refer to ruby-utils.eclass for targets listHans de Graaff2017-12-251-6/+1
|
* ruby-utils.eclass: add ruby25 targetHans de Graaff2017-12-251-0/+4
|
* ruby-utils.eclass: remove obsolete ruby21 target from defaultsHans de Graaff2017-12-251-1/+1
|
* meson.eclass: add meson_use functionMike Gilbert2017-12-231-0/+13
|
* qt5-build.eclass: use the system-configured linkerMichael Palimaka2017-12-221-2/+2
|
* qt5-build.eclass: add support for 5.10 URIsJimi Huotari2017-12-221-2/+14
|
* sys-libs/glibc: enable IFUNC support only on whitelisted ARCHes, bug #641216Sergei Trofimovich2017-12-201-0/+11
| | | | | | | | | | | | | | | | We explicitly disable IFUNC support on the following targets: alpha/hppa/ia64/mips/m68k/nios2/riscv/sh to workaround weak IFUNC detection on binutils/glibc side. Otherwise at least on ia64 glibc generates IFUNC entries against compat librt.so.1 symbols (to redirect them back to libc.so.6) but linker does not produce correct relocations. As a result all IFUNC-backed functions don't work. Reported-by: Émeric Maschino Bug: https://sourceware.org/PR22634 Closes: https://bugs.gentoo.org/641216 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* flag-o-matic.eclass: Allow -gz for compressed debug sections, bug 636986Andreas K. Hüttel2017-12-151-1/+1
| | | | Closes: https://bugs.gentoo.org/636986
* kde5*.eclass: Add KDE Applications 17.12 supportAndreas Sturmlechner2017-12-102-5/+14
|
* kde5-functions.eclass: Raise FRAMEWORKS_MINIMAL to 5.40.0Andreas Sturmlechner2017-12-101-2/+1
|
* systemd.eclass: strip EPREFIX from pkg-config outputMike Gilbert2017-12-091-0/+1
|
* systemd.eclass: add systemd_get_systemgeneratordirMike Gilbert2017-12-091-0/+20
| | | | This is needed for sys-process/systemd-cron.
* sys-libs/glibc: disable stack protection by default on mips* targetsSergei Trofimovich2017-12-061-0/+5
| | | | | | | | | | | | | | | | | | | | | Otherwise dlopen() crashes (found on 'top' from 'procps' package). Original backtrace from qemu-mipsn32 (fails the same way on native host): ``` Program received signal SIGSEGV, Segmentation fault. 0x408cb908 in _dlerror_run (operate=operate@entry=0x408cadf0 <dlopen_doit>, args=args@entry=0x407feb28) at dlerror.c:163 163 result->errcode = _dl_catch_error (&result->objname, &result->errstring, (gdb) bt #0 0x408cb908 in _dlerror_run (operate=operate@entry=0x408cadf0 <dlopen_doit>, args=args@entry=0x407feb28) at dlerror.c:163 #1 0x408caf4c in __dlopen (file=file@entry=0x10012d58 "libnuma.so", mode=mode@entry=1) at dlopen.c:87 #2 0x1000306c in before (me=0x407ff382 "/usr/mips64-unknown-linux-gnu/usr/bin/top") at top/top.c:3308 #3 0x10001a10 in main (dont_care_argc=<optimized out>, argv=0x407ff1a4) at top/top.c:5721 ``` Reported-by: Matt Turner Bug: https://bugs.gentoo.org/640130 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* eclass/prefix.eclass: use a long line for @USAGEBenda Xu2017-12-061-3/+2
| | | | | | This is only for making eclass-manpages happy. Closes: https://bugs.gentoo.org/637848
* cmake-utils.eclass: Use xdg_environment_reset from xdg-utils.eclassAndreas Sturmlechner2017-12-061-2/+2
| | | | Closes: https://bugs.gentoo.org/639460
* eclass/toolchain.eclass: do not die if uclibc patches are not availableAnthony G. Basile2017-12-051-3/+0
| | | | | | | gcc-6 and above no longer needs uclibc specific patches, so we don't die if the patchset is not available. We do, however, still apply it if UCLIBC_VER is defined in the ebuild to future proof the code in case we need to reintroduce the patchset in the future.
* kde5-functions.eclass: Fix eclassdocAndreas Sturmlechner2017-12-021-2/+2
|
* kde5.eclass: Fix eclassdocAndreas Sturmlechner2017-12-021-4/+2
| | | | Closes: https://bugs.gentoo.org/637776
* cmake-utils.eclass: add supported EAPI documentationMichael Palimaka2017-12-021-0/+1
|
* kde5-functions.eclass: use new EAPI documentation methodMichael Palimaka2017-12-021-3/+1
|
* cmake-utils.eclass: mark some eclass variables as unset by defaultMichael Palimaka2017-12-021-0/+3
|
* desktop.eclass: Split off desktop, menu, and icon functions from eutils.Ulrich Müller2017-11-302-392/+404
| | | | | | | | | | | Split off functions make_desktop_entry, make_session_desktop, domenu, newmenu, doicon, and newicon from eutils.eclass into a dedicated desktop.eclass. These functions are independent of the rest of eutils, therefore moving them into their own eclass will help clarifying eclass inheritance in ebuilds. For backwards compatibility, eutils inherits the new eclass in existing EAPIs.
* eutils.eclass: Remove validate_desktop_entries function.Ulrich Müller2017-11-301-30/+0
| | | | | This function is no longer used in the tree. It was deprecated more than 8 months ago in commit 650a1ebe8f63d3750908142e2117b24a8efc9403.
* eutils.eclass: Remove check_license function.Ulrich Müller2017-11-301-4/+0
| | | | This is an inoperative stub since 2011, and no longer used in the tree.
* leechcraft.eclass: fix comment about supported EAPI versionsSergey Popov2017-11-301-1/+1
|
* git-r3.eclass: Support more flexible EGIT_OVERRIDE_* APIs for userMichał Górny2017-11-281-6/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Introduce a new, more flexible override API in git-r3, in replacement of the LIVE_* API that was pretty much a legacy of git-2. This means to solve the two major limitations of the old API: 1. The variables were based on package names without categories. Therefore, they weren't suitable whenever two packages had the same category. This is quite common when dealing with various programming language bindings/reimplementations, and we can't really rely on every new programming language inventing its own VCS. 2. The overrides weren't suitable for packages checking out multiple repositories (LLVM, wine, glibc). The new mode for overrides uses the repository name (as guessed by git-r3) transformed into correct variable name. The specifically defined variables are: - EGIT_OVERRIDE_REPO_${NAME} -- to override the repository URI, - EGIT_OVERRIDE_BRANCH_${NAME} -- to override the branch, - EGIT_OVERRIDE_COMMIT_${NAME} -- to override the commit id or tag, - EGIT_OVERRIDE_COMMIT_DATE_${NAME} -- to request last commit older than the specified date.
* git-r3.eclass: Support checking out specific subdirectoriesMichał Górny2017-11-281-3/+17
| | | | | | | | | Support limiting the git checkout to specific subdirectories of the git tree, using 'git checkout ... -- <paths>...' The main use case for this is doing partial checkouts of very large repositories where only a small subset of files is necessary. Doing partial checkouts can save both time and disk space which can be important in large intertwined projects such as LLVM+Clang.
* php-ext-pecl-r3.eclass: Enable HTTPS by defaultBrian Evans2017-11-271-4/+4
|
* qt5-build.eclass: improve eclassdocDavide Pesavento2017-11-271-1/+4
| | | | Closes: https://bugs.gentoo.org/637856
* qt5-build.eclass: drop support for Qt 5.6Davide Pesavento2017-11-271-28/+7
|
* db.eclass: support PrefixBenda Xu2017-11-261-13/+19
| | | | ROOT and D are replaced with EROOT and ED.
* user.eclass: gracefully return when unprivilegedBenda Xu2017-11-261-1/+9
| | | | | enewgroup and enewuser does not apply when executed as a normal user, e.g. under Gentoo Prefix.
* ruby-fakegem.eclass: fix RUBY_FAKEGEM_EXTRAINSTALLHans de Graaff2017-11-251-1/+1
| | | | Remove wrong default value and fix documentation accordingly.
* mozconfig-*.eclass: fix eclassdoc warningsIan Stakenvicius2017-11-208-0/+39
| | | | | | | | | | | Bug: http://bugs.gentoo.org/637790 Bug: http://bugs.gentoo.org/637792 Bug: http://bugs.gentoo.org/637794 Bug: http://bugs.gentoo.org/637796 Bug: http://bugs.gentoo.org/637798 Bug: http://bugs.gentoo.org/637800 Bug: http://bugs.gentoo.org/637802 Bug: http://bugs.gentoo.org/637804
* out-of-source.eclass: A new eclass to help with out-of-source buildsMichał Górny2017-11-201-0/+124
| | | | | | | | | | | | | | | | | | | | | The out-of-source.eclass is a simple multilib-minimal-style wrapper to perform out of source builds of autotools (and other) packages. It is mostly derived from the function served in the past by autotools-utils since a number of developers found it useful. However, in order to avoid the mistakes of autotools-utils, it is meant to be focused on a single feature and have a better API. This eclass has two use cases: 1. Ensuring that packages are tested with out-of-source builds. 2. Improving consistency between multilib and non-multilib packages. In the most basic form, it just redefines the phases from src_configure() to src_install() with out-of-source wrappers. However, each phase can be overriden using my_src_*() sub-phase that is run inside build dir (alike multilib_src_*() in multilib-minimal). There is also my_src_install_all() for the trailing source-dir actions.
* ruby-fakegem.eclass: Fix eclass doc warningsHans de Graaff2017-11-191-25/+15
| | | | | | | Move eclass variable definitions to the right place just behind their documentation or declare them as default unset. Closes: https://bugs.gentoo.org/637866