Commit Graph

78 Commits

Author SHA1 Message Date
Jiri Vanek
c41e92d502 returned lost nss.fips.cfg 2023-05-11 15:59:27 +02:00
Jiri Vanek
e5b29df731 enabled all crypto 2023-05-11 14:02:44 +02:00
Jiri Vanek
d9e39a68b0 added and applied, on demand, patch2003 jdk8305995-footprint_regression_from_jdk_8224957 2023-05-09 15:26:22 +02:00
Jiri
1ecaa91cd7 Minor tuning of generate sources
todo, rmeove curves remvoal and patching
2023-04-29 08:20:41 +02:00
Jiri Vanek
951982d490 Removed unused tapset source 2023-04-27 09:49:50 +02:00
Andrew John Hughes
055685786e Update to jdk-17.0.7.0+7
Update release notes to 17.0.7.0+7
Require tzdata 2023c due to local inclusion of JDK-8274864 & JDK-8305113
Sync whitespace in generate_source_tarball.sh with RHEL version
Update FIPS support against 17.0.7+6 and bring in latest changes:
- * RH2134669: Add missing attributes when registering services in FIPS mode.
- * test/jdk/sun/security/pkcs11/fips/VerifyMissingAttributes.java: fixed jtreg main class
- * RH1940064: Enable XML Signature provider in FIPS mode
- * RH2173781: Avoid calling C_GetInfo() too early, before cryptoki is initialized
2023-04-26 21:07:28 +01:00
Jiri Vanek
6f693dc993 introduced archfull src archive
- replaced nasty handling of icons.
- needed for icons and src reference for rpms (debuginfo, src subpkg)
- licences moved to proper sharable noarch
2023-04-18 16:18:47 +02:00
Jiri Vanek
b3136f5e89 Added selected changes from java-latest-openjdk
- Update generate_tarball.sh add support for passing a boot JDK to the configure run
- Automatically turn off building a fresh HotSpot first, if the bootstrap JDK is not the same major version as that being built
- added png icons from x11 source package, so they can be reused by rpms
 - Fix flatpak builds by disabling TestTranslations test due to missing tzdb.dat
2023-04-17 18:43:13 +02:00
Petra Mikova
4b568ec7cc Update to jdk-17.0.6.0+10
Update release notes to 17.0.6.0+10
Switch to GA mode for release
2023-02-06 15:52:16 +01:00
Petra Mikova
c2337eae1b Update to jdk-17.0.6+9
Update release notes to 17.0.6+9
Drop local copy of JDK-8293834 now this is upstream
Require tzdata 2022g due to inclusion of JDK-8296108, JDK-8296715 & JDK-8297804
Update TestTranslations.java to test the new America/Ciudad_Juarez zone
2023-02-06 14:00:23 +01:00
Petra Mikova
4d35602a37 Update FIPS support to bring in latest changes
* Add nss.fips.cfg support to OpenJDK tree
* RH2117972: Extend the support for NSS DBs (PKCS11) in FIPS mode
* Remove forgotten dead code from RH2020290 and RH2104724

Drop local nss.fips.cfg.in handling now this is handled in the
patched OpenJDK build
2023-02-06 13:31:53 +01:00
Petra Mikova
ef013f05a8 Disabled systemcrypto, as it can not be enabled on cmdline 2023-01-31 13:15:04 +01:00
Petra Mikova
1ba1df7a76 Necessary parts moved from rpm-like install to build
Necessary parts moved from rpm-like install to build
2023-01-31 13:14:07 +01:00
Fedora Release Engineering
0a2ae2a1d9 Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-19 13:35:27 +00:00
Jiri
145afdbcb3 Remvoed rhel workaround 2022-11-30 16:43:55 +01:00
Jiri
76ba5a769b Merge remote-tracking branch 'review/fedoraPortable2' into rawhide 2022-11-30 16:30:57 +01:00
Gwyn Ciesla
3baec79cd6 Added the README 2022-11-30 14:40:30 +00:00
Jiri
71c1e3f09e Returned properly nameSuffix, as .debug is correct, not -debug 2022-11-30 13:25:44 +01:00
Jiri
9c0f77627a Now finally installing the tarballs 2022-11-30 11:21:58 +01:00
Jiri
db7c3cb247 Fixed path to tested static libs image 2022-11-30 07:58:58 +01:00
Jiri
c22c08ba1b Merge all legal to one and pack just once for all tarballs 2022-11-29 19:38:36 +01:00
Jiri Vanek
d904c40a00 WIP added tarring 2022-11-29 16:00:03 +01:00
Jiri Vanek
d29ffaf550 Aligning files and packages with future portbale version
added few if el7.

Note, this is nto buildbale, brekaing changes with tarball creation
needs to land now
2022-11-28 15:45:50 +01:00
Jiri Vanek
c85c8f148e WIP - rewoking fedora spec as portable
todo - tar the results
2022-11-25 14:29:40 +01:00
Jiri Vanek
57b38411b2 Renamed specfile 2022-11-21 15:08:54 +01:00
Andrew Hughes
9253c5fd01 Update to jdk-17.0.6+1
Update release notes to 17.0.6+1
Switch to EA mode for 17.0.6 pre-release builds.
Re-enable EA upstream status check now it is being actively maintained.
Drop JDK-8294357 (tzdata2022d) & JDK-8295173 (tzdata2022e) local patches which are now upstream
Bump tzdata requirement to 2022e now the package is available in Fedora
2022-11-09 02:57:25 +00:00
Andrew Hughes
c0f97cd3e3 Update to jdk-17.0.5+8 (GA)
Update release notes to 17.0.5+8 (GA)
Switch to GA mode for final release.
The stdc++lib, zlib & freetype options should always be set from the global, so they are not altered for staticlibs builds
Remove freetype sources along with zlib sources
2022-10-19 21:21:26 +01:00
Andrew Hughes
48de3d829a Update in-tree tzdata to 2022e with JDK-8294357 & JDK-8295173
Update CLDR data with Europe/Kyiv (JDK-8293834)
Drop JDK-8292223 patch which we found to be unnecessary
Update TestTranslations.java to use public API based on TimeZoneNamesTest upstream
2022-10-14 20:37:50 +01:00
Andrew Hughes
344ea34bdd Update to jdk-17.0.5+7
Update release notes to 17.0.5+7
2022-10-04 02:40:20 +01:00
Andrew Hughes
3e49d2c00a Update to jdk-17.0.5+1
Update release notes to 17.0.5+1
Switch to EA mode for 17.0.5 pre-release builds.
Bump HarfBuzz bundled version to 4.4.1 following JDK-8289853
Bump FreeType bundled version to 2.12.1 following JDK-8290334
2022-10-03 04:17:10 +01:00
Andrew Hughes
b6fe100065 Switch to static builds, reducing system dependencies and making build more portable 2022-09-01 02:59:35 +01:00
Andrew Hughes
ea9509f5ca Update FIPS support to bring in latest changes
* RH2048582: Support PKCS#12 keystores
* RH2020290: Support TLS 1.3 in FIPS mode
2022-08-29 04:59:50 +01:00
Andrew Hughes
5dd4fd8561 Update to jdk-17.0.4.1+1
Update release notes to 17.0.4.1+1
Add patch to provide translations for Europe/Kyiv added in tzdata2022b
Add test to ensure timezones can be translated
2022-08-21 04:32:49 +01:00
Andrew Hughes
ddd9b60d6e Update FIPS support to bring in latest changes
* RH2104724: Avoid import/export of DH private keys
* RH2092507: P11Key.getEncoded does not work for DH keys in FIPS mode
* Build the systemconf library on all platforms
2022-08-15 02:09:20 +01:00
Andrew Hughes
b540c51900 Update to jdk-17.0.3.0+8
Update release notes to 17.0.3.0+8
Switch to GA mode for release
Exclude x86 where java_arches is undefined, in order to unbreak build
2022-07-22 16:23:05 +01:00
Jiri
814266f969 moved to build only on %%{java_arches}
-- https://fedoraproject.org/wiki/Changes/Drop_i686_JDKs
- reverted :
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild (always mess up release)
-- Try to build on x86 again by creating a husk of a JDK which does not depend on itself
-- Exclude x86 from builds as the bootstrap JDK is now completely broken and unusable
-- Replaced binaries and .so files with bash-stubs on i686
- added ExclusiveArch:  %%{java_arches}
-- this now excludes i686
-- this is safely backport-able to older fedoras, as the macro was  backported proeprly (with i686 included)
- https://bugzilla.redhat.com/show_bug.cgi?id=2104128
2022-07-22 12:52:20 +02:00
Fedora Release Engineering
87a3e38c1a Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-21 15:05:49 +00:00
Andrew Hughes
e47cdf807e Try to build on x86 again by creating a husk of a JDK which does not depend on itself 2022-07-19 01:35:14 +01:00
Andrew Hughes
c43163d445 Update to jdk-17.0.3.0+7
Update release notes to 17.0.3.0+7
Exclude x86 from builds as the bootstrap JDK is now completely broken and unusable
Need to include the '.S' suffix in debuginfo checks after JDK-8284661
2022-07-16 23:41:02 +01:00
Andrew Hughes
0cff01bd23 Explicitly require crypto-policies during build and runtime for system security properties 2022-07-14 14:53:32 +02:00
Jiri
73fbfeeb34 Replaced binaries and .so files with bash-stubs on i686
in preparation of the removal on that architecture
https://fedoraproject.org/wiki/Changes/Drop_i686_JDKs
2022-07-14 14:26:11 +02:00
FeRD (Frank Dana)
3a89c445ab 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-14 14:20:38 +02:00
Andrew Hughes
b88e34f02e Make use of the vendor version string to store our version & release rather than an upstream release date
Include a test in the RPM to check the build has the correct vendor information.
Fix issue where CheckVendor.java test erroneously passes when it should fail.
Add proper quoting so '&' is not treated as a special character by the shell.
2022-07-14 03:17:50 +01:00
Andrew Hughes
9686b18e4f Update to jdk-17.0.4.0+1
Update release notes to 17.0.4.0+1
Switch to EA mode for 17.0.4 pre-release builds.
Drop JDK-8282004 patch which is now upstreamed under JDK-8282231
Print release file during build, which should now include a correct SOURCE value from .src-rev
Update tarball script with IcedTea GitHub URL and .src-rev generation
Include script to generate bug list for release notes
Update tzdata requirement to 2022a to match JDK-8283350
Move EA designator check to prep so failures can be caught earlier
Make EA designator check non-fatal while upstream is not maintaining it
2022-07-11 19:40:57 +01:00
Andrew Hughes
1d41f8167f Fix whitespace in spec file 2022-07-07 20:30:28 +01:00
Andrew Hughes
034d3998e6 Sequence spec file sections as they are run by rpmbuild (build, install then test) 2022-07-07 20:26:58 +01:00
Andrew Hughes
14d01cca4a Turn on system security properties as part of the build's install section
Move cacerts replacement to install section and retain original of this and tzdb.dat
Run tests on the installed image, rather than the build image
Introduce variables to refer to the static library installation directories
Use relative symlinks so they work within the image
Run debug symbols check during build stage, before the install strips them
2022-07-06 17:55:20 +01:00
Stephan Bergmann
de9ee07198 Fix flatpak builds
...after 19065a8b01585a1aa5f22e38e99fc0c47c597074 "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 19065a8b01585a1aa5f22e38e99fc0c47c597074, 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 03:20:25 +01:00
Francisco Ferrari Bihurriet
92f9e6d8e3 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/en/java/javase/17/security/pkcs11-reference-guide1.html#GUID-C4ABFACB-B2C9-4E71-A313-79F881488BB9__PKCS11-ATTRIBUTES-CONFIGURATION
2022-06-30 14:22:25 -03:00
Stephan Bergmann
a6295304fd Fix flatpak builds (catering for their uncompressed manual pages)
...see
<https://docs.fedoraproject.org/en-US/flatpak/troubleshooting/#_uncompressed_manual_pages>
for details
2022-06-27 10:34:33 +02:00