From 6723888561621229568e4aa10b1c2e706c1ced67 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Fri, 14 Feb 2020 14:16:14 +0100 Subject: lib/mysql-functions: ghc should not treat haskell-* dependencies as runtime dependencies --- lib/mysql-functions | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/mysql-functions b/lib/mysql-functions index 27f327b..48fb037 100755 --- a/lib/mysql-functions +++ b/lib/mysql-functions @@ -1062,8 +1062,12 @@ mysql_query_has_pending_dependencies() { printf ' AND IF(' # ... and if (a) relevant for binary_packages ... printf '`l_dep_ts`.`relevant_for_binary_packages`' - # (which includes makedependencies which are haskell packages!) - printf ' OR `install_targets`.`name` LIKE "haskell-%%",' + # (which includes makedependencies which are haskell packages ... + printf ' OR (' + printf '`install_targets`.`name` LIKE "haskell-%%"' + # ... but only if the package itself is not "ghc"!) + printf ' AND `todos`.`pkgname` NOT IN ("ghc","ghc-libs","ghc-static")' + printf '),' # ... has some unbuilt provider ... printf 'EXISTS (' printf 'SELECT 1' -- cgit v1.2.3