Skip to content

Commit d540fca

Browse files
committed
[libtg_owt] r20250424.f2f3c5f-2: Fix compatibility with LLVM 20
LLVM 20 starts to emit errors on void functions whose parameters are applied with [[lifetimebound]]. Let's simply remove the modifier from affected sites. Reference: llvm/llvm-project#113460 Link: desktop-app/tg_owt#150
1 parent 89f6658 commit d540fca

File tree

2 files changed

+37
-3
lines changed

2 files changed

+37
-3
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
From c6ffc8aefb8520a51234c380cc415dd21469cf6b Mon Sep 17 00:00:00 2001
2+
From: Yao Zi <[email protected]>
3+
Date: Mon, 12 May 2025 09:05:30 +0000
4+
Subject: [PATCH] Remove ABSL_ATTRIBUTE_LIFETIME_BOUND from void functions
5+
6+
LLVM 20 errors on void functions whose parameters are applied
7+
[[lifetimebound]].
8+
9+
Link: https://github.com/llvm/llvm-project/pull/113460
10+
---
11+
src/api/candidate.h | 2 +-
12+
1 file changed, 1 insertion(+), 1 deletion(-)
13+
14+
diff --git a/src/api/candidate.h b/src/api/candidate.h
15+
index 0aa75aa..715761a 100644
16+
--- a/src/api/candidate.h
17+
+++ b/src/api/candidate.h
18+
@@ -105,7 +105,7 @@ class RTC_EXPORT Candidate {
19+
// cricket::LOCAL_PORT_TYPE). The type should really be an enum rather than a
20+
// string, but until we make that change the lifetime attribute helps us lock
21+
// things down. See also the `Port` class.
22+
- void set_type(absl::string_view type ABSL_ATTRIBUTE_LIFETIME_BOUND) {
23+
+ void set_type(absl::string_view type) {
24+
Assign(type_, type);
25+
}
26+
27+
--
28+
2.49.0
29+

PKGBUILD

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,27 @@ _commit=f2f3c5f65a1163cb6c05c636a0fca54cf9355d19
55
_libyuv_commit=ec6f15079ff373b7651698a68bba7244b3556981
66
_crc32c_commit=02e65f4fd3065d27b2e29324800ca6d04df16126
77
pkgver=r20250424.${_commit:0:7}
8-
pkgrel=1
8+
pkgrel=2
99
pkgdesc="Telegram's fork of WebRTC"
1010
url='https://github.com/desktop-app/tg_owt'
1111
arch=(x86_64 aarch64)
1212
license=(BSD-3-Clause)
1313
depends=(abseil-cpp ffmpeg libjpeg openssl openh264 libopus libpipewire libvpx
1414
libsrtp)
1515
makedepends=(cmake git yasm linux-headers python)
16+
# use-libopengl.patch: Should be upstreamed, search for libOpenGL instead of
17+
# libGL to build without GLX.
18+
# 0001: Downstream, fix LLVM 20 build
1619
source=("$url/archive/$_commit.tar.gz"
1720
"git+https://gitlab.com/chromiumsrc/libyuv.git#commit=$_libyuv_commit"
1821
"https://github.com/google/crc32c/archive/$_crc32c_commit.tar.gz"
19-
"use-libopengl.patch")
22+
"use-libopengl.patch"
23+
"0001-Remove-ABSL_ATTRIBUTE_LIFETIME_BOUND-from-void-funct.patch")
2024
sha256sums=('66ac4e82e76a79329ae29e4efde3787c1ba28c794311f6109ea09f7b93b8eaf7'
2125
'8e42db1f3e308c3baefc7c2c1368f29af12650f75305b4a2e2c0ea6fa00d21bc'
2226
'50ac512ad20ebca0be21bcf7c3c6d15aa3fcc27550b09825fab061bffe512bdf'
23-
'f49cfdb50f5ca0cd7692a43287fd8396e59eeb438a509cce8afd3438736d136b')
27+
'f49cfdb50f5ca0cd7692a43287fd8396e59eeb438a509cce8afd3438736d136b'
28+
'e55689c8225319bf66dd630f005544e982351b08877a5bff150c9b646dc995af')
2429

2530
prepare() {
2631
_patch_ tg_owt-$_commit

0 commit comments

Comments
 (0)