Skip to content

Commit e11d7d5

Browse files
committed
v2.0.19/v2.1.3
problem: when the `-lt` flag was used with libtorrent `v1.2` like `-lt v1.2.20` boost was not being defaulted `boost-1.86.0` as it does when setting the env equivalent causing a build error when libtorrent was built. fix: the flag now properly checks and sets boost to `boost-1.86.0` when libtorrent `v1.2` is being built.
1 parent 6f56127 commit e11d7d5

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

qbittorrent-nox-static.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#################################################################################################################################################
2020
# Script version = Major minor patch
2121
#################################################################################################################################################
22-
script_version="2.0.18"
22+
script_version="2.0.19"
2323
#################################################################################################################################################
2424
# Set some script features - https://www.gnu.org/software/bash/manual/html_node/The-Set-Builtin.html
2525
#################################################################################################################################################
@@ -2152,6 +2152,13 @@ while (("${#}")); do
21522152
[[ "${github_tag[libtorrent]}" =~ ^RC_ ]] && app_version[libtorrent]="RC_${app_version[libtorrent]//\./_}" # set back to RC_... so that release info has proper version context
21532153

21542154
_test_git_ouput "${github_tag[libtorrent]}" "libtorrent" "$2"
2155+
2156+
# If libtorrent v1.2 is used then set default boost tag to boost-1.86.0
2157+
if [[ "${qbt_libtorrent_version}" == "1.2" || "${github_tag[libtorrent]}" =~ ^(v1\.2\.|RC_1_2) ]]; then
2158+
github_tag[boost]="boost-1.86.0"
2159+
app_version[boost]="${github_tag[boost]#boost-}"
2160+
_boost_url
2161+
fi
21552162
shift 2
21562163
else
21572164
printf '\n%b\n\n' " ${unicode_red_circle} ${color_yellow_light}You must provide a tag for this switch:${color_end} ${color_blue_light}${1} TAG ${color_end}"

qbt-nox-static.bash

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#################################################################################################################################################
2020
# Script version = Major minor patch
2121
#################################################################################################################################################
22-
script_version="2.1.2"
22+
script_version="2.1.3"
2323
#################################################################################################################################################
2424
# Set some script features - https://www.gnu.org/software/bash/manual/html_node/The-Set-Builtin.html
2525
#################################################################################################################################################
@@ -2382,6 +2382,13 @@ while (("${#}")); do
23822382
[[ "${github_tag[libtorrent]}" =~ ^RC_ ]] && app_version[libtorrent]="RC_${app_version[libtorrent]//\./_}" # set back to RC_... so that release info has proper version context
23832383

23842384
_test_git_ouput "${github_tag[libtorrent]}" "libtorrent" "$2"
2385+
2386+
# If libtorrent v1.2 is used then set default boost tag to boost-1.86.0
2387+
if [[ "${qbt_libtorrent_version}" == "1.2" || "${github_tag[libtorrent]}" =~ ^(v1\.2\.|RC_1_2) ]]; then
2388+
github_tag[boost]="boost-1.86.0"
2389+
app_version[boost]="${github_tag[boost]#boost-}"
2390+
_boost_url
2391+
fi
23852392
shift 2
23862393
else
23872394
printf '\n%b\n\n' " ${unicode_red_circle} ${color_yellow_light}You must provide a tag for this switch:${color_end} ${color_blue_light}${1} TAG ${color_end}"

0 commit comments

Comments
 (0)