[Libreoffice-commits] .: android/CustomTarget_docloader.mk android/CustomTarget_sdremote.mk

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Wed Aug 22 04:58:52 PDT 2012


 android/CustomTarget_docloader.mk |   14 ++++++++------
 android/CustomTarget_sdremote.mk  |    8 ++------
 2 files changed, 10 insertions(+), 12 deletions(-)

New commits:
commit b34b7c93bd35e63fedf280e93a714511fdf436b2
Author: Tor Lillqvist <tml at iki.fi>
Date:   Wed Aug 22 14:49:13 2012 +0300

    flock is not portable, so use different approach
    
    Change-Id: I4a864ddd3681101c8c5d0943d2761ac85bf4161f

diff --git a/android/CustomTarget_docloader.mk b/android/CustomTarget_docloader.mk
index d4007e7..326da49 100644
--- a/android/CustomTarget_docloader.mk
+++ b/android/CustomTarget_docloader.mk
@@ -20,13 +20,15 @@ $(call gb_CustomTarget_get_target,android/docloader) : \
 	$(call gb_Module_get_target,sw) \
 	$(call gb_Module_get_target,sc)
 
-$(docloader_DIR)/done : $(gb_Helper_PHONY)
+# We know that CustomTarget_sdremote.mk is included first, so sdremote_DIR is
+# defined.  We want that to be built completely first, so that we can
+# serialize Ant access to abs-lib, which is used both by DocumentLoader and
+# sdremote. We don't want one Ant to be cleaning out abs-lib while another is
+# building stuff that depends on it. Yeah, this sucks
+
+$(docloader_DIR)/done : $(sdremote_DIR)/done
 	$(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),MAK,1)
-# Lock needed to serialize the Ant cleaning/building which cleans/builds also
-# abs-lib both for DocumentLoader and sdremote. We don't want one Ant to be
-# cleaning out abs-lib while another is building stuff that depends on
-# it. yeah, this sucks
-	cd $(SRCDIR)/android/experimental/DocumentLoader && flock $(SRCDIR)/android/lock sh -c "$(MAKE) clean && $(MAKE) all"
+	cd $(SRCDIR)/android/experimental/DocumentLoader && $(MAKE) clean && $(MAKE) all
 	mkdir -p $(SRCDIR)/instsetoo_native/$(INPATH)/bin
 	cp $(SRCDIR)/android/experimental/DocumentLoader/bin/*-debug.apk $(SRCDIR)/instsetoo_native/$(INPATH)/bin
 
diff --git a/android/CustomTarget_sdremote.mk b/android/CustomTarget_sdremote.mk
index e3f08d7..ae05350 100644
--- a/android/CustomTarget_sdremote.mk
+++ b/android/CustomTarget_sdremote.mk
@@ -12,13 +12,9 @@ sdremote_DIR := $(call gb_CustomTarget_get_workdir,android/sdremote)
 
 $(call gb_CustomTarget_get_target,android/sdremote) : $(sdremote_DIR)/done
 
-$(sdremote_DIR)/done : $(gb_Helper_PHONY)
+$(sdremote_DIR)/done :
 	$(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),MAK,1)
-# Lock needed to serialize the Ant cleaning/building which cleans/builds also
-# abs-lib both for DocumentLoader and sdremote. We don't want one Ant to be
-# cleaning out abs-lib while another is building stuff that depends on
-# it. yeah, this sucks
-	cd $(SRCDIR)/android/sdremote && flock $(SRCDIR)/android/lock sh -c "$(MAKE) clean && $(MAKE) all"
+	cd $(SRCDIR)/android/sdremote && $(MAKE) clean && $(MAKE) all
 	mkdir -p $(SRCDIR)/instsetoo_native/$(INPATH)/bin
 	cp $(SRCDIR)/android/sdremote/bin/ImpressRemote-debug.apk $(SRCDIR)/instsetoo_native/$(INPATH)/bin
 


More information about the Libreoffice-commits mailing list