Patrick Williams | 4585273 | 2022-04-02 08:58:32 -0500 | [diff] [blame] | 1 | From b09ff147e9383d33e6adbcb356b52236610fceda Mon Sep 17 00:00:00 2001 |
| 2 | From: Kai Kang <kai.kang@windriver.com> |
| 3 | Date: Fri, 1 Apr 2022 10:00:00 +0800 |
| 4 | Subject: [PATCH] genconfig.py: update shebang |
| 5 | |
| 6 | It 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 | |
| 12 | Update shebang with 'env python3' instead. |
| 13 | |
| 14 | Upstream-Status: Pending |
| 15 | |
| 16 | Signed-off-by: Kai Kang <kai.kang@windriver.com> |
| 17 | --- |
| 18 | genconfig.py | 2 +- |
| 19 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 20 | |
| 21 | diff --git a/genconfig.py b/genconfig.py |
| 22 | index 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 | -- |
| 32 | 2.17.1 |
| 33 | |