summaryrefslogtreecommitdiff
path: root/eclass
Commit message (Collapse)AuthorAgeFilesLines
* eapi7-ver.eclass: Documentation fix.Ulrich Müller2017-09-191-3/+2
|
* eclass/tests/eapi7-ver_benchmark: More readable averageMichał Górny2017-09-191-1/+1
|
* eapi7-ver.eclass: 'Early adopter' version of EAPI 7 version manipMichał Górny2017-09-193-0/+368
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | EAPI 7 is introducing new version manipulation and comparison functions that aim to replace versionator.eclass. This eclass provides an 'early adopter' versions of those routines. It serves two goals: a. getting wider review and some real-life testing before the specification is set in stone, b. making it possible to adapt ebuilds to the new routines early, reducing the future work of EAPI 7 porting, c. improving cache generation speed (the rountines are roughly 15-20 times than versionator.eclass). For more details on the new logic, please see the eclass documentation. Long story short, we are introducing three functions: 1. ver_cut -- to get substrings of the version string, 2. ver_rs -- to replace version separators via indices, 3. ver_test -- to compare two version numbers. The third function is not implemented in the eclass. It's meant to reuse the algorithms from the package manager, and the final implementation will most likely reuse the code from the package manager (e.g. via IPC). The code has been initially written by Ulrich Müller.
* git-r3.eclass: Copy packed-refs during manual cloneSven Wegener2017-09-181-0/+3
| | | | Signed-off-by: Sven Wegener <swegener@gentoo.org>
* kde5*.eclass: KDEBASE=kdel10n cleanupAndreas Sturmlechner2017-09-172-113/+0
|
* toolchain.eclass: drop GCC_FILESDIR override, bug #629776Sergei Trofimovich2017-09-161-7/+5
| | | | | | | | | | | | | | | GCC_FILESDIR support was broken by portage-2.3.6 commit: https://github.com/gentoo/portage/commit/0637c95545ab7dc0bb5d091de221b9e99e2cf5b2 ("portage.package.ebuild: Use a fake FILESDIR to catch invalid accesses") Unfortunately it was applied to older EAPIs without fixing all the users first. The change yanks GCC_FILESDIR override support and hardcodes FILESDIR usage (as all the ebuilds except 'gcc' are broken anyway). Bug: https://bugs.gentoo.org/629776 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* gnome2.eclass: Fix accidental reverse of schema update conditionalMichał Górny2017-09-151-2/+2
| | | | Closes: https://bugs.gentoo.org/630874
* multiprocessing.eclass: add tests for float valuesMike Gilbert2017-09-141-1/+3
| | | | Bug: https://bugs.gentoo.org/630626
* multiprocessing.eclass: make loadavg regex work for float valuesMike Gilbert2017-09-141-1/+1
| | | | Bug: https://bugs.gentoo.org/630626
* cargo.eclass: localize variables so they don't leak into the saved envTim Harder2017-09-141-1/+1
|
* kde5-functions.eclass: Raise PLASMA_MINIMAL=5.10.5Andreas Sturmlechner2017-09-131-1/+1
|
* kde5-functions.eclass: Raise FRAMEWORKS_MINIMAL to 5.37.0Johannes Huber2017-09-131-4/+1
|
* kde5-functions.eclass: Raise QT_MINIMAL to 5.7.1Johannes Huber2017-09-131-5/+1
|
* vim-spell.eclass: do not DEPEND on app-editors/{,g}vim.Patrice Clement2017-09-121-4/+0
| | | | Gentoo-Bug: https://bugs.gentoo.org/469414
* eclass/toolchain-glibc.eclass: prefixify etc/init.d/nscdBenda Xu2017-09-121-1/+1
| | | | | Credit: Martin Mokrejš Bug: 608234
* eclass/mozconfig-v6.52 - disable sandboxing on esr buildsJory A. Pratt2017-09-101-4/+0
|
* glibc: disable stack protector on ARCH=ppcSergei Trofimovich2017-09-101-1/+13
| | | | | | | | | | Currently gcc on powerpc32 generates invalid code for __builtin_return_address(0) calls. Normally programs don't do that but malloc() hooks in glibc do: Bug: https://gcc.gnu.org/PR81996 Bug: https://bugs.gentoo.org/629054 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* toolchain-glibc.eclass: Do not export any phases in EAPI=6. Well. Nearly.Andreas K. Hüttel2017-09-091-1/+8
|
* eclass: improve cargo.eclass to better handle pre-release versions (fixes ↵Dirkjan Ochtman2017-09-091-1/+6
| | | | bug 630428)
* elisp-common.eclass: avoid //path, is not /path on CygwinMichael Haubenwallner2017-09-081-1/+1
| | | | Closes: https://github.com/gentoo/gentoo/pull/5651
* gnome2*.eclass: Move the preinst conditional out of gnome2_schemas_updateMichał Górny2017-09-082-7/+6
| | | | | | | | | | | | | | | Move the GNOME2_ECLASS_GLIB_SCHEMAS conditional from gnome2_schemas_update straight into the implementation of gnome2.eclass postinst/postrm. This variable is set in preinst to indicate whether any files were installed. However, the updater itself does not use the list in any way and updates all the schemas anyway. Therefore, avoid requiring the ebuilds to explicitly define preinst/postinst when it is known that the package installs schemas, and instead let gnome2_schemas_update called in postinst/postrm update schemas unconditionally.
* *.eclass: Include GNOME2_ECLASS_ICONS condition in postrm as wellMichał Górny2017-09-084-4/+12
| | | | | | | The original GNOME2_ECLASS_ICONS patch has moved the condition from gnome2_icon_cache_update to postinst phases of functions using the preinst/postinst logic but accidentally omitted postrm. Include it there as well to restore the old behavior.
* fdo-mime.eclass: Mark the eclass as deprecatedMichał Górny2017-09-081-1/+3
| | | | | | | | | | | | | | The GNOME team has committed the xdg-utils.eclass serving exactly the same purpose as fdo-mime.eclass, supposedly with the goal of replacing it. However, it seems that they have never bothered to actually hint the deprecation in the fdo-mime.eclass in any way. As a result, developers are still adding references to this eclass instead of using xdg-utils or xdg, and/or not working towards replacing them. Add an explicit deprecation notice to the fdo-mime.eclass to make it clear that the eclass should not be used in new packages, and what the replacement eclasses are.
* toolchain.eclass: allow CTARGET to contain '.'Sergei Trofimovich2017-09-051-1/+2
| | | | | | | | | | | | | On CTARGET="hppa2.0-unknown-linux-gnu" the following code local VAR="CFLAGS_"${CTARGET//-/_} CXXFLAGS=${!VAR} produces incorrect substitution: CFLAGS_hppa2.0_unknown_linux_gnu which caused 'crossdev hppa2.0-unknown-linux-gnu' to fail. The change adds '.' mangling as well. Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* postgres{,-multi}.eclass: Improvements and bug fixAaron W. Swenson2017-09-052-34/+59
| | | | | | | | | | | Improve documentation comments to eliminate warnings and make the resulting man pages look better. Use a simple sort instead of the external sort program because calling external commands during metadata regen is forbidden by PMS and breaks new secure cache regen. Gentoo-Bug: 629226
* prefix.eclass: extend the hprefixify to accept quotes.Benda Xu2017-09-041-8/+18
| | | | also apply the pattern substitution to beginning of lines.
* vim-spell.eclass: document variables using Gentoo documentation tags.Patrice Clement2017-09-031-27/+52
|
* vim-spell.eclass: document functions using Gentoo documentation tags.Patrice Clement2017-09-031-11/+18
|
* kde4*.eclass: Drop USE=aquaAndreas Sturmlechner2017-09-032-14/+12
|
* games-mods.eclass: [QA] Do not access PORTDIR.Ulrich Müller2017-09-031-2/+3
| | | | | | Simply inline the 2 (two!) header lines instead. Bug: 416739
* systemd.eclass: add systemd_reenable functionMike Gilbert2017-09-021-0/+21
|
* eclass/git-r3.eclass: TypoJeroen Roovers2017-09-011-1/+1
|
* eclass/kernel-2.eclass: As per PMS remove calls to external command 'tr' in ↵Mike Pagano2017-08-311-3/+8
| | | | global scope. Closes bug 629106.
* gnustep-base.eclass: drop built_with_use check, bug #623316Bernard Cafarelli2017-08-301-2/+1
| | | | All EAPI0 gnustep ebuilds were updated or dropped
* mozlinguas-v2.eclass: reduce ewarn on unsupported locale to einfoIan Stakenvicius2017-08-301-1/+1
| | | | Bug: http://bugs.gentoo.org/591438
* common-lisp-3.eclass: Adds missing lisp package names and exports CL_BINARY ↵Chema Alonso Josa2017-08-291-7/+13
| | | | variable
* selinux-policy-2.eclass: drop insecure git:// path in favour of https://Jason Zaman2017-08-271-1/+1
|
* toolchain-glibc.eclass: remove special-casing of -freorder-blocks on ARCH=ppcSergei Trofimovich2017-08-261-3/+0
| | | | | | | -freorder-blocks is enabled by default on -O and upper. Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org> Signed-off-by: Matthias Maier <tamiko@gentoo.org>
* toolchain.eclass: Update masquerades via dev-util/shadowman postinst/rmMichał Górny2017-08-261-0/+7
|
* flag-o-matic.eclass: Strip LDFLAGS unsupported by the C compiler, #621274Michał Górny2017-08-252-1/+4
| | | | | | | | Include LDFLAGS in the variables stripped by strip-unsupported-flags. The code reuses the current functions for testing CC, and so only remove LDFLAGS that are rejected by the C compiler and not the linker. This solves the case of bug #621274 where LDFLAGS contained GCC-specific -flto flag.
* flag-o-matic.eclass: test-flag-PROG, ignore unused args in clangMichał Górny2017-08-252-1/+13
| | | | | | | | | | | | | | | | | | | By default, clang considers unused arguments as error when -Werror is used. Since flag tests are performed without linking, this causes all tests for linker flags to fail inadvertently and all those flags are stripped as a result. While the correctness of passing unused flags is doubtful, silently stripping them in a few random packages is certainly not the solution to the problem, and also makes the results differ between gcc and clang. To account for that, use clang's -Qunused-arguments option to silence unused argument warnings. To avoid wasting time on testing the compiler, just try passing -Qunused-arguments every time a flag check fails. If clang is not used, the additional call will fail just the same as the previous one (either because of the original flag or because of -Qunused-arguments), so the result will be the same.
* flag-o-matic.eclass: test-flag-PROG, refactor to reduce duplicationMichał Górny2017-08-251-3/+7
|
* git-r3.eclass: Explicitly warn about unsecure protocolsMichał Górny2017-08-251-1/+11
| | | | | | | Explicitly warn about any URI that uses an unsecure protocol (git, http) even if it's a fallback URI. This is necessary because an attacker may block HTTPS connections, effectively forcing the fallback to the unsecure protocol.
* git-r3.eclass: Update docs to discourage unsafe protocolsMichał Górny2017-08-251-6/+10
|
* myspell-r2.eclass: [QA] Use relative symlink target(s)Michał Górny2017-08-221-4/+4
|
* mozcoreconf-v5.eclass: change 'eval unset' to 'unset'Lars Wendler2017-08-221-1/+1
|
* xdg-utils.eclass: fix xdg_desktop_database_update function doc typoTim Harder2017-08-211-1/+1
|
* eclass/ruby-ng.eclass: mark ruby21 as a removed targetHans de Graaff2017-08-201-1/+1
|
* xorg-2.eclass: Fix EGIT_REPO_URI, #628226Michał Górny2017-08-191-1/+1
|
* Since I now have an @gentoo.org address, use it everywhereCraig Andrews2017-08-181-1/+1
| | | | | Gentoo-bug: 620766 Closes: #5470