From 200440e8a437d1313e245d3728db6b69c4b03fb3 Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Sat, 16 Jul 2022 23:03:05 +0200 Subject: fix pwd --- notes.txt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'notes.txt') diff --git a/notes.txt b/notes.txt index 02a2bc4..7c14f19 100644 --- a/notes.txt +++ b/notes.txt @@ -5,15 +5,17 @@ Be sure to have lots of free RAM; building the Cabal library from source takes r apt install ghc ghc-libs-static apt install cabal-install +I assume you're currently in $HOME/ghc-cabal-build. + Check using `dpkg -L ghc-libs-static' which libraries have static libs available -Copy the .conf files for just those libraries from /data/data/com.termux/files/usr/lib/ghc-8.10.7/package.conf.d/ into a new direcrory, ghc-boot-pkgdb +Copy the .conf files for just those libraries from /data/data/com.termux/files/usr/lib/ghc-8.10.7/package.conf.d/ into a new directory, ghc-boot-pkgdb In ghc-boot-pkgdb, run `ghc-pkg recache` cat >ghc-shim.sh </dev/tty "!! ghc $*" ghc "$@" @@ -29,7 +31,7 @@ for arg; do args[${#args[@]}]="$arg" fi done -ghc-pkg --package-db /data/data/com.termux/files/home/ghc-boot-pkgdb "${args[@]}" +ghc-pkg --package-db /data/data/com.termux/files/home/ghc-cabal-build/ghc-boot-pkgdb "${args[@]}" EOF Make a new directory 'cbl', and in that directory: -- cgit v1.2.3-70-g09d2