summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Lindblad <lindblad@gmx.us>2022-07-09 18:23:33 +0000
committerMarge Bot <ben+marge-bot@smart-cactus.org>2022-07-13 08:28:29 -0400
commit8b417ad54a91a7e12671cf059e0b5a3be43bbce2 (patch)
treee2cf44fa40ea3f85aba5d347404df83d710c9559
parent61babb5edff00c2929ffbb615d8a3110db1b4b5b (diff)
downloadhaskell-8b417ad54a91a7e12671cf059e0b5a3be43bbce2.tar.gz
tarball
-rwxr-xr-xhadrian/bootstrap/bootstrap.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/hadrian/bootstrap/bootstrap.py b/hadrian/bootstrap/bootstrap.py
index e74c3e8f10..f279041ec6 100755
--- a/hadrian/bootstrap/bootstrap.py
+++ b/hadrian/bootstrap/bootstrap.py
@@ -33,7 +33,7 @@ BUILDDIR = Path('_build')
BINDIR = BUILDDIR / 'bin' # binaries go there (--bindir)
DISTDIR = BUILDDIR / 'dists' # --builddir
UNPACKED = BUILDDIR / 'unpacked' # where we unpack final package tarballs
-TARBALLS = BUILDDIR / 'tarballs' # where we download tarballks
+TARBALLS = BUILDDIR / 'tarballs' # where we download tarballs
PSEUDOSTORE = BUILDDIR / 'pseudostore' # where we install packages
ARTIFACTS = BUILDDIR / 'artifacts' # Where we put the archive
TMPDIR = BUILDDIR / 'tmp' #
@@ -447,16 +447,19 @@ Use `bootstrap.py -w {ghc.ghc_path} -s {archivename}` to continue
print(f"Required hackage sources saved to {args.output}")
tarfmt= "\n./"
print(f"""
-Download the files listed in {args.output} and save them to a tarball ($TARBALL), along with {args.deps}
+Download the files listed in {args.output}, copying {args.deps} to plan-bootstrap.json, and save them to a tarball ($TARBALL)
+
The contents of $TARBALL should look like:
./
./plan-bootstrap.json
./{tarfmt.join(path for path in plan)}
+To generate $TARBALL, e.g. files in sources-tarball, `TARBALL=sources-tarball.tar.gz; pushd sources-tarball; tar -zcf ../$TARBALL .; popd`
+
Then use `bootstrap.py -w {ghc.ghc_path} -s $TARBALL` to continue
-Alternatively, you could use `bootstrap.py -w {ghc.ghc_path} -d {args.deps} fetch -o $TARBALL` to download and generate the tarball, skipping this step
+Alternatively, you could use `bootstrap.py -w {ghc.ghc_path} -d {args.deps} fetch -o sources-tarball` to download and generate the tarball, skipping this step
""")
elif(args.command == None):