summaryrefslogtreecommitdiff
path: root/eclass
Commit message (Collapse)AuthorAgeFilesLines
* systemd.eclass: set BDEPEND for EAPI 7Mike Gilbert2018-08-091-2/+6
|
* desktop.eclass: Add missing ||die when writing to filesMichał Górny2018-08-091-3/+5
|
* desktop.eclass: domenu, remove unnecessary nested loopMichał Górny2018-08-091-5/+3
|
* desktop.eclass: domenu, fix potential overflow in exit statusMichał Górny2018-08-091-2/+2
| | | | | | | While increasing exit status for each failure may seem brilliant at first, it serves no purpose and has an overflow risk. For example, if domenu counted 256 failures, the exit status would be truncated to 0 (success).
* desktop.eclass: domenu, fix dying on non-existing filesMichał Górny2018-08-091-6/+4
| | | | | | | | | | | | | The weird logic in domenu had an explicit separate clause for unsuccessful return on non-existing files. This worked fine before EAPI 4 since '|| die' was mandatory. However, since 'doins' started dying on its own, developers have assumed the same for 'domenu' and stopped checking the exit status. As a result, missing files are now silently ignored. Change the logic to explicitly die when the file does not exist. To provide the best interoperability and avoid code duplication, just let 'doins' die on its own.
* kernel-2.eclass: add sys-devel/bison and sys-devel/flex to RDEPENDThomas Deutschmann2018-08-091-0/+2
| | | | | | | Since commit 033dba2ec06 [Link 1], kernel needs bison and flex. Link 1: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=033dba2ec06c47a9fe1b190bc3281058fb20738d Closes: https://bugs.gentoo.org/663020
* kernel-2.eclass: sort RDEPEND alphabeticallyThomas Deutschmann2018-08-091-2/+2
|
* cargo.eclass: reduce verbosity by defaultDirkjan Ochtman2018-08-081-1/+1
|
* cargo.eclass: depend on virtual/cargo instead of dev-util/cargoDirkjan Ochtman2018-08-081-1/+1
|
* cargo.eclass: support EAPI 7Dirkjan Ochtman2018-08-081-3/+5
|
* qt4-build-multilib.eclass: Remove last-rited eclassAndreas Sturmlechner2018-08-071-848/+0
|
* qt4-r2.eclass: Remove last-rited eclassAndreas Sturmlechner2018-08-071-140/+0
|
* pax-utils.eclass: fix e-mail addressFrancesco Turco2018-08-071-3/+3
|
* udev.eclass: return unprefixed dir in _udev_get_udevdir()Guilherme Amadio2018-08-071-1/+2
| | | | | Documentation said it should return unprefixed dir, but the function actually returned the prefixed dir.
* llvm.eclass: Add LLVM 8 awarenessMichał Górny2018-08-021-1/+1
|
* eclass/ros-catkin.eclass: Always try to build tests.Alexis Ballier2018-07-311-5/+1
| | | | Closes: https://bugs.gentoo.org/661122
* virtualx.eclass: support EAPI 7Virgil Dupras2018-07-311-3/+11
| | | | | The only adjustment made here is setting BDEPEND instead of DEPEND when under EAPI 7.
* kernel-2.eclass: inherit estack eclassThomas Deutschmann2018-07-301-1/+1
| | | | | | In commit 3b73ebd9ac730549bb9edf5e8f9ff6614d08726a we removed eutils eclass usage. However, we still need eshopts_* functions provided by estack eclass.
* linux-info.eclass: respect kernel CONFIG_LOCALVERSIONDmitry Derevyanko2018-07-301-25/+25
| | | | | Closes: https://bugs.gentoo.org/460996 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* kernel-2.eclass: drop EAPI 0-1 support codeMarty E. Plummer2018-07-301-26/+14
| | | | | | | | | | Also went ahead and dropped versionator in favor of eapi7-ver for EAPI 0-6, and eutils for epatch. multilib dropped as unneeded. All ebuilds using it tested with ebuild clean install clean. Bug: https://bugs.gentoo.org/657926 Package-Manager: Portage-2.3.40, Repoman-2.3.9 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* eclass/udev.eclass: [QA] Revert "unconditional udevdir."Michał Górny2018-07-271-1/+7
| | | | | | | | This change breaks installs using a different udevdir. Please remember to submit patches for widely-used eclasses to gentoo-dev for review. Acked-by: Amy Liffey <amynka@gentoo.org> Reverts: 7df145403c61bfec4b4921b7e275e127b8877b37
* eclass/udev.eclass: unconditional udevdir.Benda Xu2018-07-271-7/+1
| | | | | The udevdir variable from pkg-config is prefixed, thus not suitable to be used here.
* meson.eclass: require at least meson-0.45.1Zac Medico2018-07-231-1/+1
| | | | | | | | | | | | | | | Require newer meson in order to avoid build failures triggered new meson is not installed soon enough. For example, I experienced bug 649264 because I upgraded xorg-proto and libxshmfence packages before meson. Although meson-0.44.1 is enough to solve bug 649264, Mike Gilbert suggests to require at least meson-0.45.1, since this version is the latest stable on all archs. Closes: https://bugs.gentoo.org/649264 Reviewed-by: Mart Raudsepp <leio@gentoo.org> Reviewed-by: Mike Gilbert <floppym@gentoo.org>
* eclass/texlive-module.eclass: simplify doc useflag handling.Alexis Ballier2018-07-211-4/+4
| | | | | The documentation special case was added for documentation only packages. Some years ago, upstream merged them into normal packages, so this is now useless.
* eclass/texlive-module.eclass: Improve eapi 6 & 7 supportAlexis Ballier2018-07-211-8/+35
|
* distutils-r1.eclass: Enable parallel builds in py3.5+Michał Górny2018-07-201-3/+19
| | | | | | | | | | | Python 3.5+ introduces parallel build support in distutils. Take advantage of that by passing appropriate -j option. Since distutils does not support an equivalent of --load-average, default to the number of CPUs+1 when unspecified. In order to avoid breaking stable systems, introduce the new behavior only for EAPI 7 ebuilds, or older EAPI ebuilds with unstable implementations (Python 3.7 and PyPy 3).
* linux-info.eclass: fix for prematurely merged patchMarty E. Plummer2018-07-171-1/+1
| | | | | | https://github.com/gentoo/gentoo/pull/9222 was merged prematurely, and included the first iteration of my linux-info EAPI 7 patch, and requires this patch on top to avoid a double slash.
* linux-info.eclass: account for lack of trailing slashMarty E. Plummer2018-07-171-9/+9
| | | | | | | | | | | In EAPI 7, D, ED, ROOT, EROOT no longer have a trailing slash[1]. This makes finding /usr/src/linux not work properly as it currently stands. Use the form "${ROOT%/}/" where apropos in order to unify behavior across EAPIs. 1: https://dev.gentoo.org/~ulm/pms/head/pms.html#x1-113001r7 Closes: https://github.com/gentoo/gentoo/pull/9222
* apache-2.eclass: New suexec options.Lars Wendler2018-07-171-2/+10
|
* apache-2.eclass: Replaced versionator with eapi7-ver eclass.Lars Wendler2018-07-171-3/+3
|
* eutils.eclass: make_wrapper, fix 'cd' error handlingMichał Górny2018-07-161-1/+1
| | | | | Reorder the generated wrapper, and add '&&' after the 'cd' call so that the wrapper will not try to execute the program if 'cd' command fails.
* ruby-ng-gnome2.eclass: add proper EAPI guardHans de Graaff2018-07-151-1/+9
|
* ruby-single.eclass: allow EAPI 7Hans de Graaff2018-07-151-2/+2
| | | | No changes needed, we only provide an environement variable here.
* ruby-utils.eclass: drop obsolete ruby22 targetHans de Graaff2018-07-151-2/+2
|
* kde5-functions.eclass: Drop obsolete kde-apps-18.04.2 min depsAndreas Sturmlechner2018-07-141-1/+0
|
* kde5.eclass: Add ECM_KDEINSTALLDIRSAndreas Sturmlechner2018-07-141-2/+13
|
* linux-info.eclass: use eapi7-verMarty E. Plummer2018-07-141-4/+5
| | | | | | | versionator is banned in EAPI 7, so switch to either native EAPI 7 version functions or inherit eapi7-ver on EAPI 0-6. Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* eclass: selinux-policy-2: update SRC_URIJason Zaman2018-07-121-2/+2
|
* eclass/mysql-multilib-r1: use HTTPsMichael Mair-Keimberger2018-07-111-1/+1
| | | | Closes: https://github.com/gentoo/gentoo/pull/9135
* linux-info.eclass: Skip linux_config_*_exists on non-LinuxMichał Górny2018-07-091-2/+2
| | | | | | The linux_config_src_exists and linux_config_bin_exists always return false on non-Linux systems by design. Short-circuit it via 'kernel_linux' check.
* linux-info.eclass: Die in most of public-ish APIs on non-LinuxMichał Górny2018-07-091-0/+36
| | | | | | | | | Add appropriate 'die' calls in most of the seemingly public APIs of the eclass that could be called by ebuilds and that are going to fail horribly when used on non-Linux systems. This means that e.g. 'kernel_is' calls need to be explicitly guarded in ebuilds, as we can't really reasonably return 'true' or 'false' if there is no Linux kernel in the first place.
* linux-info.eclass: Ignore check_extra_config on non-LinuxMichał Górny2018-07-091-1/+7
| | | | | | | | | | Make the check_extra_config and pkg_setup calls no-op on non-Linux systems. Those systems don't have a Linux kernel, so they obviously can't satisfy the requirements. This currently results in a lot of useless warnings about missing Linux kernel sources on FreeBSD. We could make it conditional per-package but there is really no point in adding a lot of conditionals everywhere if this eclass can't ever work on non-Linux.
* linux-info.eclass: require_configured_kernel, improve error handlingMichał Górny2018-07-091-1/+1
| | | | | | Add error handling for failing get_version call in require_configured_kernel. Give just a simple 'die' message since the get_version function should verbosely explain the problem.
* linux-info.eclass: Move get_version to require_configured_kernelMichał Górny2018-07-091-3/+1
| | | | | | | All require_configured_kernel calls in this eclass are followed by a get_version call. Since even calling it proactively wouldn't hurt, move it to require_configured_kernel. This saves us from having to manually implement error handling for it everywhere.
* linux-info.eclass: linux-info_get_any_version, die on failureMichał Górny2018-07-091-1/+3
| | | | | | | Make linux-info_get_any_version die if it can't determine any version of the Linux kernel. This indicates a problem with the eclass code (as it should not happen on Linux) and the missing KV_* variables are going to cause random misbehavior and failures.
* linux-info.eclass: Replace unnecessary $? checksMichał Górny2018-07-091-6/+3
|
* linux-info.eclass: get_localversion, do not call 'ls'Michał Górny2018-07-091-1/+6
| | | | | | Use bash array to perform a safe filename glob instead of calling 'ls'. Also, use nullglob to cleanly handle no matches instead of silencing errors.
* toolchain.eclass: support gcc patches from cygwinportsMichael Haubenwallner2018-07-091-0/+28
| | | | | | Download and apply patches found in Cygwin's gcc.cygport, maintained at github/cygwinports/gcc, for a compiler running on cygwin. The ebuild can define the cygwinports' git commit id as CYGWINPORTS_GITREV.
* toolchain.eclass: Cygwin provides posix threadsMichael Haubenwallner2018-07-091-1/+1
| | | | | Upstream Cygwin does build their gcc with posix threads for ages, at least since gcc4-4.5.1-1.cygport (committed on Oct 3, 2010).
* toolchain.eclass: D->ED for where to start cleanupsMichael Haubenwallner2018-07-091-5/+5
|