-
-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add support for Qt6-based builds
With Mumble moving to use Qt6 this container was no longer able to build recent versions successfully. This commit adds support for building Qt6-based version of mumble-server. Signed-off-by: Nita Vesa <[email protected]>
- Loading branch information
Showing
3 changed files
with
141 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
set -x | ||
|
||
apt install --no-install-recommends -y git | ||
|
||
git clone --filter=tree:0 https://github.com/mumble-voip/mumble/ repo | ||
cd repo | ||
|
||
if [ "${MUMBLE_VERSION}" = "latest" ] | ||
then | ||
MUMBLE_VERSION="" | ||
fi | ||
|
||
if ! timestamp=$(git show -s --format=%ct ${MUMBLE_VERSION} 2>/dev/null) | ||
then | ||
echo "Non-existent or malformed MUMBLE_VERSION `${MUMBLE_VERSION}` given, cannot continue!" 1>&2 | ||
cd .. | ||
rm -Rf repo | ||
apt -y autoremove --purge git | ||
exit 1 | ||
else | ||
# 1726713847 refers to the timestamp of the commit that switched Mumble to use Qt6 | ||
if [ ${timestamp} -ge 1726713847 ] | ||
then | ||
apt install --no-install-recommends -y \ | ||
libqt6core6 \ | ||
libqt6network6 \ | ||
libqt6sql6 \ | ||
libqt6sql6-mysql \ | ||
libqt6sql6-psql \ | ||
libqt6sql6-sqlite \ | ||
libqt6xml6 \ | ||
libqt6dbus6 \ | ||
libcrypto++8 | ||
else | ||
apt install --no-install-recommends -y \ | ||
libqt5core5a \ | ||
libqt5network5 \ | ||
libqt5sql5 \ | ||
libqt5sql5-mysql \ | ||
libqt5sql5-psql \ | ||
libqt5sql5-sqlite \ | ||
libqt5xml5 \ | ||
libqt5dbus5 | ||
fi | ||
fi | ||
cd .. | ||
rm -Rf repo | ||
apt -y autoremove --purge git | ||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
set -x | ||
|
||
if [ "${MUMBLE_VERSION}" = "latest" ] | ||
then | ||
MUMBLE_VERSION="" | ||
fi | ||
|
||
if ! timestamp=$(git show -s --format=%ct ${MUMBLE_VERSION} 2>/dev/null) | ||
then | ||
echo "Non-existent or malformed MUMBLE_VERSION `${MUMBLE_VERSION}` given, cannot continue!" 1>&2 | ||
exit 1 | ||
else | ||
# 1726713847 refers to the timestamp of the commit that switched Mumble to use Qt6 | ||
if [ ${timestamp} -ge 1726713847 ] | ||
then | ||
apt install --no-install-recommends -y \ | ||
qt6-base-dev \ | ||
qt6-tools-dev \ | ||
qt6-tools-dev-tools \ | ||
qt6-qpa-plugins | ||
else | ||
apt install --no-install-recommends -y \ | ||
qtbase5-dev \ | ||
qttools5-dev \ | ||
qttools5-dev-tools | ||
fi | ||
fi | ||
mkdir -p /usr/lib/${ARCH}/qt6/plugins/tls | ||
exit 0 |