commit:     56a02b6294daf8f7db58bf72c4f6fe64fdf8b3e6
Author:     Nowa Ammerlaan <nowa <AT> gentoo <DOT> org>
AuthorDate: Sun Nov  2 17:12:29 2025 +0000
Commit:     Nowa Ammerlaan <nowa <AT> gentoo <DOT> org>
CommitDate: Sun Nov  2 17:12:29 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=56a02b62

media-libs/tg_owt: fix build with abseil-cpp-20250814.1

Closes: https://bugs.gentoo.org/964949
Signed-off-by: Nowa Ammerlaan <nowa <AT> gentoo.org>

 .../files/tg_owt-0_pre20250515-nonnull.patch       | 27 ++++++++++++++++++++++
 media-libs/tg_owt/tg_owt-0_pre20250515-r2.ebuild   |  1 +
 2 files changed, 28 insertions(+)

diff --git a/media-libs/tg_owt/files/tg_owt-0_pre20250515-nonnull.patch 
b/media-libs/tg_owt/files/tg_owt-0_pre20250515-nonnull.patch
new file mode 100644
index 000000000000..5e0cc44bb2e7
--- /dev/null
+++ b/media-libs/tg_owt/files/tg_owt-0_pre20250515-nonnull.patch
@@ -0,0 +1,27 @@
+https://bugs.gentoo.org/964949
+https://github.com/desktop-app/tg_owt/pull/168
+diff --git a/src/api/scoped_refptr.h b/src/api/scoped_refptr.h
+index 61b2eb1f2..6ff8a3cf3 100644
+--- a/src/api/scoped_refptr.h
++++ b/src/api/scoped_refptr.h
+@@ -66,6 +66,20 @@
+ #include <memory>
+ #include <utility>
+ 
++#include "absl/base/nullability.h"
++
++namespace absl {
++#ifdef absl_nonnull
++template<typename T>
++using Nonnull = T absl_nonnull;
++#endif // absl_nonnull
++
++#ifdef absl_nullable
++template<typename T>
++using Nullable = T absl_nullable;
++#endif // absl_nullable
++}
++
+ namespace webrtc {
+ 
+ template <class T>

diff --git a/media-libs/tg_owt/tg_owt-0_pre20250515-r2.ebuild 
b/media-libs/tg_owt/tg_owt-0_pre20250515-r2.ebuild
index 4b6b5cea0482..742aec133c3a 100644
--- a/media-libs/tg_owt/tg_owt-0_pre20250515-r2.ebuild
+++ b/media-libs/tg_owt/tg_owt-0_pre20250515-r2.ebuild
@@ -71,6 +71,7 @@ BDEPEND="
 PATCHES=(
        "${FILESDIR}/tg_owt-0_pre20250515-fix-gcc16.patch"
        "${FILESDIR}/tg_owt-0_pre20250515-fix-clang20.patch"
+       "${FILESDIR}/tg_owt-0_pre20250515-nonnull.patch"
 )
 
 src_unpack() {

Reply via email to