| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
The code for these functions is practically identical so refactor them
around a common function.
|
|
|
|
| |
Bug: https://bugs.gentoo.org/317337
|
|
|
|
|
|
|
| |
Export the BROOT variable corresponding to the location where BDEPEND
are installed.
Bug: https://bugs.gentoo.org/317337
|
|
|
|
|
|
|
|
|
| |
SYSROOT is the new destination for DEPEND, however it must currently
be equal either / or ROOT. This is partly to simplify the
implementation and partly because supporting a third separate
destination would not be of much practical benefit anyway.
Bug: https://bugs.gentoo.org/317337
|
|
|
|
| |
Fixes: 9aaa652c86b2 ("Add dostrip for EAPI 7")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch includes the essential parts of the dostrip implementation
from portage-mgorny. All of the prepstrip code has moved to
bin/estrip, without any changes except the addition of argument
parsing for estrip --ignore, --queue, and --deque modes which are
equivalent to the corresponding ecompressdir modes.
Due to overlap, also ban the non-standard prepstrip and prepallstrip
helpers in EAPI 7, with a die message suggesting to use 'dostrip'
instead. Also ignore the non-standard STRIP_MASK variable for EAPI 7.
Bug: https://bugs.gentoo.org/203891
|
|
|
|
|
|
| |
Bug: https://bugs.gentoo.org/317337
Closes: https://github.com/gentoo/portage/pull/268
Reviewed-by: Zac Medico <zmedico@gentoo.org>
|
|
|
|
|
|
| |
Bug: https://bugs.gentoo.org/373349
Bug: https://bugs.gentoo.org/373351
Closes: https://github.com/gentoo/portage/pull/264
|
|
|
|
| |
Bug: https://bugs.gentoo.org/499288
|
|
|
|
|
|
|
| |
The function code is copied from eapi7-ver.eclass which has been written
by Ulrich Müller and me.
Bug: https://bugs.gentoo.org/482170
|
|
|
|
|
|
|
|
|
| |
Ban the direct use of DESTTREE/INSDESTTREE in EAPI 7. Use new _E_*
helper variables for into/insinto.
Bug: https://bugs.gentoo.org/173630
Closes: https://github.com/gentoo/portage/pull/261
Series-Reviewed-by: Zac Medico <zmedico@gentoo.org>
|
|
|
|
| |
Bug: https://bugs.gentoo.org/595924
|
|
|
|
| |
Bug: https://bugs.gentoo.org/630416
|
|
|
|
| |
Bug: https://bugs.gentoo.org/show_bug.cgi?id=520546
|
| |
|
|
|
|
|
|
|
|
|
| |
Make helper calls in global scope fatal in all supported EAPIs since
this is the behavior required by PMS and all major offenders are fixed
already.
Acked-by: Alexander Berntsen <bernalex@gentoo.org>
Acked-by: Zac Medico <zmedico@gentoo.org>
|
|
|
|
|
|
|
|
| |
To try and provide better stability across bash versions,
set the language compat level based on the current EAPI.
This does not ban newer features, it tells bash to use
the older bash behavior when the behavior changes across
versions.
|
|
|
|
|
| |
This should return true starting with EAPI 6, and false for EAPI 5
and earlier.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Observed as a breakage on binutils ebuilds:
> ERROR: sys-devel/binutils-2.24-r3::gentoo failed (depend phase):
> use() calls are not allowed in global scope
> Call stack:
> ebuild.sh, line 584: Called source 'binutils-2.24-r3.ebuild,
> ebuild.sh, line 7: Called inherit 'toolchain-binutils'
> ebuild.sh, line 280: Called __qa_source '/gentoo-32k/gentoo-x86/eclass/toolchain-binutils.e
> ebuild.sh, line 80: Called source '/gentoo-32k/gentoo-x86/eclass/toolchain-binutils.eclass
> toolchain-binutils.eclass, line 106: Called use 'multislot'
> ebuild.sh, line 47: Called die
> The specific snippet of code:
> # These functions die because calls to them during the "depend" phase
Zac confirms it's a safe thing to use ${EAPI-0} here:
> ebuild.sh unsets the EAPI just before it sources the ebuild,
> and then it does this after it sources the ebuild:
>
> [ "${EAPI+set}" = set ] || EAPI=0
>
> So, for any code that is called while the ebuild is being sourced, using
> ${EAPI-0} would be correct.
For consistency and defense against future copy/paste errors
converted all uses of ${EAPI} for ${EAPI-0} in 'bin/eapi.sh'.
Fixes: b830bbc3b10b ("Disallow helpers in global scope in EAPI 6")
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Signed-off-by: Zac Medico <zmedico@gentoo.org>
|
| |
|
| |
|
|
|
|
|
|
|
| |
Disallow calling most of the ebuild helpers in global scope since they
are meaningless in that context. Most of them are also prohibited by PMS
for all EAPIs, so EAPI 6 sounds like a good moment to finally enforce
that restriction.
|
|
|
|
| |
Add a function to query IUSE_EFFECTIVE for flags.
|
|
|
|
|
|
| |
Add support for die() to respect 'nonfatal' modifier if
'--respect-nonfatal' (or '-n') option is used. This allows eclasses
to create custom ebuild helpers that mimic built-in helper behavior.
|
|
|
|
|
| |
Add support for absolute paths in unpack(). Allow subdirectory-level
relative paths not to start with './'.
|
|
|
|
| |
Support unpacking .txz-suffixed archives.
|
|
|
|
|
| |
Enable failglob in global scope to catch unintended globbing attempts
including unescaped special uses of '*'.
|
|
|
|
| |
Add support for the user patch applying function.
|
|
|
|
| |
Add the eapply patch applying function.
|
|
|
|
|
| |
Add the einstalldocs function to conveniently install documentation
using the default patterns or DOCS and HTML_DOCS variables.
|
|
|
|
|
| |
Add get_libdir() function to obtain the basename of libdir using
the same algorithm that econf uses.
|
|
|
|
| |
Pass --docdir and --htmldir to configure scripts that support it.
|
| |
|
| |
|
|
|
|
| |
package_manager_build_group().
|
|
|
|
| |
available_eclasses(), eclass_path() and license_path() functions.
|
|
|