Skip to content

Instantly share code, notes, and snippets.

@hasufell
Created August 4, 2012 21:06
Show Gist options
  • Save hasufell/3259949 to your computer and use it in GitHub Desktop.
Save hasufell/3259949 to your computer and use it in GitHub Desktop.
implement bug 379497
--- phase-helpers.sh
+++ phase-helpers.sh
@@ -420,13 +420,20 @@
done
fi
- # EAPI=4 adds --disable-dependency-tracking to econf
- if ! has "$EAPI" 0 1 2 3 3_pre2 && \
- "${ECONF_SOURCE}/configure" --help 2>/dev/null | \
- grep -q disable-dependency-tracking ; then
- set -- --disable-dependency-tracking "$@"
- fi
-
+ conf_help=$("${ECONF_SOURCE}/configure" --help 2>/dev/null)
+
+ case ${conf_help} in
+ # make build log verbose by default
+ *--disable-silent-rules*)
+ set -- --disable-silent-rules "$@";;
+ esac
+ case ${conf_help} in
+ # EAPI=4 adds --disable-dependency-tracking to econf
+ *--disable-dependency-tracking*)
+ ! has "$EAPI" 0 1 2 3 3_pre2 &&
+ set -- --disable-dependency-tracking "$@";;
+ esac
+
# if the profile defines a location to install libs to aside from default, pass it on.
# if the ebuild passes in --libdir, they're responsible for the conf_libdir fun.
local CONF_LIBDIR LIBDIR_VAR="LIBDIR_${ABI}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment