Skip to content

Commit 04dbdc7

Browse files
authored
build: install libffi7 manually (#964)
Signed-off-by: Ben Selwyn-Smith <[email protected]>
1 parent 65f9325 commit 04dbdc7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2022 - 2024, Oracle and/or its affiliates. All rights reserved.
1+
# Copyright (c) 2022 - 2025, Oracle and/or its affiliates. All rights reserved.
22
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/.
33

44
# Use bash as the shell when executing a rule's recipe. For more details:
@@ -145,6 +145,8 @@ 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.
148150
.PHONY: souffle
149151
souffle:
150152
if ! command -v souffle; then \
@@ -158,6 +160,9 @@ souffle:
158160
sudo wget https://souffle-lang.github.io/ppa/souffle-key.public -O /usr/share/keyrings/souffle-archive-keyring.gpg; \
159161
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; \
160162
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; \
161166
sudo apt install souffle;; \
162167
"Darwin") \
163168
if command -v brew; then \

0 commit comments

Comments
 (0)