Skip to content

Commit aa6a717

Browse files
committed
Refactor: backporting features, fixes from v2.1.0
1 parent 1675eb8 commit aa6a717

6 files changed

Lines changed: 12 additions & 2 deletions

File tree

0.16/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ RUN apk --update add --no-cache boost-system libgcc
2929
# Get the right version
3030
sort --version-sort --key=1,1 | \
3131
grep "${VERSION}" | \
32+
grep -viE -- '-(rc|alpha|beta)' | \
3233
tail -1 | \
3334
awk '{print $2}' \
3435
)" --depth 1 https://github.com/arvidn/libtorrent.git && \

1.0/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ RUN apk --update add --no-cache boost-system libgcc
2929
# Get the right version
3030
sort --version-sort --key=1,1 | \
3131
grep "${VERSION}" | \
32+
grep -viE -- '-(rc|alpha|beta)' | \
3233
tail -1 | \
3334
awk '{print $2}' \
3435
)" --depth 1 https://github.com/arvidn/libtorrent.git && \

1.1/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ RUN apk --update add --no-cache boost-system libgcc
2929
# Get the right version
3030
sort --version-sort --key=1,1 | \
3131
grep "${VERSION}" | \
32+
grep -viE -- '-(rc|alpha|beta)' | \
3233
tail -1 | \
3334
awk '{print $2}' \
3435
)" --depth 1 https://github.com/arvidn/libtorrent.git && \

1.2-py2/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ RUN apk --update add --no-cache boost-system libgcc
3131
# Get the right version
3232
sort --version-sort --key=1,1 | \
3333
grep "${VERSION}" | \
34+
grep -viE -- '-(rc|alpha|beta)' | \
3435
tail -1 | \
3536
awk '{print $2}' \
3637
)" --depth 1 https://github.com/arvidn/libtorrent.git && \

1.2-py3/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ RUN apk --update add --no-cache boost-python3 boost
2727
# Get the right version
2828
sort --version-sort --key=1,1 | \
2929
grep "${VERSION}" | \
30+
grep -viE -- '-(rc|alpha|beta)' | \
3031
tail -1 | \
3132
awk '{print $2}' \
3233
)" --depth 1 https://github.com/arvidn/libtorrent.git && \
@@ -42,6 +43,7 @@ RUN apk --update add --no-cache boost-python3 boost
4243
-G Ninja \
4344
-DCMAKE_BUILD_TYPE=Release \
4445
-DCMAKE_CXX_STANDARD=14 \
46+
-DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON \
4547
-Dpython-bindings=ON \
4648
-Dpython-install-system-dir=ON \
4749
.. && \
@@ -57,6 +59,7 @@ RUN apk --update add --no-cache boost-python3 boost
5759
-G Ninja \
5860
-DCMAKE_BUILD_TYPE=Release \
5961
-DCMAKE_CXX_STANDARD=14 \
62+
-DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON \
6063
-DBUILD_SHARED_LIBS=OFF \
6164
.. && \
6265
ninja "-j$(nproc)" && \

2.0/Dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ SHELL ["/bin/ash", "-euo", "pipefail", "-c"]
99

1010
# Build libtorrent-rasterbar-dev
1111
# hadolint ignore=DL3003,DL3018,SC2086
12-
RUN apk --update add --no-cache boost-python3 boost-system libgcc libstdc++ openssl python3 && \
13-
apk --update add --no-cache --virtual build-dependencies boost-build boost-dev cmake coreutils g++ gcc git jq py3-setuptools python3-dev openssl-dev samurai && \
12+
RUN apk --update add --no-cache boost-python3 libgcc libstdc++ openssl python3 && \
13+
apk --update add --no-cache --virtual build-dependencies boost-dev cmake coreutils g++ gcc git jq py3-setuptools python3-dev openssl-dev samurai && \
1414
# Checkout from source
1515
cd "$(mktemp -d)" && \
1616
git clone --branch "$( \
@@ -27,6 +27,7 @@ RUN apk --update add --no-cache boost-python3 boost
2727
# Get the right version
2828
sort --version-sort --key=1,1 | \
2929
grep "${VERSION}" | \
30+
grep -viE -- '-(rc|alpha|beta)' | \
3031
tail -1 | \
3132
awk '{print $2}' \
3233
)" --depth 1 https://github.com/arvidn/libtorrent.git && \
@@ -42,6 +43,7 @@ RUN apk --update add --no-cache boost-python3 boost
4243
-G Ninja \
4344
-DCMAKE_BUILD_TYPE=Release \
4445
-DCMAKE_CXX_STANDARD=17 \
46+
-DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON \
4547
-Dpython-bindings=ON \
4648
-Dpython-egg-info=ON \
4749
-Dpython-install-system-dir=ON \
@@ -58,6 +60,7 @@ RUN apk --update add --no-cache boost-python3 boost
5860
-G Ninja \
5961
-DCMAKE_BUILD_TYPE=Release \
6062
-DCMAKE_CXX_STANDARD=17 \
63+
-DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON \
6164
-DBUILD_SHARED_LIBS=OFF \
6265
.. && \
6366
ninja "-j$(nproc)" && \

0 commit comments

Comments
 (0)