* [gentoo-dev] some multilib-minimal enhancements [1/6]: some debug-print-function boilerplate
@ 2013-12-11 21:18 Greg Turner
0 siblings, 0 replies; only message in thread
From: Greg Turner @ 2013-12-11 21:18 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 1 bytes --]
[-- Attachment #2: 001-debug-print-function.patch --]
[-- Type: text/x-patch, Size: 1610 bytes --]
Groking flow-of-control in multibuild-based ebuilds is
nontrivial. These can help.
--- 000-header/multilib-minimal.eclass 2013-12-03 02:13:48.115445273 -0800
+++ 001-debug-print-function/multilib-minimal.eclass 2013-12-03 02:17:30.144384409 -0800
@@ -36,7 +36,11 @@ EXPORT_FUNCTIONS src_configure src_compi
multilib-minimal_src_configure() {
+ debug-print-function ${FUNCNAME} "$@"
+
multilib-minimal_abi_src_configure() {
+ debug-print-function ${FUNCNAME} "$@"
+
mkdir -p "${BUILD_DIR}" || die
pushd "${BUILD_DIR}" >/dev/null || die
if declare -f multilib_src_configure >/dev/null ; then
@@ -51,7 +55,11 @@ multilib-minimal_src_configure() {
}
multilib-minimal_src_compile() {
+ debug-print-function ${FUNCNAME} "$@"
+
multilib-minimal_abi_src_compile() {
+ debug-print-function ${FUNCNAME} "$@"
+
pushd "${BUILD_DIR}" >/dev/null || die
if declare -f multilib_src_compile >/dev/null ; then
multilib_src_compile
@@ -65,7 +73,11 @@ multilib-minimal_src_compile() {
}
multilib-minimal_src_test() {
+ debug-print-function ${FUNCNAME} "$@"
+
multilib-minimal_abi_src_test() {
+ debug-print-function ${FUNCNAME} "$@"
+
pushd "${BUILD_DIR}" >/dev/null || die
if declare -f multilib_src_test >/dev/null ; then
multilib_src_test
@@ -79,7 +91,11 @@ multilib-minimal_src_test() {
}
multilib-minimal_src_install() {
+ debug-print-function ${FUNCNAME} "$@"
+
multilib-minimal_abi_src_install() {
+ debug-print-function ${FUNCNAME} "$@"
+
pushd "${BUILD_DIR}" >/dev/null || die
if declare -f multilib_src_install >/dev/null ; then
multilib_src_install
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2013-12-11 21:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-11 21:18 [gentoo-dev] some multilib-minimal enhancements [1/6]: some debug-print-function boilerplate Greg Turner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox