Commit Graph

141 Commits

Author SHA1 Message Date
Severin Gehwolf 0db2c2791b 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-09 01:04:59 +00:00
Petra Mikova d01ad61de5 Bump buildjdkver to 17 2021-10-21 19:15:10 +02:00
Andrew John Hughes a4e522b089 October CPU 2021 update
Update release notes to document the major changes between OpenJDK 11 & 17.
2021-10-21 18:40:20 +02:00
Andrew John Hughes 0f6c086854 Add patch to disable non-FIPS crypto in the SUN and SunEC security providers.
Add patch to login to the NSS software token when in FIPS mode.
Add FIPS patch to allow plain key import.

Fix unused function compiler warning found in systemconf.c
Extend the default security policy to accomodate PKCS11 accessing jdk.internal.access.
Allow plain key import to be disabled with -Dcom.redhat.fips.plainKeySupport=false
2021-10-21 16:24:40 +01:00
Andrew John Hughes 15abf4f558 Update to jdk-17+35, also known as jdk-17-ga.
Switch to GA mode.

Support the FIPS mode crypto policy (RH1655466)
Update RH1655466 FIPS patch with changes in OpenJDK 8 version.
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.
No need to substitute path to nss.fips.cfg as java.security file supports a java.home variable.
Disable FIPS mode support unless com.redhat.fips is set to "true".
Use appropriate keystore types when in FIPS mode (RH1818909)
Enable alignment with FIPS crypto policy by default (-Dcom.redhat.fips=false to disable).
Disable TLSv1.3 when the FIPS crypto policy and the NSS-FIPS provider are in use (RH1860986)
Add explicit runtime dependency on NSS for the PKCS11 provider in FIPS mode
Move setup of JavaSecuritySystemConfiguratorAccess to Security class so it always occurs (RH1915071)

Detect FIPS using SECMOD_GetSystemFIPSEnabled in the new libsystemconf JDK library.
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-15 00:45:57 +01:00
Jiri Vanek 6faa81f4f9 Merge branch 'f34' into f33 2021-09-02 13:15:10 +02:00
Jiri Vanek 28dd98a474 Temprary build by jdk16 2021-09-02 13:04:59 +02:00
Jiri Vanek f6a55b568b 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-02 13:01:20 +02:00
Andrew John Hughes ad1d006fca Update to jdk-17+33, including JDWP fix and July 2021 CPU
Resolves: rhbz#1972529
2021-09-02 13:01:20 +02:00
Fedora Release Engineering 01513bdab7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-09-02 13:01:20 +02:00
Andrew John Hughes f905d4f641 Use the "reverse" build loop (debug first) as the main and only build loop to get more diagnostics.
Remove restriction on disabling product build, as debug packages no longer have javadoc packages.
2021-09-02 13:01:20 +02:00
Petra Mikova 8494397c4f Fix patch rh1648249-add_commented_out_nss_cfg_provider_to_java_security.patch
It makes the SunPKCS provider show up again
Resolves: rhbz#1971120
2021-09-02 13:01:20 +02:00
Severin Gehwolf 2d94c2eee7 Add PR3695 to allow the system crypto policy to be turned off.
- Adds patch from java-11-openjdk so as to be able to properly
  toggle the system crypto policy
- Fixes test TestSecurityProperties.java which was failing
2021-09-02 13:01:20 +02:00
Severin Gehwolf 483738b04c Update buildjdkver to 17 2021-09-02 13:01:20 +02:00
Petra Mikova 50793efd8e Fix bogus date in changelog to get rid of the warning 2021-09-02 13:01:20 +02:00
Petra Mikova 796870d0a2 Update to JDK 17
Change path to version-number.conf
Bump sources to 17.0.0+26
Change vendor_version_string
Set is_ga to 0, as this is early access build
removed rmid binary from files and from slaves
removed JAVAC_FLAGS=-g from make command, as it breaks the build since JDK-8258407
add lib/libsyslookup.so to files
renamed lib/security/blacklisted.certs to lib/security/blocked.certs
add lib/libsvml.so for intel
skip debuginfo check for libsyslookup.so on s390x
2021-09-02 13:00:50 +02:00
Jiri Vanek 010e57f9f6 Revert "Fix patch rh1648249-add_commented_out_nss_cfg_provider_to_java_security.patch"
This reverts commit 167363c8ad.
2021-09-02 12:48:21 +02:00
Jiri Vanek ccbe3cb9b0 Revert "Fix bogus date in changelog to get rid of the warning"
This reverts commit a761355093.
2021-09-02 12:48:19 +02:00
Jiri Vanek dfa89a1027 Revert "Added fips pathces and adapted specfile"
This reverts commit 987310ef1d.
2021-09-02 12:48:17 +02:00
Jiri Vanek bed2ea1420 Revert "Adapted patches to jdk16"
This reverts commit c7fa66aed4.
2021-09-02 12:48:12 +02:00
Jiri Vanek 66aaf933ed Revert "bumped release"
This reverts commit 2080b40147.
2021-09-02 12:48:11 +02:00
Jiri Vanek 685de6aecf Revert "bumped to security update of 16.0.2+7 (16.0.2-ga)"
This reverts commit 487aa16543.
2021-09-02 12:48:07 +02:00
Jiri 46d78a4296 bumped to security update of 16.0.2+7 (16.0.2-ga) 2021-07-23 20:30:16 +02:00
Jiri 487aa16543 bumped to security update of 16.0.2+7 (16.0.2-ga) 2021-07-23 18:25:30 +02:00
Jiri Vanek 75e9e14608 bumped release 2021-06-30 18:38:40 +02:00
Jiri d6438d977f Adapted patches to jdk16
- added pr3695-toggle_system_crypto_policy.patch ; missing prerequisity
- removed rh1655466-global_crypto_and_fips.patch; jdk16 do not have
  default algorithm, it throws exception
- adapted rh1655466-global_crypto_and_fips.patch
- adapted rh1860986-disable_tlsv1.3_in_fips_mode.patch (?)
- adapted rh1915071-always_initialise_configurator_access.patch
2021-06-30 18:38:40 +02:00
Jiri 680e1acb05 Added fips pathces and adapted specfile 2021-06-30 18:38:40 +02:00
Jiri Vanek 2080b40147 bumped release 2021-06-30 18:36:16 +02:00
Jiri c7fa66aed4 Adapted patches to jdk16
- added pr3695-toggle_system_crypto_policy.patch ; missing prerequisity
- removed rh1655466-global_crypto_and_fips.patch; jdk16 do not have
  default algorithm, it throws exception
- adapted rh1655466-global_crypto_and_fips.patch
- adapted rh1860986-disable_tlsv1.3_in_fips_mode.patch (?)
- adapted rh1915071-always_initialise_configurator_access.patch
2021-06-29 16:39:41 +02:00
Jiri 987310ef1d Added fips pathces and adapted specfile 2021-06-29 16:35:35 +02:00
Petra Mikova 6eadba01e7 Fix bogus date in changelog to get rid of the warning 2021-06-24 10:48:51 +02:00
Petra Mikova fe87f55d67 Fix patch rh1648249-add_commented_out_nss_cfg_provider_to_java_security.patch
It makes the SunPKCS provider show up again
Resolves: rhbz#1971120
2021-06-24 10:48:51 +02:00
Petra Mikova a761355093 Fix bogus date in changelog to get rid of the warning 2021-06-24 10:39:07 +02:00
Petra Mikova 167363c8ad Fix patch rh1648249-add_commented_out_nss_cfg_provider_to_java_security.patch
It makes the SunPKCS provider show up again
Resolves: rhbz#1971120
2021-06-24 10:27:30 +02:00
Jiri Vanek 0b693ee02b removed cjc backward comaptiblity, to fix when both rpm 4.16 and 4.17 are in transaction 2021-05-10 16:49:00 +02:00
Jiri Vanek b79582ca92 removed cjc backward comaptiblity, to fix when both rpm 4.16 and 4.17 are in transaction 2021-05-07 15:16:18 +02:00
Jiri e4b8afc785 Disable copy-jdk-configs for Flatpak builds 2021-05-04 10:01:35 +02:00
Jiri 921ff9bba6 adapted to debug handling in newer cjc
The rest of the "rpm 4.17" patch must NOT be backported, as on rpm 4.16 and down, it would casue double execution
2021-05-04 10:00:20 +02:00
Jiri 0bfdf5d3be Disable copy-jdk-configs for Flatpak builds 2021-05-03 16:16:45 +02:00
Jiri 60ef5c1890 adapted to debug handling in newer cjc
The rest of the "rpm 4.17" patch must NOT be backported, as on rpm 4.16 and down, it would casue double execution
2021-05-03 16:15:00 +02:00
Petra Mikova 6069fcb198 Add forgotten changelog 2021-04-26 12:46:28 +02:00
Petra Mikova 0d654c6f80 Add forgotten changelog 2021-04-26 12:45:44 +02:00
Petra Mikova c4f65b09a1 April CPU update
Generated new sources and removed obsoleted patch
2021-04-25 12:56:14 +02:00
Severin Gehwolf 145f513b98 Perform static library build on a separate source tree with bundled image libraries
Make static library build optional
Ported from java-11-openjdk. Work of Andrew Hughes.
2021-04-25 12:56:14 +02:00
Jiri 5995adcda5 bumped buildjdkver to build by itself - 16 2021-04-25 12:56:00 +02:00
Petra Mikova 91aad61f42 April CPU update
Generated new sources and removed obsoleted patch
2021-04-24 09:21:58 +02:00
Severin Gehwolf 587d6ad637 Perform static library build on a separate source tree with bundled image libraries
Make static library build optional
Ported from java-11-openjdk. Work of Andrew Hughes.
2021-04-24 09:20:58 +02:00
Jiri c27aa9f364 fixed suggests of wrong pcsc-lite-devel%{?_isa} to correct pcsc-lite-libs%{?_isa} 2021-03-11 08:23:47 +01:00
Andrew John Hughes a487c73622 Update to jdk-16.0.0.0+36
Update tarball generation script to use git following OpenJDK's move to github
Update tarball generation script to use PR3823 which handles JDK-8235710 changes
Use upstream default for version-pre rather than setting it to "ea" or ""
Drop libsunec.so which is no longer generated, thanks to JDK-8235710
Drop unnecessary compiler flags, dating back to work on GCC 6 & 10
Adapt RH1750419 alt-java patch to still apply after some variable re-naming in the makefiles
Update filever to remove any trailing zeros, as in the OpenJDK build, and use for source filename
Use system harfbuzz now this is supported.
Pass SOURCE_DATE_EPOCH to build for reproducible builds
2021-03-11 08:23:36 +01:00
Andrew John Hughes db7c86a12e Hardcode /usr/sbin/alternatives for Flatpak builds
/usr/sbin/alternatives is not under the Flatpak build's %{_prefix},
which is set to /app.

(See <https://pagure.io/packaging-committee/issue/848> "Clarify the
use of path macros with respect to build dependencies").

Found when trying to do a LibreOffice Flatpak build from RHEL RPM
specs, which includes java-1.8.0-openjdk among its components.
2021-03-11 08:23:28 +01:00