Control: tags -1 + patch Am 12.02.2018 um 16:47 schrieb Sven-Haegar Koch:
> Package: kinit > Version: 5.42.0-3 > Severity: normal > > Dear Maintainer, > > While upgrading from 5.42.0-X to 5.42.0-3 in postinst: > > Setting up kinit (5.42.0-3) ... > Failed to set capabilities on file > `/usr/lib/#MULTIARCH#/libexec/kf5/start_kdeinit' (No such file or directory) > The value of the capability argument is not permitted for a file. Or the file > is not a regular (non-symlink) file > Failed to set capabilities for start_kdeinit > > Seems that "#MULTIARCH#" has not been replaced by the real > architecture used (x86_64-linux-gnu in my case). > > Greetings > Sven The attached patch should do the trick, but it has only been tested as much as the original code, i.e. not at all. ;-) Cheers, another Sven
diff --git a/debian/kinit.postinst.in b/debian/kinit.postinst.in index 3181d5b..a93f91f 100644 --- a/debian/kinit.postinst.in +++ b/debian/kinit.postinst.in @@ -6,7 +6,7 @@ if [ "$1" = configure ]; then # Set the capabilities if command -v setcap > /dev/null && \ setcap "CAP_SYS_RESOURCE=+ep" \ - "/usr/lib/#MULTIARCH#/libexec/kf5/start_kdeinit"; then + "/usr/lib/#DEB_HOST_MULTIARCH#/libexec/kf5/start_kdeinit"; then echo "Sucessfully set capabilities for start_kdeinit" else echo "Failed to set capabilities for start_kdeinit" >&2