Fridrich Strba 2023-10-25 16:32:24 +00:00 committed by Git OBS Bridge
parent 41e77c1975
commit df457157af
3 changed files with 62 additions and 8 deletions

View File

@ -1,3 +1,12 @@
-------------------------------------------------------------------
Wed Oct 25 16:30:13 UTC 2023 - Fridrich Strba <fstrba@suse.com>
- Modified patch:
* commons-collections-3.2-build_xml.patch
+ In ant Javac task, use "release" with compilers that support
it. Use source/target for others. Fixes some return value
incompatibilities with jdk 21
------------------------------------------------------------------- -------------------------------------------------------------------
Thu May 5 16:22:53 UTC 2022 - Fridrich Strba <fstrba@suse.com> Thu May 5 16:22:53 UTC 2022 - Fridrich Strba <fstrba@suse.com>

View File

@ -1,7 +1,7 @@
# #
# spec file for package apache-commons-collections # spec file for package apache-commons-collections
# #
# Copyright (c) 2022 SUSE LLC # Copyright (c) 2023 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -99,9 +99,8 @@ sed -i 's/\r//' LICENSE.txt PROPOSAL.html README.txt NOTICE.txt
%build %build
echo "junit.jar=$(build-classpath junit)" >>build.properties echo "junit.jar=$(build-classpath junit)" >>build.properties
ant \ ant \
-Dant.build.javac.source=8 -Dant.build.javac.target=8 \ -Dtf.build.docs=build/docs/apidocs/ -Djava.io.tmpdir=. \
-Dant.build.javadoc.source=8 -Dtf.build.docs=build/docs/apidocs/ \ jar javadoc tf.validate tf.jar dist.bin dist.src tf.javadoc
-Djava.io.tmpdir=. jar javadoc tf.validate tf.jar dist.bin dist.src tf.javadoc
%install %install
# jars # jars

View File

@ -1,6 +1,26 @@
--- build.xml.orig 2008-11-29 21:16:01.000000000 +0200 --- build.xml 2023-10-25 18:15:51.721217809 +0200
+++ build.xml 2008-11-29 21:17:28.000000000 +0200 +++ build.xml 2023-10-25 18:26:44.848980199 +0200
@@ -286,7 +286,7 @@ @@ -124,6 +124,9 @@
<mkdir dir="${build.classes}"/>
<javac srcdir="${source.java}"
destdir="${build.classes}"
+ release="8"
+ source="8"
+ target="8"
debug="${compile.debug}"
deprecation="${compile.deprecation}"
optimize="${compile.optimize}">
@@ -267,6 +270,9 @@
<mkdir dir="${build.tests}"/>
<javac srcdir="${source.test}"
destdir="${build.tests}"
+ release="8"
+ source="8"
+ target="8"
debug="true"
deprecation="false"
optimize="false">
@@ -286,7 +292,7 @@
<!-- Runs all tests --> <!-- Runs all tests -->
<target name="-test-all" depends="compile.tests" unless="testcase"> <target name="-test-all" depends="compile.tests" unless="testcase">
<mkdir dir="${build.test.reports}"/> <mkdir dir="${build.test.reports}"/>
@ -9,7 +29,7 @@
<formatter type="brief" /> <formatter type="brief" />
<classpath> <classpath>
<pathelement location="${build.classes}"/> <pathelement location="${build.classes}"/>
@@ -331,7 +331,7 @@ @@ -331,7 +337,7 @@
<target name="testjar" depends="compile.tests,jar" <target name="testjar" depends="compile.tests,jar"
description="Run all unit test cases"> description="Run all unit test cases">
<echo message="Running collections tests against built jar ..."/> <echo message="Running collections tests against built jar ..."/>
@ -18,3 +38,29 @@
<classpath> <classpath>
<pathelement location="${build.jar.name}"/> <pathelement location="${build.jar.name}"/>
<pathelement location="${build.tests}"/> <pathelement location="${build.tests}"/>
@@ -355,6 +361,7 @@
<delete dir="${build.docs}"/>
<mkdir dir="${build.docs}"/>
<javadoc sourcepath="${source.java}"
+ source="8"
destdir="${build.docs}"
packagenames="${component.package}.*"
access="${javadoc.access}"
@@ -412,6 +419,9 @@
<javac srcdir="${source.test}"
destdir="${tf.build.tf}"
debug="true"
+ release="8"
+ source="8"
+ target="8"
deprecation="false"
optimize="false">
<patternset refid="tf.patternset.validate" />
@@ -453,6 +463,7 @@
<delete dir="${tf.build.docs}"/>
<mkdir dir="${tf.build.docs}"/>
<javadoc destdir="${tf.build.docs}"
+ source="8"
access="protected"
author="false"
version="false"