Skip to content

Commit 8f9b247

Browse files
anphel31PawelWMS
andauthored
[2.0] javapackages-bootstrap build reliability (#13817)
Co-authored-by: Pawel Winogrodzki <[email protected]>
1 parent 63168ed commit 8f9b247

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

SPECS/javapackages-bootstrap/javapackages-bootstrap.spec

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
Name: javapackages-bootstrap
1515
Version: 1.5.0
16-
Release: 6%{?dist}
16+
Release: 7%{?dist}
1717
Summary: A means of bootstrapping Java Packages Tools
1818
# For detailed info see the file javapackages-bootstrap-PACKAGE-LICENSING
1919
License: ASL 2.0 and ASL 1.1 and (ASL 2.0 or EPL-2.0) and (EPL-2.0 or GPLv2 with exceptions) and MIT and (BSD with advertising) and BSD-3-Clause and EPL-1.0 and EPL-2.0 and CDDL-1.0 and xpp and CC0 and Public Domain
@@ -345,7 +345,11 @@ sed -i "/<excludeSourceMatching>/a\ \t<excludeSourceMatching>/org/apache/common
345345
%build
346346
export LC_ALL=en_US.UTF-8
347347
export JAVA_HOME=$(find /usr/lib/jvm -name "*openjdk*")
348-
./mbi.sh build -parallel
348+
# Since the build is known to randomly fail with a dependency cycle error, detect failure and retry the build.
349+
if ! ./mbi.sh build -incremental; then
350+
echo "First build attempt failed. Re-trying."
351+
./mbi.sh build -incremental
352+
fi
349353

350354
%install
351355
export JAVA_HOME=$(find /usr/lib/jvm -name "*openjdk*")
@@ -389,6 +393,9 @@ sed -i 's|/usr/lib/jvm/java-11-openjdk|%{java_home}|' %{buildroot}%{launchersPat
389393
%doc AUTHORS
390394

391395
%changelog
396+
* Thu May 15 2025 Andrew Phelps <[email protected]> - 1.5.0-7
397+
- Attempt incremental build twice to avoid random Dependency cycle errors
398+
392399
* Wed Feb 26 2025 Kshitiz Godara <[email protected]> - 1.5.0-6
393400
- Patch CVE-2021-36373 and CVE-2021-36374.
394401

0 commit comments

Comments
 (0)