Hello Helge,

On Fri, 2024-11-01 at 23:07 +0100, Helge Deller wrote:
> 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...

Yes, testing whether the gst-ptp-helper binary exists before trying to run 
setcap
on it is the correct and obvious fix. Thanks for reporting it so quickly!

Adrian

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer
`. `'   Physicist
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913

Reply via email to