summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2020-02-14 14:16:14 +0100
committerErich Eckner <git@eckner.net>2020-02-14 14:16:14 +0100
commit6723888561621229568e4aa10b1c2e706c1ced67 (patch)
tree65de5e404a05cad7cb17d4a54d11823a592b9054 /lib
parent5b3bcf9bee058d74085c88666c250559f3ff4228 (diff)
downloadbuilder-6723888561621229568e4aa10b1c2e706c1ced67.tar.xz
lib/mysql-functions: ghc should not treat haskell-* dependencies as runtime dependencies
Diffstat (limited to 'lib')
-rwxr-xr-xlib/mysql-functions8
1 files changed, 6 insertions, 2 deletions
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'