From bd0b4fa76bcb36ffd9d26e81c23a7623737d3ee9 Mon Sep 17 00:00:00 2001 From: Sertonix Date: Tue, 16 Jan 2024 11:24:43 +0100 Subject: [PATCH] main/gstreamer: split gst-ptp-helper MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The gst-ptp-helper is a setcap binary and should therefor be used with care. It is not essential to the functionality of gstreamer. > The reason for the capabilities is that this helper process has to > bind to ports 319/320 for receiving PTP packets, and unfortunately > UNIX considers ports < 1024 as privileged. > ... > Fortunately the only thing you’re losing like this is the ability to > use a PTP clock from GStreamer. https://discourse.gstreamer.org/t/what-is-the-rationale-of-setting-linux-capabilities-for-the-gst-ptp-helper-executable/511 --- main/gstreamer/APKBUILD | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/main/gstreamer/APKBUILD b/main/gstreamer/APKBUILD index 3a87487d9c3..a10c1414a40 100644 --- a/main/gstreamer/APKBUILD +++ b/main/gstreamer/APKBUILD @@ -1,7 +1,7 @@ # Maintainer: Natanael Copa pkgname=gstreamer pkgver=1.22.8 -pkgrel=0 +pkgrel=1 pkgdesc="GStreamer streaming media framework" url="https://gstreamer.freedesktop.org" arch="all" @@ -23,6 +23,7 @@ subpackages=" $pkgname-doc $pkgname-tools $pkgname-lang + $pkgname-ptp-helper:ptp_helper " source="https://gstreamer.freedesktop.org/src/gstreamer/gstreamer-$pkgver.tar.xz" # setcap: gst-ptp-helper @@ -83,6 +84,13 @@ tools() { amove usr/bin } +ptp_helper() { + pkgdesc="$pkgdesc (ptp helper)" + install_if="$pkgname=$pkgver-r$pkgrel" + + amove usr/libexec/gstreamer-*/gst-ptp-helper +} + sha512sums=" eb1da4c37409eaf46d22c6c16fd9ed5f81f3dfcf2b2d00cf197127d3e4297d2cee121952cff7b05db63487b909ba61cd6bf68045424fb1aa5c50d9e9a3181970 gstreamer-1.22.8.tar.xz "