Blame SOURCES/tuned-2.10.0-makefile-full-python-path.patch

1bfeda
--- a/Makefile
1bfeda
+++ b/Makefile
1bfeda
@@ -30,12 +30,12 @@ VERSIONED_NAME = $(NAME)-$(VERSION)$(GIT_PSUFFIX)
1bfeda
 SYSCONFDIR = /etc
1bfeda
 DATADIR = /usr/share
1bfeda
 DOCDIR = $(DATADIR)/doc/$(NAME)
1bfeda
-PYTHON = python3
1bfeda
+PYTHON = /usr/bin/python3
1bfeda
 PYLINT = pylint-3
1bfeda
 ifeq ($(PYTHON),python2)
1bfeda
 PYLINT = pylint-2
1bfeda
 endif
1bfeda
-SHEBANG_REWRITE_REGEX= '1s/^(\#!\/usr\/bin\/)\<python\>/\1$(PYTHON)/'
1bfeda
+SHEBANG_REWRITE_REGEX= '1s|^\#!/usr/bin/\<python\>|\#!$(PYTHON)|'
1bfeda
 PYTHON_SITELIB = $(shell $(PYTHON) -c 'from distutils.sysconfig import get_python_lib; print(get_python_lib());')
1bfeda
 ifeq ($(PYTHON_SITELIB),)
1bfeda
 $(error Failed to determine python library directory)
1bfeda