From 8e2da5db1b97f304990561032bb9e7bf44ca211d Mon Sep 17 00:00:00 2001 From: William Brown Date: Feb 11 2019 22:26:39 +0000 Subject: Ticket 50199 - disable perl by default Bug Description: Our python lib389 tools have become much more mature. We should disable perl by default as it's really not maintained, and deprecated, so we should stop emitting it by default. It can still be enabled with --enable-perl to ./configure, but we just discourage it. Fix Description: Turn yes to no. https://pagure.io/389-ds-base/issue/50199 Author: William Brown Review by: mreynolds, mhonek, lslebodn (Thanks) --- diff --git a/configure.ac b/configure.ac index ba4396e..2e733e5 100644 --- a/configure.ac +++ b/configure.ac @@ -209,10 +209,10 @@ AM_CONDITIONAL(CLANG_ENABLE,test "$enable_clang" = "yes") # Enable Perl if test -z "$enable_perl" ; then - enable_perl=yes + enable_perl=no fi AC_MSG_CHECKING(for --enable-perl) -AC_ARG_ENABLE(perl, AS_HELP_STRING([--enable-perl], [Enable perl and shell script wrappers (default: yes)]) +AC_ARG_ENABLE(perl, AS_HELP_STRING([--enable-perl], [Enable deprecated legacy perl and shell scripts (default: no)]) [ AC_MSG_RESULT(yes) ], diff --git a/rpm/389-ds-base.spec.in b/rpm/389-ds-base.spec.in index 2526195..7e76be6 100644 --- a/rpm/389-ds-base.spec.in +++ b/rpm/389-ds-base.spec.in @@ -379,7 +379,8 @@ autoreconf -fiv --with-systemdgroupname=%{groupname} \ --libexecdir=%{_libexecdir}/%{pkgname} \ $NSSARGS $ASAN_FLAGS $MSAN_FLAGS $TSAN_FLAGS $UBSAN_FLAGS $RUST_FLAGS $PERL_FLAGS $CLANG_FLAGS \ - --enable-cmocka + --enable-cmocka \ + --enable-perl %if 0%{?rhel} > 7 || 0%{?fedora} # lib389