Blame SOURCES/0001-Makefile-Fix-dencoder-build.patch

1677c6
From 2009a966d779240bc62f0877201aabd0cd59ac6f Mon Sep 17 00:00:00 2001
1677c6
From: Boris Ranto <branto@redhat.com>
1677c6
Date: Tue, 21 Feb 2017 13:49:01 +0100
1677c6
Subject: [PATCH] Makefile: Fix dencoder build
1677c6
1677c6
Signed-off-by: Boris Ranto <branto@redhat.com>
1677c6
---
1677c6
 src/rgw/Makefile.am | 26 ++++----------------------
1677c6
 1 file changed, 4 insertions(+), 22 deletions(-)
1677c6
1677c6
diff --git a/src/rgw/Makefile.am b/src/rgw/Makefile.am
1677c6
index b083dd1..a94e4e2 100644
1677c6
--- a/src/rgw/Makefile.am
1677c6
+++ b/src/rgw/Makefile.am
1677c6
@@ -1,25 +1,5 @@
1677c6
 if ENABLE_CLIENT
1677c6
-
1677c6
-# inject rgw stuff in the decoder testcase
1677c6
-DENCODER_SOURCES += \
1677c6
-	rgw/rgw_dencoder.cc \
1677c6
-	rgw/rgw_acl.cc \
1677c6
-	rgw/rgw_basic_types.cc \
1677c6
-	rgw/rgw_common.cc \
1677c6
-	rgw/rgw_env.cc \
1677c6
-	rgw/rgw_json_enc.cc \
1677c6
-	rgw/rgw_keystone.cc
1677c6
-
1677c6
-DENCODER_DEPS += -lcurl -lexpat \
1677c6
-	libcls_version_client.la \
1677c6
-	libcls_log_client.la \
1677c6
-	libcls_refcount_client.la \
1677c6
-	libcls_user_client.la \
1677c6
-	libcls_timeindex_client.la \
1677c6
-	libcls_statelog_client.la
1677c6
-
1677c6
 if WITH_RADOS
1677c6
-if WITH_RADOSGW
1677c6
 
1677c6
 librgw_la_SOURCES = \
1677c6
 	rgw/rgw_acl.cc \
1677c6
@@ -122,8 +102,9 @@ librgw_la_LIBADD = $(LIBRGW_DEPS) \
1677c6
 
1677c6
 librgw_la_LDFLAGS = ${AM_LDFLAGS} -version-info 2:0:0
1677c6
 
1677c6
-lib_LTLIBRARIES += librgw.la
1677c6
+noinst_LTLIBRARIES += librgw.la
1677c6
 
1677c6
+if WITH_RADOSGW
1677c6
 CIVETWEB_INCLUDE = --include $(srcdir)/civetweb/include/civetweb_conf.h
1677c6
 
1677c6
 libcivetweb_la_SOURCES =  \
1677c6
@@ -176,6 +157,8 @@ ceph_rgw_jsonparser_SOURCES = \
1677c6
 ceph_rgw_jsonparser_LDADD = $(LIBRGW) $(LIBRGW_DEPS) $(CEPH_GLOBAL)
1677c6
 bin_DEBUGPROGRAMS += ceph_rgw_jsonparser
1677c6
 
1677c6
+endif # WITH_RADOSGW
1677c6
+
1677c6
 noinst_HEADERS += \
1677c6
 	rgw/rgw_acl.h \
1677c6
 	rgw/rgw_acl_s3.h \
1677c6
@@ -262,6 +245,5 @@ noinst_HEADERS += \
1677c6
 	civetweb/include/civetweb_conf.h \
1677c6
 	civetweb/src/md5.h
1677c6
 
1677c6
-endif # WITH_RADOSGW
1677c6
 endif # WITH_RADOS
1677c6
 endif # ENABLE_CLIENT
1677c6
-- 
1677c6
2.9.3
1677c6