Whamcloud - gitweb
LU-955 build: fix bad lustre-backend-fs dependency
authorMinh Diep <mdiep@whamcloud.com>
Thu, 5 Jan 2012 17:12:29 +0000 (09:12 -0800)
committerOleg Drokin <green@whamcloud.com>
Wed, 8 Feb 2012 00:58:23 +0000 (19:58 -0500)
Fix an incorrect RPM package dependency if Lustre RPMs are built
with "make rpms" with client only

Signed-off-by: Minh Diep <mdiep@whamcloud.com>
Change-Id: Ib8691a37fc230cc63b7aca48bc5146a67e10a2f0

autoMakefile.am
build/autoMakefile.am.toplevel

index ccf30fc..de00088 100644 (file)
@@ -10,6 +10,10 @@ endif
 
 @TESTS_TRUE@BUILD_TESTS = true
 @TESTS_FALSE@BUILD_TESTS = false
+@SERVER_TRUE@BUILD_SERVER = true
+@SERVER_FALSE@BUILD_SERVER = false
+@CLIENT_TRUE@BUILD_CLIENT = true
+@CLIENT_FALSE@BUILD_CLIENT = false
 
 include build/autoMakefile.am.toplevel
 
index 7abcd4e..bd4c1d9 100644 (file)
@@ -118,6 +118,9 @@ rpms-real: @PACKAGE_TARNAME@.spec dist Makefile
        if ! $(BUILD_TESTS); then \
                RPMARGS="$$RPMARGS --define \"build_lustre_tests 0\""; \
        fi; \
+       if ! $(BUILD_SERVER); then \
+               RPMARGS="$$RPMARGS --define \"lustre_name lustre-client\""; \
+       fi; \
        echo "Building Lustre RPM with $$RPMARGS"; \
        eval rpmbuild $$RPMARGS -ta $(distdir).tar.gz