Skip to content

Commit

Permalink
339996: java-21-openjdk-21.0.2.0.13-alt2
Browse files Browse the repository at this point in the history
- NMU: worked around FTBFS on LoongArch: disabled LTO until the problem
  is solved properly, see loongson/jdk21u#15
  • Loading branch information
asheplyakov committed Feb 7, 2024
1 parent 3e9b905 commit bfdb29a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion j/java-21-openjdk/java-21-openjdk.spec
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@
# With LTO flags enabled, debuginfo checks fail for some reason. Disable
# LTO for a passing build. This really needs to be looked at.
%define _lto_cflags %{nil}
%ifarch loongarch64
# See https://github.com/loongson/jdk21u/issues/15
%define optflags_lto %nil
%endif

# note: parametrized macros are order-sensitive (unlike not-parametrized) even with normal macros
# also necessary when passing it as parameter to other macros. If not macro, then it is considered a switch
Expand Down Expand Up @@ -348,7 +352,7 @@

Name: java-21-%{origin}
Version: %{newjavaver}.%{buildver}
Release: alt1
Release: alt2
# java-1.5.0-ibm from jpackage.org set Epoch to 1 for unknown reasons
# and this change was brought into RHEL-4. java-1.5.0-ibm packages
# also included the epoch in their virtual provides. This created a
Expand Down Expand Up @@ -1986,6 +1990,10 @@ rm -f %buildroot%_datadir/javadoc/java-zip
%endif

%changelog
* Wed Feb 07 2024 Alexey Sheplyakov <asheplyakov@altlinux.org> 0:21.0.2.0.13-alt2
- NMU: worked around FTBFS on LoongArch: disabled LTO until the problem
is solved properly, see https://github.com/loongson/jdk21u/issues/15

* Mon Feb 05 2024 Andrey Cherepanov <cas@altlinux.org> 0:21.0.2.0.13-alt1
- New version.
- Security fixes:
Expand Down

0 comments on commit bfdb29a

Please sign in to comment.