3 for patch in *.patch; do
7 # Remove libcap dependency (used solely when bwrap is suid
8 # root). User namespaces are much better, should be used
9 # in place of libcap and are free.
10 sed 's/as_fn_error.*libcap/: "/g' configure > _
12 sed 's/as_fn_error.*capability\.h/: "/g' configure > _
15 # Remove fuse2 dependency (used solely with root "system-helper"
16 # daemon for file transfer. Unneeded in our case and drops the
18 sed 's/as_fn_error.*fuse/: "/g' configure > _
21 # Turn the fuse2 filesystem into a C program which does nothing.
22 # This is the easiest way to "turn off" revokefs as there's
23 # no official support for doing so.
24 cat <<EOF > revokefs/main.c
25 int main() { return 0; }
34 --disable-system-helper \
37 --disable-sandboxed-triggers \
38 --disable-documentation \
39 --disable-introspection \
45 # Remove dbus/systemd/libraries (unneeded stuff).
46 # This is a dumb warning which appears only when /usr/share does.
47 # shellcheck disable=2115
52 rm -rf "$1/usr/include"
53 rm -f "$1/usr/libexec/revokefs-fuse"