blob: 10d17f57d864637cf56f1432e6ace99314e8efd9 [file] [log] [blame]
Patrick Williams45852732022-04-02 08:58:32 -05001From b09ff147e9383d33e6adbcb356b52236610fceda Mon Sep 17 00:00:00 2001
2From: Kai Kang <kai.kang@windriver.com>
3Date: Fri, 1 Apr 2022 10:00:00 +0800
4Subject: [PATCH] genconfig.py: update shebang
5
6It fails to call genconfig.py if no /usr/bin/python on build machine:
7
8| ./genconfig.py mcelog.conf config-intro.man > mcelog.conf.5
9| /bin/sh: ./genconfig.py: /usr/bin/python: bad interpreter: No such file or directory
10| Makefile:71: recipe for target 'mcelog.conf.5' failed
11
12Update shebang with 'env python3' instead.
13
14Upstream-Status: Pending
15
16Signed-off-by: Kai Kang <kai.kang@windriver.com>
17---
18 genconfig.py | 2 +-
19 1 file changed, 1 insertion(+), 1 deletion(-)
20
21diff --git a/genconfig.py b/genconfig.py
22index ce9987f..982cac6 100755
23--- a/genconfig.py
24+++ b/genconfig.py
25@@ -1,4 +1,4 @@
26-#!/usr/bin/python
27+#!/usr/bin/env python3
28 # generate man config documentation from mcelog.conf example
29 # genconfig.py mcelog.conf intro.html
30 from __future__ import print_function
31--
322.17.1
33