File: 001-use-bash-in-makefile.patch

package info (click to toggle)
hyprland 0.51.1%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 53,472 kB
  • sloc: cpp: 70,714; xml: 4,094; sh: 254; makefile: 90
file content (16 lines) | stat: -rw-r--r-- 572 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: Ensure make uses bash as its shell
 The upstream Makefile contains several bash constructs (like '[['). These
 fail on debian because the default shell for make is /bin/sh which points to
 dash. And dash does not support such constructs. So have make use /bin/bash
 as its shell.
Author: Alan M Varghese
Last-Update: 2025-03-09
Forwarded: not-needed
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,5 @@
 PREFIX = /usr/local
+SHELL = /bin/bash
 
 stub:
 	@echo "Do not run $(MAKE) directly without any arguments. Please refer to the wiki on how to compile Hyprland."