From 89db5b5b88508e55bce50240d248dd26053f4e09 Mon Sep 17 00:00:00 2001 From: Robert Antoni Buj i Gelonch Date: Mon, 27 Oct 2014 21:33:11 +0100 Subject: Apache Commons Lang 3.3.1 at least requires Java 1.6 and non debug version MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: If6526a9170f90227fff6b148f24a0dc99ff42941 Reviewed-on: https://gerrit.libreoffice.org/12116 Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- .../apache-commons/ExternalProject_apache_commons_lang.mk | 11 ++++++++--- .../apache-commons/UnpackedTarball_apache_commons_lang.mk | 6 ++++++ external/apache-commons/patches/lang.patch | 11 +++++++++++ 3 files changed, 25 insertions(+), 3 deletions(-) create mode 100644 external/apache-commons/patches/lang.patch (limited to 'external/apache-commons') diff --git a/external/apache-commons/ExternalProject_apache_commons_lang.mk b/external/apache-commons/ExternalProject_apache_commons_lang.mk index aadd73312bfb..c180a8970693 100644 --- a/external/apache-commons/ExternalProject_apache_commons_lang.mk +++ b/external/apache-commons/ExternalProject_apache_commons_lang.mk @@ -22,10 +22,15 @@ $(call gb_ExternalProject_get_state_target,apache_commons_lang,build) : -Dbuild.label="build-$(LIBO_VERSION_MAJOR).$(LIBO_VERSION_MINOR).$(LIBO_VERSION_MICRO).$(LIBO_VERSION_PATCH)" \ $(if $(filter yes,$(JAVACISGCJ))\ ,-Dbuild.compiler=gcj \ - ,-Dant.build.javac.source=$(JAVA_SOURCE_VER) \ - -Dant.build.javac.target=$(JAVA_TARGET_VER) \ + ,$(if $(filter TRUE,$(HAVE_JAVA6)) \ + ,-Dcompile.source=1.6 -Dcompile.target=1.6 \ + ,-Dant.build.javac.source=$(JAVA_SOURCE_VER) -Dant.build.javac.target=$(JAVA_TARGET_VER) \ + ) \ ) \ - $(if $(debug),-Dbuild.debug="on") \ + $(if $(filter TRUE,$(HAVE_JAVA6)) \ + ,$(if $(debug),-Dcompile.debug="true") \ + ,$(if $(debug),-Dbuild.debug="on") \ + ) \ jar \ ) diff --git a/external/apache-commons/UnpackedTarball_apache_commons_lang.mk b/external/apache-commons/UnpackedTarball_apache_commons_lang.mk index 9b9f077b5fea..7d227acbde78 100644 --- a/external/apache-commons/UnpackedTarball_apache_commons_lang.mk +++ b/external/apache-commons/UnpackedTarball_apache_commons_lang.mk @@ -11,4 +11,10 @@ $(eval $(call gb_UnpackedTarball_UnpackedTarball,apache_commons_lang)) $(eval $(call gb_UnpackedTarball_set_tarball,apache_commons_lang,$(APACHE_COMMONS_LANG_TARBALL),,apache-commons)) +$(eval $(call gb_UnpackedTarball_add_patches,apache_commons_lang,\ + $(if $(filter TRUE,$(HAVE_JAVA6)) \ + ,external/apache-commons/patches/lang.patch \ + ) \ +)) + # vim: set noet sw=4 ts=4: diff --git a/external/apache-commons/patches/lang.patch b/external/apache-commons/patches/lang.patch new file mode 100644 index 000000000000..3e5d442659b8 --- /dev/null +++ b/external/apache-commons/patches/lang.patch @@ -0,0 +1,11 @@ +--- misc/commons-lang3-src/default.properties 2014-03-15 13:47:48.000000000 +0100 ++++ misc/build/commons-lang3-src/default.properties 2014-10-30 17:57:53.000000000 +0100 +@@ -60,7 +60,7 @@ + test.home = src/test/java + + # Should Java compilations set the 'debug' compiler option? +-compile.debug = true ++compile.debug = false + + # Should Java compilations set the 'deprecation' compiler option? + compile.deprecation = true -- cgit