[Libreoffice-commits] .: Branch 'libreoffice-3-6' - connectivity/Library_dbtools.mk connectivity/Package_inc.mk solenv/gbuild svx/Library_svx.mk

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Wed Aug 29 12:55:19 PDT 2012


 connectivity/Library_dbtools.mk |    4 ----
 connectivity/Package_inc.mk     |    3 +++
 solenv/gbuild/LinkTarget.mk     |    2 +-
 svx/Library_svx.mk              |    1 -
 4 files changed, 4 insertions(+), 6 deletions(-)

New commits:
commit fecf5af339506df7003a2e8f1742b1f958b6186b
Author: Matúš Kukan <matus.kukan at gmail.com>
Date:   Fri Aug 24 01:12:45 2012 +0200

    fdo#53888: svx: do not link against dbtools
    
    dbtools were added in 01089138cc76f5717244bd04f25a868602aeaab6 only to
    create dependency and fix the build.
    This creates circular dependency for libmerged, dbtools is not that
    common library.
    It's better to create real dependency in connectivity_inc package.
    To avoid another circular dependency gb_YaccTarget_get_header_target
    must not depend on external headers target.
    
    Change-Id: I431513d0b7a895b471eeec854b3b3f1fd69503af
    Reviewed-on: https://gerrit.libreoffice.org/470
    Reviewed-by: Norbert Thiebaud <nthiebaud at gmail.com>
    Tested-by: Norbert Thiebaud <nthiebaud at gmail.com>

diff --git a/connectivity/Library_dbtools.mk b/connectivity/Library_dbtools.mk
index 7688ef4..b845884 100644
--- a/connectivity/Library_dbtools.mk
+++ b/connectivity/Library_dbtools.mk
@@ -27,8 +27,6 @@
 
 $(eval $(call gb_Library_Library,dbtools))
 
-# connectivity_generated causes cyclic dependency here, so set include path
-# for that instead
 $(eval $(call gb_Library_use_packages,dbtools,\
 	connectivity_inc \
 ))
@@ -42,9 +40,7 @@ $(eval $(call gb_Library_set_componentfile,dbtools,connectivity/source/dbtools/d
 
 $(eval $(call gb_Library_set_include,dbtools,\
 	$$(INCLUDE) \
-	-I$(SRCDIR)/connectivity/inc \
 	-I$(SRCDIR)/connectivity/source/inc \
-	-I$(dir $(call gb_YaccTarget_get_target,connectivity/source/parse/sqlbison)) \
 ))
 
 $(eval $(call gb_Library_use_api,dbtools,\
diff --git a/connectivity/Package_inc.mk b/connectivity/Package_inc.mk
index 3325e60..2ce920c 100644
--- a/connectivity/Package_inc.mk
+++ b/connectivity/Package_inc.mk
@@ -27,6 +27,9 @@
 
 $(eval $(call gb_Package_Package,connectivity_inc,$(SRCDIR)/connectivity/inc/connectivity))
 
+# sqlbison.hxx is generated and thus in another package
+$(call gb_Package_get_target,connectivity_inc) : $(call gb_Package_get_target,connectivity_generated)
+
 $(eval $(call gb_Package_add_file,connectivity_inc,inc/connectivity/BlobHelper.hxx,BlobHelper.hxx))
 $(eval $(call gb_Package_add_file,connectivity_inc,inc/connectivity/CommonTools.hxx,CommonTools.hxx))
 $(eval $(call gb_Package_add_file,connectivity_inc,inc/connectivity/conncleanup.hxx,conncleanup.hxx))
diff --git a/solenv/gbuild/LinkTarget.mk b/solenv/gbuild/LinkTarget.mk
index 0ffc3df..ccdfe49 100644
--- a/solenv/gbuild/LinkTarget.mk
+++ b/solenv/gbuild/LinkTarget.mk
@@ -880,7 +880,7 @@ define gb_LinkTarget_add_grammar
 $(call gb_YaccTarget_YaccTarget,$(2))
 $(call gb_LinkTarget_add_generated_exception_object,$(1),YaccTarget/$(2),$(3))
 $(call gb_LinkTarget_get_clean_target,$(1)) : $(call gb_YaccTarget_get_clean_target,$(2))
-$(call gb_LinkTarget__add_internal_headers,$(1),$(call gb_YaccTarget_get_header_target,$(2)))
+$(call gb_LinkTarget_get_headers_target,$(1)) : $(call gb_YaccTarget_get_header_target,$(2))
 $(call gb_LinkTarget__add_include,$(1),$(dir $(call gb_YaccTarget_get_header_target,$(2))))
 
 endef
diff --git a/svx/Library_svx.mk b/svx/Library_svx.mk
index f2bb177..ba8ffa1 100644
--- a/svx/Library_svx.mk
+++ b/svx/Library_svx.mk
@@ -52,7 +52,6 @@ $(eval $(call gb_Library_use_libraries,svx,\
     comphelper \
     cppuhelper \
     cppu \
-    dbtools \
     drawinglayer \
     editeng \
     i18nisolang1 \


More information about the Libreoffice-commits mailing list