Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build system cleanup #155

Closed
wants to merge 7 commits into from
Closed

Build system cleanup #155

wants to merge 7 commits into from

Conversation

pspacek
Copy link
Contributor

@pspacek pspacek commented Oct 12, 2016

This is first step in build system refactoring effort.

This patch set contains cleanup patches for daemons/configure.ac.
After the cleanup, the file will be "promoted" to top-level configure.ac
and merged with other configure.ac files in subdirectories.

I did not touch other configure.ac files on purpose as these mostly duplicate
daemons/configure.ac and will be simply dropped later on.

From functional perspective, there should not be any visible changes.
FreeIPA should build as before, using the same horrible Makefile.

@@ -91,7 +91,7 @@ dnl ---------------------------------------------------------------------------

AC_MSG_NOTICE([Checking for Python])
have_python=no
AM_PATH_PYTHON(2.3)
AM_PATH_PYTHON(2.7)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK for this

@MartinBasti
Copy link
Contributor

Works for me, Not pushing yet to give time to others to disagree

@MartinBasti MartinBasti added the ack Pull Request approved, can be merged label Oct 13, 2016
@MartinBasti
Copy link
Contributor

Needs rebase

It was working accidentally because krb5 libs are part of OPENLDAP_LIBS.
Use package config instead of checking headers.
Package config is faster because it does not invoke compiler
and guarantees proper linking flags because these are provided
by package maintainer instead of hardcoded into build system.

libkrad does not have package config file so we keep the old way here.
Use package config instead of checking headers.
Package config is faster because it does not invoke compiler
and guarantees proper linking flags because these are provided
by package maintainer instead of hardcoded into build system.
Use package config instead of checking headers.
Package config is faster because it does not invoke compiler
and guarantees proper linking flags because these are provided
by package maintainer instead of hardcoded into build system.
Mozldap is not used for some time now. We can remove
all traces of it.

AFAIK the complex logic for OpenLDAP detection should not be
necessary and -lldap_r -llber options should suffice.

Unfortunatelly OpenLDAP package does not ship
package config files so we have to hardcode flags.
The Python detection logic will be improved later when we start to use
top-level configure.ac to manage build completely. For now simple bump
is enough.
Interestingly, the new macro AC_HEADER_STDC is alredy present.
Copy link
Contributor

@abbra abbra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK for this commit

@abbra
Copy link
Contributor

abbra commented Oct 18, 2016

I think all these fix commits are just fine.

@MartinBasti MartinBasti added the pushed Pull Request has already been pushed label Oct 18, 2016
@pspacek pspacek deleted the build-cleanup branch October 18, 2016 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ack Pull Request approved, can be merged pushed Pull Request has already been pushed
Projects
None yet
3 participants