Skip to content

Commit defba7a

Browse files
authored
Merge pull request #61 from bjjwwang/sync/llvm-21-no-deadsnakes
Sync to upstream SVF: LLVM 21.1.0, drop deadsnakes PPA
2 parents 6519ae4 + ff330c4 commit defba7a

2 files changed

Lines changed: 8 additions & 9 deletions

File tree

.vscode/tasks.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"type": "shell",
66
// We assume that SVF is installed under the same folder as Software-Security-Analysis
77
// You need to change LLVM_DIR, SVF_DIR and Z3_DIR to the correct paths if you installed SVF in a different location.
8-
"command": "cmake -DCMAKE_BUILD_TYPE=Debug -DSVF_DIR=../SVF -DLLVM_DIR=../SVF/llvm-16.0.0.obj -DZ3_DIR=../SVF/z3.obj . && make",
8+
"command": "cmake -DCMAKE_BUILD_TYPE=Debug -DSVF_DIR=../SVF -DLLVM_DIR=../SVF/llvm-21.1.0.obj -DZ3_DIR=../SVF/z3.obj . && make",
99
"options": {
1010
"cwd": "${workspaceFolder}"
1111
},

Dockerfile

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,13 @@ ENV build_deps="wget xz-utils git gdb tcl software-properties-common"
2121
RUN apt-get update --fix-missing
2222
RUN apt-get install -y $build_deps $lib_deps
2323

24-
# Add deadsnakes PPA for multiple Python versions
25-
RUN add-apt-repository ppa:deadsnakes/ppa
26-
RUN apt-get update
27-
RUN set -ex; \
28-
apt-get update && apt-get install -y python3.10-dev python3-pip \
29-
&& update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.10 1;
30-
RUN python3 -m pip install pysvf -i https://test.pypi.org/simple/
31-
RUN python3 -m pip install z3-solver
24+
# Use the python3 that ships with the Ubuntu 24.04 base image (python 3.12).
25+
# Avoid pulling python3.10 from ppa:deadsnakes/ppa — Launchpad's PPA infrastructure
26+
# has been intermittently unreachable from CI runners (HTTP 504 / 2-minute timeouts
27+
# from add-apt-repository), and SVF does not pin a Python version.
28+
RUN apt-get install -y python3-dev python3-pip
29+
RUN python3 -m pip install --break-system-packages pysvf -i https://test.pypi.org/simple/
30+
RUN python3 -m pip install --break-system-packages z3-solver
3231

3332
# Fetch and build SVF source.
3433
RUN echo "Downloading LLVM and building SVF to " ${HOME}

0 commit comments

Comments
 (0)