Source: gstreamer1.0
Version: 1.24.9-1
Tags: ftbfs
X-Debbugs-Cc: del...@debian.org, glaub...@physik.fu-berlin.de

gstreamer on alpha, hppa, m68k and sh4 disables the ptp-helper.
See debian/rules file.
The package builds fine, but the problem is when the binary package
is installed afterwards, as can be seen here:
https://buildd.debian.org/status/fetch.php?pkg=libhandy-1&arch=hppa&ver=1.8.3-1%2Bb2&stamp=1730486240&raw=0
...
Setting up libsecret-common (0.21.4-3) ...
Setting up libngtcp2-crypto-gnutls8:hppa (1.6.0-1) ...
Setting up libgstreamer1.0-0:hppa (1.24.9-1) ...
Failed to set capabilities on file 
'/usr/lib/hppa-linux-gnu/gstreamer1.0/gstreamer-1.0/gst-ptp-helper': No such 
file or directory
Setcap failed on gst-ptp-helper, falling back to setuid
chmod: cannot access 
'/usr/lib/hppa-linux-gnu/gstreamer1.0/gstreamer-1.0/gst-ptp-helper': No such 
file or directory
dpkg: error processing package libgstreamer1.0-0:hppa (--configure):
 installed libgstreamer1.0-0:hppa package post-installation script subprocess 
returned error exit status 1

On hppa I built a +b1 package with this patch and this solves the issue:
diff -up ./debian/libgstreamer1.0-0.postinst.in.org 
./debian/libgstreamer1.0-0.postinst.in
--- ./debian/libgstreamer1.0-0.postinst.in.org  2024-11-01 20:31:55.842270253 
+0000
+++ ./debian/libgstreamer1.0-0.postinst.in      2024-11-01 20:32:21.882130791 
+0000
@@ -2,7 +2,7 @@

 set -e

-if [ "$1" = configure ]; then
+if [ "$1" = configure -a -f 
/usr/lib/@MULTIARCH@/gstreamer1.0/gstreamer-1.0/gst-ptp-helper ]; then
     # If we have setcap is installed, try setting 
cap_net_bind_service,cap_net_admin+ep,
     # which allows us to install our helper binary without the setuid bit.


Not sure if this is the correct fix though...

Helge

Reply via email to