File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -13,29 +13,31 @@ ARCH="${UNAME_TO_GOARCH[$(uname -m)]}"
1313if [[ " $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 \
You can’t perform that action at this time.
0 commit comments