From 0825a88401d00d55c86cf85d62e183d773279111 Mon Sep 17 00:00:00 2001 From: Michael Marineau Date: Wed, 8 Jul 2015 18:30:26 -0700 Subject: [PATCH] systemd: revise python dependencies Dug more into the build process and python is not strictly required for man pages, it is only used to create an index which isn't significant. Only call setup_python when features that *do* need python are enabled. Fixes bootstrap_sdk which builds systemd with minimal use flags. --- .../sys-apps/systemd/systemd-9999.ebuild | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/sdk_container/src/third_party/coreos-overlay/sys-apps/systemd/systemd-9999.ebuild b/sdk_container/src/third_party/coreos-overlay/sys-apps/systemd/systemd-9999.ebuild index 6980b24378..403e58b522 100644 --- a/sdk_container/src/third_party/coreos-overlay/sys-apps/systemd/systemd-9999.ebuild +++ b/sdk_container/src/third_party/coreos-overlay/sys-apps/systemd/systemd-9999.ebuild @@ -116,14 +116,11 @@ DEPEND+=" man? ( app-text/docbook-xml-dtd:4.2 app-text/docbook-xml-dtd:4.5 app-text/docbook-xsl-stylesheets - dev-libs/libxslt:0 - ${PYTHON_DEPS} ) + dev-libs/libxslt:0 ) terminal? ( ${PYTHON_DEPS} ) >=dev-libs/libgcrypt-1.4.5:0" -REQUIRED_USE+=" - man? ( ${PYTHON_REQUIRED_USE} ) - terminal? ( ${PYTHON_REQUIRED_USE} )" +REQUIRED_USE+=" terminal? ( ${PYTHON_REQUIRED_USE} )" pkg_pretend() { local CONFIG_CHECK="~AUTOFS4_FS ~BLK_DEV_BSG ~CGROUPS @@ -180,7 +177,9 @@ src_configure() { # Fix systems broken by bug #509454. [[ ${MY_UDEVDIR} ]] || MY_UDEVDIR=/lib/udev - python_setup + if use python || use terminal; then + python_setup + fi multilib-minimal_src_configure }