URL: https://github.com/SSSD/sssd/pull/5302
Author: pbrezina
 Title: #5302: conf: disable python2 bindings by default
Action: synchronized

To pull the PR as Git branch:
git remote add ghsssd https://github.com/SSSD/sssd
git fetch ghsssd pull/5302/head:pr5302
git checkout pr5302
From 11bbbd869a0234b6987b28b0ac60058087724f91 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Pavel=20B=C5=99ezina?= <[email protected]>
Date: Thu, 27 Aug 2020 13:55:14 +0200
Subject: [PATCH] conf: disable python2 bindings by default

Python2 is being fully replaced by Python3 on modern distros so
there is no need to build the bindings by default. We even don't
ship python2 packages in Fedora for quite some time now.

Keeping this on by default requires using --without-python2-bindings
on modern distributions where python2 is not installed by default.
---
 contrib/ci/configure.sh | 1 +
 src/conf_macros.m4      | 4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/contrib/ci/configure.sh b/contrib/ci/configure.sh
index 810e82a1f5..65d340254b 100644
--- a/contrib/ci/configure.sh
+++ b/contrib/ci/configure.sh
@@ -29,6 +29,7 @@ declare -a CONFIGURE_ARG_LIST=(
     "--enable-ldb-version-check"
     "--with-syslog=journald"
     "--enable-systemtap"
+    "--with-python2-bindings"
 )
 
 
diff --git a/src/conf_macros.m4 b/src/conf_macros.m4
index fa12a38a75..ec41ad9916 100644
--- a/src/conf_macros.m4
+++ b/src/conf_macros.m4
@@ -377,10 +377,10 @@ AC_DEFUN([WITH_KRB5_CONF],
 AC_DEFUN([WITH_PYTHON2_BINDINGS],
   [ AC_ARG_WITH([python2-bindings],
                 [AC_HELP_STRING([--with-python2-bindings],
-                                [Whether to build python2 bindings [yes]])
+                                [Whether to build python2 bindings [no]])
                 ],
                 [],
-                [with_python2_bindings=yes]
+                [with_python2_bindings=no]
                )
     if test x"$with_python2_bindings" = xyes; then
         AC_SUBST([HAVE_PYTHON2_BINDINGS], [yes])
_______________________________________________
sssd-devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedorahosted.org/archives/list/[email protected]

Reply via email to