From: francisco.garcia Date: Fri, 14 Jul 2023 08:33:35 +0000 (+0200) Subject: k8s: Fix pip fixed value with variables pip path. X-Git-Tag: Beta-15.0.0~161 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=be2434099ef9e50f1abb346dfdb1762175855668;p=thirdparty%2Fbacula.git k8s: Fix pip fixed value with variables pip path. --- diff --git a/bacula/src/plugins/fd/kubernetes-backend/Makefile b/bacula/src/plugins/fd/kubernetes-backend/Makefile index e9aa621d9..faff13978 100644 --- a/bacula/src/plugins/fd/kubernetes-backend/Makefile +++ b/bacula/src/plugins/fd/kubernetes-backend/Makefile @@ -13,7 +13,7 @@ PYTHON_PROG=$(shell ./get_python PYTHON) PYTHONPATH=$(shell ./get_python PYTHONPATH) PYTHON_PREFIX=$(shell ./get_python PYTHON_PREFIX) -PIP_MAJOR_VERSION=$(shell pip --version | awk '{print $$2}' | awk -v FS=\. '{print $$1}') +PIP_MAJOR_VERSION=$(shell $(PIP_PROG) --version | $(AWK) '{print $$2}' | $(AWK) -v FS=\. '{print $$1}') PIP_OPTIONS = --user # Implemented PEP 668: https://pip.pypa.io/en/stable/news/#v23-0-1 we need --break-system-packages option. ifeq ($(shell test $(PIP_MAJOR_VERSION) -ge 23; echo $$?),0)