From 3c10bb052d94cb9d96881344d149a29a6bfb73b5 Mon Sep 17 00:00:00 2001 From: Fabrice Fontaine Date: Fri, 18 Feb 2022 11:07:09 +0100 Subject: [PATCH] package/zfs: replace PYTHON_VERSION_MAJOR Replace PYTHON_VERSION_MAJOR by PYTHON3_VERSION_MAJOR now that python2 has been dropped. It should be noted that PYTHON_SITE_PKG was wrongly set since the addition of the package in commit 4470bc9914d730383db86f58bc86fb09739622dc Signed-off-by: Fabrice Fontaine Signed-off-by: Peter Korsgaard --- package/zfs/zfs.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/zfs/zfs.mk b/package/zfs/zfs.mk index 6b542f5c05..dbda8aceb4 100644 --- a/package/zfs/zfs.mk +++ b/package/zfs/zfs.mk @@ -44,7 +44,7 @@ ZFS_CONF_ENV += \ PYTHON_CPPFLAGS="`$(STAGING_DIR)/usr/bin/python3-config --includes`" \ PYTHON_LIBS="`$(STAGING_DIR)/usr/bin/python3-config --ldflags`" \ PYTHON_EXTRA_LIBS="`$(STAGING_DIR)/usr/bin/python3-config --libs --embed`" \ - PYTHON_SITE_PKG="/usr/lib/python$(PYTHON_VERSION_MAJOR)/site-packages" + PYTHON_SITE_PKG="/usr/lib/python$(PYTHON3_VERSION_MAJOR)/site-packages" ZFS_CONF_OPTS += --enable-pyzfs else ZFS_CONF_OPTS += --disable-pyzfs --without-python