| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
The documentation special case was added for documentation only packages.
Some years ago, upstream merged them into normal packages, so this is now useless.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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).
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
| |
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
No changes needed, we only provide an environement variable here.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
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>
|
| |
|
|
|
|
| |
Closes: https://github.com/gentoo/gentoo/pull/9135
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
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).
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
These variables may or may not have the trailing slash. Additionally,
avoid leading double slash (a network location for Cygwin) with ROOT and
EROOT because they may be empty, while D and ED never should be empty
and there is no reason so far to avoid double slashes in between.
On the other hand, eclass variables like DATAPATH and LIBPATH do contain
the leading slash, so an extra slash reduces readability for no reason.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Closes: https://bugs.gentoo.org/659798
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
|
|
|
|
|
|
|
|
|
| |
Recent linux kernels rely on libelf at build time, which includes at the
time of building out of tree modules. So if a module is relying on the
existence of linux sources, it also needs to rely on libelf being
installed.
Signed-off-by: Jason A. Donenfeld <zx2c4@gentoo.org>
|
| |
|
| |
|
| |
|
|
|
|
| |
Closes: https://bugs.gentoo.org/654960
|
|
|
|
| |
Closes: https://github.com/gentoo/gentoo/pull/8778
|
| |
|
|
|
|
| |
for a quicker link to the repo.
|
| |
|
|
|
|
|
| |
Fix the unapplying of fbcondecor for sparc and include check
for K_WANT_GENPATCHES. Closes bug #652152.
|
|
|
|
| |
Closes: https://github.com/gentoo/gentoo/pull/8881
|
|
|
|
| |
Bug: https://bugs.gentoo.org/653460
|
|
|
|
| |
Bug: https://bugs.gentoo.org/653460
|
| |
|
| |
|
| |
|