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)]}"
13
13
if [[ " $ARCH " == " ppc64le" ]]; then
14
14
# Install Pandoc from source
15
15
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
17
22
18
23
# Set version
19
24
PANDOC_VERSION=3.7.0.2
20
25
21
- cd /tmp
22
26
git clone --recurse-submodules https://github.com/jgm/pandoc.git
23
27
cd pandoc
24
28
git checkout ${PANDOC_VERSION}
25
29
git submodule update --init --recursive
26
30
27
31
export HOME=/root
28
32
# Initialize cabal user config (don't fail if already done)
29
- cabal user-config init || true
33
+ cabal user-config init
30
34
31
35
# 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
35
37
36
- cabal update
38
+ cabal update -v
37
39
cd pandoc-cli
38
- cabal build -j" $( nproc) "
40
+ cabal build -j" $( nproc) " --verbose
39
41
mkdir -p /usr/local/pandoc/bin
40
42
cabal install \
41
43
--installdir=/usr/local/pandoc/bin \
You can’t perform that action at this time.
0 commit comments