[openwrt/openwrt] libcap: use more compatible shebang
LEDE Commits
lede-commits at lists.infradead.org
Tue Sep 13 15:06:24 PDT 2022
ansuel pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/e8135247c19924a4bd164f422dd589465aaa294d
commit e8135247c19924a4bd164f422dd589465aaa294d
Author: Ilya Katsnelson <me at 0upti.me>
AuthorDate: Tue Jun 7 10:23:31 2022 +0300
libcap: use more compatible shebang
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 at 0upti.me>
---
package/libs/libcap/patches/900-use-more-compatible-shebang.patch | 8 ++++++++
1 file changed, 8 insertions(+)
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
index 0000000000..454c703fbe
--- /dev/null
+++ b/package/libs/libcap/patches/900-use-more-compatible-shebang.patch
@@ -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.
More information about the lede-commits
mailing list