| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
Bug: https://bugs.gentoo.org/658284
Closes: https://github.com/gentoo/gentoo/pull/9507
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
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).
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
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
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Documentation said it should return unprefixed dir, but the
function actually returned the prefixed dir.
|
| |
|
|
|
|
| |
Closes: https://bugs.gentoo.org/661122
|
|
|
|
|
| |
The only adjustment made here is setting BDEPEND instead of DEPEND when
under EAPI 7.
|
|
|
|
|
|
| |
In commit 3b73ebd9ac730549bb9edf5e8f9ff6614d08726a we removed eutils
eclass usage. However, we still need eshopts_* functions provided
by estack eclass.
|
|
|
|
|
| |
Closes: https://bugs.gentoo.org/460996
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
The udevdir variable from pkg-config is prefixed, thus not suitable
to be used here.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
| |
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).
|