From e790d862c726d8910aa37f9ed63a02a05f57cfea Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Sat, 5 Sep 2020 09:08:45 +0100 Subject: [PATCH] dev-lang/ghc: make USE=binary and USE=profile mutually exclusive MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We prebuild binaries without profiling support in Gentoo. Reported-by: Toralf Förster Closes: https://bugs.gentoo.org/740236 Package-Manager: Portage-3.0.5, Repoman-3.0.1 Signed-off-by: Sergei Trofimovich --- dev-lang/ghc/ghc-8.10.1.ebuild | 6 +++++- dev-lang/ghc/ghc-8.8.3.ebuild | 6 +++++- dev-lang/ghc/ghc-8.8.4.ebuild | 6 +++++- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/dev-lang/ghc/ghc-8.10.1.ebuild b/dev-lang/ghc/ghc-8.10.1.ebuild index 7845cce005cc5..9749ccd0b25db 100644 --- a/dev-lang/ghc/ghc-8.10.1.ebuild +++ b/dev-lang/ghc/ghc-8.10.1.ebuild @@ -113,7 +113,11 @@ DEPEND="${RDEPEND} >=dev-libs/libxslt-1.1.2 ) !ghcbootstrap? ( ${PREBUILT_BINARY_DEPENDS} )" -REQUIRED_USE="?? ( ghcbootstrap binary )" +# we build binaries without profiling support +REQUIRED_USE=" + ?? ( ghcbootstrap binary ) + ?? ( profile binary ) +" # haskell libraries built with cabal in configure mode, #515354 QA_CONFIGURE_OPTIONS+=" --with-compiler --with-gcc" diff --git a/dev-lang/ghc/ghc-8.8.3.ebuild b/dev-lang/ghc/ghc-8.8.3.ebuild index 1690685595315..f59a40a4139e9 100644 --- a/dev-lang/ghc/ghc-8.8.3.ebuild +++ b/dev-lang/ghc/ghc-8.8.3.ebuild @@ -112,7 +112,11 @@ DEPEND="${RDEPEND} >=dev-libs/libxslt-1.1.2 ) !ghcbootstrap? ( ${PREBUILT_BINARY_DEPENDS} )" -REQUIRED_USE="?? ( ghcbootstrap binary )" +# we build binaries without profiling support +REQUIRED_USE=" + ?? ( ghcbootstrap binary ) + ?? ( profile binary ) +" # haskell libraries built with cabal in configure mode, #515354 QA_CONFIGURE_OPTIONS+=" --with-compiler --with-gcc" diff --git a/dev-lang/ghc/ghc-8.8.4.ebuild b/dev-lang/ghc/ghc-8.8.4.ebuild index 9ada4d7c1c104..5d1674fac8d92 100644 --- a/dev-lang/ghc/ghc-8.8.4.ebuild +++ b/dev-lang/ghc/ghc-8.8.4.ebuild @@ -112,7 +112,11 @@ DEPEND="${RDEPEND} >=dev-libs/libxslt-1.1.2 ) !ghcbootstrap? ( ${PREBUILT_BINARY_DEPENDS} )" -REQUIRED_USE="?? ( ghcbootstrap binary )" +# we build binaries without profiling support +REQUIRED_USE=" + ?? ( ghcbootstrap binary ) + ?? ( profile binary ) +" # haskell libraries built with cabal in configure mode, #515354 QA_CONFIGURE_OPTIONS+=" --with-compiler --with-gcc"