Skip to content

Commit 8efe9b8

Browse files
authored
build: install souffle 2.5 for ubuntu manually (#1030)
Signed-off-by: Ben Selwyn-Smith <benselwynsmith@googlemail.com>
1 parent 9d5de67 commit 8efe9b8

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

Makefile

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -145,24 +145,22 @@ else
145145
endif
146146
# If Souffle cannot be installed, we advise the user to install it manually
147147
# and return status code 0, which is not considered a failure.
148-
# Souffle depends upon the libffiX library, where X is the current version it requires. Depending on the version of Ubuntu being used, the exact library
149-
# may not be present. In this script, we manually download and install version 7 on the Ubuntu operating system.
150148
.PHONY: souffle
151149
souffle:
152150
if ! command -v souffle; then \
153151
echo "Installing system dependency: souffle" && \
154152
case $(OS_DISTRO) in \
155153
"Oracle Linux") \
156-
sudo dnf -y install https://github.com/souffle-lang/souffle/releases/download/2.4/x86_64-oraclelinux-8-souffle-2.4-Linux.rpm;; \
154+
sudo dnf -y install https://github.com/souffle-lang/souffle/releases/download/2.5/x86_64-oraclelinux-9-souffle-2.5-Linux.rpm;; \
157155
"Fedora Linux") \
158-
sudo dnf -y install https://github.com/souffle-lang/souffle/releases/download/2.4/x86_64-fedora-34-souffle-2.4-Linux.rpm;; \
156+
sudo dnf -y install https://github.com/souffle-lang/souffle/releases/download/2.5/x86_64-fedora-41-souffle-2.5-Linux.rpm;; \
159157
"Ubuntu") \
160158
sudo wget https://souffle-lang.github.io/ppa/souffle-key.public -O /usr/share/keyrings/souffle-archive-keyring.gpg; \
161159
echo "deb [signed-by=/usr/share/keyrings/souffle-archive-keyring.gpg] https://souffle-lang.github.io/ppa/ubuntu/ stable main" | sudo tee /etc/apt/sources.list.d/souffle.list; \
162160
sudo apt update; \
163-
sudo wget http://archive.ubuntu.com/ubuntu/pool/main/libf/libffi/libffi7_3.3-4_amd64.deb; \
164-
sudo dpkg -i libffi7_3.3-4_amd64.deb; \
165-
rm libffi7_3.3-4_amd64.deb; \
161+
sudo wget https://github.com/souffle-lang/souffle/releases/download/2.5/x86_64-ubuntu-2404-souffle-2.5-Linux.deb; \
162+
sudo apt install ./x86_64-ubuntu-2404-souffle-2.5-Linux.deb; \
163+
rm x86_64-ubuntu-2404-souffle-2.5-Linux.deb; \
166164
sudo apt install souffle;; \
167165
"Darwin") \
168166
if command -v brew; then \

0 commit comments

Comments
 (0)