add MSYS_NO_PATHCONV=1 to prevent MSYS auto-magic
git-bash/MSYS tries to resolve anything that looks like a path (i.e. anything starting with a /) - if the "target" doesn't exists, it just prepends the MSYS installation dir and breaks all kind of stuff. You could escape those with double-slash at the beginning, but that would mean lots of noise/unnecessary changes in pretty much every makefile, so just getting rid of that behavior is much better. ant and some externals however rely on MSYS path-conversion, so unset MSYS_NO_PATHCONV for those. Ant does its own checks whether it runs under cygwin or msys, and easier to please externals using the autoconversion than to add patches to force them into compliance… Change-Id: Ie80964e40c53ace80adb4707aae0db63ebc4ee4c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166330 Tested-by: Jenkins Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
This commit is contained in:
parent
0d822662ed
commit
3c54cb2a9d
23 changed files with 26 additions and 22 deletions
|
@ -789,3 +789,7 @@ include $(BUILDDIR)/config_$(gb_Side)_lang.mk
|
|||
# tarball names
|
||||
# does use some of the variables defined above
|
||||
include @SRC_ROOT@/download.lst
|
||||
|
||||
# prep for WSL-as-helper-builds where build runs from within git-bash/MSYS that would otherwise
|
||||
# messes with anything that looks like a path (starts with /) but it cannot resolve
|
||||
export MSYS_NO_PATHCONV=1
|
|
@ -16,7 +16,7 @@ $(eval $(call gb_ExternalProject_register_targets,beanshell,\
|
|||
$(call gb_ExternalProject_get_state_target,beanshell,build) :
|
||||
$(call gb_Trace_StartRange,beanshell,EXTERNAL)
|
||||
$(call gb_ExternalProject_run,build,\
|
||||
JAVA_HOME=$(JAVA_HOME_FOR_BUILD) \
|
||||
unset MSYS_NO_PATHCONV && JAVA_HOME=$(JAVA_HOME_FOR_BUILD) \
|
||||
$(ICECREAM_RUN) "$(ANT)" \
|
||||
$(if $(verbose),-v,-q) \
|
||||
-f build.xml \
|
||||
|
|
2
external/hsqldb/ExternalProject_hsqldb.mk
vendored
2
external/hsqldb/ExternalProject_hsqldb.mk
vendored
|
@ -21,7 +21,7 @@ $(eval $(call gb_ExternalProject_register_targets,hsqldb,\
|
|||
$(call gb_ExternalProject_get_state_target,hsqldb,build) :
|
||||
$(call gb_Trace_StartRange,hsqldb,EXTERNAL)
|
||||
$(call gb_ExternalProject_run,build,\
|
||||
JAVA_HOME=$(JAVA_HOME_FOR_BUILD) \
|
||||
unset MSYS_NO_PATHCONV && JAVA_HOME=$(JAVA_HOME_FOR_BUILD) \
|
||||
$(if $(JDK_SECURITYMANAGER_DISALLOWED_FOR_BUILD), \
|
||||
ANT_OPTS="$$ANT_OPTS -Djava.security.manager=allow") \
|
||||
$(ICECREAM_RUN) "$(ANT)" \
|
||||
|
|
|
@ -16,7 +16,7 @@ $(eval $(call gb_ExternalProject_register_targets,java_websocket,\
|
|||
$(call gb_ExternalProject_get_state_target,java_websocket,build) :
|
||||
$(call gb_Trace_StartRange,java_websocket,EXTERNAL)
|
||||
$(call gb_ExternalProject_run,build,\
|
||||
JAVA_HOME=$(JAVA_HOME_FOR_BUILD) \
|
||||
unset MSYS_NO_PATHCONV && JAVA_HOME=$(JAVA_HOME_FOR_BUILD) \
|
||||
$(ICECREAM_RUN) "$(ANT)" \
|
||||
$(if $(verbose),-v,-q) \
|
||||
-f build.xml \
|
||||
|
|
|
@ -20,7 +20,7 @@ $(eval $(call gb_ExternalProject_register_targets,jfreereport_flow_engine,\
|
|||
$(call gb_ExternalProject_get_state_target,jfreereport_flow_engine,build) :
|
||||
$(call gb_Trace_StartRange,jfreereport_flow_engine,EXTERNAL)
|
||||
$(call gb_ExternalProject_run,build,\
|
||||
JAVA_HOME=$(JAVA_HOME_FOR_BUILD) \
|
||||
unset MSYS_NO_PATHCONV && JAVA_HOME=$(JAVA_HOME_FOR_BUILD) \
|
||||
$(ICECREAM_RUN) "$(ANT)" \
|
||||
$(if $(verbose),-v,-q) \
|
||||
-f build.xml \
|
||||
|
|
|
@ -19,7 +19,7 @@ $(eval $(call gb_ExternalProject_register_targets,jfreereport_flute,\
|
|||
$(call gb_ExternalProject_get_state_target,jfreereport_flute,build) :
|
||||
$(call gb_Trace_StartRange,jfreereport_flute,EXTERNAL)
|
||||
$(call gb_ExternalProject_run,build,\
|
||||
JAVA_HOME=$(JAVA_HOME_FOR_BUILD) \
|
||||
unset MSYS_NO_PATHCONV && JAVA_HOME=$(JAVA_HOME_FOR_BUILD) \
|
||||
$(ICECREAM_RUN) "$(ANT)" \
|
||||
$(if $(verbose),-v,-q) \
|
||||
-f build.xml \
|
||||
|
|
|
@ -19,7 +19,7 @@ $(eval $(call gb_ExternalProject_register_targets,jfreereport_libbase,\
|
|||
$(call gb_ExternalProject_get_state_target,jfreereport_libbase,build) :
|
||||
$(call gb_Trace_StartRange,jfreereport_libbase,EXTERNAL)
|
||||
$(call gb_ExternalProject_run,build,\
|
||||
JAVA_HOME=$(JAVA_HOME_FOR_BUILD) \
|
||||
unset MSYS_NO_PATHCONV && JAVA_HOME=$(JAVA_HOME_FOR_BUILD) \
|
||||
$(ICECREAM_RUN) "$(ANT)" \
|
||||
$(if $(verbose),-v,-q) \
|
||||
-f build.xml \
|
||||
|
|
|
@ -19,7 +19,7 @@ $(eval $(call gb_ExternalProject_register_targets,jfreereport_libfonts,\
|
|||
$(call gb_ExternalProject_get_state_target,jfreereport_libfonts,build) :
|
||||
$(call gb_Trace_StartRange,jfreereport_libfonts,EXTERNAL)
|
||||
$(call gb_ExternalProject_run,build,\
|
||||
JAVA_HOME=$(JAVA_HOME_FOR_BUILD) \
|
||||
unset MSYS_NO_PATHCONV && JAVA_HOME=$(JAVA_HOME_FOR_BUILD) \
|
||||
$(ICECREAM_RUN) "$(ANT)" \
|
||||
$(if $(verbose),-v,-q) \
|
||||
-f build.xml \
|
||||
|
|
|
@ -19,7 +19,7 @@ $(eval $(call gb_ExternalProject_register_targets,jfreereport_libformula,\
|
|||
$(call gb_ExternalProject_get_state_target,jfreereport_libformula,build) :
|
||||
$(call gb_Trace_StartRange,jfreereport_libformula,EXTERNAL)
|
||||
$(call gb_ExternalProject_run,build,\
|
||||
JAVA_HOME=$(JAVA_HOME_FOR_BUILD) \
|
||||
unset MSYS_NO_PATHCONV && JAVA_HOME=$(JAVA_HOME_FOR_BUILD) \
|
||||
$(ICECREAM_RUN) "$(ANT)" \
|
||||
$(if $(verbose),-v,-q) \
|
||||
-f build.xml \
|
||||
|
|
|
@ -28,7 +28,7 @@ $(eval $(call gb_ExternalProject_register_targets,jfreereport_liblayout,\
|
|||
$(call gb_ExternalProject_get_state_target,jfreereport_liblayout,build) :
|
||||
$(call gb_Trace_StartRange,jfreereport_liblayout,EXTERNAL)
|
||||
$(call gb_ExternalProject_run,build,\
|
||||
JAVA_HOME=$(JAVA_HOME_FOR_BUILD) \
|
||||
unset MSYS_NO_PATHCONV && JAVA_HOME=$(JAVA_HOME_FOR_BUILD) \
|
||||
$(ICECREAM_RUN) "$(ANT)" \
|
||||
$(if $(verbose),-v,-q) \
|
||||
-f build.xml \
|
||||
|
|
|
@ -19,7 +19,7 @@ $(eval $(call gb_ExternalProject_register_targets,jfreereport_libloader,\
|
|||
$(call gb_ExternalProject_get_state_target,jfreereport_libloader,build) :
|
||||
$(call gb_Trace_StartRange,jfreereport_libloader,EXTERNAL)
|
||||
$(call gb_ExternalProject_run,build,\
|
||||
JAVA_HOME=$(JAVA_HOME_FOR_BUILD) \
|
||||
unset MSYS_NO_PATHCONV && JAVA_HOME=$(JAVA_HOME_FOR_BUILD) \
|
||||
$(ICECREAM_RUN) "$(ANT)" \
|
||||
$(if $(verbose),-v,-q) \
|
||||
-f build.xml \
|
||||
|
|
|
@ -19,7 +19,7 @@ $(eval $(call gb_ExternalProject_register_targets,jfreereport_librepository,\
|
|||
$(call gb_ExternalProject_get_state_target,jfreereport_librepository,build) :
|
||||
$(call gb_Trace_StartRange,jfreereport_librepository,EXTERNAL)
|
||||
$(call gb_ExternalProject_run,build,\
|
||||
JAVA_HOME=$(JAVA_HOME_FOR_BUILD) \
|
||||
unset MSYS_NO_PATHCONV && JAVA_HOME=$(JAVA_HOME_FOR_BUILD) \
|
||||
$(ICECREAM_RUN) "$(ANT)" \
|
||||
$(if $(verbose),-v,-q) \
|
||||
-f build.xml \
|
||||
|
|
|
@ -19,7 +19,7 @@ $(eval $(call gb_ExternalProject_register_targets,jfreereport_libserializer,\
|
|||
$(call gb_ExternalProject_get_state_target,jfreereport_libserializer,build) :
|
||||
$(call gb_Trace_StartRange,jfreereport_libserializer,EXTERNAL)
|
||||
$(call gb_ExternalProject_run,build,\
|
||||
JAVA_HOME=$(JAVA_HOME_FOR_BUILD) \
|
||||
unset MSYS_NO_PATHCONV && JAVA_HOME=$(JAVA_HOME_FOR_BUILD) \
|
||||
$(ICECREAM_RUN) "$(ANT)" \
|
||||
$(if $(verbose),-v,-q) \
|
||||
-f build.xml \
|
||||
|
|
|
@ -19,7 +19,7 @@ $(eval $(call gb_ExternalProject_register_targets,jfreereport_libxml,\
|
|||
$(call gb_ExternalProject_get_state_target,jfreereport_libxml,build) :
|
||||
$(call gb_Trace_StartRange,jfreereport_libxml,EXTERNAL)
|
||||
$(call gb_ExternalProject_run,build,\
|
||||
JAVA_HOME=$(JAVA_HOME_FOR_BUILD) \
|
||||
unset MSYS_NO_PATHCONV && JAVA_HOME=$(JAVA_HOME_FOR_BUILD) \
|
||||
$(ICECREAM_RUN) "$(ANT)" \
|
||||
$(if $(verbose),-v,-q) \
|
||||
-f build.xml \
|
||||
|
|
|
@ -16,7 +16,7 @@ $(eval $(call gb_ExternalProject_register_targets,jfreereport_sac,\
|
|||
$(call gb_ExternalProject_get_state_target,jfreereport_sac,build) :
|
||||
$(call gb_Trace_StartRange,jfreereport_sac,EXTERNAL)
|
||||
$(call gb_ExternalProject_run,build,\
|
||||
JAVA_HOME=$(JAVA_HOME_FOR_BUILD) \
|
||||
unset MSYS_NO_PATHCONV && JAVA_HOME=$(JAVA_HOME_FOR_BUILD) \
|
||||
$(ICECREAM_RUN) "$(ANT)" \
|
||||
$(if $(verbose),-v,-q) \
|
||||
-f build.xml \
|
||||
|
|
2
external/libcdr/ExternalProject_libcdr.mk
vendored
2
external/libcdr/ExternalProject_libcdr.mk
vendored
|
@ -27,7 +27,7 @@ $(call gb_ExternalProject_get_state_target,libcdr,build) :
|
|||
$(call gb_Trace_StartRange,libcdr,EXTERNAL)
|
||||
$(call gb_ExternalProject_run,build,\
|
||||
export PKG_CONFIG="" \
|
||||
&& MAKE=$(MAKE) $(gb_RUN_CONFIGURE) ./configure \
|
||||
&& unset MSYS_NO_PATHCONV && MAKE=$(MAKE) $(gb_RUN_CONFIGURE) ./configure \
|
||||
--with-pic \
|
||||
--enable-static \
|
||||
--disable-shared \
|
||||
|
|
|
@ -28,7 +28,7 @@ $(call gb_ExternalProject_get_state_target,libebook,build) :
|
|||
$(call gb_Trace_StartRange,libebook,EXTERNAL)
|
||||
$(call gb_ExternalProject_run,build,\
|
||||
export PKG_CONFIG="" \
|
||||
&& MAKE=$(MAKE) $(gb_RUN_CONFIGURE) ./configure \
|
||||
&& unset MSYS_NO_PATHCONV && MAKE=$(MAKE) $(gb_RUN_CONFIGURE) ./configure \
|
||||
--with-pic \
|
||||
--enable-static \
|
||||
--disable-shared \
|
||||
|
|
|
@ -24,7 +24,7 @@ $(call gb_ExternalProject_get_state_target,libepubgen,build) :
|
|||
$(call gb_Trace_StartRange,libepubgen,EXTERNAL)
|
||||
$(call gb_ExternalProject_run,build,\
|
||||
export PKG_CONFIG="" \
|
||||
&& MAKE=$(MAKE) $(gb_RUN_CONFIGURE) ./configure \
|
||||
&& unset MSYS_NO_PATHCONV && MAKE=$(MAKE) $(gb_RUN_CONFIGURE) ./configure \
|
||||
--with-pic \
|
||||
--enable-static \
|
||||
--disable-shared \
|
||||
|
|
|
@ -27,7 +27,7 @@ $(call gb_ExternalProject_get_state_target,libfreehand,build) :
|
|||
$(call gb_Trace_StartRange,libfreehand,EXTERNAL)
|
||||
$(call gb_ExternalProject_run,build,\
|
||||
export PKG_CONFIG="" \
|
||||
&& MAKE=$(MAKE) $(gb_RUN_CONFIGURE) ./configure \
|
||||
&& unset MSYS_NO_PATHCONV && MAKE=$(MAKE) $(gb_RUN_CONFIGURE) ./configure \
|
||||
--with-pic \
|
||||
--enable-static \
|
||||
--disable-shared \
|
||||
|
|
|
@ -20,7 +20,7 @@ $(eval $(call gb_ExternalProject_register_targets,liblangtag,\
|
|||
$(call gb_ExternalProject_get_state_target,liblangtag,build):
|
||||
$(call gb_Trace_StartRange,liblangtag,EXTERNAL)
|
||||
$(call gb_ExternalProject_run,build,\
|
||||
MAKE=$(MAKE) $(gb_RUN_CONFIGURE) ./configure --disable-modules --disable-test --disable-introspection --with-pic \
|
||||
unset MSYS_NO_PATHCONV && MAKE=$(MAKE) $(gb_RUN_CONFIGURE) ./configure --disable-modules --disable-test --disable-introspection --with-pic \
|
||||
$(if $(or $(DISABLE_DYNLOADING),$(filter MSC,$(COM))), \
|
||||
--disable-shared --enable-static, \
|
||||
--enable-shared --disable-static) \
|
||||
|
|
2
external/libqxp/ExternalProject_libqxp.mk
vendored
2
external/libqxp/ExternalProject_libqxp.mk
vendored
|
@ -25,7 +25,7 @@ $(call gb_ExternalProject_get_state_target,libqxp,build) :
|
|||
$(call gb_Trace_StartRange,libqxp,EXTERNAL)
|
||||
$(call gb_ExternalProject_run,build,\
|
||||
export PKG_CONFIG="" \
|
||||
&& MAKE=$(MAKE) $(gb_RUN_CONFIGURE) ./configure \
|
||||
&& unset MSYS_NO_PATHCONV && MAKE=$(MAKE) $(gb_RUN_CONFIGURE) ./configure \
|
||||
--with-pic \
|
||||
--enable-static \
|
||||
--disable-shared \
|
||||
|
|
|
@ -26,7 +26,7 @@ $(call gb_ExternalProject_get_state_target,libvisio,build) :
|
|||
$(call gb_Trace_StartRange,libvisio,EXTERNAL)
|
||||
$(call gb_ExternalProject_run,build,\
|
||||
export PKG_CONFIG="" \
|
||||
&& MAKE=$(MAKE) $(gb_RUN_CONFIGURE) ./configure \
|
||||
&& unset MSYS_NO_PATHCONV && MAKE=$(MAKE) $(gb_RUN_CONFIGURE) ./configure \
|
||||
--with-pic \
|
||||
--enable-static \
|
||||
--disable-shared \
|
||||
|
|
2
external/libzmf/ExternalProject_libzmf.mk
vendored
2
external/libzmf/ExternalProject_libzmf.mk
vendored
|
@ -27,7 +27,7 @@ $(call gb_ExternalProject_get_state_target,libzmf,build) :
|
|||
$(call gb_Trace_StartRange,libzmf,EXTERNAL)
|
||||
$(call gb_ExternalProject_run,build,\
|
||||
export PKG_CONFIG="" \
|
||||
&& MAKE=$(MAKE) $(gb_RUN_CONFIGURE) ./configure \
|
||||
&& unset MSYS_NO_PATHCONV && MAKE=$(MAKE) $(gb_RUN_CONFIGURE) ./configure \
|
||||
--with-pic \
|
||||
--enable-static \
|
||||
--disable-shared \
|
||||
|
|
Loading…
Reference in a new issue