Commit Graph

656 Commits

Author SHA1 Message Date
FeRD (Frank Dana)
53085a2a7f Add additional javadoc & javadoczip alternatives
Create additional alternatives linked from the javadocdir, named:
  * java-%{origin} / java-%{origin}.zip
  * java-%{javaver} / java-%{javaver}.zip
  * java-%{javaver}-%{origin} / java-%{javaver}-%{origin}.zip
2022-07-15 15:07:35 +02:00
Stephan Bergmann
4bb380bddf Disable copy-jdk-configs and bootstrapping for Flatpak builds
There does not appear to be any value in having copy-jdk-config in Flatpak
builds (where a given Flatpak bundles one specific JDK, so no need for a
"Utility script to transfer JDKs configuration files between updates or for
archiving.")

And at least when trying to do a LibreOffice Flatpak build from Fedora 34 RPM
specs (which includes java-11-openjdk among its components), the #!/usr/bin/lua
shebang in copy_jdk_configs.lua would have caused a requirement on
/usr/bin/lua, but which a lua RPM bundled in the Flatpak would not provide (as
it would provide /app/bin/lua instead).  And the easiest way to work around that
issue is to just disable the unnecessary copy-jdk-configs.

...after "Temporarily move x86 to use Zero in order to get a working build":

When building the

>       if ${run_bootstrap} ; then

branch for suffix='' and loop='-main', the second

>           buildjdk ${builddir} $(pwd)/${bootinstalldir}/images/%{jdkimage} "${maketargets}" ${debugbuild} ${link_opt}

uses the JDK (`$(pwd)/${bootinstalldir}/images/%{jdkimage}`) from the installjdk
on the previous line.  But installjdk does

> 	rm ${imagepath}/lib/tzdb.dat
> 	ln -s %{_datadir}/javazi-1.8/tzdb.dat ${imagepath}/lib/tzdb.dat

which made that JDK's tzdb.dat link to /app/share/javazi-1.8/tzdb.dat in a
flatpak build (rather than the usual /usr/share/javazi-1.8/tzdb.dat in a non-
flatpak build) which is not present at build-time (but will be present at
runtime in at least the LibreOffice flatpak, which bundles tzdata-java built for
the flatpak /app prefix).  So using that JDK's compiler during the build kept
failing due to java.io.FileNotFoundException for its lib/tzdb.dat.

(This was not an issue prior to the recent change, as installjdk's
modification of lib/tzdb.dat used to be done only for the "Final setup
on the main image" at the very end of the build, not during the build
for JDKs that are themselves used later during the build.)

The easiest workaround for this issue appears to be to just not bootstrap_build
in the flatpak case, avoiding the situation that a JDK whose lib/tzdb.dat has
been modified through installjdk is used during the build.
2022-07-01 02:25:39 +01:00
Francisco Ferrari Bihurriet
2d53004059 RH2007331: SecretKey generate/import operations don't add the CKA_SIGN attribute in FIPS mode
Use SunPKCS11 Attributes Configuration to set CKA_SIGN=true on SecretKey generate/import operations in FIPS mode, see:
https://docs.oracle.com/javase/8/docs/technotes/guides/security/p11guide.html#ATTRS
2022-06-30 15:17:23 -03:00
Andrew Hughes
100440c51e Update to shenandoah-jdk8u332-b09 (GA)
Update release notes for 8u332-b09.
Switch to GA mode for final release.
2022-04-20 20:38:54 +01:00
Andrew Hughes
019748fe88 Update to shenandoah-jdk8u332-b06 (EA)
Update release notes for shenandoah-8u332-b06.
2022-04-19 00:39:55 +01:00
Andrew Hughes
cb59f552f4 Update to shenandoah-jdk8u332-b01 (EA)
Update release notes for 8u332-b01.
Switch to EA mode.
2022-04-18 01:19:19 +01:00
Andrew Hughes
7e5331a512 Reinstate JIT builds on x86_32.
Add JDK-8282231 to fix missing CALL effects on x86_32.
2022-03-30 17:36:09 +01:00
Jiri
edb63206cd Storing and restoring alterntives during update manually
Fixing:
Bug 2001567 - update of JDK/JRE is removing its manually selected alterantives and select (as auto) system JDK/JRE

The move of alternatives creation to posttrans to fix:
Bug 1200302 - dnf reinstall breaks alternatives
Had caused the alternatives to be removed, and then created again,
instead of being added, and then removing the old, and thus persisting
the selection in family

Thus this fix, is storing the family of manually selected master, and if
stored, then it is restoring the family of the master
2022-02-27 12:11:03 +01:00
Jiri
0da973f5a7 family extracted to globals 2022-02-27 12:05:26 +01:00
Jiri
e88c69368c Providing proper provides for javadoc-zip subpk
Before this patch, the java-17-openjdk-javadoc-zip was not existing, and
instead of that, javadoc was provided by both
Factm, that both subpkgs should provide javadoc, should be kept
2022-02-27 12:02:51 +01:00
Andrew Hughes
f2e995182a Separate crypto policy initialisation from FIPS initialisation, now they are no longer interdependent 2022-02-23 17:22:05 +00:00
Andrew Hughes
6d412ee58b Fix FIPS issues in native code and with initialisation of java.security.Security 2022-02-16 02:36:10 +00:00
Andrew Hughes
050fecd883 Update to aarch64-shenandoah-jdk8u322-b06 (EA)
Update release notes for 8u322-b06.
Switch to GA mode for final release.
2022-02-16 00:05:22 +00:00
Andrew Hughes
c867f608e3 Update to aarch64-shenandoah-jdk8u322-b05 (EA)
Update release notes for 8u322-b05.
Require tzdata 2021e as of JDK-8275766.
Update tarball generation script to use git following shenandoah-jdk8u's move to github
2022-02-15 16:45:42 +00:00
Andrew Hughes
d3b17054c2 Re-enable gdb backtrace check. 2022-02-08 15:48:38 +00:00
Andrew Hughes
2988ce90ff Temporarily move x86 to use Zero in order to get a working build
Introduce architecture restriction logic for the gdb test.
Disable on x86, x86_64, ppc64le & s390x while these are broken in rawhide.
Replace GCC 11 patch to remove use of the register keyword with correct fix to ADLC build (JDK-8281098)
Adjust JDK8199936/PR3533 -mstackrealign patch to instead pass -mincoming-stack-boundary=2 -mpreferred-stack-boundary=4
Refactor build functions so we can build just HotSpot without any attempt at installation.
Explicitly list JIT architectures rather than relying on those with slowdebug builds
Disable the serviceability agent on Zero architectures even when the architecture itself is supported
Add backport of JDK-8257794 to fix bogus assert on slowdebug x86-32 Zero builds

Resolves: rhbz#2045726
Related: rhbz#2051302
Related: rhbz#2041970
2022-02-07 00:49:08 +00:00
Fedora Release Engineering
92c5ccf84c - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-01-20 13:39:33 +00:00
Andrew Hughes
e3e7a2f6b3 Update to aarch64-shenandoah-jdk8u322-b04 (EA)
Update release notes for 8u322-b04.
Require tzdata 2021c as of JDK-8274407.
2022-01-10 16:31:32 +00:00
Andrew Hughes
172b64584a Update to aarch64-shenandoah-jdk8u322-b03 (EA)
Update release notes for 8u322-b03.
2022-01-07 15:27:20 +00:00
Andrew Hughes
a0ac8516d6 Update to aarch64-shenandoah-jdk8u322-b02 (EA)
Update release notes for 8u322-b02.
2021-12-17 03:19:15 +00:00
Andrew Hughes
be50f32572 Update to aarch64-shenandoah-jdk8u322-b01 (EA)
Update release notes for 8u322-b01.
Switch to EA mode.
2021-12-14 02:24:08 +00:00
Andrew Hughes
0478a68d40 Turn off bootstrapping for slow debug builds, which are particularly slow on ppc64le. 2021-12-06 00:42:17 +00:00
Severin Gehwolf
b1a7d3ba42 Use 'sql:' prefix in nss.fips.cfg
Fedora 35 and better no longer ship the legacy
secmod.db file as part of the nss package. Explicitly
tell OpenJDK to use sqlite-based sec mode.

Resolves: RHBZ#2019555
2021-11-05 18:31:57 +01:00
Andrew Hughes
06afebf801 Update to aarch64-shenandoah-jdk8u312-b07 (GA)
Update release notes for 8u312-b07.
Switch to GA mode for final release.
2021-10-20 01:46:06 +01:00
Andrew Hughes
38ede77603 Add FIPS patch to allow plain key import.
Allow plain key import to be disabled with -Dcom.redhat.fips.plainKeySupport=false
2021-10-10 22:01:50 +01:00
Andrew Hughes
afeb38682d Update to aarch64-shenandoah-jdk8u312-b05 (EA)
Update release notes for 8u312-b05.
2021-10-09 23:21:05 +01:00
Andrew Hughes
92642a8a96 Reduce disk footprint by removing build artifacts by default. 2021-10-01 16:29:42 +01:00
Andrew Hughes
5e8cea34ec Update to aarch64-shenandoah-jdk8u312-b04 (EA)
Update release notes for 8u312-b04.
2021-09-26 20:13:52 +01:00
Andrew Hughes
aa2c8f31b9 Add patch to login to the NSS software token when in FIPS mode. 2021-09-14 02:59:18 +01:00
Andrew Hughes
0cb1fbdb0b Update to aarch64-shenandoah-jdk8u312-b03 (EA)
Update release notes for 8u312-b03.
2021-09-13 12:33:47 +01:00
Andrew Hughes
12c54a64a1 Update to aarch64-shenandoah-jdk8u312-b02 (EA)
Update release notes for 8u312-b02.
2021-09-10 05:33:38 +01:00
Andrew Hughes
d57e765053 Detect FIPS using SECMOD_GetSystemFIPSEnabled in the new libsystemconf JDK library.
Port FIPS system detection support to OpenJDK 8u
Minor code cleanups on FIPS detection patch and check for SECMOD_GetSystemFIPSEnabled in configure.
Remove unneeded Requires on NSS as it will now be dynamically linked and detected by RPM.
2021-09-04 02:14:31 +01:00
Andrew Hughes
37a363e30c Update to aarch64-shenandoah-jdk8u312-b01 (EA)
Update release notes for 8u312-b01.
Switch to EA mode.
Remove "-clean" suffix as no 8u312 builds are unclean.
2021-09-01 23:23:51 +01:00
Jiri Vanek
ae9982ef76 alternatives creation moved to posttrans
Thus fixing the old reisntall issue:
https://bugzilla.redhat.com/show_bug.cgi?id=1200302
https://bugzilla.redhat.com/show_bug.cgi?id=1976053
2021-09-01 16:48:03 +02:00
Andrew Hughes
1b05b0ca2a Remove non-Free test and demo files from source tarball. 2021-08-08 05:41:58 +01:00
Fedora Release Engineering
dc1cbfccd1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-07-22 08:56:33 +00:00
Andrew Hughes
3c6c1a2a27 Update to aarch64-shenandoah-jdk8u302-b08 (EA)
Update release notes for 8u302-b08.
Switch to GA mode for final release.
2021-07-21 01:28:21 +01:00
Andrew Hughes
bc8a2c217a Update to aarch64-shenandoah-jdk8u302-b07 (EA)
Update release notes for 8u302-b07.
2021-07-08 02:37:19 +01:00
Andrew Hughes
35d7fdc77f Update to aarch64-shenandoah-jdk8u302-b06 (EA)
Update release notes for 8u302-b06.
2021-07-06 17:31:13 +01:00
Andrew Hughes
6d4aec5be3 Use the "reverse" build loop (debug first) as the main and only build loop to get more diagnostics. 2021-07-05 23:10:29 +01:00
Andrew Hughes
148101f0bc Update to aarch64-shenandoah-jdk8u302-b05 (EA)
Update release notes for 8u302-b05.
2021-07-02 17:28:50 +01:00
Andrew Hughes
cf02803a5d Update to aarch64-shenandoah-jdk8u302-b04 (EA)
Update release notes for 8u302-b04.
2021-07-01 05:31:56 +01:00
Andrew Hughes
585f29fea6 Update to aarch64-shenandoah-jdk8u302-b03-shenandoah-merge-2021-06-23 (EA)
Update release notes for 8u302-b03-shenandoah-merge-2021-06-23.
2021-06-26 23:51:48 +01:00
Andrew Hughes
0e6069cde3 Support the FIPS mode crypto policy.
Backport FIPS mode patch to java-1.8.0-openjdk, simplifying provider removal.
nss.fips.cfg needs to be moved to %%{etcjavadir} and symlinked into the JDK, like nss.cfg
SunPKCS11 runtime provider name is a concatenation of "SunPKCS11-" and the name in the config file.
Change nss.fips.cfg config name to "NSS-FIPS" to avoid confusion with nss.cfg.
Disable FIPS mode support unless com.redhat.fips is set to "true".
Add JDK-8195607/PR3776 to support NSS SQLite databases.
Use appropriate keystore types when in FIPS mode (RH1760838)
Enable alignment with FIPS crypto policy by default (-Dcom.redhat.fips=false to disable).
Disable TLSv1.3 when using the NSS-FIPS provider (RH1860986)
Move setup of JavaSecuritySystemConfiguratorAccess to Security class so it always occurs (RH1906862)
Add explicit runtime dependency on NSS for the PKCS11 provider in FIPS mode
2021-06-08 05:46:02 +01:00
Andrew Hughes
9bb503395a Update to aarch64-shenandoah-jdk8u302-b03 (EA)
Update release notes for 8u302-b03.
2021-06-07 13:35:52 +01:00
Andrew Hughes
6d48cf0847 Update to aarch64-shenandoah-jdk8u302-b02 (EA)
Update release notes for 8u302-b02.
2021-06-04 06:51:37 +01:00
Andrew Hughes
4c96112694 Update to aarch64-shenandoah-jdk8u302-b01 (EA)
Update release notes for 8u302-b01.
Switch to EA mode.
2021-06-02 06:03:04 +01:00
Jiri
f2efa3b930 removed cjc backward comaptiblity, to fix when both rpm 4.16 and 4.17 are in transaction 2021-05-10 20:34:52 +02:00
Sérgio M. Basto
808d7a0c2c Fix upgrade path after removal of accessibility subpackage. As main accessibility was requiring main package,
main package now have to obsolete java-1.8.0-openjdk-accessibility-{release, slowdebug, fastdebug} < 1:1.8.0.292.b06
  otherwise update fails
2021-05-04 11:22:44 +01:00
Jiri
7c44d4d12d Adapted to rpm 4.17 and cjc 4.0
As rpm 4.17 dropped arg from varaibale table, cjc now have to be sued as
module. cjc 4.0 was converted to module
2021-04-29 17:35:13 +02:00