libcap: use more compatible shebang
authorIlya Katsnelson <me@0upti.me>
Tue, 7 Jun 2022 07:23:31 +0000 (10:23 +0300)
committerChristian Marangi <ansuelsmth@gmail.com>
Tue, 13 Sep 2022 22:06:18 +0000 (00:06 +0200)
Patch a script to use a shebang that works on systems that don't have
a /bin/bash, e.g. NixOS or GuixSD.

Signed-off-by: Ilya Katsnelson <me@0upti.me>
package/libs/libcap/patches/900-use-more-compatible-shebang.patch [new file with mode: 0644]

diff --git a/package/libs/libcap/patches/900-use-more-compatible-shebang.patch b/package/libs/libcap/patches/900-use-more-compatible-shebang.patch
new file mode 100644 (file)
index 0000000..454c703
--- /dev/null
@@ -0,0 +1,8 @@
+--- a/progs/mkcapshdoc.sh
++++ b/progs/mkcapshdoc.sh
+@@ -1,4 +1,4 @@
+-#!/bin/bash
++#!/usr/bin/env bash
+ # This script generates some C code for inclusion in the capsh binary.
+ # The Makefile generally only generates the .c code and compares it
+ # with the checked in code in the progs directory.