Fix a problem when a target missed a version-update requirement.
This caused build problems, especially in a parallel build
environment.

https://fedorahosted.org/freeipa/ticket/1215

>From 0ba58ecbacb9896e3130a1fc2307cbbe8ddcd9e7 Mon Sep 17 00:00:00 2001
From: Martin Kosek <mko...@redhat.com>
Date: Fri, 17 Jun 2011 10:58:01 +0200
Subject: [PATCH] Multi-process build problems

Fix a problem when a target missed a version-update requirement.
This caused build problems, especially in a parallel build
environment.

https://fedorahosted.org/freeipa/ticket/1215
---
 Makefile        |    2 +-
 freeipa.spec.in |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile
index d12bb4381887b03d3dfb22de9cde93779c3fa9db..adcc1e53a49eb71a37b31b87c7971c6b0b07ffa4 100644
--- a/Makefile
+++ b/Makefile
@@ -112,7 +112,7 @@ version-update: release-update
 		./makeapi --validate; \
 	fi
 
-server:
+server: version-update
 	python setup.py build
 
 server-install: server
diff --git a/freeipa.spec.in b/freeipa.spec.in
index cc674e1ad6c4fbee969637691ca6f82feb260516..c49ca2b56dea5a544706e6b7306329aea1a059d8 100644
--- a/freeipa.spec.in
+++ b/freeipa.spec.in
@@ -218,12 +218,12 @@ cd install; ../autogen.sh --prefix=%{_usr} --sysconfdir=%{_sysconfdir} --localst
 %endif
 
 %if ! %{ONLY_CLIENT}
-make IPA_VERSION_IS_GIT_SNAPSHOT=no %{?_smp_mflags} version-update all
+make IPA_VERSION_IS_GIT_SNAPSHOT=no %{?_smp_mflags} all
 cd selinux
 # This isn't multi-process make capable yet
 make all
 %else
-make IPA_VERSION_IS_GIT_SNAPSHOT=no %{?_smp_mflags} version-update client
+make IPA_VERSION_IS_GIT_SNAPSHOT=no %{?_smp_mflags} client
 %endif
 
 %install
-- 
1.7.5.4

_______________________________________________
Freeipa-devel mailing list
Freeipa-devel@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-devel

Reply via email to