summaryrefslogtreecommitdiff
path: root/ghc.mk
diff options
context:
space:
mode:
Diffstat (limited to 'ghc.mk')
-rw-r--r--ghc.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/ghc.mk b/ghc.mk
index ce71a55233..ea02191434 100644
--- a/ghc.mk
+++ b/ghc.mk
@@ -1027,6 +1027,10 @@ install_packages: rts/dist/package.conf.install
# with an 077 umask.
for f in '$(INSTALLED_PACKAGE_CONF)'/*; do $(CREATE_DATA) "$$f"; done
+# Finally, update package.cache to ensure it's newer than the registration
+# files. This avoids #13375.
+ $(INSTALLED_GHC_PKG_REAL) --global-package-db "$(INSTALLED_PACKAGE_CONF)" recache
+
# -----------------------------------------------------------------------------
# Binary distributions