[Buildroot] [git commit] package/rpm: add python support
Yann E. MORIN
yann.morin.1998 at free.fr
Sun May 7 21:44:59 UTC 2023
commit: https://git.buildroot.net/buildroot/commit/?id=38c4621df340ea7a76033f5955be1b277554920f
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master
When Python 3 support is detected, enable Python 3-related support.
Signed-off-by: James Knight <james.d.knight at live.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998 at free.fr>
---
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
More information about the buildroot
mailing list