[Libreoffice-commits] core.git: Makefile.fetch Makefile.in

Michael Stahl mstahl at redhat.com
Tue May 23 08:19:14 UTC 2017


 Makefile.fetch |    2 +-
 Makefile.in    |    2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

New commits:
commit fe3fb5ecd3b66e32cc5aa64a2afffa572353740e
Author: Michael Stahl <mstahl at redhat.com>
Date:   Mon May 22 17:21:51 2017 +0200

    Makefile: try to fix downloading externals for build platform
    
    When cross-compiling, it's possible that an external is only used on
    the build platform and not the host platform.  Attempt to fix this by
    invoking "make fetch" twice; it looks like this should not be
    combined with the exising "build-tools" invocation because that needs to
    be delayed until everything is fetched.
    
    Change-Id: I42626a30359d54dce3c0a5a8ea07045c099cea59
    Reviewed-on: https://gerrit.libreoffice.org/37912
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Michael Stahl <mstahl at redhat.com>

diff --git a/Makefile.fetch b/Makefile.fetch
index 3b0cf56facd6..25c77f5a02cd 100644
--- a/Makefile.fetch
+++ b/Makefile.fetch
@@ -96,7 +96,7 @@ endef
 
 download: $(WORKDIR)/download
 
-$(WORKDIR)/download: $(BUILDDIR)/config_host.mk $(SRCDIR)/download.lst $(SRCDIR)/Makefile.fetch
+$(WORKDIR)/download: $(BUILDDIR)/config_$(gb_Side).mk $(SRCDIR)/download.lst $(SRCDIR)/Makefile.fetch
 	- at mkdir -p $(TARFILE_LOCATION)/tmp
 	@date >> $(fetch_LOGFILE)
 	$(foreach item, \
diff --git a/Makefile.in b/Makefile.in
index 0af8a53373a3..63c404fce3be 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -275,6 +275,8 @@ help showmodules gbuildtojson:
 	$(MAKE) $(PARALLELISM_OPTION) $(GMAKE_OPTIONS) -f $(SRCDIR)/Makefile.gbuild $@
 
 cross-toolset: bootstrap fetch
+	# fetch again in case there are externals only needed on build platform
+	$(MAKE) gb_Side=build $(PARALLELISM_OPTION) $(GMAKE_OPTIONS) -f $(SRCDIR)/Makefile fetch
 	$(MAKE) gb_Side=build $(PARALLELISM_OPTION) $(GMAKE_OPTIONS) -f $(SRCDIR)/Makefile.gbuild build-tools
 
 


More information about the Libreoffice-commits mailing list