Sometimes this is necessary, such as when doing openssl fipsinstall in pkg_preinst. With hindsight, I maybe should have called this
root.eclass but oh well.
Signed-off-by: James Le Cuirot <
[email protected]>
---
eclass/sysroot.eclass | 45 ++++++++++++++++++++++++++++++++-----------
1 file changed, 34 insertions(+), 11 deletions(-)
diff --git a/eclass/sysroot.eclass b/eclass/sysroot.eclass
index 73d353fd9914..6d1b88232eeb 100644
--- a/eclass/sysroot.eclass
+++ b/eclass/sysroot.eclass
@@ -7,7 +7,11 @@
# @AUTHOR:
# James Le Cuirot <
[email protected]>
# @SUPPORTED_EAPIS: 7 8
-# @BLURB: Common functions for using a different sysroot (e.g. cross-compiling)
+# @BLURB: Common functions for using a different (sys)root
+# @DESCRIPTION:
+# This eclass provides common functions to run executables within a different +# root or sysroot, with or without emulation by QEMU. Despite the name, these +# functions can be used in src_* or pkg_* phase functions.
case ${EAPI} in
7|8) ;;
@@ -39,7 +43,7 @@ qemu_arch() {
# @FUNCTION: sysroot_make_run_prefixed
# @DESCRIPTION:
-# Create a wrapper script for directly running executables within a sysroot
+# Create a wrapper script for directly running exec