-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 08/16/2010 01:47 PM, Stephen Gallagher wrote: > If the --without-python-bindings argument was passed to configure, the > SSSD would fail to build. Prior to this patch, it was only controlling > whether to build the C bindings (for use with the local provider), but > the configure script was written such that it wouldn't look up the path > to python. This broke the SSSDConfig API build. > > This patch skips building the SSSDConfig API when > --without-python-bindings is specified (since presumably the reason for > using this option is that the target system doesn't have python (e.g. an > appliance) >
Attached patch rebased for master. - -- Stephen Gallagher RHCE 804006346421761 Delivering value year after year. Red Hat ranks #1 in value among software vendors. http://www.redhat.com/promo/vendor/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/ iEYEARECAAYFAkxydX0ACgkQeiVVYja6o6MmRgCeIQxIO0QuH0UynGepNpWWGhTh MCkAniyB0Ca8LpcBBnrcq2bzW+S0Zrmn =IbR8 -----END PGP SIGNATURE-----
From c89ec101575144ffeffa3968c6c7cee3e65776f7 Mon Sep 17 00:00:00 2001 From: Stephen Gallagher <sgall...@redhat.com> Date: Mon, 16 Aug 2010 13:43:30 -0400 Subject: [PATCH 4/4] Don't build SSSDConfig API when configured with --without-python-bindings --- Makefile.am | 15 ++++++++++++++- 1 files changed, 14 insertions(+), 1 deletions(-) diff --git a/Makefile.am b/Makefile.am index 9f57cb795cfd3fd3cae8e700e7c2e631844d2343..7482e811aa8b20bb14d4cf7a8589e2b9dded9b35 100644 --- a/Makefile.am +++ b/Makefile.am @@ -89,8 +89,14 @@ check_PROGRAMS = \ stress-tests \ $(non_interactive_check_based_tests) +PYTHON_TESTS = + +if BUILD_PYTHON_BINDINGS +PYTHON_TESTS += $(srcdir)/src/config/SSSDConfigTest.py +endif + TESTS = \ - $(srcdir)/src/config/SSSDConfigTest.py \ + $(PYTHON_TESTS) \ $(non_interactive_check_based_tests) sssdlib_LTLIBRARIES = \ @@ -1003,15 +1009,20 @@ docs: @echo "Doxygen not installed, cannot generate documentation" @exit 1 endif + all-local: +if BUILD_PYTHON_BINDINGS cd $(srcdir)/src/config; $(PYTHON) setup.py build --build-base $(abs_builddir)/src/config +endif install-exec-hook: installsssddirs +if BUILD_PYTHON_BINDINGS if [ "$(DESTDIR)" = "" ]; then \ cd $(srcdir)/src/config; $(PYTHON) setup.py build --build-base $(abs_builddir)/src/config install $(DISTSETUPOPTS) --prefix=$(PYTHON_PREFIX) --record=$(abs_builddir)/src/config/.files; \ else \ cd $(srcdir)/src/config; $(PYTHON) setup.py build --build-base $(abs_builddir)/src/config install $(DISTSETUPOPTS) --prefix=$(PYTHON_PREFIX) --root=$(DESTDIR) --record=$(abs_builddir)/src/config/.files; \ fi +endif mkdir -p doc $(DESTDIR)/$(docdir); cp -a doc $(DESTDIR)/$(docdir)/ install-data-hook: @@ -1027,7 +1038,9 @@ uninstall-hook: rm -Rf $(DESTDIR)/$(docdir)/doc clean-local: +if BUILD_PYTHON_BINDINGS cd $(srcdir)/src/config; $(PYTHON) setup.py build --build-base $(abs_builddir)/src/config clean --all +endif rm -Rf doc CLEANFILES = *.X */*.X */*/*.X -- 1.7.2.1
0004-Don-t-build-SSSDConfig-API-when-configured-with-with.patch.sig
Description: PGP signature
_______________________________________________ sssd-devel mailing list sssd-devel@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/sssd-devel