Skip to content

Commit 5de6b19

Browse files
committed
enable verbose logging for build and update ghc settings
Signed-off-by: Md. Shafi Hussain <[email protected]>
1 parent a4d6f4f commit 5de6b19

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

jupyter/utils/install_pandoc.sh

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,29 +13,31 @@ ARCH="${UNAME_TO_GOARCH[$(uname -m)]}"
1313
if [[ "$ARCH" == "ppc64le" ]]; then
1414
# Install Pandoc from source
1515
dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm
16-
dnf install -y cabal-install ghc gmp-devel
16+
dnf install -y cabal-install ghc gmp-devel gcc-toolset-13 git
17+
18+
source /opt/rh/gcc-toolset-13/enable
19+
20+
# ghc-8.10 has specific path for gcc in settings
21+
sed -i.bak 's|/usr/bin/gcc|gcc|g' /usr/lib64/ghc-8.10.7/settings
1722

1823
# Set version
1924
PANDOC_VERSION=3.7.0.2
2025

21-
cd /tmp
2226
git clone --recurse-submodules https://github.com/jgm/pandoc.git
2327
cd pandoc
2428
git checkout ${PANDOC_VERSION}
2529
git submodule update --init --recursive
2630

2731
export HOME=/root
2832
# Initialize cabal user config (don't fail if already done)
29-
cabal user-config init || true
33+
cabal user-config init
3034

3135
# Modify config
32-
echo "repository hackage.haskell.org
33-
url: https://hackage.haskell.org/
34-
secure: False" >> $HOME/.cabal/config
36+
sed -i -e 's/http/https/g' -e 's/-- secure: True/secure: True/g' $HOME/.cabal/config
3537

36-
cabal update
38+
cabal update -v
3739
cd pandoc-cli
38-
cabal build -j"$(nproc)"
40+
cabal build -j"$(nproc)" --verbose
3941
mkdir -p /usr/local/pandoc/bin
4042
cabal install \
4143
--installdir=/usr/local/pandoc/bin \

0 commit comments

Comments
 (0)