Date: Saturday, April 29, 2023 @ 15:19:00
Author: felixonmars
Revision: 1454608
archrelease: copy trunk to community-staging-x86_64
Added:
obs-studio/repos/community-staging-x86_64/
obs-studio/repos/community-staging-x86_64/PKGBUILD
(from rev 1454607, obs-studio/trunk/PKGBUILD)
obs-studio/repos/community-staging-x86_64/fix_python_binary_loading.patch
(from rev 1454607, obs-studio/trunk/fix_python_binary_loading.patch)
obs-studio/repos/community-staging-x86_64/ignore_unused_submodules.patch
(from rev 1454607, obs-studio/trunk/ignore_unused_submodules.patch)
---------------------------------+
PKGBUILD | 54 ++++++++++++++++++++++++++++++++++++++
fix_python_binary_loading.patch | 24 ++++++++++++++++
ignore_unused_submodules.patch | 19 +++++++++++++
3 files changed, 97 insertions(+)
Copied: obs-studio/repos/community-staging-x86_64/PKGBUILD (from rev 1454607,
obs-studio/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2023-04-29 15:19:00 UTC (rev 1454608)
@@ -0,0 +1,54 @@
+# Maintainer: Jonathan Steel <jsteel at archlinux.org>
+# Contributor: Benjamin Klettbach <[email protected]>
+
+pkgname=obs-studio
+pkgver=29.0.2
+pkgrel=6
+pkgdesc="Free, open source software for live streaming and recording"
+arch=('x86_64')
+url="https://obsproject.com"
+license=('GPL2')
+depends=('ffmpeg' 'jansson' 'libxinerama' 'libxkbcommon-x11' 'mbedtls'
'rnnoise' 'pciutils'
+ 'qt6-svg' 'curl' 'jack' 'gtk-update-icon-cache' 'pipewire'
'libxcomposite')
+makedepends=('cmake' 'libfdk-aac' 'x264' 'swig' 'python' 'luajit' 'sndio')
+optdepends=('libfdk-aac: FDK AAC codec support'
+ 'libva-intel-driver: hardware encoding'
+ 'libva-mesa-driver: hardware encoding'
+ 'luajit: scripting support'
+ 'python: scripting support'
+ 'sndio: Sndio input client'
+ 'v4l2loopback-dkms: virtual camera support')
+source=($pkgname-$pkgver.tar.gz::https://github.com/jp9000/obs-studio/archive/$pkgver.tar.gz
+ fix_python_binary_loading.patch
+ ignore_unused_submodules.patch
+ https://github.com/obsproject/obs-studio/commit/2e79d4c9.patch)
+sha256sums=('0e6260800b80c3fc9f67c4c3fb12ffae740ab1dd188e526a55e0fc8949168db2'
+ 'bdfbd062f080bc925588aec1989bb1df34bf779cc2fc08ac27236679cf612abd'
+ '60b0ee1f78df632e1a8c13cb0a7a5772b2a4b092c4a2a78f23464a7d239557c3'
+ '96ea913149377b324d132aa56964a72e5263e06a8b8d2103c1708b04752f3b9d')
+
+prepare() {
+ cd $pkgname-$pkgver
+ patch -Np1 < "$srcdir"/fix_python_binary_loading.patch
+ patch -Np1 < "$srcdir"/ignore_unused_submodules.patch
+ patch -Np1 < "$srcdir"/2e79d4c9.patch # Fix build with FFmpeg 6
+}
+
+build() {
+ cmake -B build -S $pkgname-$pkgver \
+ -DCMAKE_INSTALL_PREFIX="/usr" \
+ -DENABLE_BROWSER=OFF \
+ -DENABLE_VST=ON \
+ -DENABLE_VLC=OFF \
+ -DENABLE_NEW_MPEGTS_OUTPUT=OFF \
+ -DENABLE_AJA=OFF \
+ -DENABLE_JACK=ON \
+ -DENABLE_LIBFDK=ON \
+ -DOBS_VERSION_OVERRIDE="$pkgver-$pkgrel" \
+ -Wno-dev
+ cmake --build build
+}
+
+package() {
+ DESTDIR="$pkgdir" cmake --install build
+}
Copied:
obs-studio/repos/community-staging-x86_64/fix_python_binary_loading.patch (from
rev 1454607, obs-studio/trunk/fix_python_binary_loading.patch)
===================================================================
--- community-staging-x86_64/fix_python_binary_loading.patch
(rev 0)
+++ community-staging-x86_64/fix_python_binary_loading.patch 2023-04-29
15:19:00 UTC (rev 1454608)
@@ -0,0 +1,24 @@
+From c482159ce93deafc7f1fc5755ba15135709ae726 Mon Sep 17 00:00:00 2001
+From: Matt Gajownik <[email protected]>
+Date: Tue, 25 Aug 2020 19:28:26 +1000
+Subject: [PATCH] libobs/util: Fix loading Python binary modules on *nix
+
+Fixes #2222
+---
+ libobs/util/platform-nix.c | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/libobs/util/platform-nix.c b/libobs/util/platform-nix.c
+index 26800d52f7..997b62db1a 100644
+--- a/libobs/util/platform-nix.c
++++ b/libobs/util/platform-nix.c
+@@ -71,7 +71,8 @@ void *os_dlopen(const char *path)
+ #ifdef __APPLE__
+ void *res = dlopen(dylib_name.array, RTLD_LAZY | RTLD_FIRST);
+ #else
+- void *res = dlopen(dylib_name.array, RTLD_LAZY);
++ void *res = dlopen(dylib_name.array,
++ RTLD_LAZY | RTLD_DEEPBIND | RTLD_GLOBAL);
+ #endif
+ if (!res)
+ blog(LOG_ERROR, "os_dlopen(%s->%s): %s\n", path,
Copied:
obs-studio/repos/community-staging-x86_64/ignore_unused_submodules.patch (from
rev 1454607, obs-studio/trunk/ignore_unused_submodules.patch)
===================================================================
--- community-staging-x86_64/ignore_unused_submodules.patch
(rev 0)
+++ community-staging-x86_64/ignore_unused_submodules.patch 2023-04-29
15:19:00 UTC (rev 1454608)
@@ -0,0 +1,19 @@
+--- a/plugins/CMakeLists.txt.orig 2022-09-24 09:05:46.308250388 +0100
++++ b/plugins/CMakeLists.txt 2022-09-24 09:06:04.978206849 +0100
+@@ -61,7 +61,6 @@
+ add_subdirectory(sndio)
+ add_subdirectory(obs-vst)
+
+- check_obs_browser()
+ elseif(OS_FREEBSD)
+ add_subdirectory(linux-capture)
+ add_subdirectory(linux-pulseaudio)
+@@ -84,8 +83,6 @@
+
+ if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/obs-websocket/CMakeLists.txt)
+ add_subdirectory(obs-websocket)
+-else()
+- obs_status(FATAL_ERROR "obs-websocket submodule not available.")
+ endif()
+
+ add_subdirectory(image-source)