Skip to content

Commit 0f57d77

Browse files
authored
Merge pull request diffblue#5757 from tautschnig/curl
Use curl as default downloader for solvers
2 parents d1e5b2c + 2a5912c commit 0f57d77

10 files changed

+16
-14
lines changed

.github/workflows/build-and-test-Xen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
# user input
1818
DEBIAN_FRONTEND: noninteractive
1919
run: |
20-
sudo apt-get install --no-install-recommends -y coreutils build-essential gcc git make flex bison software-properties-common libwww-perl python
20+
sudo apt-get install --no-install-recommends -y coreutils build-essential gcc git make flex bison software-properties-common curl python
2121
sudo apt-get install --no-install-recommends -y bin86 gdb bcc liblzma-dev python-dev gettext iasl uuid-dev libncurses5-dev libncursesw5-dev pkg-config
2222
sudo apt-get install --no-install-recommends -y libgtk2.0-dev libyajl-dev sudo time ccache
2323

COMPILING.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,17 @@ We assume that you have a Debian/Ubuntu or Red Hat-like distribution.
2121
The GNU Make needs to be version 3.81 or higher.
2222
On Debian-like distributions, do as root:
2323
```
24-
apt-get install g++ gcc flex bison make git libwww-perl patch
24+
apt-get install g++ gcc flex bison make git curl patch
2525
```
2626
On Red Hat/Fedora or derivates, do as root:
2727
```
28-
dnf install gcc gcc-c++ flex bison perl-libwww-perl patch
28+
dnf install gcc gcc-c++ flex bison curl patch
2929
```
3030
Note that you need g++ version 5.0 or newer.
3131

3232
On Amazon Linux and similar distributions, do as root:
3333
```
34-
yum install gcc72-c++ flex bison perl-libwww-perl patch tar
34+
yum install gcc72-c++ flex bison curl patch tar
3535
```
3636

3737
To compile JBMC, you additionally need the JDK and Maven 3. You also
@@ -153,7 +153,7 @@ Follow these instructions:
153153

154154
1. First install Cygwin, then from the Cygwin setup facility install the
155155
following packages: `flex, bison, tar, gzip, git, make, wget, patch,
156-
libwww-perl`.
156+
curl`.
157157
2. Get the CBMC source via
158158
```
159159
git clone https://github.com/diffblue/cbmc cbmc-git

buildspec-linux-clang-3.8.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ phases:
1010
commands:
1111
- sed -i 's#/archive.ubuntu.com#/us-east-1.ec2.archive.ubuntu.com#g' /etc/apt/sources.list
1212
- apt-get update -y
13-
- apt-get install -y clang-3.8 flex bison make git libwww-perl patch ccache libc6-dev-i386 jq openjdk-8-jdk maven
13+
- apt-get install -y clang-3.8 flex bison make git curl patch ccache libc6-dev-i386 jq openjdk-8-jdk maven
1414
build:
1515
commands:
1616
- echo Build started on `date`

buildspec-linux-clang.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ phases:
1414
- wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add -
1515
- add-apt-repository 'deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-8 main'
1616
- apt-get update -y
17-
- apt-get install -y clang-8 flex bison make git libwww-perl patch ccache libc6-dev-i386 jq gdb
17+
- apt-get install -y clang-8 flex bison make git curl patch ccache libc6-dev-i386 jq gdb
1818
build:
1919
commands:
2020
- echo Build started on `date`

buildspec-linux-cmake-gcc-cov.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ phases:
1313
- sed -i 's#/archive.ubuntu.com#/us-east-1.ec2.archive.ubuntu.com#g' /etc/apt/sources.list
1414
- add-apt-repository ppa:ubuntu-toolchain-r/test
1515
- apt-get update -y
16-
- apt-get install -y flex bison make git libwww-perl patch ccache libc6-dev-i386 jq lcov cmake curl gdb
16+
- apt-get install -y flex bison make git curl patch ccache libc6-dev-i386 jq lcov cmake curl gdb
1717
build:
1818
commands:
1919
- echo Build started on `date`

buildspec-linux-cmake-gcc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ phases:
1212
commands:
1313
- sed -i 's#/archive.ubuntu.com#/us-east-1.ec2.archive.ubuntu.com#g' /etc/apt/sources.list
1414
- apt-get update -y
15-
- apt-get install -y flex bison make git libwww-perl patch ccache libc6-dev-i386 jq cmake
15+
- apt-get install -y flex bison make git curl patch ccache libc6-dev-i386 jq cmake
1616
build:
1717
commands:
1818
- echo Build started on `date`

buildspec-linux-make-gcc-cov.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ phases:
1212
commands:
1313
- sed -i 's#/archive.ubuntu.com#/us-east-1.ec2.archive.ubuntu.com#g' /etc/apt/sources.list
1414
- apt-get update -y
15-
- apt-get install -y flex bison make git libwww-perl patch ccache libc6-dev-i386 jq gdb lcov curl
15+
- apt-get install -y flex bison make git curl patch ccache libc6-dev-i386 jq gdb lcov curl
1616
build:
1717
commands:
1818
- echo Build started on `date`

buildspec.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ phases:
1313
commands:
1414
- sed -i 's#/archive.ubuntu.com#/us-east-1.ec2.archive.ubuntu.com#g' /etc/apt/sources.list
1515
- apt-get update -y
16-
- apt-get install -y flex bison make git libwww-perl patch ccache libc6-dev-i386 jq gdb libxml2-utils
16+
- apt-get install -y flex bison make git curl patch ccache libc6-dev-i386 jq gdb libxml2-utils
1717
build:
1818
commands:
1919
- echo Build started on `date`

integration/xen/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM ubuntu:16.04
22

33
RUN apt-get update && apt-get --no-install-recommends -y install \
44
build-essential gcc git make flex bison \
5-
software-properties-common libwww-perl python \
5+
software-properties-common curl python \
66
bin86 gdb bcc liblzma-dev python-dev gettext iasl \
77
uuid-dev libncurses5-dev libncursesw5-dev pkg-config \
88
libgtk2.0-dev libyajl-dev sudo time

src/Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ $(patsubst %, %_clean, $(DIRS)):
115115

116116
# minisat2 and glucose download, for your convenience
117117

118-
DOWNLOADER = lwp-download
118+
DOWNLOADER = curl -L --remote-name
119119
TAR = tar
120120

121121
minisat2-download:
@@ -155,11 +155,13 @@ glucose-download:
155155
cadical_release = rel-06w
156156
cadical-download:
157157
@echo "Downloading CaDiCaL $(cadical_release)"
158-
@curl -L https://github.com/arminbiere/cadical/archive/$(cadical_release).tar.gz | tar xz
158+
@$(DOWNLOADER) https://github.com/arminbiere/cadical/archive/$(cadical_release).tar.gz
159+
@$(TAR) xfz $(cadical_release).tar.gz
159160
@rm -Rf ../cadical
160161
@mv cadical-$(cadical_release) ../cadical
161162
@(cd ../cadical; patch -p1 < ../scripts/cadical-patch)
162163
@cd ../cadical && CXX=$(CXX) CXXFLAGS=-O3 ./configure --debug && make
164+
@$(RM) $(cadical_release).tar.gz
163165

164166
doc :
165167
doxygen

0 commit comments

Comments
 (0)