summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* linux-info.eclass: avoid lexicographical compare on numbers, bug #705248Sergei Trofimovich12 days1-3/+3
| | | | | | | | | | | | | | | | | Originally found in bug #705240 as: ``` error=0 ... if [[ ${error} > 0 ]]; then ... ``` '>' are string comparisons. They are benign in this case, but let's be consistent and use integer comparison. Closes: https://bugs.gentoo.org/705248 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* linux-info.eclass: minor @USAGE syntax fixesBen Kohler2020-03-311-7/+7
| | | | | | Use the recommended <required args> [optional args] syntax Signed-off-by: Ben Kohler <bkohler@gentoo.org>
* linux-info.eclass: CONFIG_LOCALVERSION for out of source buildsFrancesco Riosa2018-10-021-13/+13
| | | | | Closes: https://bugs.gentoo.org/662772 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* 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>
* 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
* 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>
* 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.
* eclass: Remove remaining uses of epause and ebeep.Ulrich Müller2018-05-311-2/+1
| | | | These functions are long deprecated and only defined in EAPIs 0 to 2.
* Drop $Id$ per council decision in bug #611234.Robin H. Johnson2017-02-281-1/+0
| | | | Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* linux-info.eclass: get_version: remove useless readlink -fMike Gilbert2016-12-151-2/+0
| | | | The values get clobbered immediately afterward, so why bother?
* Update copyright year to 2016.Joshua Kinard2016-01-251-1/+1
|
* Change maintainer for linux-mod and linux-info eclasses to kernel@gentoo.org.Joshua Kinard2016-01-251-1/+1
|
* linux-info.eclass: fix error/warning messages with ~!SYMBOLSMike Frysinger2016-01-171-4/+6
| | | | | | For ebuilds that do things like ~!IDE, the current warning system would drop the ~ but not the !. This would lead to doing variable expansion like ${WARNING_!IDE} which is invalid shell code.
* proj/gentoo: Initial commitRobin H. Johnson2015-08-081-0/+923
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed