From 9ee01c424e37f7cd76d2edf38e9bc5f6e988d18d Mon Sep 17 00:00:00 2001 From: Thorsten Behrens Date: Sun, 4 Sep 2016 06:00:55 +0200 Subject: [PATCH] gbuild: remove hardlink deliver Since there's hardly any 'deliver' going on anymore... Change-Id: Id349958d299c9742382d37deab2125bc09930c14 Reviewed-on: https://gerrit.libreoffice.org/28655 Tested-by: Jenkins Reviewed-by: David Tardon --- config_host.mk.in | 1 - configure.ac | 19 ------------------- solenv/gbuild/Deliver.mk | 14 +------------- solenv/gbuild/gbuild.mk | 4 ---- 4 files changed, 1 insertion(+), 37 deletions(-) diff --git a/config_host.mk.in b/config_host.mk.in index 6094c7ccf08f..e0a60783f068 100644 --- a/config_host.mk.in +++ b/config_host.mk.in @@ -242,7 +242,6 @@ export GTK_PRINT_CFLAGS=$(gb_SPACE)@GTK_PRINT_CFLAGS@ export GTK_PRINT_LIBS=$(gb_SPACE)@GTK_PRINT_LIBS@ export USING_X11=@USING_X11@ export HAMCREST_JAR=@HAMCREST_JAR@ -export HARDLINKDELIVER=@HARDLINKDELIVER@ export HAVE_GCC_AVX=@HAVE_GCC_AVX@ export HAVE_GCC_STACK_PROTECTOR_STRONG=@HAVE_GCC_STACK_PROTECTOR_STRONG@ export HAVE_GCC_BUILTIN_ATOMIC=@HAVE_GCC_BUILTIN_ATOMIC@ diff --git a/configure.ac b/configure.ac index 6b2808354e14..66150d269dd3 100644 --- a/configure.ac +++ b/configure.ac @@ -1029,12 +1029,6 @@ AC_ARG_ENABLE(pdfimport, dnl ---------- *** ---------- -AC_ARG_ENABLE([hardlink-deliver], - AS_HELP_STRING([--enable-hardlink-deliver], - [Put files into deliver folder as hardlinks instead of copying them - over. Saves space and speeds up build.]) -) - AC_ARG_ENABLE(mergelibs, AS_HELP_STRING([--enable-mergelibs], [Enables linking of big, merged, library. Experimental feature, tested @@ -12809,19 +12803,6 @@ else fi AC_SUBST([MERGELIBS]) -# =================================================================== -# Create hardlinks on deliver instead of copying for smaller size and speed up -# =================================================================== -AC_MSG_CHECKING([whether to create hardlinks for delivering files]) -HARDLINKDELIVER= -if test "$enable_hardlink_deliver" = "yes"; then - HARDLINKDELIVER="TRUE" - AC_MSG_RESULT([yes]) -else - AC_MSG_RESULT([no]) -fi -AC_SUBST(HARDLINKDELIVER) - dnl =================================================================== dnl icerun is a wrapper that stops us spawning tens of processes dnl locally - for tools that can't be executed on the compile cluster diff --git a/solenv/gbuild/Deliver.mk b/solenv/gbuild/Deliver.mk index ca609d9f771e..a3e85f30cb34 100644 --- a/solenv/gbuild/Deliver.mk +++ b/solenv/gbuild/Deliver.mk @@ -19,16 +19,6 @@ gb_Deliver_GNUCOPY := $(GNUCOPY) -# if ($true) then old files will get removed from the target location before -# they are copied there. In multi-user environments, if this is needed you need -# to be the owner of the target file to be able to modify timestamps -ifeq ($(strip gb_Deliver_HARDLINK),) -gb_Deliver_CLEARONDELIVER := $(false) -else -gb_Deliver_CLEARONDELIVER := $(true) -endif - - define gb_Deliver_init gb_Deliver_DELIVERABLES := gb_Deliver_DELIVERABLES_INDEX := @@ -51,16 +41,14 @@ endif endef define gb_Deliver__deliver -$(if $(gb_Deliver_CLEARONDELIVER),rm -f $(2) &&) $(if $(gb_Deliver_HARDLINK),ln,cp -P -f) $(1) $(2) && $(TOUCH) -hr $(1) $(2) +$(if $(gb_Deliver_CLEARONDELIVER),rm -f $(2) &&) cp -P -f $(1) $(2) && $(TOUCH) -hr $(1) $(2) endef ifneq ($(strip $(gb_Deliver_GNUCOPY)),) -ifeq ($(strip $(gb_Deliver_HARDLINK)),) define gb_Deliver__deliver $(gb_Deliver_GNUCOPY) $(if $(gb_Deliver_CLEARONDELIVER),--remove-destination) --no-dereference --force --preserve=timestamps $(1) $(2) endef endif -endif define gb_Deliver_deliver $(if $(1),$(call gb_Deliver__deliver,$(1),$(2)),\ diff --git a/solenv/gbuild/gbuild.mk b/solenv/gbuild/gbuild.mk index c6237709b367..f98ce8185899 100644 --- a/solenv/gbuild/gbuild.mk +++ b/solenv/gbuild/gbuild.mk @@ -114,10 +114,6 @@ ENABLE_DEBUGINFO_FOR := all endif endif -ifeq ($(HARDLINKDELIVER),TRUE) -gb_Deliver_HARDLINK := $(true) -endif - # note: ENABLE_CRASHDUMP turns on gb_SYMBOL ifneq ($(strip $(ENABLE_SYMBOLS)$(enable_symbols)$(ENABLE_CRASHDUMP)),) gb_SYMBOL := $(true)