* [PR PATCH] [WiP] telegram-desktop: update to 2.6.1.
@ 2021-03-08 19:03 Johnnynator
2021-03-21 20:31 ` [PR PATCH] [Updated] " Johnnynator
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: Johnnynator @ 2021-03-08 19:03 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1808 bytes --]
There is a new pull request by Johnnynator against master on the void-packages repository
https://github.com/Johnnynator/void-packages telegram-desktop
https://github.com/void-linux/void-packages/pull/29329
[WiP] telegram-desktop: update to 2.6.1.
- libvpx6: update to 1.10.0rc1.
- telegram-desktop: update to 2.6.1.
- tg_owt: update to 0.0.0.20210203.
Newer tg_owt does not compile with libvpx 1.9.0, but 1.10.0 should be right around the corner, so just wait
<!-- Mark items with [x] where applicable -->
#### General
- [ ] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)
#### Have the results of the proposed changes been tested?
- [ ] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR
<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!--
#### Does it build and run successfully?
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [ ] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
- [ ] aarch64-musl
- [ ] armv7l
- [ ] armv6l-musl
-->
A patch file from https://github.com/void-linux/void-packages/pull/29329.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-telegram-desktop-29329.patch --]
[-- Type: text/x-diff, Size: 6834 bytes --]
From 42c4b2f761f97b7d2061affa8e92b1a5266e8cd5 Mon Sep 17 00:00:00 2001
From: John <me@johnnynator.dev>
Date: Mon, 8 Mar 2021 19:59:09 +0100
Subject: [PATCH 1/3] libvpx6: update to 1.10.0rc1.
---
srcpkgs/libvpx6/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/libvpx6/template b/srcpkgs/libvpx6/template
index a929b3ebcc2..4014b7c31c6 100644
--- a/srcpkgs/libvpx6/template
+++ b/srcpkgs/libvpx6/template
@@ -1,15 +1,15 @@
# Template file for 'libvpx6'
pkgname=libvpx6
-version=1.9.0
+version=1.10.0rc1
revision=1
-wrksrc=libvpx-${version}
+wrksrc=libvpx-${version/rc/-rc}
hostmakedepends="perl yasm"
short_desc="VP8 and VP9 video codec"
maintainer="q66 <daniel@octaforge.org>"
license="BSD-3-Clause-Clear"
homepage="http://www.webmproject.org"
-distfiles="https://github.com/webmproject/libvpx/archive/v${version}.tar.gz"
-checksum=d279c10e4b9316bf11a570ba16c3d55791e1ad6faa4404c67422eb631782c80a
+distfiles="https://github.com/webmproject/libvpx/archive/v${version/rc/-rc}.tar.gz"
+checksum=8e55e04cdefeb1596968e70c5167e13d26132ca214d276292d5cda737a430af5
replaces="libvpx<1.8.0"
do_configure() {
From e613f42cedc22a06b75064d65d1d74f8e483f9e8 Mon Sep 17 00:00:00 2001
From: John <me@johnnynator.dev>
Date: Sun, 7 Mar 2021 11:06:52 +0100
Subject: [PATCH 2/3] telegram-desktop: update to 2.6.1.
---
srcpkgs/telegram-desktop/template | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/telegram-desktop/template b/srcpkgs/telegram-desktop/template
index 5778f4c2d76..7cd6ff77158 100644
--- a/srcpkgs/telegram-desktop/template
+++ b/srcpkgs/telegram-desktop/template
@@ -1,7 +1,7 @@
# Template file for 'telegram-desktop'
pkgname=telegram-desktop
-version=2.5.1
-revision=2
+version=2.6.1
+revision=1
wrksrc="tdesktop-${version}-full"
build_style=cmake
build_helper="qemu"
@@ -26,7 +26,7 @@ license="GPL-3.0-or-later, OpenSSL"
homepage="https://desktop.telegram.org/"
changelog="https://github.com/telegramdesktop/tdesktop/blob/v${version}/changelog.txt"
distfiles="https://github.com/telegramdesktop/tdesktop/releases/download/v${version}/tdesktop-${version}-full.tar.gz"
-checksum=f1cc5e876deaa4fa4eaafbba95f127d5a3114c166802902b8584099852b9eae2
+checksum=c7878c4d7c621a175b3b27895b3fb8c20a56319214d5030d734b2768390a8b73
build_options="spellcheck webrtc"
build_options_default="spellcheck webrtc"
From c9c8c84372811f9d81b699c89bbcd49118ac41d2 Mon Sep 17 00:00:00 2001
From: John <me@johnnynator.dev>
Date: Sun, 7 Mar 2021 11:17:37 +0100
Subject: [PATCH 3/3] tg_owt: update to 0.0.0.20210203.
---
srcpkgs/tg_owt/patches/libressl.patch | 70 ----------------------
srcpkgs/tg_owt/patches/libressl.patch.args | 1 -
srcpkgs/tg_owt/template | 9 ++-
3 files changed, 4 insertions(+), 76 deletions(-)
delete mode 100644 srcpkgs/tg_owt/patches/libressl.patch
delete mode 100644 srcpkgs/tg_owt/patches/libressl.patch.args
diff --git a/srcpkgs/tg_owt/patches/libressl.patch b/srcpkgs/tg_owt/patches/libressl.patch
deleted file mode 100644
index fc352a2a64c..00000000000
--- a/srcpkgs/tg_owt/patches/libressl.patch
+++ /dev/null
@@ -1,70 +0,0 @@
-From 3f2d8238846d4795f1292c05923b9f212dc4d022 Mon Sep 17 00:00:00 2001
-From: Charlie Li <git@vishwin.info>
-Date: Sat, 21 Nov 2020 14:24:04 -0500
-Subject: [PATCH] Fix build with LibreSSL
-
-LibreSSL's dtls1.h uses some definitions from ssl.h and ssl3.h, but
-expects consumers to include them. Reorder and include them before
-dtls1.h.
-
-LibreSSL does not define DTLS1_2_VERSION. Remove them from view.
----
- src/rtc_base/openssl_stream_adapter.cc | 19 ++++++++++++++++++-
- 1 file changed, 18 insertions(+), 1 deletion(-)
-
-diff --git a/src/rtc_base/openssl_stream_adapter.cc b/src/rtc_base/openssl_stream_adapter.cc
-index 7f4b79a5..037002bc 100644
---- a/src/rtc_base/openssl_stream_adapter.cc
-+++ b/src/rtc_base/openssl_stream_adapter.cc
-@@ -17,8 +17,11 @@
- #include <openssl/tls1.h>
- #include <openssl/x509v3.h>
- #ifndef OPENSSL_IS_BORINGSSL
--#include <openssl/dtls1.h>
- #include <openssl/ssl.h>
-+#ifdef LIBRESSL_VERSION_NUMBER
-+#include <openssl/ssl3.h>
-+#endif
-+#include <openssl/dtls1.h>
- #endif
-
- #include <memory>
-@@ -392,8 +395,10 @@ SSLProtocolVersion OpenSSLStreamAdapter::GetSslVersion() const {
- if (ssl_mode_ == SSL_MODE_DTLS) {
- if (ssl_version == DTLS1_VERSION) {
- return SSL_PROTOCOL_DTLS_10;
-+#ifndef LIBRESSL_VERSION_NUMBER
- } else if (ssl_version == DTLS1_2_VERSION) {
- return SSL_PROTOCOL_DTLS_12;
-+#endif
- }
- } else {
- if (ssl_version == TLS1_VERSION) {
-@@ -985,15 +990,27 @@ SSL_CTX* OpenSSLStreamAdapter::SetupSSLContext() {
- case SSL_PROTOCOL_TLS_12:
- default:
- SSL_CTX_set_max_proto_version(
-+#ifdef LIBRESSL_VERSION_NUMBER
-+ ctx, TLS1_2_VERSION);
-+#else
- ctx, ssl_mode_ == SSL_MODE_DTLS ? DTLS1_2_VERSION : TLS1_2_VERSION);
-+#endif
- break;
- }
- } else {
- // TODO(https://bugs.webrtc.org/10261): Make this the default in M84.
- SSL_CTX_set_min_proto_version(
-+#ifdef LIBRESSL_VERSION_NUMBER
-+ ctx, TLS1_2_VERSION);
-+#else
- ctx, ssl_mode_ == SSL_MODE_DTLS ? DTLS1_2_VERSION : TLS1_2_VERSION);
-+#endif
- SSL_CTX_set_max_proto_version(
-+#ifdef LIBRESSL_VERSION_NUMBER
-+ ctx, TLS1_2_VERSION);
-+#else
- ctx, ssl_mode_ == SSL_MODE_DTLS ? DTLS1_2_VERSION : TLS1_2_VERSION);
-+#endif
- }
-
- #ifdef OPENSSL_IS_BORINGSSL
diff --git a/srcpkgs/tg_owt/patches/libressl.patch.args b/srcpkgs/tg_owt/patches/libressl.patch.args
deleted file mode 100644
index 2eba1cb3c5c..00000000000
--- a/srcpkgs/tg_owt/patches/libressl.patch.args
+++ /dev/null
@@ -1 +0,0 @@
--Np1
diff --git a/srcpkgs/tg_owt/template b/srcpkgs/tg_owt/template
index fa0d55fc4ae..d6c4eade142 100644
--- a/srcpkgs/tg_owt/template
+++ b/srcpkgs/tg_owt/template
@@ -1,9 +1,8 @@
# Template file for 'tg_owt'
pkgname=tg_owt
-version=0.0.0.1
-revision=2
-_commit=756fd0fb5f40ffb4244c675208e84de781f766f3
-_libvpx_commit=5b63f0f821e94f8072eb483014cfc33b05978bb9
+version=0.0.0.20210203
+revision=1
+_commit=a19877363082da634a3c851a4698376504d2eaee
_libyuv_commit=ad890067f661dc747a975bc55ba3767fe30d4452
wrksrc="tg_owt-$_commit"
build_style=cmake
@@ -18,7 +17,7 @@ license="GPL-3.0-or-later"
homepage="https://github.com/desktop-app/tg_owt"
distfiles="https://github.com/desktop-app/tg_owt/archive/${_commit}.tar.gz
https://chromium.googlesource.com/libyuv/libyuv/+archive/${_libyuv_commit}.tar.gz"
-checksum="@43d09b00a43f9206b1f04c6d6697f4b0cb3be0285100bf5df91144b1d689c89a
+checksum="@f8e90e2435d8fd17974e9e1b8325c74dbfc9ca1dd3b216939812aa06999cd9ff
@1dd51820852df840c339bf3f18e6cf1166de33d5631a69cd1eae5b2b34c113e3"
skip_extraction="${_libvpx_commit}.tar.gz ${_libyuv_commit}.tar.gz"
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PR PATCH] [Updated] [WiP] telegram-desktop: update to 2.6.1.
2021-03-08 19:03 [PR PATCH] [WiP] telegram-desktop: update to 2.6.1 Johnnynator
@ 2021-03-21 20:31 ` Johnnynator
2021-03-21 20:31 ` Johnnynator
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Johnnynator @ 2021-03-21 20:31 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1813 bytes --]
There is an updated pull request by Johnnynator against master on the void-packages repository
https://github.com/Johnnynator/void-packages telegram-desktop
https://github.com/void-linux/void-packages/pull/29329
[WiP] telegram-desktop: update to 2.6.1.
- libvpx6: update to 1.10.0rc1.
- telegram-desktop: update to 2.6.1.
- tg_owt: update to 0.0.0.20210203.
Newer tg_owt does not compile with libvpx 1.9.0, but 1.10.0 should be right around the corner, so just wait
<!-- Mark items with [x] where applicable -->
#### General
- [ ] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)
#### Have the results of the proposed changes been tested?
- [ ] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR
<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!--
#### Does it build and run successfully?
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [ ] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
- [ ] aarch64-musl
- [ ] armv7l
- [ ] armv6l-musl
-->
A patch file from https://github.com/void-linux/void-packages/pull/29329.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-telegram-desktop-29329.patch --]
[-- Type: text/x-diff, Size: 12739 bytes --]
From 8b7f92d29b2da1292b477894451fc50ff4379e3b Mon Sep 17 00:00:00 2001
From: John <me@johnnynator.dev>
Date: Mon, 8 Mar 2021 19:59:09 +0100
Subject: [PATCH 1/4] libvpx6: update to 1.10.0rc2.
---
srcpkgs/libvpx6/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/libvpx6/template b/srcpkgs/libvpx6/template
index a929b3ebcc20..5376df92418c 100644
--- a/srcpkgs/libvpx6/template
+++ b/srcpkgs/libvpx6/template
@@ -1,15 +1,15 @@
# Template file for 'libvpx6'
pkgname=libvpx6
-version=1.9.0
+version=1.10.0rc2
revision=1
-wrksrc=libvpx-${version}
+wrksrc=libvpx-${version/rc/-rc}
hostmakedepends="perl yasm"
short_desc="VP8 and VP9 video codec"
maintainer="q66 <daniel@octaforge.org>"
license="BSD-3-Clause-Clear"
homepage="http://www.webmproject.org"
-distfiles="https://github.com/webmproject/libvpx/archive/v${version}.tar.gz"
-checksum=d279c10e4b9316bf11a570ba16c3d55791e1ad6faa4404c67422eb631782c80a
+distfiles="https://github.com/webmproject/libvpx/archive/v${version/rc/-rc}.tar.gz"
+checksum=bac96d9522abc5ccbbf3015f94c34cace815ad2d6989d209cadd3bd3d767f2d7
replaces="libvpx<1.8.0"
do_configure() {
From d625223759bddc026dc4f1c5e558eb2323139edf Mon Sep 17 00:00:00 2001
From: John <me@johnnynator.dev>
Date: Sun, 7 Mar 2021 11:06:52 +0100
Subject: [PATCH 2/4] telegram-desktop: update to 2.6.1.
---
srcpkgs/telegram-desktop/template | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/telegram-desktop/template b/srcpkgs/telegram-desktop/template
index 5778f4c2d76a..7cd6ff771584 100644
--- a/srcpkgs/telegram-desktop/template
+++ b/srcpkgs/telegram-desktop/template
@@ -1,7 +1,7 @@
# Template file for 'telegram-desktop'
pkgname=telegram-desktop
-version=2.5.1
-revision=2
+version=2.6.1
+revision=1
wrksrc="tdesktop-${version}-full"
build_style=cmake
build_helper="qemu"
@@ -26,7 +26,7 @@ license="GPL-3.0-or-later, OpenSSL"
homepage="https://desktop.telegram.org/"
changelog="https://github.com/telegramdesktop/tdesktop/blob/v${version}/changelog.txt"
distfiles="https://github.com/telegramdesktop/tdesktop/releases/download/v${version}/tdesktop-${version}-full.tar.gz"
-checksum=f1cc5e876deaa4fa4eaafbba95f127d5a3114c166802902b8584099852b9eae2
+checksum=c7878c4d7c621a175b3b27895b3fb8c20a56319214d5030d734b2768390a8b73
build_options="spellcheck webrtc"
build_options_default="spellcheck webrtc"
From 192cb2242223641117848b98610e8a542cf48fe2 Mon Sep 17 00:00:00 2001
From: John <me@johnnynator.dev>
Date: Sun, 7 Mar 2021 11:17:37 +0100
Subject: [PATCH 3/4] tg_owt: update to 0.0.0.20210203.
---
srcpkgs/tg_owt/patches/libressl.patch | 70 ----------------------
srcpkgs/tg_owt/patches/libressl.patch.args | 1 -
srcpkgs/tg_owt/template | 9 ++-
3 files changed, 4 insertions(+), 76 deletions(-)
delete mode 100644 srcpkgs/tg_owt/patches/libressl.patch
delete mode 100644 srcpkgs/tg_owt/patches/libressl.patch.args
diff --git a/srcpkgs/tg_owt/patches/libressl.patch b/srcpkgs/tg_owt/patches/libressl.patch
deleted file mode 100644
index fc352a2a64c2..000000000000
--- a/srcpkgs/tg_owt/patches/libressl.patch
+++ /dev/null
@@ -1,70 +0,0 @@
-From 3f2d8238846d4795f1292c05923b9f212dc4d022 Mon Sep 17 00:00:00 2001
-From: Charlie Li <git@vishwin.info>
-Date: Sat, 21 Nov 2020 14:24:04 -0500
-Subject: [PATCH] Fix build with LibreSSL
-
-LibreSSL's dtls1.h uses some definitions from ssl.h and ssl3.h, but
-expects consumers to include them. Reorder and include them before
-dtls1.h.
-
-LibreSSL does not define DTLS1_2_VERSION. Remove them from view.
----
- src/rtc_base/openssl_stream_adapter.cc | 19 ++++++++++++++++++-
- 1 file changed, 18 insertions(+), 1 deletion(-)
-
-diff --git a/src/rtc_base/openssl_stream_adapter.cc b/src/rtc_base/openssl_stream_adapter.cc
-index 7f4b79a5..037002bc 100644
---- a/src/rtc_base/openssl_stream_adapter.cc
-+++ b/src/rtc_base/openssl_stream_adapter.cc
-@@ -17,8 +17,11 @@
- #include <openssl/tls1.h>
- #include <openssl/x509v3.h>
- #ifndef OPENSSL_IS_BORINGSSL
--#include <openssl/dtls1.h>
- #include <openssl/ssl.h>
-+#ifdef LIBRESSL_VERSION_NUMBER
-+#include <openssl/ssl3.h>
-+#endif
-+#include <openssl/dtls1.h>
- #endif
-
- #include <memory>
-@@ -392,8 +395,10 @@ SSLProtocolVersion OpenSSLStreamAdapter::GetSslVersion() const {
- if (ssl_mode_ == SSL_MODE_DTLS) {
- if (ssl_version == DTLS1_VERSION) {
- return SSL_PROTOCOL_DTLS_10;
-+#ifndef LIBRESSL_VERSION_NUMBER
- } else if (ssl_version == DTLS1_2_VERSION) {
- return SSL_PROTOCOL_DTLS_12;
-+#endif
- }
- } else {
- if (ssl_version == TLS1_VERSION) {
-@@ -985,15 +990,27 @@ SSL_CTX* OpenSSLStreamAdapter::SetupSSLContext() {
- case SSL_PROTOCOL_TLS_12:
- default:
- SSL_CTX_set_max_proto_version(
-+#ifdef LIBRESSL_VERSION_NUMBER
-+ ctx, TLS1_2_VERSION);
-+#else
- ctx, ssl_mode_ == SSL_MODE_DTLS ? DTLS1_2_VERSION : TLS1_2_VERSION);
-+#endif
- break;
- }
- } else {
- // TODO(https://bugs.webrtc.org/10261): Make this the default in M84.
- SSL_CTX_set_min_proto_version(
-+#ifdef LIBRESSL_VERSION_NUMBER
-+ ctx, TLS1_2_VERSION);
-+#else
- ctx, ssl_mode_ == SSL_MODE_DTLS ? DTLS1_2_VERSION : TLS1_2_VERSION);
-+#endif
- SSL_CTX_set_max_proto_version(
-+#ifdef LIBRESSL_VERSION_NUMBER
-+ ctx, TLS1_2_VERSION);
-+#else
- ctx, ssl_mode_ == SSL_MODE_DTLS ? DTLS1_2_VERSION : TLS1_2_VERSION);
-+#endif
- }
-
- #ifdef OPENSSL_IS_BORINGSSL
diff --git a/srcpkgs/tg_owt/patches/libressl.patch.args b/srcpkgs/tg_owt/patches/libressl.patch.args
deleted file mode 100644
index 2eba1cb3c5ce..000000000000
--- a/srcpkgs/tg_owt/patches/libressl.patch.args
+++ /dev/null
@@ -1 +0,0 @@
--Np1
diff --git a/srcpkgs/tg_owt/template b/srcpkgs/tg_owt/template
index fa0d55fc4aec..b63fd17281a4 100644
--- a/srcpkgs/tg_owt/template
+++ b/srcpkgs/tg_owt/template
@@ -1,9 +1,8 @@
# Template file for 'tg_owt'
pkgname=tg_owt
-version=0.0.0.1
-revision=2
-_commit=756fd0fb5f40ffb4244c675208e84de781f766f3
-_libvpx_commit=5b63f0f821e94f8072eb483014cfc33b05978bb9
+version=0.0.0.20210321
+revision=1
+_commit=2d804d2c9c5d05324c8ab22f2e6ff8306521b3c3
_libyuv_commit=ad890067f661dc747a975bc55ba3767fe30d4452
wrksrc="tg_owt-$_commit"
build_style=cmake
@@ -18,7 +17,7 @@ license="GPL-3.0-or-later"
homepage="https://github.com/desktop-app/tg_owt"
distfiles="https://github.com/desktop-app/tg_owt/archive/${_commit}.tar.gz
https://chromium.googlesource.com/libyuv/libyuv/+archive/${_libyuv_commit}.tar.gz"
-checksum="@43d09b00a43f9206b1f04c6d6697f4b0cb3be0285100bf5df91144b1d689c89a
+checksum="@2873f3c9a6e5a93976623d4502af59bf6c8a3536aa9928acf45cea0a20e23ec0
@1dd51820852df840c339bf3f18e6cf1166de33d5631a69cd1eae5b2b34c113e3"
skip_extraction="${_libvpx_commit}.tar.gz ${_libyuv_commit}.tar.gz"
From 625a533075dd65bf305a60f1273bc73b2df10e84 Mon Sep 17 00:00:00 2001
From: John <me@johnnynator.dev>
Date: Sun, 21 Mar 2021 20:55:31 +0100
Subject: [PATCH 4/4] telegram-desktop: update to 2.7.1.
---
.../patches/no-webrtc-build.patch | 96 -------------------
srcpkgs/telegram-desktop/template | 6 +-
2 files changed, 3 insertions(+), 99 deletions(-)
delete mode 100644 srcpkgs/telegram-desktop/patches/no-webrtc-build.patch
diff --git a/srcpkgs/telegram-desktop/patches/no-webrtc-build.patch b/srcpkgs/telegram-desktop/patches/no-webrtc-build.patch
deleted file mode 100644
index 3d8ab8f98272..000000000000
--- a/srcpkgs/telegram-desktop/patches/no-webrtc-build.patch
+++ /dev/null
@@ -1,96 +0,0 @@
-diff --git a/Telegram/SourceFiles/calls/calls_instance.cpp b/Telegram/SourceFiles/calls/calls_instance.cpp
-index e99958109..bb7678d3c 100644
---- Telegram/SourceFiles/calls/calls_instance.cpp
-+++ Telegram/SourceFiles/calls/calls_instance.cpp
-@@ -350,8 +350,11 @@ std::shared_ptr<tgcalls::VideoCaptureInterface> Instance::getVideoCapture() {
- return result;
- }
- auto result = std::shared_ptr<tgcalls::VideoCaptureInterface>(
-+ #ifndef DESKTOP_APP_DISABLE_WEBRTC_INTEGRATION
- tgcalls::VideoCaptureInterface::Create(
-- Core::App().settings().callVideoInputDeviceId().toStdString()));
-+ Core::App().settings().callVideoInputDeviceId().toStdString())
-+ #endif
-+ );
- _videoCapture = result;
- return result;
- }
-diff --git Telegram/lib_webrtc/CMakeLists.txt b/CMakeLists.txt
-index 47796f1..1f54c21 100644
---- Telegram/lib_webrtc/CMakeLists.txt
-+++ Telegram/lib_webrtc/CMakeLists.txt
-@@ -14,8 +14,10 @@ target_precompile_headers(lib_webrtc PRIVATE ${src_loc}/webrtc/webrtc_pch.h)
- nice_target_sources(lib_webrtc ${src_loc}
- PRIVATE
- webrtc/webrtc_audio_input_tester.cpp
-+ webrtc/webrtc_audio_input_tester_dummy.cpp
- webrtc/webrtc_audio_input_tester.h
- webrtc/webrtc_media_devices.cpp
-+ webrtc/webrtc_media_devices_dummy.cpp
- webrtc/webrtc_media_devices.h
- webrtc/webrtc_video_track.cpp
- webrtc/webrtc_video_track.h
-@@ -40,10 +42,14 @@ PUBLIC
- if (DESKTOP_APP_DISABLE_WEBRTC_INTEGRATION)
- remove_target_sources(lib_webrtc ${src_loc}
- webrtc/webrtc_video_track.cpp
-+ webrtc/webrtc_media_devices.cpp
-+ webrtc/webrtc_audio_input_tester.cpp
- )
- else()
- remove_target_sources(lib_webrtc ${src_loc}
- webrtc/webrtc_video_track_dummy.cpp
-+ webrtc/webrtc_media_devices_dummy.cpp
-+ webrtc/webrtc_audio_input_tester_dummy.cpp
- )
- target_link_libraries(lib_webrtc
- PRIVATE
-diff --git Telegram/lib_webrtc/webrtc/webrtc_audio_input_tester.h b/webrtc/webrtc_audio_input_tester.h
-index 1ae8d30..008df7e 100644
---- Telegram/lib_webrtc/webrtc/webrtc_audio_input_tester.h
-+++ Telegram/lib_webrtc/webrtc/webrtc_audio_input_tester.h
-@@ -20,11 +20,13 @@ public:
- [[nodiscard]] float getAndResetLevel();
-
- private:
-+#ifndef DESKTOP_APP_DISABLE_WEBRTC_INTEGRATION
- class Impl;
--
-+#endif
- std::shared_ptr<std::atomic<int>> _maxSample;
-+#ifndef DESKTOP_APP_DISABLE_WEBRTC_INTEGRATION
- crl::object_on_thread<Impl> _impl;
--
-+#endif
- };
-
- } // namespace Webrtc
-diff --git Telegram/lib_webrtc/webrtc/webrtc_audio_input_tester_dummy.cpp b/webrtc/webrtc_audio_input_tester_dummy.cpp
-new file mode 100644
-index 0000000..4e47eaa
---- /dev/null
-+++ Telegram/lib_webrtc/webrtc/webrtc_audio_input_tester_dummy.cpp
-@@ -0,0 +1,11 @@
-+#include "webrtc/webrtc_audio_input_tester.h"
-+
-+namespace Webrtc {
-+AudioInputTester::AudioInputTester(const QString &deviceId)
-+: _maxSample(std::make_shared<std::atomic<int>>(0)) {}
-+AudioInputTester::~AudioInputTester() {}
-+void AudioInputTester::setDeviceId(const QString &deviceId) {};
-+float AudioInputTester::getAndResetLevel() {
-+ return _maxSample->exchange(0) / float(INT16_MAX);\
-+}
-+}
-diff --git Telegram/lib_webrtc/webrtc/webrtc_media_devices_dummy.cpp b/webrtc/webrtc_media_devices_dummy.cpp
-new file mode 100644
-index 0000000..8d5d245
---- /dev/null
-+++ Telegram/lib_webrtc/webrtc/webrtc_media_devices_dummy.cpp
-@@ -0,0 +1,6 @@
-+#include "webrtc/webrtc_media_devices.h"
-+namespace Webrtc {
-+std::vector<VideoInput> GetVideoInputList() { return std::vector<VideoInput>(); };
-+std::vector<AudioInput> GetAudioInputList() { return std::vector<AudioInput>(); };
-+std::vector<AudioOutput> GetAudioOutputList() { return std::vector<AudioOutput>(); };
-+}
diff --git a/srcpkgs/telegram-desktop/template b/srcpkgs/telegram-desktop/template
index 7cd6ff771584..2bf16f34e22f 100644
--- a/srcpkgs/telegram-desktop/template
+++ b/srcpkgs/telegram-desktop/template
@@ -1,6 +1,6 @@
# Template file for 'telegram-desktop'
pkgname=telegram-desktop
-version=2.6.1
+version=2.7.1
revision=1
wrksrc="tdesktop-${version}-full"
build_style=cmake
@@ -18,7 +18,7 @@ makedepends="alsa-lib-devel ffmpeg-devel libdbusmenu-glib-devel libopenal-devel
libva-devel rapidjson liblz4-devel liblzma-devel gtk+3-devel
MesaLib-devel libdbusmenu-qt5-devel qt5-wayland-devel libatomic-devel
xcb-util-keysyms-devel $(vopt_if spellcheck hunspell-devel)
- $(vopt_if webrtc tg_owt)"
+ kwayland-devel glibmm-devel $(vopt_if webrtc tg_owt)"
depends="qt5-imageformats qt5-core>=5.15.2<5.15.3"
short_desc="Telegram Desktop messaging app"
maintainer="John <me@johnnynator.dev>"
@@ -26,7 +26,7 @@ license="GPL-3.0-or-later, OpenSSL"
homepage="https://desktop.telegram.org/"
changelog="https://github.com/telegramdesktop/tdesktop/blob/v${version}/changelog.txt"
distfiles="https://github.com/telegramdesktop/tdesktop/releases/download/v${version}/tdesktop-${version}-full.tar.gz"
-checksum=c7878c4d7c621a175b3b27895b3fb8c20a56319214d5030d734b2768390a8b73
+checksum=41bfbe1ee63da9a6af7cf7d11b1cdd13a6754b51b294ac5a9d56f5f11dfbdd05
build_options="spellcheck webrtc"
build_options_default="spellcheck webrtc"
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PR PATCH] [Updated] [WiP] telegram-desktop: update to 2.6.1.
2021-03-08 19:03 [PR PATCH] [WiP] telegram-desktop: update to 2.6.1 Johnnynator
2021-03-21 20:31 ` [PR PATCH] [Updated] " Johnnynator
@ 2021-03-21 20:31 ` Johnnynator
2021-03-26 23:09 ` Johnnynator
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Johnnynator @ 2021-03-21 20:31 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1813 bytes --]
There is an updated pull request by Johnnynator against master on the void-packages repository
https://github.com/Johnnynator/void-packages telegram-desktop
https://github.com/void-linux/void-packages/pull/29329
[WiP] telegram-desktop: update to 2.6.1.
- libvpx6: update to 1.10.0rc1.
- telegram-desktop: update to 2.6.1.
- tg_owt: update to 0.0.0.20210203.
Newer tg_owt does not compile with libvpx 1.9.0, but 1.10.0 should be right around the corner, so just wait
<!-- Mark items with [x] where applicable -->
#### General
- [ ] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)
#### Have the results of the proposed changes been tested?
- [ ] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR
<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!--
#### Does it build and run successfully?
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [ ] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
- [ ] aarch64-musl
- [ ] armv7l
- [ ] armv6l-musl
-->
A patch file from https://github.com/void-linux/void-packages/pull/29329.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-telegram-desktop-29329.patch --]
[-- Type: text/x-diff, Size: 14199 bytes --]
From 8b7f92d29b2da1292b477894451fc50ff4379e3b Mon Sep 17 00:00:00 2001
From: John <me@johnnynator.dev>
Date: Mon, 8 Mar 2021 19:59:09 +0100
Subject: [PATCH 1/4] libvpx6: update to 1.10.0rc2.
---
srcpkgs/libvpx6/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/libvpx6/template b/srcpkgs/libvpx6/template
index a929b3ebcc20..5376df92418c 100644
--- a/srcpkgs/libvpx6/template
+++ b/srcpkgs/libvpx6/template
@@ -1,15 +1,15 @@
# Template file for 'libvpx6'
pkgname=libvpx6
-version=1.9.0
+version=1.10.0rc2
revision=1
-wrksrc=libvpx-${version}
+wrksrc=libvpx-${version/rc/-rc}
hostmakedepends="perl yasm"
short_desc="VP8 and VP9 video codec"
maintainer="q66 <daniel@octaforge.org>"
license="BSD-3-Clause-Clear"
homepage="http://www.webmproject.org"
-distfiles="https://github.com/webmproject/libvpx/archive/v${version}.tar.gz"
-checksum=d279c10e4b9316bf11a570ba16c3d55791e1ad6faa4404c67422eb631782c80a
+distfiles="https://github.com/webmproject/libvpx/archive/v${version/rc/-rc}.tar.gz"
+checksum=bac96d9522abc5ccbbf3015f94c34cace815ad2d6989d209cadd3bd3d767f2d7
replaces="libvpx<1.8.0"
do_configure() {
From d625223759bddc026dc4f1c5e558eb2323139edf Mon Sep 17 00:00:00 2001
From: John <me@johnnynator.dev>
Date: Sun, 7 Mar 2021 11:06:52 +0100
Subject: [PATCH 2/4] telegram-desktop: update to 2.6.1.
---
srcpkgs/telegram-desktop/template | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/telegram-desktop/template b/srcpkgs/telegram-desktop/template
index 5778f4c2d76a..7cd6ff771584 100644
--- a/srcpkgs/telegram-desktop/template
+++ b/srcpkgs/telegram-desktop/template
@@ -1,7 +1,7 @@
# Template file for 'telegram-desktop'
pkgname=telegram-desktop
-version=2.5.1
-revision=2
+version=2.6.1
+revision=1
wrksrc="tdesktop-${version}-full"
build_style=cmake
build_helper="qemu"
@@ -26,7 +26,7 @@ license="GPL-3.0-or-later, OpenSSL"
homepage="https://desktop.telegram.org/"
changelog="https://github.com/telegramdesktop/tdesktop/blob/v${version}/changelog.txt"
distfiles="https://github.com/telegramdesktop/tdesktop/releases/download/v${version}/tdesktop-${version}-full.tar.gz"
-checksum=f1cc5e876deaa4fa4eaafbba95f127d5a3114c166802902b8584099852b9eae2
+checksum=c7878c4d7c621a175b3b27895b3fb8c20a56319214d5030d734b2768390a8b73
build_options="spellcheck webrtc"
build_options_default="spellcheck webrtc"
From 192cb2242223641117848b98610e8a542cf48fe2 Mon Sep 17 00:00:00 2001
From: John <me@johnnynator.dev>
Date: Sun, 7 Mar 2021 11:17:37 +0100
Subject: [PATCH 3/4] tg_owt: update to 0.0.0.20210203.
---
srcpkgs/tg_owt/patches/libressl.patch | 70 ----------------------
srcpkgs/tg_owt/patches/libressl.patch.args | 1 -
srcpkgs/tg_owt/template | 9 ++-
3 files changed, 4 insertions(+), 76 deletions(-)
delete mode 100644 srcpkgs/tg_owt/patches/libressl.patch
delete mode 100644 srcpkgs/tg_owt/patches/libressl.patch.args
diff --git a/srcpkgs/tg_owt/patches/libressl.patch b/srcpkgs/tg_owt/patches/libressl.patch
deleted file mode 100644
index fc352a2a64c2..000000000000
--- a/srcpkgs/tg_owt/patches/libressl.patch
+++ /dev/null
@@ -1,70 +0,0 @@
-From 3f2d8238846d4795f1292c05923b9f212dc4d022 Mon Sep 17 00:00:00 2001
-From: Charlie Li <git@vishwin.info>
-Date: Sat, 21 Nov 2020 14:24:04 -0500
-Subject: [PATCH] Fix build with LibreSSL
-
-LibreSSL's dtls1.h uses some definitions from ssl.h and ssl3.h, but
-expects consumers to include them. Reorder and include them before
-dtls1.h.
-
-LibreSSL does not define DTLS1_2_VERSION. Remove them from view.
----
- src/rtc_base/openssl_stream_adapter.cc | 19 ++++++++++++++++++-
- 1 file changed, 18 insertions(+), 1 deletion(-)
-
-diff --git a/src/rtc_base/openssl_stream_adapter.cc b/src/rtc_base/openssl_stream_adapter.cc
-index 7f4b79a5..037002bc 100644
---- a/src/rtc_base/openssl_stream_adapter.cc
-+++ b/src/rtc_base/openssl_stream_adapter.cc
-@@ -17,8 +17,11 @@
- #include <openssl/tls1.h>
- #include <openssl/x509v3.h>
- #ifndef OPENSSL_IS_BORINGSSL
--#include <openssl/dtls1.h>
- #include <openssl/ssl.h>
-+#ifdef LIBRESSL_VERSION_NUMBER
-+#include <openssl/ssl3.h>
-+#endif
-+#include <openssl/dtls1.h>
- #endif
-
- #include <memory>
-@@ -392,8 +395,10 @@ SSLProtocolVersion OpenSSLStreamAdapter::GetSslVersion() const {
- if (ssl_mode_ == SSL_MODE_DTLS) {
- if (ssl_version == DTLS1_VERSION) {
- return SSL_PROTOCOL_DTLS_10;
-+#ifndef LIBRESSL_VERSION_NUMBER
- } else if (ssl_version == DTLS1_2_VERSION) {
- return SSL_PROTOCOL_DTLS_12;
-+#endif
- }
- } else {
- if (ssl_version == TLS1_VERSION) {
-@@ -985,15 +990,27 @@ SSL_CTX* OpenSSLStreamAdapter::SetupSSLContext() {
- case SSL_PROTOCOL_TLS_12:
- default:
- SSL_CTX_set_max_proto_version(
-+#ifdef LIBRESSL_VERSION_NUMBER
-+ ctx, TLS1_2_VERSION);
-+#else
- ctx, ssl_mode_ == SSL_MODE_DTLS ? DTLS1_2_VERSION : TLS1_2_VERSION);
-+#endif
- break;
- }
- } else {
- // TODO(https://bugs.webrtc.org/10261): Make this the default in M84.
- SSL_CTX_set_min_proto_version(
-+#ifdef LIBRESSL_VERSION_NUMBER
-+ ctx, TLS1_2_VERSION);
-+#else
- ctx, ssl_mode_ == SSL_MODE_DTLS ? DTLS1_2_VERSION : TLS1_2_VERSION);
-+#endif
- SSL_CTX_set_max_proto_version(
-+#ifdef LIBRESSL_VERSION_NUMBER
-+ ctx, TLS1_2_VERSION);
-+#else
- ctx, ssl_mode_ == SSL_MODE_DTLS ? DTLS1_2_VERSION : TLS1_2_VERSION);
-+#endif
- }
-
- #ifdef OPENSSL_IS_BORINGSSL
diff --git a/srcpkgs/tg_owt/patches/libressl.patch.args b/srcpkgs/tg_owt/patches/libressl.patch.args
deleted file mode 100644
index 2eba1cb3c5ce..000000000000
--- a/srcpkgs/tg_owt/patches/libressl.patch.args
+++ /dev/null
@@ -1 +0,0 @@
--Np1
diff --git a/srcpkgs/tg_owt/template b/srcpkgs/tg_owt/template
index fa0d55fc4aec..b63fd17281a4 100644
--- a/srcpkgs/tg_owt/template
+++ b/srcpkgs/tg_owt/template
@@ -1,9 +1,8 @@
# Template file for 'tg_owt'
pkgname=tg_owt
-version=0.0.0.1
-revision=2
-_commit=756fd0fb5f40ffb4244c675208e84de781f766f3
-_libvpx_commit=5b63f0f821e94f8072eb483014cfc33b05978bb9
+version=0.0.0.20210321
+revision=1
+_commit=2d804d2c9c5d05324c8ab22f2e6ff8306521b3c3
_libyuv_commit=ad890067f661dc747a975bc55ba3767fe30d4452
wrksrc="tg_owt-$_commit"
build_style=cmake
@@ -18,7 +17,7 @@ license="GPL-3.0-or-later"
homepage="https://github.com/desktop-app/tg_owt"
distfiles="https://github.com/desktop-app/tg_owt/archive/${_commit}.tar.gz
https://chromium.googlesource.com/libyuv/libyuv/+archive/${_libyuv_commit}.tar.gz"
-checksum="@43d09b00a43f9206b1f04c6d6697f4b0cb3be0285100bf5df91144b1d689c89a
+checksum="@2873f3c9a6e5a93976623d4502af59bf6c8a3536aa9928acf45cea0a20e23ec0
@1dd51820852df840c339bf3f18e6cf1166de33d5631a69cd1eae5b2b34c113e3"
skip_extraction="${_libvpx_commit}.tar.gz ${_libyuv_commit}.tar.gz"
From afcb167b9e7704a24076e2f122f4cd5c39019a78 Mon Sep 17 00:00:00 2001
From: John <me@johnnynator.dev>
Date: Sun, 21 Mar 2021 20:55:31 +0100
Subject: [PATCH 4/4] telegram-desktop: update to 2.7.1.
---
.../patches/0002-use-vendored-gsl.patch | 11 +++
.../patches/0003-stdint.patch | 10 ++
.../patches/no-webrtc-build.patch | 96 -------------------
srcpkgs/telegram-desktop/template | 6 +-
4 files changed, 24 insertions(+), 99 deletions(-)
create mode 100644 srcpkgs/telegram-desktop/patches/0002-use-vendored-gsl.patch
create mode 100644 srcpkgs/telegram-desktop/patches/0003-stdint.patch
delete mode 100644 srcpkgs/telegram-desktop/patches/no-webrtc-build.patch
diff --git a/srcpkgs/telegram-desktop/patches/0002-use-vendored-gsl.patch b/srcpkgs/telegram-desktop/patches/0002-use-vendored-gsl.patch
new file mode 100644
index 000000000000..dfb0d743d8f5
--- /dev/null
+++ b/srcpkgs/telegram-desktop/patches/0002-use-vendored-gsl.patch
@@ -0,0 +1,11 @@
+--- cmake/external/gsl/CMakeLists.txt 2021-03-17 10:33:50.000000000 +0100
++++ - 2021-03-21 21:08:36.925095597 +0100
+@@ -8,7 +8,7 @@
+ add_library(desktop-app::external_gsl ALIAS external_gsl)
+
+ if (DESKTOP_APP_USE_PACKAGED)
+- if (DESKTOP_APP_USE_PACKAGED_LAZY)
++ if (TRUE)
+ find_package(Microsoft.GSL QUIET)
+ else()
+ find_package(Microsoft.GSL)
diff --git a/srcpkgs/telegram-desktop/patches/0003-stdint.patch b/srcpkgs/telegram-desktop/patches/0003-stdint.patch
new file mode 100644
index 000000000000..e73238fc0341
--- /dev/null
+++ b/srcpkgs/telegram-desktop/patches/0003-stdint.patch
@@ -0,0 +1,10 @@
+--- Telegram/ThirdParty/tgcalls/tgcalls/group/StreamingPart.h 2021-03-17 21:29:27.000000000 +0100
++++ - 2021-03-21 21:11:50.643605199 +0100
+@@ -3,6 +3,7 @@
+
+ #include "absl/types/optional.h"
+ #include <vector>
++#include <cstdint>
+
+ namespace tgcalls {
+
diff --git a/srcpkgs/telegram-desktop/patches/no-webrtc-build.patch b/srcpkgs/telegram-desktop/patches/no-webrtc-build.patch
deleted file mode 100644
index 3d8ab8f98272..000000000000
--- a/srcpkgs/telegram-desktop/patches/no-webrtc-build.patch
+++ /dev/null
@@ -1,96 +0,0 @@
-diff --git a/Telegram/SourceFiles/calls/calls_instance.cpp b/Telegram/SourceFiles/calls/calls_instance.cpp
-index e99958109..bb7678d3c 100644
---- Telegram/SourceFiles/calls/calls_instance.cpp
-+++ Telegram/SourceFiles/calls/calls_instance.cpp
-@@ -350,8 +350,11 @@ std::shared_ptr<tgcalls::VideoCaptureInterface> Instance::getVideoCapture() {
- return result;
- }
- auto result = std::shared_ptr<tgcalls::VideoCaptureInterface>(
-+ #ifndef DESKTOP_APP_DISABLE_WEBRTC_INTEGRATION
- tgcalls::VideoCaptureInterface::Create(
-- Core::App().settings().callVideoInputDeviceId().toStdString()));
-+ Core::App().settings().callVideoInputDeviceId().toStdString())
-+ #endif
-+ );
- _videoCapture = result;
- return result;
- }
-diff --git Telegram/lib_webrtc/CMakeLists.txt b/CMakeLists.txt
-index 47796f1..1f54c21 100644
---- Telegram/lib_webrtc/CMakeLists.txt
-+++ Telegram/lib_webrtc/CMakeLists.txt
-@@ -14,8 +14,10 @@ target_precompile_headers(lib_webrtc PRIVATE ${src_loc}/webrtc/webrtc_pch.h)
- nice_target_sources(lib_webrtc ${src_loc}
- PRIVATE
- webrtc/webrtc_audio_input_tester.cpp
-+ webrtc/webrtc_audio_input_tester_dummy.cpp
- webrtc/webrtc_audio_input_tester.h
- webrtc/webrtc_media_devices.cpp
-+ webrtc/webrtc_media_devices_dummy.cpp
- webrtc/webrtc_media_devices.h
- webrtc/webrtc_video_track.cpp
- webrtc/webrtc_video_track.h
-@@ -40,10 +42,14 @@ PUBLIC
- if (DESKTOP_APP_DISABLE_WEBRTC_INTEGRATION)
- remove_target_sources(lib_webrtc ${src_loc}
- webrtc/webrtc_video_track.cpp
-+ webrtc/webrtc_media_devices.cpp
-+ webrtc/webrtc_audio_input_tester.cpp
- )
- else()
- remove_target_sources(lib_webrtc ${src_loc}
- webrtc/webrtc_video_track_dummy.cpp
-+ webrtc/webrtc_media_devices_dummy.cpp
-+ webrtc/webrtc_audio_input_tester_dummy.cpp
- )
- target_link_libraries(lib_webrtc
- PRIVATE
-diff --git Telegram/lib_webrtc/webrtc/webrtc_audio_input_tester.h b/webrtc/webrtc_audio_input_tester.h
-index 1ae8d30..008df7e 100644
---- Telegram/lib_webrtc/webrtc/webrtc_audio_input_tester.h
-+++ Telegram/lib_webrtc/webrtc/webrtc_audio_input_tester.h
-@@ -20,11 +20,13 @@ public:
- [[nodiscard]] float getAndResetLevel();
-
- private:
-+#ifndef DESKTOP_APP_DISABLE_WEBRTC_INTEGRATION
- class Impl;
--
-+#endif
- std::shared_ptr<std::atomic<int>> _maxSample;
-+#ifndef DESKTOP_APP_DISABLE_WEBRTC_INTEGRATION
- crl::object_on_thread<Impl> _impl;
--
-+#endif
- };
-
- } // namespace Webrtc
-diff --git Telegram/lib_webrtc/webrtc/webrtc_audio_input_tester_dummy.cpp b/webrtc/webrtc_audio_input_tester_dummy.cpp
-new file mode 100644
-index 0000000..4e47eaa
---- /dev/null
-+++ Telegram/lib_webrtc/webrtc/webrtc_audio_input_tester_dummy.cpp
-@@ -0,0 +1,11 @@
-+#include "webrtc/webrtc_audio_input_tester.h"
-+
-+namespace Webrtc {
-+AudioInputTester::AudioInputTester(const QString &deviceId)
-+: _maxSample(std::make_shared<std::atomic<int>>(0)) {}
-+AudioInputTester::~AudioInputTester() {}
-+void AudioInputTester::setDeviceId(const QString &deviceId) {};
-+float AudioInputTester::getAndResetLevel() {
-+ return _maxSample->exchange(0) / float(INT16_MAX);\
-+}
-+}
-diff --git Telegram/lib_webrtc/webrtc/webrtc_media_devices_dummy.cpp b/webrtc/webrtc_media_devices_dummy.cpp
-new file mode 100644
-index 0000000..8d5d245
---- /dev/null
-+++ Telegram/lib_webrtc/webrtc/webrtc_media_devices_dummy.cpp
-@@ -0,0 +1,6 @@
-+#include "webrtc/webrtc_media_devices.h"
-+namespace Webrtc {
-+std::vector<VideoInput> GetVideoInputList() { return std::vector<VideoInput>(); };
-+std::vector<AudioInput> GetAudioInputList() { return std::vector<AudioInput>(); };
-+std::vector<AudioOutput> GetAudioOutputList() { return std::vector<AudioOutput>(); };
-+}
diff --git a/srcpkgs/telegram-desktop/template b/srcpkgs/telegram-desktop/template
index 7cd6ff771584..2bf16f34e22f 100644
--- a/srcpkgs/telegram-desktop/template
+++ b/srcpkgs/telegram-desktop/template
@@ -1,6 +1,6 @@
# Template file for 'telegram-desktop'
pkgname=telegram-desktop
-version=2.6.1
+version=2.7.1
revision=1
wrksrc="tdesktop-${version}-full"
build_style=cmake
@@ -18,7 +18,7 @@ makedepends="alsa-lib-devel ffmpeg-devel libdbusmenu-glib-devel libopenal-devel
libva-devel rapidjson liblz4-devel liblzma-devel gtk+3-devel
MesaLib-devel libdbusmenu-qt5-devel qt5-wayland-devel libatomic-devel
xcb-util-keysyms-devel $(vopt_if spellcheck hunspell-devel)
- $(vopt_if webrtc tg_owt)"
+ kwayland-devel glibmm-devel $(vopt_if webrtc tg_owt)"
depends="qt5-imageformats qt5-core>=5.15.2<5.15.3"
short_desc="Telegram Desktop messaging app"
maintainer="John <me@johnnynator.dev>"
@@ -26,7 +26,7 @@ license="GPL-3.0-or-later, OpenSSL"
homepage="https://desktop.telegram.org/"
changelog="https://github.com/telegramdesktop/tdesktop/blob/v${version}/changelog.txt"
distfiles="https://github.com/telegramdesktop/tdesktop/releases/download/v${version}/tdesktop-${version}-full.tar.gz"
-checksum=c7878c4d7c621a175b3b27895b3fb8c20a56319214d5030d734b2768390a8b73
+checksum=41bfbe1ee63da9a6af7cf7d11b1cdd13a6754b51b294ac5a9d56f5f11dfbdd05
build_options="spellcheck webrtc"
build_options_default="spellcheck webrtc"
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PR PATCH] [Updated] [WiP] telegram-desktop: update to 2.6.1.
2021-03-08 19:03 [PR PATCH] [WiP] telegram-desktop: update to 2.6.1 Johnnynator
2021-03-21 20:31 ` [PR PATCH] [Updated] " Johnnynator
2021-03-21 20:31 ` Johnnynator
@ 2021-03-26 23:09 ` Johnnynator
2021-03-26 23:19 ` Johnnynator
2021-03-27 9:03 ` [PR PATCH] [Merged]: " Johnnynator
4 siblings, 0 replies; 6+ messages in thread
From: Johnnynator @ 2021-03-26 23:09 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1813 bytes --]
There is an updated pull request by Johnnynator against master on the void-packages repository
https://github.com/Johnnynator/void-packages telegram-desktop
https://github.com/void-linux/void-packages/pull/29329
[WiP] telegram-desktop: update to 2.6.1.
- libvpx6: update to 1.10.0rc1.
- telegram-desktop: update to 2.6.1.
- tg_owt: update to 0.0.0.20210203.
Newer tg_owt does not compile with libvpx 1.9.0, but 1.10.0 should be right around the corner, so just wait
<!-- Mark items with [x] where applicable -->
#### General
- [ ] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)
#### Have the results of the proposed changes been tested?
- [ ] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR
<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!--
#### Does it build and run successfully?
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [ ] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
- [ ] aarch64-musl
- [ ] armv7l
- [ ] armv6l-musl
-->
A patch file from https://github.com/void-linux/void-packages/pull/29329.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-telegram-desktop-29329.patch --]
[-- Type: text/x-diff, Size: 18955 bytes --]
From 9732ed008c0daf5febb084ed837a25970e80dae5 Mon Sep 17 00:00:00 2001
From: John <me@johnnynator.dev>
Date: Mon, 8 Mar 2021 19:59:09 +0100
Subject: [PATCH 1/4] libvpx6: update to 1.10.0.
---
srcpkgs/libvpx6/template | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/srcpkgs/libvpx6/template b/srcpkgs/libvpx6/template
index a929b3ebcc20..cde8810988b2 100644
--- a/srcpkgs/libvpx6/template
+++ b/srcpkgs/libvpx6/template
@@ -1,6 +1,6 @@
# Template file for 'libvpx6'
pkgname=libvpx6
-version=1.9.0
+version=1.10.0
revision=1
wrksrc=libvpx-${version}
hostmakedepends="perl yasm"
@@ -9,7 +9,7 @@ maintainer="q66 <daniel@octaforge.org>"
license="BSD-3-Clause-Clear"
homepage="http://www.webmproject.org"
distfiles="https://github.com/webmproject/libvpx/archive/v${version}.tar.gz"
-checksum=d279c10e4b9316bf11a570ba16c3d55791e1ad6faa4404c67422eb631782c80a
+checksum=85803ccbdbdd7a3b03d930187cb055f1353596969c1f92ebec2db839fa4f834a
replaces="libvpx<1.8.0"
do_configure() {
From c194d2f1122c748b2170640a8392f8313db3b746 Mon Sep 17 00:00:00 2001
From: John <me@johnnynator.dev>
Date: Sun, 7 Mar 2021 11:06:52 +0100
Subject: [PATCH 2/4] telegram-desktop: update to 2.6.1.
---
srcpkgs/telegram-desktop/template | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/telegram-desktop/template b/srcpkgs/telegram-desktop/template
index 5778f4c2d76a..7cd6ff771584 100644
--- a/srcpkgs/telegram-desktop/template
+++ b/srcpkgs/telegram-desktop/template
@@ -1,7 +1,7 @@
# Template file for 'telegram-desktop'
pkgname=telegram-desktop
-version=2.5.1
-revision=2
+version=2.6.1
+revision=1
wrksrc="tdesktop-${version}-full"
build_style=cmake
build_helper="qemu"
@@ -26,7 +26,7 @@ license="GPL-3.0-or-later, OpenSSL"
homepage="https://desktop.telegram.org/"
changelog="https://github.com/telegramdesktop/tdesktop/blob/v${version}/changelog.txt"
distfiles="https://github.com/telegramdesktop/tdesktop/releases/download/v${version}/tdesktop-${version}-full.tar.gz"
-checksum=f1cc5e876deaa4fa4eaafbba95f127d5a3114c166802902b8584099852b9eae2
+checksum=c7878c4d7c621a175b3b27895b3fb8c20a56319214d5030d734b2768390a8b73
build_options="spellcheck webrtc"
build_options_default="spellcheck webrtc"
From 6a5db5fe9fe5d517d4abca33d9c82eb4b3b21df5 Mon Sep 17 00:00:00 2001
From: John <me@johnnynator.dev>
Date: Sun, 7 Mar 2021 11:17:37 +0100
Subject: [PATCH 3/4] tg_owt: update to 0.0.0.20210203.
---
srcpkgs/tg_owt/patches/libressl.patch | 70 ----------------------
srcpkgs/tg_owt/patches/libressl.patch.args | 1 -
srcpkgs/tg_owt/template | 9 ++-
3 files changed, 4 insertions(+), 76 deletions(-)
delete mode 100644 srcpkgs/tg_owt/patches/libressl.patch
delete mode 100644 srcpkgs/tg_owt/patches/libressl.patch.args
diff --git a/srcpkgs/tg_owt/patches/libressl.patch b/srcpkgs/tg_owt/patches/libressl.patch
deleted file mode 100644
index fc352a2a64c2..000000000000
--- a/srcpkgs/tg_owt/patches/libressl.patch
+++ /dev/null
@@ -1,70 +0,0 @@
-From 3f2d8238846d4795f1292c05923b9f212dc4d022 Mon Sep 17 00:00:00 2001
-From: Charlie Li <git@vishwin.info>
-Date: Sat, 21 Nov 2020 14:24:04 -0500
-Subject: [PATCH] Fix build with LibreSSL
-
-LibreSSL's dtls1.h uses some definitions from ssl.h and ssl3.h, but
-expects consumers to include them. Reorder and include them before
-dtls1.h.
-
-LibreSSL does not define DTLS1_2_VERSION. Remove them from view.
----
- src/rtc_base/openssl_stream_adapter.cc | 19 ++++++++++++++++++-
- 1 file changed, 18 insertions(+), 1 deletion(-)
-
-diff --git a/src/rtc_base/openssl_stream_adapter.cc b/src/rtc_base/openssl_stream_adapter.cc
-index 7f4b79a5..037002bc 100644
---- a/src/rtc_base/openssl_stream_adapter.cc
-+++ b/src/rtc_base/openssl_stream_adapter.cc
-@@ -17,8 +17,11 @@
- #include <openssl/tls1.h>
- #include <openssl/x509v3.h>
- #ifndef OPENSSL_IS_BORINGSSL
--#include <openssl/dtls1.h>
- #include <openssl/ssl.h>
-+#ifdef LIBRESSL_VERSION_NUMBER
-+#include <openssl/ssl3.h>
-+#endif
-+#include <openssl/dtls1.h>
- #endif
-
- #include <memory>
-@@ -392,8 +395,10 @@ SSLProtocolVersion OpenSSLStreamAdapter::GetSslVersion() const {
- if (ssl_mode_ == SSL_MODE_DTLS) {
- if (ssl_version == DTLS1_VERSION) {
- return SSL_PROTOCOL_DTLS_10;
-+#ifndef LIBRESSL_VERSION_NUMBER
- } else if (ssl_version == DTLS1_2_VERSION) {
- return SSL_PROTOCOL_DTLS_12;
-+#endif
- }
- } else {
- if (ssl_version == TLS1_VERSION) {
-@@ -985,15 +990,27 @@ SSL_CTX* OpenSSLStreamAdapter::SetupSSLContext() {
- case SSL_PROTOCOL_TLS_12:
- default:
- SSL_CTX_set_max_proto_version(
-+#ifdef LIBRESSL_VERSION_NUMBER
-+ ctx, TLS1_2_VERSION);
-+#else
- ctx, ssl_mode_ == SSL_MODE_DTLS ? DTLS1_2_VERSION : TLS1_2_VERSION);
-+#endif
- break;
- }
- } else {
- // TODO(https://bugs.webrtc.org/10261): Make this the default in M84.
- SSL_CTX_set_min_proto_version(
-+#ifdef LIBRESSL_VERSION_NUMBER
-+ ctx, TLS1_2_VERSION);
-+#else
- ctx, ssl_mode_ == SSL_MODE_DTLS ? DTLS1_2_VERSION : TLS1_2_VERSION);
-+#endif
- SSL_CTX_set_max_proto_version(
-+#ifdef LIBRESSL_VERSION_NUMBER
-+ ctx, TLS1_2_VERSION);
-+#else
- ctx, ssl_mode_ == SSL_MODE_DTLS ? DTLS1_2_VERSION : TLS1_2_VERSION);
-+#endif
- }
-
- #ifdef OPENSSL_IS_BORINGSSL
diff --git a/srcpkgs/tg_owt/patches/libressl.patch.args b/srcpkgs/tg_owt/patches/libressl.patch.args
deleted file mode 100644
index 2eba1cb3c5ce..000000000000
--- a/srcpkgs/tg_owt/patches/libressl.patch.args
+++ /dev/null
@@ -1 +0,0 @@
--Np1
diff --git a/srcpkgs/tg_owt/template b/srcpkgs/tg_owt/template
index fa0d55fc4aec..b63fd17281a4 100644
--- a/srcpkgs/tg_owt/template
+++ b/srcpkgs/tg_owt/template
@@ -1,9 +1,8 @@
# Template file for 'tg_owt'
pkgname=tg_owt
-version=0.0.0.1
-revision=2
-_commit=756fd0fb5f40ffb4244c675208e84de781f766f3
-_libvpx_commit=5b63f0f821e94f8072eb483014cfc33b05978bb9
+version=0.0.0.20210321
+revision=1
+_commit=2d804d2c9c5d05324c8ab22f2e6ff8306521b3c3
_libyuv_commit=ad890067f661dc747a975bc55ba3767fe30d4452
wrksrc="tg_owt-$_commit"
build_style=cmake
@@ -18,7 +17,7 @@ license="GPL-3.0-or-later"
homepage="https://github.com/desktop-app/tg_owt"
distfiles="https://github.com/desktop-app/tg_owt/archive/${_commit}.tar.gz
https://chromium.googlesource.com/libyuv/libyuv/+archive/${_libyuv_commit}.tar.gz"
-checksum="@43d09b00a43f9206b1f04c6d6697f4b0cb3be0285100bf5df91144b1d689c89a
+checksum="@2873f3c9a6e5a93976623d4502af59bf6c8a3536aa9928acf45cea0a20e23ec0
@1dd51820852df840c339bf3f18e6cf1166de33d5631a69cd1eae5b2b34c113e3"
skip_extraction="${_libvpx_commit}.tar.gz ${_libyuv_commit}.tar.gz"
From 2c3b87d166d6f2dfbfcb30fb498ee75bcf7e7f8c Mon Sep 17 00:00:00 2001
From: John <me@johnnynator.dev>
Date: Sun, 21 Mar 2021 20:55:31 +0100
Subject: [PATCH 4/4] telegram-desktop: update to 2.7.1.
---
.../patches/0002-use-vendored-gsl.patch | 11 +++
.../patches/0003-stdint.patch | 10 ++
...148bafc27f35011b805e773993300c55713f.patch | 84 ++++++++++++++++
.../patches/no-webrtc-build.patch | 96 -------------------
srcpkgs/telegram-desktop/template | 13 ++-
5 files changed, 111 insertions(+), 103 deletions(-)
create mode 100644 srcpkgs/telegram-desktop/patches/0002-use-vendored-gsl.patch
create mode 100644 srcpkgs/telegram-desktop/patches/0003-stdint.patch
create mode 100644 srcpkgs/telegram-desktop/patches/c08a148bafc27f35011b805e773993300c55713f.patch
delete mode 100644 srcpkgs/telegram-desktop/patches/no-webrtc-build.patch
diff --git a/srcpkgs/telegram-desktop/patches/0002-use-vendored-gsl.patch b/srcpkgs/telegram-desktop/patches/0002-use-vendored-gsl.patch
new file mode 100644
index 000000000000..dfb0d743d8f5
--- /dev/null
+++ b/srcpkgs/telegram-desktop/patches/0002-use-vendored-gsl.patch
@@ -0,0 +1,11 @@
+--- cmake/external/gsl/CMakeLists.txt 2021-03-17 10:33:50.000000000 +0100
++++ - 2021-03-21 21:08:36.925095597 +0100
+@@ -8,7 +8,7 @@
+ add_library(desktop-app::external_gsl ALIAS external_gsl)
+
+ if (DESKTOP_APP_USE_PACKAGED)
+- if (DESKTOP_APP_USE_PACKAGED_LAZY)
++ if (TRUE)
+ find_package(Microsoft.GSL QUIET)
+ else()
+ find_package(Microsoft.GSL)
diff --git a/srcpkgs/telegram-desktop/patches/0003-stdint.patch b/srcpkgs/telegram-desktop/patches/0003-stdint.patch
new file mode 100644
index 000000000000..e73238fc0341
--- /dev/null
+++ b/srcpkgs/telegram-desktop/patches/0003-stdint.patch
@@ -0,0 +1,10 @@
+--- Telegram/ThirdParty/tgcalls/tgcalls/group/StreamingPart.h 2021-03-17 21:29:27.000000000 +0100
++++ - 2021-03-21 21:11:50.643605199 +0100
+@@ -3,6 +3,7 @@
+
+ #include "absl/types/optional.h"
+ #include <vector>
++#include <cstdint>
+
+ namespace tgcalls {
+
diff --git a/srcpkgs/telegram-desktop/patches/c08a148bafc27f35011b805e773993300c55713f.patch b/srcpkgs/telegram-desktop/patches/c08a148bafc27f35011b805e773993300c55713f.patch
new file mode 100644
index 000000000000..e8cc81c0a1fc
--- /dev/null
+++ b/srcpkgs/telegram-desktop/patches/c08a148bafc27f35011b805e773993300c55713f.patch
@@ -0,0 +1,84 @@
+From c08a148bafc27f35011b805e773993300c55713f Mon Sep 17 00:00:00 2001
+From: Ilya Fedin <fedin-ilja2010@ya.ru>
+Date: Tue, 23 Mar 2021 18:27:13 +0400
+Subject: [PATCH] Fix build on 32-bit systems
+
+---
+ .../platform/linux/linux_mpris_support.cpp | 12 ++++++------
+ .../SourceFiles/platform/linux/main_window_linux.cpp | 4 ++--
+ 2 files changed, 8 insertions(+), 8 deletions(-)
+
+diff --git Telegram/SourceFiles/platform/linux/linux_mpris_support.cpp Telegram/SourceFiles/platform/linux/linux_mpris_support.cpp
+index 3a3d05a1324..339ae554ef8 100644
+--- Telegram/SourceFiles/platform/linux/linux_mpris_support.cpp
++++ Telegram/SourceFiles/platform/linux/linux_mpris_support.cpp
+@@ -96,7 +96,7 @@ auto CreateMetadata(const Media::Player::TrackState &state) {
+ if (!Media::Player::IsStoppedOrStopping(state.state)) {
+ result["mpris:trackid"] = Glib::wrap(g_variant_new_object_path(
+ kFakeTrackPath.utf8().constData()));
+- result["mpris:length"] = Glib::Variant<long>::create(
++ result["mpris:length"] = Glib::Variant<gint64>::create(
+ state.length * 1000);
+
+ const auto audioData = state.id.audio();
+@@ -159,7 +159,7 @@ void HandleMethodCall(
+ } else if (method_name == "Previous") {
+ Media::Player::instance()->previous();
+ } else if (method_name == "Seek") {
+- const auto offset = base::Platform::GlibVariantCast<long>(
++ const auto offset = base::Platform::GlibVariantCast<gint64>(
+ parametersCopy.get_child(0));
+
+ const auto state = Media::Player::instance()->getState(
+@@ -170,7 +170,7 @@ void HandleMethodCall(
+ float64(state.position * 1000 + offset)
+ / (state.length * 1000));
+ } else if (method_name == "SetPosition") {
+- const auto position = base::Platform::GlibVariantCast<long>(
++ const auto position = base::Platform::GlibVariantCast<gint64>(
+ parametersCopy.get_child(1));
+
+ const auto state = Media::Player::instance()->getState(
+@@ -251,7 +251,7 @@ void HandleGetProperty(
+ const auto state = Media::Player::instance()->getState(
+ kSongType);
+
+- property = Glib::Variant<long>::create(state.position * 1000);
++ property = Glib::Variant<gint64>::create(state.position * 1000);
+ } else if (property_name == "Rate") {
+ property = Glib::Variant<float64>::create(1.0);
+ } else if (property_name == "Volume") {
+@@ -315,7 +315,7 @@ void PlayerPropertyChanged(
+ }
+ }
+
+-void Seeked(long position) {
++void Seeked(gint64 position) {
+ try {
+ const auto connection = Gio::DBus::Connection::get_sync(
+ Gio::DBus::BusType::BUS_TYPE_SESSION);
+@@ -348,7 +348,7 @@ class MPRISSupport::Private {
+
+ std::map<Glib::ustring, Glib::VariantBase> metadata;
+ Glib::ustring playbackStatus;
+- long position = 0;
++ gint64 position = 0;
+
+ rpl::lifetime lifetime;
+ };
+diff --git a/Telegram/SourceFiles/platform/linux/main_window_linux.cpp b/Telegram/SourceFiles/platform/linux/main_window_linux.cpp
+index 139667ea6ff..624e5107a02 100644
+--- Telegram/SourceFiles/platform/linux/main_window_linux.cpp
++++ Telegram/SourceFiles/platform/linux/main_window_linux.cpp
+@@ -880,9 +880,9 @@ void MainWindow::updateIconCounters() {
+
+ if (counterSlice > 0) {
+ // According to the spec, it should be of 'x' D-Bus signature,
+- // which corresponds to gint64 (signed long) type with glib
++ // which corresponds to gint64 type with glib
+ // https://wiki.ubuntu.com/Unity/LauncherAPI#Low_level_DBus_API:_com.canonical.Unity.LauncherEntry
+- dbusUnityProperties["count"] = Glib::Variant<long>::create(
++ dbusUnityProperties["count"] = Glib::Variant<gint64>::create(
+ counterSlice);
+ dbusUnityProperties["count-visible"] =
+ Glib::Variant<bool>::create(true);
diff --git a/srcpkgs/telegram-desktop/patches/no-webrtc-build.patch b/srcpkgs/telegram-desktop/patches/no-webrtc-build.patch
deleted file mode 100644
index 3d8ab8f98272..000000000000
--- a/srcpkgs/telegram-desktop/patches/no-webrtc-build.patch
+++ /dev/null
@@ -1,96 +0,0 @@
-diff --git a/Telegram/SourceFiles/calls/calls_instance.cpp b/Telegram/SourceFiles/calls/calls_instance.cpp
-index e99958109..bb7678d3c 100644
---- Telegram/SourceFiles/calls/calls_instance.cpp
-+++ Telegram/SourceFiles/calls/calls_instance.cpp
-@@ -350,8 +350,11 @@ std::shared_ptr<tgcalls::VideoCaptureInterface> Instance::getVideoCapture() {
- return result;
- }
- auto result = std::shared_ptr<tgcalls::VideoCaptureInterface>(
-+ #ifndef DESKTOP_APP_DISABLE_WEBRTC_INTEGRATION
- tgcalls::VideoCaptureInterface::Create(
-- Core::App().settings().callVideoInputDeviceId().toStdString()));
-+ Core::App().settings().callVideoInputDeviceId().toStdString())
-+ #endif
-+ );
- _videoCapture = result;
- return result;
- }
-diff --git Telegram/lib_webrtc/CMakeLists.txt b/CMakeLists.txt
-index 47796f1..1f54c21 100644
---- Telegram/lib_webrtc/CMakeLists.txt
-+++ Telegram/lib_webrtc/CMakeLists.txt
-@@ -14,8 +14,10 @@ target_precompile_headers(lib_webrtc PRIVATE ${src_loc}/webrtc/webrtc_pch.h)
- nice_target_sources(lib_webrtc ${src_loc}
- PRIVATE
- webrtc/webrtc_audio_input_tester.cpp
-+ webrtc/webrtc_audio_input_tester_dummy.cpp
- webrtc/webrtc_audio_input_tester.h
- webrtc/webrtc_media_devices.cpp
-+ webrtc/webrtc_media_devices_dummy.cpp
- webrtc/webrtc_media_devices.h
- webrtc/webrtc_video_track.cpp
- webrtc/webrtc_video_track.h
-@@ -40,10 +42,14 @@ PUBLIC
- if (DESKTOP_APP_DISABLE_WEBRTC_INTEGRATION)
- remove_target_sources(lib_webrtc ${src_loc}
- webrtc/webrtc_video_track.cpp
-+ webrtc/webrtc_media_devices.cpp
-+ webrtc/webrtc_audio_input_tester.cpp
- )
- else()
- remove_target_sources(lib_webrtc ${src_loc}
- webrtc/webrtc_video_track_dummy.cpp
-+ webrtc/webrtc_media_devices_dummy.cpp
-+ webrtc/webrtc_audio_input_tester_dummy.cpp
- )
- target_link_libraries(lib_webrtc
- PRIVATE
-diff --git Telegram/lib_webrtc/webrtc/webrtc_audio_input_tester.h b/webrtc/webrtc_audio_input_tester.h
-index 1ae8d30..008df7e 100644
---- Telegram/lib_webrtc/webrtc/webrtc_audio_input_tester.h
-+++ Telegram/lib_webrtc/webrtc/webrtc_audio_input_tester.h
-@@ -20,11 +20,13 @@ public:
- [[nodiscard]] float getAndResetLevel();
-
- private:
-+#ifndef DESKTOP_APP_DISABLE_WEBRTC_INTEGRATION
- class Impl;
--
-+#endif
- std::shared_ptr<std::atomic<int>> _maxSample;
-+#ifndef DESKTOP_APP_DISABLE_WEBRTC_INTEGRATION
- crl::object_on_thread<Impl> _impl;
--
-+#endif
- };
-
- } // namespace Webrtc
-diff --git Telegram/lib_webrtc/webrtc/webrtc_audio_input_tester_dummy.cpp b/webrtc/webrtc_audio_input_tester_dummy.cpp
-new file mode 100644
-index 0000000..4e47eaa
---- /dev/null
-+++ Telegram/lib_webrtc/webrtc/webrtc_audio_input_tester_dummy.cpp
-@@ -0,0 +1,11 @@
-+#include "webrtc/webrtc_audio_input_tester.h"
-+
-+namespace Webrtc {
-+AudioInputTester::AudioInputTester(const QString &deviceId)
-+: _maxSample(std::make_shared<std::atomic<int>>(0)) {}
-+AudioInputTester::~AudioInputTester() {}
-+void AudioInputTester::setDeviceId(const QString &deviceId) {};
-+float AudioInputTester::getAndResetLevel() {
-+ return _maxSample->exchange(0) / float(INT16_MAX);\
-+}
-+}
-diff --git Telegram/lib_webrtc/webrtc/webrtc_media_devices_dummy.cpp b/webrtc/webrtc_media_devices_dummy.cpp
-new file mode 100644
-index 0000000..8d5d245
---- /dev/null
-+++ Telegram/lib_webrtc/webrtc/webrtc_media_devices_dummy.cpp
-@@ -0,0 +1,6 @@
-+#include "webrtc/webrtc_media_devices.h"
-+namespace Webrtc {
-+std::vector<VideoInput> GetVideoInputList() { return std::vector<VideoInput>(); };
-+std::vector<AudioInput> GetAudioInputList() { return std::vector<AudioInput>(); };
-+std::vector<AudioOutput> GetAudioOutputList() { return std::vector<AudioOutput>(); };
-+}
diff --git a/srcpkgs/telegram-desktop/template b/srcpkgs/telegram-desktop/template
index 7cd6ff771584..9f74895d695c 100644
--- a/srcpkgs/telegram-desktop/template
+++ b/srcpkgs/telegram-desktop/template
@@ -1,6 +1,6 @@
# Template file for 'telegram-desktop'
pkgname=telegram-desktop
-version=2.6.1
+version=2.7.1
revision=1
wrksrc="tdesktop-${version}-full"
build_style=cmake
@@ -10,15 +10,14 @@ configure_args="-DTDESKTOP_API_ID=209235
-DDESKTOP_APP_USE_GLIBC_WRAPS=OFF
-DDESKTOP_APP_DISABLE_CRASH_REPORTS=ON
-DTDESKTOP_LAUNCHER_BASENAME=org.telegram.desktop.desktop
- -DDESKTOP_APP_DISABLE_SPELLCHECK=$(vopt_if spellcheck 'false' 'true')
- -DDESKTOP_APP_DISABLE_WEBRTC_INTEGRATION=$(vopt_if webrtc 'OFF' 'ON')"
+ -DDESKTOP_APP_DISABLE_SPELLCHECK=$(vopt_if spellcheck 'false' 'true')"
hostmakedepends="pkg-config qt5-qmake qt5-host-tools python"
makedepends="alsa-lib-devel ffmpeg-devel libdbusmenu-glib-devel libopenal-devel
minizip-devel opus-devel xxHash-devel pulseaudio-devel qt5-devel range-v3
libva-devel rapidjson liblz4-devel liblzma-devel gtk+3-devel
MesaLib-devel libdbusmenu-qt5-devel qt5-wayland-devel libatomic-devel
xcb-util-keysyms-devel $(vopt_if spellcheck hunspell-devel)
- $(vopt_if webrtc tg_owt)"
+ kwayland-devel glibmm-devel tg_owt"
depends="qt5-imageformats qt5-core>=5.15.2<5.15.3"
short_desc="Telegram Desktop messaging app"
maintainer="John <me@johnnynator.dev>"
@@ -26,10 +25,10 @@ license="GPL-3.0-or-later, OpenSSL"
homepage="https://desktop.telegram.org/"
changelog="https://github.com/telegramdesktop/tdesktop/blob/v${version}/changelog.txt"
distfiles="https://github.com/telegramdesktop/tdesktop/releases/download/v${version}/tdesktop-${version}-full.tar.gz"
-checksum=c7878c4d7c621a175b3b27895b3fb8c20a56319214d5030d734b2768390a8b73
+checksum=41bfbe1ee63da9a6af7cf7d11b1cdd13a6754b51b294ac5a9d56f5f11dfbdd05
-build_options="spellcheck webrtc"
-build_options_default="spellcheck webrtc"
+build_options="spellcheck"
+build_options_default="spellcheck"
case $XBPS_TARGET_MACHINE in
mips*) broken="unsupported";;
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PR PATCH] [Updated] [WiP] telegram-desktop: update to 2.6.1.
2021-03-08 19:03 [PR PATCH] [WiP] telegram-desktop: update to 2.6.1 Johnnynator
` (2 preceding siblings ...)
2021-03-26 23:09 ` Johnnynator
@ 2021-03-26 23:19 ` Johnnynator
2021-03-27 9:03 ` [PR PATCH] [Merged]: " Johnnynator
4 siblings, 0 replies; 6+ messages in thread
From: Johnnynator @ 2021-03-26 23:19 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1813 bytes --]
There is an updated pull request by Johnnynator against master on the void-packages repository
https://github.com/Johnnynator/void-packages telegram-desktop
https://github.com/void-linux/void-packages/pull/29329
[WiP] telegram-desktop: update to 2.6.1.
- libvpx6: update to 1.10.0rc1.
- telegram-desktop: update to 2.6.1.
- tg_owt: update to 0.0.0.20210203.
Newer tg_owt does not compile with libvpx 1.9.0, but 1.10.0 should be right around the corner, so just wait
<!-- Mark items with [x] where applicable -->
#### General
- [ ] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)
#### Have the results of the proposed changes been tested?
- [ ] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR
<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!--
#### Does it build and run successfully?
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [ ] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
- [ ] aarch64-musl
- [ ] armv7l
- [ ] armv6l-musl
-->
A patch file from https://github.com/void-linux/void-packages/pull/29329.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-telegram-desktop-29329.patch --]
[-- Type: text/x-diff, Size: 20445 bytes --]
From 9732ed008c0daf5febb084ed837a25970e80dae5 Mon Sep 17 00:00:00 2001
From: John <me@johnnynator.dev>
Date: Mon, 8 Mar 2021 19:59:09 +0100
Subject: [PATCH 1/4] libvpx6: update to 1.10.0.
---
srcpkgs/libvpx6/template | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/srcpkgs/libvpx6/template b/srcpkgs/libvpx6/template
index a929b3ebcc20..cde8810988b2 100644
--- a/srcpkgs/libvpx6/template
+++ b/srcpkgs/libvpx6/template
@@ -1,6 +1,6 @@
# Template file for 'libvpx6'
pkgname=libvpx6
-version=1.9.0
+version=1.10.0
revision=1
wrksrc=libvpx-${version}
hostmakedepends="perl yasm"
@@ -9,7 +9,7 @@ maintainer="q66 <daniel@octaforge.org>"
license="BSD-3-Clause-Clear"
homepage="http://www.webmproject.org"
distfiles="https://github.com/webmproject/libvpx/archive/v${version}.tar.gz"
-checksum=d279c10e4b9316bf11a570ba16c3d55791e1ad6faa4404c67422eb631782c80a
+checksum=85803ccbdbdd7a3b03d930187cb055f1353596969c1f92ebec2db839fa4f834a
replaces="libvpx<1.8.0"
do_configure() {
From c194d2f1122c748b2170640a8392f8313db3b746 Mon Sep 17 00:00:00 2001
From: John <me@johnnynator.dev>
Date: Sun, 7 Mar 2021 11:06:52 +0100
Subject: [PATCH 2/4] telegram-desktop: update to 2.6.1.
---
srcpkgs/telegram-desktop/template | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/telegram-desktop/template b/srcpkgs/telegram-desktop/template
index 5778f4c2d76a..7cd6ff771584 100644
--- a/srcpkgs/telegram-desktop/template
+++ b/srcpkgs/telegram-desktop/template
@@ -1,7 +1,7 @@
# Template file for 'telegram-desktop'
pkgname=telegram-desktop
-version=2.5.1
-revision=2
+version=2.6.1
+revision=1
wrksrc="tdesktop-${version}-full"
build_style=cmake
build_helper="qemu"
@@ -26,7 +26,7 @@ license="GPL-3.0-or-later, OpenSSL"
homepage="https://desktop.telegram.org/"
changelog="https://github.com/telegramdesktop/tdesktop/blob/v${version}/changelog.txt"
distfiles="https://github.com/telegramdesktop/tdesktop/releases/download/v${version}/tdesktop-${version}-full.tar.gz"
-checksum=f1cc5e876deaa4fa4eaafbba95f127d5a3114c166802902b8584099852b9eae2
+checksum=c7878c4d7c621a175b3b27895b3fb8c20a56319214d5030d734b2768390a8b73
build_options="spellcheck webrtc"
build_options_default="spellcheck webrtc"
From 6a5db5fe9fe5d517d4abca33d9c82eb4b3b21df5 Mon Sep 17 00:00:00 2001
From: John <me@johnnynator.dev>
Date: Sun, 7 Mar 2021 11:17:37 +0100
Subject: [PATCH 3/4] tg_owt: update to 0.0.0.20210203.
---
srcpkgs/tg_owt/patches/libressl.patch | 70 ----------------------
srcpkgs/tg_owt/patches/libressl.patch.args | 1 -
srcpkgs/tg_owt/template | 9 ++-
3 files changed, 4 insertions(+), 76 deletions(-)
delete mode 100644 srcpkgs/tg_owt/patches/libressl.patch
delete mode 100644 srcpkgs/tg_owt/patches/libressl.patch.args
diff --git a/srcpkgs/tg_owt/patches/libressl.patch b/srcpkgs/tg_owt/patches/libressl.patch
deleted file mode 100644
index fc352a2a64c2..000000000000
--- a/srcpkgs/tg_owt/patches/libressl.patch
+++ /dev/null
@@ -1,70 +0,0 @@
-From 3f2d8238846d4795f1292c05923b9f212dc4d022 Mon Sep 17 00:00:00 2001
-From: Charlie Li <git@vishwin.info>
-Date: Sat, 21 Nov 2020 14:24:04 -0500
-Subject: [PATCH] Fix build with LibreSSL
-
-LibreSSL's dtls1.h uses some definitions from ssl.h and ssl3.h, but
-expects consumers to include them. Reorder and include them before
-dtls1.h.
-
-LibreSSL does not define DTLS1_2_VERSION. Remove them from view.
----
- src/rtc_base/openssl_stream_adapter.cc | 19 ++++++++++++++++++-
- 1 file changed, 18 insertions(+), 1 deletion(-)
-
-diff --git a/src/rtc_base/openssl_stream_adapter.cc b/src/rtc_base/openssl_stream_adapter.cc
-index 7f4b79a5..037002bc 100644
---- a/src/rtc_base/openssl_stream_adapter.cc
-+++ b/src/rtc_base/openssl_stream_adapter.cc
-@@ -17,8 +17,11 @@
- #include <openssl/tls1.h>
- #include <openssl/x509v3.h>
- #ifndef OPENSSL_IS_BORINGSSL
--#include <openssl/dtls1.h>
- #include <openssl/ssl.h>
-+#ifdef LIBRESSL_VERSION_NUMBER
-+#include <openssl/ssl3.h>
-+#endif
-+#include <openssl/dtls1.h>
- #endif
-
- #include <memory>
-@@ -392,8 +395,10 @@ SSLProtocolVersion OpenSSLStreamAdapter::GetSslVersion() const {
- if (ssl_mode_ == SSL_MODE_DTLS) {
- if (ssl_version == DTLS1_VERSION) {
- return SSL_PROTOCOL_DTLS_10;
-+#ifndef LIBRESSL_VERSION_NUMBER
- } else if (ssl_version == DTLS1_2_VERSION) {
- return SSL_PROTOCOL_DTLS_12;
-+#endif
- }
- } else {
- if (ssl_version == TLS1_VERSION) {
-@@ -985,15 +990,27 @@ SSL_CTX* OpenSSLStreamAdapter::SetupSSLContext() {
- case SSL_PROTOCOL_TLS_12:
- default:
- SSL_CTX_set_max_proto_version(
-+#ifdef LIBRESSL_VERSION_NUMBER
-+ ctx, TLS1_2_VERSION);
-+#else
- ctx, ssl_mode_ == SSL_MODE_DTLS ? DTLS1_2_VERSION : TLS1_2_VERSION);
-+#endif
- break;
- }
- } else {
- // TODO(https://bugs.webrtc.org/10261): Make this the default in M84.
- SSL_CTX_set_min_proto_version(
-+#ifdef LIBRESSL_VERSION_NUMBER
-+ ctx, TLS1_2_VERSION);
-+#else
- ctx, ssl_mode_ == SSL_MODE_DTLS ? DTLS1_2_VERSION : TLS1_2_VERSION);
-+#endif
- SSL_CTX_set_max_proto_version(
-+#ifdef LIBRESSL_VERSION_NUMBER
-+ ctx, TLS1_2_VERSION);
-+#else
- ctx, ssl_mode_ == SSL_MODE_DTLS ? DTLS1_2_VERSION : TLS1_2_VERSION);
-+#endif
- }
-
- #ifdef OPENSSL_IS_BORINGSSL
diff --git a/srcpkgs/tg_owt/patches/libressl.patch.args b/srcpkgs/tg_owt/patches/libressl.patch.args
deleted file mode 100644
index 2eba1cb3c5ce..000000000000
--- a/srcpkgs/tg_owt/patches/libressl.patch.args
+++ /dev/null
@@ -1 +0,0 @@
--Np1
diff --git a/srcpkgs/tg_owt/template b/srcpkgs/tg_owt/template
index fa0d55fc4aec..b63fd17281a4 100644
--- a/srcpkgs/tg_owt/template
+++ b/srcpkgs/tg_owt/template
@@ -1,9 +1,8 @@
# Template file for 'tg_owt'
pkgname=tg_owt
-version=0.0.0.1
-revision=2
-_commit=756fd0fb5f40ffb4244c675208e84de781f766f3
-_libvpx_commit=5b63f0f821e94f8072eb483014cfc33b05978bb9
+version=0.0.0.20210321
+revision=1
+_commit=2d804d2c9c5d05324c8ab22f2e6ff8306521b3c3
_libyuv_commit=ad890067f661dc747a975bc55ba3767fe30d4452
wrksrc="tg_owt-$_commit"
build_style=cmake
@@ -18,7 +17,7 @@ license="GPL-3.0-or-later"
homepage="https://github.com/desktop-app/tg_owt"
distfiles="https://github.com/desktop-app/tg_owt/archive/${_commit}.tar.gz
https://chromium.googlesource.com/libyuv/libyuv/+archive/${_libyuv_commit}.tar.gz"
-checksum="@43d09b00a43f9206b1f04c6d6697f4b0cb3be0285100bf5df91144b1d689c89a
+checksum="@2873f3c9a6e5a93976623d4502af59bf6c8a3536aa9928acf45cea0a20e23ec0
@1dd51820852df840c339bf3f18e6cf1166de33d5631a69cd1eae5b2b34c113e3"
skip_extraction="${_libvpx_commit}.tar.gz ${_libyuv_commit}.tar.gz"
From ca97981ba252ab0e54cc976a6e4f818c23848c41 Mon Sep 17 00:00:00 2001
From: John <me@johnnynator.dev>
Date: Sun, 21 Mar 2021 20:55:31 +0100
Subject: [PATCH 4/4] telegram-desktop: update to 2.7.1.
---
.../patches/0002-use-vendored-gsl.patch | 11 +++
.../patches/0003-stdint.patch | 10 ++
...bca53a1e195a31760978dc41f67ce44fc7e4.patch | 22 +++++
...148bafc27f35011b805e773993300c55713f.patch | 84 ++++++++++++++++
.../patches/no-webrtc-build.patch | 96 -------------------
srcpkgs/telegram-desktop/template | 13 ++-
6 files changed, 133 insertions(+), 103 deletions(-)
create mode 100644 srcpkgs/telegram-desktop/patches/0002-use-vendored-gsl.patch
create mode 100644 srcpkgs/telegram-desktop/patches/0003-stdint.patch
create mode 100644 srcpkgs/telegram-desktop/patches/3582bca53a1e195a31760978dc41f67ce44fc7e4.patch
create mode 100644 srcpkgs/telegram-desktop/patches/c08a148bafc27f35011b805e773993300c55713f.patch
delete mode 100644 srcpkgs/telegram-desktop/patches/no-webrtc-build.patch
diff --git a/srcpkgs/telegram-desktop/patches/0002-use-vendored-gsl.patch b/srcpkgs/telegram-desktop/patches/0002-use-vendored-gsl.patch
new file mode 100644
index 000000000000..dfb0d743d8f5
--- /dev/null
+++ b/srcpkgs/telegram-desktop/patches/0002-use-vendored-gsl.patch
@@ -0,0 +1,11 @@
+--- cmake/external/gsl/CMakeLists.txt 2021-03-17 10:33:50.000000000 +0100
++++ - 2021-03-21 21:08:36.925095597 +0100
+@@ -8,7 +8,7 @@
+ add_library(desktop-app::external_gsl ALIAS external_gsl)
+
+ if (DESKTOP_APP_USE_PACKAGED)
+- if (DESKTOP_APP_USE_PACKAGED_LAZY)
++ if (TRUE)
+ find_package(Microsoft.GSL QUIET)
+ else()
+ find_package(Microsoft.GSL)
diff --git a/srcpkgs/telegram-desktop/patches/0003-stdint.patch b/srcpkgs/telegram-desktop/patches/0003-stdint.patch
new file mode 100644
index 000000000000..e73238fc0341
--- /dev/null
+++ b/srcpkgs/telegram-desktop/patches/0003-stdint.patch
@@ -0,0 +1,10 @@
+--- Telegram/ThirdParty/tgcalls/tgcalls/group/StreamingPart.h 2021-03-17 21:29:27.000000000 +0100
++++ - 2021-03-21 21:11:50.643605199 +0100
+@@ -3,6 +3,7 @@
+
+ #include "absl/types/optional.h"
+ #include <vector>
++#include <cstdint>
+
+ namespace tgcalls {
+
diff --git a/srcpkgs/telegram-desktop/patches/3582bca53a1e195a31760978dc41f67ce44fc7e4.patch b/srcpkgs/telegram-desktop/patches/3582bca53a1e195a31760978dc41f67ce44fc7e4.patch
new file mode 100644
index 000000000000..585e35b49cf3
--- /dev/null
+++ b/srcpkgs/telegram-desktop/patches/3582bca53a1e195a31760978dc41f67ce44fc7e4.patch
@@ -0,0 +1,22 @@
+From 3582bca53a1e195a31760978dc41f67ce44fc7e4 Mon Sep 17 00:00:00 2001
+From: Ilya Fedin <fedin-ilja2010@ya.ru>
+Date: Mon, 22 Mar 2021 18:56:15 +0400
+Subject: [PATCH] Fix build on 32-bit systems
+
+---
+ base/platform/linux/base_last_input_linux.cpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/base/platform/linux/base_last_input_linux.cpp b/base/platform/linux/base_last_input_linux.cpp
+index c51d890..b20bd03 100644
+--- Telegram/lib_base/base/platform/linux/base_last_input_linux.cpp
++++ Telegram/lib_base/base/platform/linux/base_last_input_linux.cpp
+@@ -135,7 +135,7 @@ std::optional<crl::time> MutterDBusLastUserInputTime() {
+ {},
+ "org.gnome.Mutter.IdleMonitor");
+
+- const auto value = GlibVariantCast<ulong>(reply.get_child(0));
++ const auto value = GlibVariantCast<uint>(reply.get_child(0));
+ return (crl::now() - static_cast<crl::time>(value));
+ } catch (const Glib::Error &e) {
+ static const auto NotSupportedErrors = {
diff --git a/srcpkgs/telegram-desktop/patches/c08a148bafc27f35011b805e773993300c55713f.patch b/srcpkgs/telegram-desktop/patches/c08a148bafc27f35011b805e773993300c55713f.patch
new file mode 100644
index 000000000000..e8cc81c0a1fc
--- /dev/null
+++ b/srcpkgs/telegram-desktop/patches/c08a148bafc27f35011b805e773993300c55713f.patch
@@ -0,0 +1,84 @@
+From c08a148bafc27f35011b805e773993300c55713f Mon Sep 17 00:00:00 2001
+From: Ilya Fedin <fedin-ilja2010@ya.ru>
+Date: Tue, 23 Mar 2021 18:27:13 +0400
+Subject: [PATCH] Fix build on 32-bit systems
+
+---
+ .../platform/linux/linux_mpris_support.cpp | 12 ++++++------
+ .../SourceFiles/platform/linux/main_window_linux.cpp | 4 ++--
+ 2 files changed, 8 insertions(+), 8 deletions(-)
+
+diff --git Telegram/SourceFiles/platform/linux/linux_mpris_support.cpp Telegram/SourceFiles/platform/linux/linux_mpris_support.cpp
+index 3a3d05a1324..339ae554ef8 100644
+--- Telegram/SourceFiles/platform/linux/linux_mpris_support.cpp
++++ Telegram/SourceFiles/platform/linux/linux_mpris_support.cpp
+@@ -96,7 +96,7 @@ auto CreateMetadata(const Media::Player::TrackState &state) {
+ if (!Media::Player::IsStoppedOrStopping(state.state)) {
+ result["mpris:trackid"] = Glib::wrap(g_variant_new_object_path(
+ kFakeTrackPath.utf8().constData()));
+- result["mpris:length"] = Glib::Variant<long>::create(
++ result["mpris:length"] = Glib::Variant<gint64>::create(
+ state.length * 1000);
+
+ const auto audioData = state.id.audio();
+@@ -159,7 +159,7 @@ void HandleMethodCall(
+ } else if (method_name == "Previous") {
+ Media::Player::instance()->previous();
+ } else if (method_name == "Seek") {
+- const auto offset = base::Platform::GlibVariantCast<long>(
++ const auto offset = base::Platform::GlibVariantCast<gint64>(
+ parametersCopy.get_child(0));
+
+ const auto state = Media::Player::instance()->getState(
+@@ -170,7 +170,7 @@ void HandleMethodCall(
+ float64(state.position * 1000 + offset)
+ / (state.length * 1000));
+ } else if (method_name == "SetPosition") {
+- const auto position = base::Platform::GlibVariantCast<long>(
++ const auto position = base::Platform::GlibVariantCast<gint64>(
+ parametersCopy.get_child(1));
+
+ const auto state = Media::Player::instance()->getState(
+@@ -251,7 +251,7 @@ void HandleGetProperty(
+ const auto state = Media::Player::instance()->getState(
+ kSongType);
+
+- property = Glib::Variant<long>::create(state.position * 1000);
++ property = Glib::Variant<gint64>::create(state.position * 1000);
+ } else if (property_name == "Rate") {
+ property = Glib::Variant<float64>::create(1.0);
+ } else if (property_name == "Volume") {
+@@ -315,7 +315,7 @@ void PlayerPropertyChanged(
+ }
+ }
+
+-void Seeked(long position) {
++void Seeked(gint64 position) {
+ try {
+ const auto connection = Gio::DBus::Connection::get_sync(
+ Gio::DBus::BusType::BUS_TYPE_SESSION);
+@@ -348,7 +348,7 @@ class MPRISSupport::Private {
+
+ std::map<Glib::ustring, Glib::VariantBase> metadata;
+ Glib::ustring playbackStatus;
+- long position = 0;
++ gint64 position = 0;
+
+ rpl::lifetime lifetime;
+ };
+diff --git a/Telegram/SourceFiles/platform/linux/main_window_linux.cpp b/Telegram/SourceFiles/platform/linux/main_window_linux.cpp
+index 139667ea6ff..624e5107a02 100644
+--- Telegram/SourceFiles/platform/linux/main_window_linux.cpp
++++ Telegram/SourceFiles/platform/linux/main_window_linux.cpp
+@@ -880,9 +880,9 @@ void MainWindow::updateIconCounters() {
+
+ if (counterSlice > 0) {
+ // According to the spec, it should be of 'x' D-Bus signature,
+- // which corresponds to gint64 (signed long) type with glib
++ // which corresponds to gint64 type with glib
+ // https://wiki.ubuntu.com/Unity/LauncherAPI#Low_level_DBus_API:_com.canonical.Unity.LauncherEntry
+- dbusUnityProperties["count"] = Glib::Variant<long>::create(
++ dbusUnityProperties["count"] = Glib::Variant<gint64>::create(
+ counterSlice);
+ dbusUnityProperties["count-visible"] =
+ Glib::Variant<bool>::create(true);
diff --git a/srcpkgs/telegram-desktop/patches/no-webrtc-build.patch b/srcpkgs/telegram-desktop/patches/no-webrtc-build.patch
deleted file mode 100644
index 3d8ab8f98272..000000000000
--- a/srcpkgs/telegram-desktop/patches/no-webrtc-build.patch
+++ /dev/null
@@ -1,96 +0,0 @@
-diff --git a/Telegram/SourceFiles/calls/calls_instance.cpp b/Telegram/SourceFiles/calls/calls_instance.cpp
-index e99958109..bb7678d3c 100644
---- Telegram/SourceFiles/calls/calls_instance.cpp
-+++ Telegram/SourceFiles/calls/calls_instance.cpp
-@@ -350,8 +350,11 @@ std::shared_ptr<tgcalls::VideoCaptureInterface> Instance::getVideoCapture() {
- return result;
- }
- auto result = std::shared_ptr<tgcalls::VideoCaptureInterface>(
-+ #ifndef DESKTOP_APP_DISABLE_WEBRTC_INTEGRATION
- tgcalls::VideoCaptureInterface::Create(
-- Core::App().settings().callVideoInputDeviceId().toStdString()));
-+ Core::App().settings().callVideoInputDeviceId().toStdString())
-+ #endif
-+ );
- _videoCapture = result;
- return result;
- }
-diff --git Telegram/lib_webrtc/CMakeLists.txt b/CMakeLists.txt
-index 47796f1..1f54c21 100644
---- Telegram/lib_webrtc/CMakeLists.txt
-+++ Telegram/lib_webrtc/CMakeLists.txt
-@@ -14,8 +14,10 @@ target_precompile_headers(lib_webrtc PRIVATE ${src_loc}/webrtc/webrtc_pch.h)
- nice_target_sources(lib_webrtc ${src_loc}
- PRIVATE
- webrtc/webrtc_audio_input_tester.cpp
-+ webrtc/webrtc_audio_input_tester_dummy.cpp
- webrtc/webrtc_audio_input_tester.h
- webrtc/webrtc_media_devices.cpp
-+ webrtc/webrtc_media_devices_dummy.cpp
- webrtc/webrtc_media_devices.h
- webrtc/webrtc_video_track.cpp
- webrtc/webrtc_video_track.h
-@@ -40,10 +42,14 @@ PUBLIC
- if (DESKTOP_APP_DISABLE_WEBRTC_INTEGRATION)
- remove_target_sources(lib_webrtc ${src_loc}
- webrtc/webrtc_video_track.cpp
-+ webrtc/webrtc_media_devices.cpp
-+ webrtc/webrtc_audio_input_tester.cpp
- )
- else()
- remove_target_sources(lib_webrtc ${src_loc}
- webrtc/webrtc_video_track_dummy.cpp
-+ webrtc/webrtc_media_devices_dummy.cpp
-+ webrtc/webrtc_audio_input_tester_dummy.cpp
- )
- target_link_libraries(lib_webrtc
- PRIVATE
-diff --git Telegram/lib_webrtc/webrtc/webrtc_audio_input_tester.h b/webrtc/webrtc_audio_input_tester.h
-index 1ae8d30..008df7e 100644
---- Telegram/lib_webrtc/webrtc/webrtc_audio_input_tester.h
-+++ Telegram/lib_webrtc/webrtc/webrtc_audio_input_tester.h
-@@ -20,11 +20,13 @@ public:
- [[nodiscard]] float getAndResetLevel();
-
- private:
-+#ifndef DESKTOP_APP_DISABLE_WEBRTC_INTEGRATION
- class Impl;
--
-+#endif
- std::shared_ptr<std::atomic<int>> _maxSample;
-+#ifndef DESKTOP_APP_DISABLE_WEBRTC_INTEGRATION
- crl::object_on_thread<Impl> _impl;
--
-+#endif
- };
-
- } // namespace Webrtc
-diff --git Telegram/lib_webrtc/webrtc/webrtc_audio_input_tester_dummy.cpp b/webrtc/webrtc_audio_input_tester_dummy.cpp
-new file mode 100644
-index 0000000..4e47eaa
---- /dev/null
-+++ Telegram/lib_webrtc/webrtc/webrtc_audio_input_tester_dummy.cpp
-@@ -0,0 +1,11 @@
-+#include "webrtc/webrtc_audio_input_tester.h"
-+
-+namespace Webrtc {
-+AudioInputTester::AudioInputTester(const QString &deviceId)
-+: _maxSample(std::make_shared<std::atomic<int>>(0)) {}
-+AudioInputTester::~AudioInputTester() {}
-+void AudioInputTester::setDeviceId(const QString &deviceId) {};
-+float AudioInputTester::getAndResetLevel() {
-+ return _maxSample->exchange(0) / float(INT16_MAX);\
-+}
-+}
-diff --git Telegram/lib_webrtc/webrtc/webrtc_media_devices_dummy.cpp b/webrtc/webrtc_media_devices_dummy.cpp
-new file mode 100644
-index 0000000..8d5d245
---- /dev/null
-+++ Telegram/lib_webrtc/webrtc/webrtc_media_devices_dummy.cpp
-@@ -0,0 +1,6 @@
-+#include "webrtc/webrtc_media_devices.h"
-+namespace Webrtc {
-+std::vector<VideoInput> GetVideoInputList() { return std::vector<VideoInput>(); };
-+std::vector<AudioInput> GetAudioInputList() { return std::vector<AudioInput>(); };
-+std::vector<AudioOutput> GetAudioOutputList() { return std::vector<AudioOutput>(); };
-+}
diff --git a/srcpkgs/telegram-desktop/template b/srcpkgs/telegram-desktop/template
index 7cd6ff771584..9f74895d695c 100644
--- a/srcpkgs/telegram-desktop/template
+++ b/srcpkgs/telegram-desktop/template
@@ -1,6 +1,6 @@
# Template file for 'telegram-desktop'
pkgname=telegram-desktop
-version=2.6.1
+version=2.7.1
revision=1
wrksrc="tdesktop-${version}-full"
build_style=cmake
@@ -10,15 +10,14 @@ configure_args="-DTDESKTOP_API_ID=209235
-DDESKTOP_APP_USE_GLIBC_WRAPS=OFF
-DDESKTOP_APP_DISABLE_CRASH_REPORTS=ON
-DTDESKTOP_LAUNCHER_BASENAME=org.telegram.desktop.desktop
- -DDESKTOP_APP_DISABLE_SPELLCHECK=$(vopt_if spellcheck 'false' 'true')
- -DDESKTOP_APP_DISABLE_WEBRTC_INTEGRATION=$(vopt_if webrtc 'OFF' 'ON')"
+ -DDESKTOP_APP_DISABLE_SPELLCHECK=$(vopt_if spellcheck 'false' 'true')"
hostmakedepends="pkg-config qt5-qmake qt5-host-tools python"
makedepends="alsa-lib-devel ffmpeg-devel libdbusmenu-glib-devel libopenal-devel
minizip-devel opus-devel xxHash-devel pulseaudio-devel qt5-devel range-v3
libva-devel rapidjson liblz4-devel liblzma-devel gtk+3-devel
MesaLib-devel libdbusmenu-qt5-devel qt5-wayland-devel libatomic-devel
xcb-util-keysyms-devel $(vopt_if spellcheck hunspell-devel)
- $(vopt_if webrtc tg_owt)"
+ kwayland-devel glibmm-devel tg_owt"
depends="qt5-imageformats qt5-core>=5.15.2<5.15.3"
short_desc="Telegram Desktop messaging app"
maintainer="John <me@johnnynator.dev>"
@@ -26,10 +25,10 @@ license="GPL-3.0-or-later, OpenSSL"
homepage="https://desktop.telegram.org/"
changelog="https://github.com/telegramdesktop/tdesktop/blob/v${version}/changelog.txt"
distfiles="https://github.com/telegramdesktop/tdesktop/releases/download/v${version}/tdesktop-${version}-full.tar.gz"
-checksum=c7878c4d7c621a175b3b27895b3fb8c20a56319214d5030d734b2768390a8b73
+checksum=41bfbe1ee63da9a6af7cf7d11b1cdd13a6754b51b294ac5a9d56f5f11dfbdd05
-build_options="spellcheck webrtc"
-build_options_default="spellcheck webrtc"
+build_options="spellcheck"
+build_options_default="spellcheck"
case $XBPS_TARGET_MACHINE in
mips*) broken="unsupported";;
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PR PATCH] [Merged]: [WiP] telegram-desktop: update to 2.6.1.
2021-03-08 19:03 [PR PATCH] [WiP] telegram-desktop: update to 2.6.1 Johnnynator
` (3 preceding siblings ...)
2021-03-26 23:19 ` Johnnynator
@ 2021-03-27 9:03 ` Johnnynator
4 siblings, 0 replies; 6+ messages in thread
From: Johnnynator @ 2021-03-27 9:03 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1640 bytes --]
There's a merged pull request on the void-packages repository
[WiP] telegram-desktop: update to 2.6.1.
https://github.com/void-linux/void-packages/pull/29329
Description:
- libvpx6: update to 1.10.0rc1.
- telegram-desktop: update to 2.6.1.
- tg_owt: update to 0.0.0.20210203.
Newer tg_owt does not compile with libvpx 1.9.0, but 1.10.0 should be right around the corner, so just wait
<!-- Mark items with [x] where applicable -->
#### General
- [ ] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)
#### Have the results of the proposed changes been tested?
- [ ] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR
<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!--
#### Does it build and run successfully?
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [ ] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
- [ ] aarch64-musl
- [ ] armv7l
- [ ] armv6l-musl
-->
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2021-03-27 9:03 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-08 19:03 [PR PATCH] [WiP] telegram-desktop: update to 2.6.1 Johnnynator
2021-03-21 20:31 ` [PR PATCH] [Updated] " Johnnynator
2021-03-21 20:31 ` Johnnynator
2021-03-26 23:09 ` Johnnynator
2021-03-26 23:19 ` Johnnynator
2021-03-27 9:03 ` [PR PATCH] [Merged]: " Johnnynator
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).