File tree Expand file tree Collapse file tree 1 file changed +14
-7
lines changed Expand file tree Collapse file tree 1 file changed +14
-7
lines changed Original file line number Diff line number Diff line change @@ -13,25 +13,32 @@ 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 gcc-toolset-13 git
16
+ dnf install -y cabal-install ghc gmp-devel gcc-toolset-13 git jq
17
17
18
18
source /opt/rh/gcc-toolset-13/enable
19
19
20
20
# ghc-8.10 has specific path for gcc in settings
21
21
sed -i.bak ' s|/usr/bin/gcc|gcc|g' /usr/lib64/ghc-8.10.7/settings
22
+
23
+ cabal user-config init
24
+
25
+ export HOME=/root
26
+ sed -i -e ' s/http/https/g' -e ' s/-- secure: True/secure: True/g' $HOME /.cabal/config
27
+
28
+ cabal update
29
+ cabal install cabal-install --verbose
30
+
31
+ # use latest cabal
32
+ export PATH=/root/.cabal/bin:$PATH
22
33
23
- # Set version
24
- PANDOC_VERSION=3.7.0.2
34
+ PANDOC_VERSION=$( curl -s " https://api.github.com/repos/jgm/pandoc/releases/latest" | jq -r ' .tag_name' )
25
35
36
+ cd /tmp
26
37
git clone --recurse-submodules https://github.com/jgm/pandoc.git
27
38
cd pandoc
28
39
git checkout ${PANDOC_VERSION}
29
40
git submodule update --init --recursive
30
41
31
- export HOME=/root
32
- # Initialize cabal user config (don't fail if already done)
33
- cabal user-config init
34
-
35
42
# Modify config
36
43
sed -i -e ' s/http/https/g' -e ' s/-- secure: True/secure: True/g' $HOME /.cabal/config
37
44
You can’t perform that action at this time.
0 commit comments