From 38c4621df340ea7a76033f5955be1b277554920f Mon Sep 17 00:00:00 2001 From: James Knight Date: Sun, 7 May 2023 17:34:32 -0400 Subject: [PATCH] package/rpm: add python support When Python 3 support is detected, enable Python 3-related support. Signed-off-by: James Knight Signed-off-by: Yann E. MORIN --- package/rpm/rpm.mk | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/package/rpm/rpm.mk b/package/rpm/rpm.mk index 2b289fcc9f..2964c6a512 100644 --- a/package/rpm/rpm.mk +++ b/package/rpm/rpm.mk @@ -27,7 +27,6 @@ RPM_SELINUX_MODULES = rpm # --enable-openmp is provided and OpenMP is < 4.5: # https://github.com/rpm-software-management/rpm/pull/1433 RPM_CONF_OPTS = \ - --disable-python \ --disable-rpath \ --with-gnu-ld \ --without-fapolicyd \ @@ -83,6 +82,13 @@ else RPM_CONF_OPTS += --without-selinux endif +ifeq ($(BR2_PACKAGE_PYTHON3),y) +RPM_DEPENDENCIES += python3 +RPM_CONF_OPTS += --enable-python +else +RPM_CONF_OPTS += --disable-python +endif + ifeq ($(BR2_PACKAGE_SQLITE),y) RPM_DEPENDENCIES += sqlite RPM_CONF_OPTS += --enable-sqlite