[Libreoffice-commits] core.git: instsetoo_native/CustomTarget_setup.mk instsetoo_native/Module_instsetoo_native.mk instsetoo_native/ooenv instsetoo_native/Package_instsetoo_native_ooenv.mk instsetoo_native/Package_setup.mk

Stephan Bergmann sbergman at redhat.com
Wed Nov 26 07:04:09 PST 2014


 instsetoo_native/CustomTarget_setup.mk             |   14 -----------
 instsetoo_native/Module_instsetoo_native.mk        |    1 
 instsetoo_native/Package_instsetoo_native_ooenv.mk |   14 +++++++++++
 instsetoo_native/Package_setup.mk                  |    1 
 instsetoo_native/ooenv                             |   25 +++++++++++++++++++++
 5 files changed, 40 insertions(+), 15 deletions(-)

New commits:
commit 233cccfe31135d77815e4c09374a18238310cc68
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Wed Nov 26 16:03:12 2014 +0100

    Move instdir-only ooenv into its own Package
    
    Change-Id: I399f4c5c6618dd151bd649f07e1b9d661e224324

diff --git a/instsetoo_native/CustomTarget_setup.mk b/instsetoo_native/CustomTarget_setup.mk
index abab2b3..40a8557 100644
--- a/instsetoo_native/CustomTarget_setup.mk
+++ b/instsetoo_native/CustomTarget_setup.mk
@@ -13,7 +13,6 @@ $(eval $(call gb_CustomTarget_register_targets,instsetoo_native/setup,\
 	$(call gb_Helper_get_rcfile,bootstrap) \
 	$(call gb_Helper_get_rcfile,fundamental) \
 	$(call gb_Helper_get_rcfile,louno) \
-	$(if $(ENABLE_OOENV),ooenv) \
 	$(if $(filter TRUE,$(DISABLE_PYTHON)),,$(call gb_Helper_get_rcfile,pythonloader.uno)) \
 	$(if $(filter DESKTOP,$(BUILD_TYPE)),$(if $(filter-out MACOSX,$(OS)), \
 	    $(call gb_Helper_get_rcfile,redirect))) \
@@ -26,7 +25,6 @@ $(eval $(call gb_CustomTarget_register_targets,instsetoo_native/setup,\
 $(call gb_CustomTarget_get_workdir,instsetoo_native/setup)/$(call gb_Helper_get_rcfile,bootstrap) \
 $(call gb_CustomTarget_get_workdir,instsetoo_native/setup)/$(call gb_Helper_get_rcfile,fundamental) \
 $(call gb_CustomTarget_get_workdir,instsetoo_native/setup)/$(call gb_Helper_get_rcfile,louno) \
-$(call gb_CustomTarget_get_workdir,instsetoo_native/setup)/ooenv \
 $(call gb_CustomTarget_get_workdir,instsetoo_native/setup)/$(call gb_Helper_get_rcfile,pythonloader.uno) \
 $(call gb_CustomTarget_get_workdir,instsetoo_native/setup)/$(call gb_Helper_get_rcfile,uno) \
 	: $(SRCDIR)/instsetoo_native/CustomTarget_setup.mk
@@ -89,18 +87,6 @@ $(call gb_CustomTarget_get_workdir,instsetoo_native/setup)/$(call gb_Helper_get_
 		&& echo 'UNO_USER_PACKAGES_CACHE=$$UNO_USER_PACKAGES/cache' \
 	) > $@
 
-$(call gb_CustomTarget_get_workdir,instsetoo_native/setup)/ooenv :
-	$(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),ECH,1)
-	( \
-		echo 'ulimit -c unlimited' && \
-		echo '# debugging assistance' && \
-		echo 'export SAL_DISABLE_FLOATGRAB=1' && \
-		echo 'export G_SLICE=always-malloc' && \
-		echo 'export MALLOC_CHECK_=2' && \
-		echo 'export MALLOC_PERTURB_=153' && \
-		echo 'export OOO_DISABLE_RECOVERY=1' \
-	) > $@
-
 $(call gb_CustomTarget_get_workdir,instsetoo_native/setup)/$(call gb_Helper_get_rcfile,pythonloader.uno) :
 	$(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),ECH,1)
 	( \
diff --git a/instsetoo_native/Module_instsetoo_native.mk b/instsetoo_native/Module_instsetoo_native.mk
index 1566250..cde6859 100644
--- a/instsetoo_native/Module_instsetoo_native.mk
+++ b/instsetoo_native/Module_instsetoo_native.mk
@@ -21,6 +21,7 @@ $(eval $(call gb_Module_add_targets,instsetoo_native,\
 	CustomTarget_setup \
 	Package_setup \
 	Package_setup_ure \
+	$(if $(ENABLE_OOENV),Package_instsetoo_native_ooenv) \
 ))
 
 # vim: set noet sw=4 ts=4:
diff --git a/instsetoo_native/Package_instsetoo_native_ooenv.mk b/instsetoo_native/Package_instsetoo_native_ooenv.mk
new file mode 100644
index 0000000..67c667e
--- /dev/null
+++ b/instsetoo_native/Package_instsetoo_native_ooenv.mk
@@ -0,0 +1,14 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+
+$(eval $(call gb_Package_Package,instsetoo_native_ooenv,$(SRCDIR)/instsetoo_native))
+
+$(eval $(call gb_Package_add_file,instsetoo_native_ooenv,$(LIBO_BIN_FOLDER)/ooenv,ooenv))
+
+# vim: set noet sw=4 ts=4:
diff --git a/instsetoo_native/Package_setup.mk b/instsetoo_native/Package_setup.mk
index 1f41c3d..9bf5789 100644
--- a/instsetoo_native/Package_setup.mk
+++ b/instsetoo_native/Package_setup.mk
@@ -12,7 +12,6 @@ $(eval $(call gb_Package_Package,instsetoo_native_setup,$(call gb_CustomTarget_g
 $(eval $(call gb_Package_add_files,instsetoo_native_setup,$(LIBO_ETC_FOLDER),\
 	$(call gb_Helper_get_rcfile,bootstrap) \
 	$(call gb_Helper_get_rcfile,fundamental) \
-	$(if $(ENABLE_OOENV),ooenv) \
 	$(if $(filter TRUE,$(DISABLE_PYTHON)),,$(call gb_Helper_get_rcfile,pythonloader.uno)) \
 	$(if $(filter DESKTOP,$(BUILD_TYPE)),$(if $(filter-out MACOSX,$(OS)), \
 	    $(call gb_Helper_get_rcfile,redirect))) \
diff --git a/instsetoo_native/ooenv b/instsetoo_native/ooenv
new file mode 100644
index 0000000..d6087a4
--- /dev/null
+++ b/instsetoo_native/ooenv
@@ -0,0 +1,25 @@
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+# This file incorporates work covered by the following license notice:
+#
+#   Licensed to the Apache Software Foundation (ASF) under one or more
+#   contributor license agreements. See the NOTICE file distributed
+#   with this work for additional information regarding copyright
+#   ownership. The ASF licenses this file to you under the Apache
+#   License, Version 2.0 (the "License"); you may not use this file
+#   except in compliance with the License. You may obtain a copy of
+#   the License at http://www.apache.org/licenses/LICENSE-2.0 .
+#
+
+ulimit -c unlimited
+# debugging assistance
+export SAL_DISABLE_FLOATGRAB=1
+export G_SLICE=always-malloc
+export MALLOC_CHECK_=2
+export MALLOC_PERTURB_=153
+export OOO_DISABLE_RECOVERY=1


More information about the Libreoffice-commits mailing list