aboutsummaryrefslogtreecommitdiff
path: root/x11/i3status/files/patch-meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'x11/i3status/files/patch-meson.build')
-rw-r--r--x11/i3status/files/patch-meson.build21
1 files changed, 21 insertions, 0 deletions
diff --git a/x11/i3status/files/patch-meson.build b/x11/i3status/files/patch-meson.build
new file mode 100644
index 000000000000..c6bb9218ca60
--- /dev/null
+++ b/x11/i3status/files/patch-meson.build
@@ -0,0 +1,21 @@
+--- meson.build.orig 2021-11-12 10:03:11 UTC
++++ meson.build
+@@ -222,15 +222,15 @@ install_subdir(
+ # because configure_file strips the backslash in e.g. \@display,
+ # resulting in @display, breaking our Perl code:
+ # https://github.com/mesonbuild/meson/issues/7165
+-bash = find_program('bash')
++sh = find_program('sh')
+ replace_dirs = [
+- bash, '-c', # Use bash to capture output and mark as executable
++ sh, '-c', # Use bash to capture output and mark as executable
+ 'sed -e \'s,@abs_top_builddir@,'
+ + meson.current_build_dir()
+ + ',g;s,@abs_top_srcdir@,'
+ + meson.current_source_dir()+',g\''
+ # Only mark files ending in .pl as executables
+- + ' "$0" > "$1" && { [[ "${1##*.}" == pl ]] && chmod +x "$1" || true; }',
++ + ' "$0" > "$1" && { [ "${1##*.}" = pl ] && chmod +x "$1" || true; }',
+ '@INPUT0@', # $0
+ '@OUTPUT0@', # $1
+ ]