pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/multimedia/gerbera/patches
Module Name: pkgsrc
Committed By: khorben
Date: Sat Feb 7 23:48:30 UTC 2026
Added Files:
pkgsrc/multimedia/gerbera/patches: patch-CMakeLists.txt
patch-src_config_grb__runtime.cc
Log Message:
gerbera: restore missing patches
I removed two patches too many in the update to 3.0.0; sorry!
To generate a diff of this commit:
cvs rdiff -u -r0 -r1.5 pkgsrc/multimedia/gerbera/patches/patch-CMakeLists.txt
cvs rdiff -u -r0 -r1.3 \
pkgsrc/multimedia/gerbera/patches/patch-src_config_grb__runtime.cc
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Added files:
Index: pkgsrc/multimedia/gerbera/patches/patch-CMakeLists.txt
diff -u /dev/null pkgsrc/multimedia/gerbera/patches/patch-CMakeLists.txt:1.5
--- /dev/null Sat Feb 7 23:48:30 2026
+++ pkgsrc/multimedia/gerbera/patches/patch-CMakeLists.txt Sat Feb 7 23:48:30 2026
@@ -0,0 +1,16 @@
+$NetBSD: patch-CMakeLists.txt,v 1.5 2026/02/07 23:48:30 khorben Exp $
+
+Darwin does not require libuuid.
+
+--- CMakeLists.txt.orig 2022-11-04 11:22:55.000000000 +0000
++++ CMakeLists.txt
+@@ -337,7 +337,9 @@ endif()
+ unset(CMAKE_REQUIRED_LIBRARIES)
+
+ find_package(UUID REQUIRED)
++if(NOT APPLE)
+ target_link_libraries(libgerbera PUBLIC UUID::UUID)
++endif()
+
+ find_package(LFS REQUIRED)
+ target_compile_definitions(libgerbera PUBLIC ${LFS_DEFINITIONS})
Index: pkgsrc/multimedia/gerbera/patches/patch-src_config_grb__runtime.cc
diff -u /dev/null pkgsrc/multimedia/gerbera/patches/patch-src_config_grb__runtime.cc:1.3
--- /dev/null Sat Feb 7 23:48:30 2026
+++ pkgsrc/multimedia/gerbera/patches/patch-src_config_grb__runtime.cc Sat Feb 7 23:48:30 2026
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_config_grb__runtime.cc,v 1.3 2026/02/07 23:48:30 khorben Exp $
+
+Fix build on NetBSD.
+
+--- src/config/grb_runtime.cc.orig 2024-07-15 09:47:21.629452221 +0000
++++ src/config/grb_runtime.cc
+@@ -258,7 +258,7 @@ bool GerberaRuntime::setUser(const std::
+ // macOS does this differently, setgid and setuid are basically doing the same
+ // as setresuid and setresgid on linux: setting all of real{u,g}id, effective{u,g}id and saved-set{u,g}id
+ // Solaroid systems are likewise missing setresgid and setresuid
+-#if defined(__APPLE__) || defined(SOLARIS) || defined(__CYGWIN__) || defined(__HAIKU__)
++#if defined(__APPLE__) || defined(SOLARIS) || defined(__CYGWIN__) || defined(__HAIKU__) || defined(__NetBSD__)
+ // set group-ids, then add. groups, last user-ids, all need to succeed
+ if (0 != setgid(userId->pw_gid) || 0 != initgroups(userId->pw_name, userId->pw_gid) || 0 != setuid(userId->pw_uid)) //
+ #else
Home |
Main Index |
Thread Index |
Old Index