Commit 582f85a1 authored by Ian Lynagh's avatar Ian Lynagh
Browse files

Use a local database for cabal01

parent 7d9eae0e
......@@ -10,12 +10,7 @@ clean:
rm -fr install-tmp
rm -fr install
rm -f .setup-config .installed-pkg-config
# unregister if pakage 'test' already exists
# -v0 suppresses "WARNING: there are broken packages" which can
# happen if you user database is broken
if '$(GHC_PKG)' -v0 --user list | grep test-; then \
'$(GHC_PKG)' -v0 --user unregister test; \
rm -rf local.db
# We use the global package database as there's no easy way to tell
# ghc-pkg (via Cabal) to use one in ., and the global one at least
......@@ -28,7 +23,8 @@ cabal01:
$(MAKE) clean
'$(TEST_HC)' --make -o setup Setup.lhs -v0
./setup configure -v0 --prefix=$(PREFIX) --with-compiler='$(TEST_HC)' --with-hc-pkg='$(GHC_PKG)' $(PROF)
'$(GHC_PKG)' init local.db
./setup configure -v0 --prefix=$(PREFIX) --with-compiler='$(TEST_HC)' --with-hc-pkg='$(GHC_PKG)' --package-db=local.db $(PROF)
./setup build -v0
./setup copy -v0
echo install1:
......@@ -41,6 +37,5 @@ cabal01:
./setup sdist -v0
echo dist:
ls -1 dist
'$(GHC_PKG)' unregister test
if [ "$(CLEANUP)" != "" ]; then $(MAKE) clean; fi
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment