Commit Graph

115 Commits

Author SHA1 Message Date
Andrew Hughes
1bb89fc662 Sync the copy of the portable specfile with the latest update
Resolves: RHEL-32412
2025-06-29 21:14:59 +01:00
Andrew Hughes
9c62611701 Update to shenandoah-jdk8u412-b08 (GA)
- Switch to GA mode.

** This tarball is embargoed until 2024-04-16 @ 1pm PT. **

Resolves: RHEL-32412
2025-06-29 21:14:49 +01:00
Andrew Hughes
b99be6596b Sync the copy of the portable specfile with the latest update
Related: RHEL-30937
2025-06-29 21:13:26 +01:00
Andrew Hughes
cce3ff96a2 Update to shenandoah-jdk8u412-b07 (EA)
Require tzdata 2024a due to upstream inclusion of JDK-8322725
Only require tzdata 2023d for now as 2024a is unavailable in buildroot

Resolves: RHEL-30937
2025-06-29 21:12:38 +01:00
Andrew Hughes
b958d97cfd generate_source_tarball.sh: Support using a subdirectory via TO_COMPRESS
Related: RHEL-30937
2025-06-29 21:07:41 +01:00
Andrew Hughes
97ade9b0cf generate_source_tarball.sh: Handle an existing checkout
- generate_source_tarball.sh: Sync indentation with java-21-openjdk version

Related: RHEL-30937
2025-06-29 21:07:39 +01:00
Andrew Hughes
7f8dd8cf46 Remove obsolete files
- Remove obsolete file generate_singlerepo_source_tarball.sh
- Remove obsolete file get_sources.sh
- Remove obsolete file update_main_sources.sh

Related: RHEL-30937
2025-06-29 21:07:36 +01:00
Andrew Hughes
fbb464bba9 Fix maintenance scripts to pass shellcheck
- discover_trees.sh: Set compile-command and indentation instructions for Emacs
- discover_trees.sh: shellcheck: Do not use -o (SC2166)
- discover_trees.sh: shellcheck: Remove x-prefixes since we use Bash (SC2268)
- discover_trees.sh: shellcheck: Double-quote variable references (SC2086)
- generate_source_tarball.sh: Add authorship
- icedtea_sync.sh: Set compile-command and indentation instructions for Emacs
- icedtea_sync.sh: shellcheck: Double-quote variable references (SC2086)
- icedtea_sync.sh: shellcheck: Remove x-prefixes since we use Bash (SC2268)
- openjdk_news.sh: Set compile-command and indentation instructions for Emacs
- openjdk_news.sh: shellcheck: Double-quote variable references (SC2086)
- openjdk_news.sh: shellcheck: Remove x-prefixes since we use Bash (SC2268)
- openjdk_news.sh: shellcheck: Remove deprecated egrep usage (SC2196)

Related: RHEL-30937
2025-06-29 21:07:33 +01:00
Andrew Hughes
d0f2a0eda7 icedtea_sync.sh: Update with a VCS mode that retrieves sources from a Mercurial repository
Related: RHEL-30937
2025-06-29 21:07:31 +01:00
Andrew Hughes
740caafbc9 Move maintenance scripts to a scripts subdirectory
Related: RHEL-30937
2025-06-29 21:07:27 +01:00
Andrew Hughes
dedefd6cfe generate_source_tarball.sh: Only add --depth=1 on non-local repositories
Related: RHEL-30937
2025-06-29 21:07:24 +01:00
Andrew Hughes
a06e65fcd0 generate_source_tarball.sh: Add indentation instructions for Emacs
Related: RHEL-30937
2025-06-29 21:07:21 +01:00
Andrew Hughes
6fe2419676 generate_source_tarball.sh: Create directory in TMPDIR when using WITH_TEMP
Related: RHEL-30937
2025-06-29 21:07:18 +01:00
Andrew Hughes
a4af1a85e6 generate_source_tarball.sh: Add license
Related: RHEL-30937
2025-06-29 21:07:16 +01:00
Andrew Hughes
144393172e generate_source_tarball.sh: Update examples in header for clarity
Related: RHEL-30937
2025-06-29 21:07:13 +01:00
Andrew Hughes
9903c16595 generate_source_tarball.sh: Use long-style argument to grep
Related: RHEL-30937
2025-06-29 21:07:10 +01:00
Andrew Hughes
d02f53d6d3 generate_source_tarball.sh: Remove trailing period in echo
Related: RHEL-30937
2025-06-29 21:07:07 +01:00
Andrew Hughes
787a47eda9 generate_source_tarball.sh: Ignore -ga tags with OPENJDK_LATEST
Related: RHEL-30937
2025-06-29 21:07:04 +01:00
Andrew Hughes
f68fe5409e Use backward-compatible patch syntax
Sync patch set with portable build

Related: RHEL-30937
2025-06-29 21:07:01 +01:00
Andrew Hughes
4d5c302e43 Fix shellcheck issues with generate_source_tarball.sh
- generate_source_tarball.sh: Set compile-command in Emacs
- generate_source_tarball.sh: Remove REPO_NAME from FILE_NAME_ROOT
- generate_source_tarball.sh: Move PROJECT_NAME and REPO_NAME checks
- generate_source_tarball.sh: shellcheck: Remove x-prefixes since we use Bash (SC2268)
- generate_source_tarball.sh: shellcheck: Double-quote variable references (SC2086)
- generate_source_tarball.sh: shellcheck: Do not use -a (SC2166)
- generate_source_tarball.sh: shellcheck: Do not use $ on arithmetic variables (SC2004)
- generate_source_tarball.sh: Add quoting for SCRIPT_DIR and JCONSOLE_PATCH (SC2086)

Related: RHEL-30937
2025-06-29 21:06:58 +01:00
Andrew Hughes
1df7842e2a Make source tarballs reproducible and support construction in a temporary directory.
Move to upstream tag style (shenandoah8ux-by) in preparation for eventually moving back to official sources

- generate_source_tarball.sh: Add WITH_TEMP environment variable
- generate_source_tarball.sh: Multithread xz on all available cores
- generate_source_tarball.sh: Add OPENJDK_LATEST environment variable
- generate_source_tarball.sh: Update comment about tarball naming
- generate_source_tarball.sh: Reformat comment header
- generate_source_tarball.sh: Reformat and update help output
- generate_source_tarball.sh: Do a shallow clone, for speed
- generate_source_tarball.sh: Eliminate some removal prompting
- generate_source_tarball.sh: Make tarball reproducible
- generate_source_tarball.sh: Prefix temporary directory with temp-
- generate_source_tarball.sh: Remove temporary directory exit conditions
- generate_source_tarball.sh: Rename JCONSOLE_JS_PATCH{,_DEFAULT} to JCONSOLE_PATCH{,_DEFAULT} for brevity
- generate_source_tarball.sh: Adapt OPENJDK_LATEST logic to work with 8u Shenandoah fork
- generate_source_tarball.sh: Adapt version logic to work with 8u

Related: RHEL-30937
2025-06-29 21:06:54 +01:00
Andrew Hughes
ff48dbf45c Bump portablerelease to match portable build
Related: RHEL-30937
2025-06-29 21:06:50 +01:00
Andrew Hughes
5406ef542c Turn off xz multi-threading on i686 as it fails with an out of memory error
Related: RHEL-30937
2025-06-29 21:06:47 +01:00
Andrew Hughes
b400c2d34b Bring in Thomas' speed-ups
* Invoke xz in multi-threaded mode

Related: RHEL-30937
2025-06-29 21:06:44 +01:00
Andrew Hughes
0ef768d346 Update to shenandoah-jdk8u412-b01 (EA)
Switch to EA mode.

Related: RHEL-30937
2025-06-29 21:06:31 +01:00
Andrew Hughes
78ee8547a1 Update to shenandoah-jdk8u402-b06 (GA)
Update release notes for shenandoah-8u402-b06.
Sync NEWS with vanilla branch version.
Sync the copy of the portable specfile with the latest update
Drop local copy of JDK-8312489 which is now included upstream

** This tarball is embargoed until 2024-01-16 @ 1pm PT. **

Resolves: RHEL-17916
Resolves: RHEL-20989
2025-06-25 17:46:18 +01:00
Andrew Hughes
0f61cc9ecc Add zero_arches to the portable_build_arches on CentOS where there is no libffi issue
- Related: RHEL-12210
2025-05-15 15:19:50 +01:00
Andrew Hughes
f7cb2bf908 Temporarily use a different portable version and release on RHEL while out of sync with CentOS
- Related: RHEL-12210
2025-05-15 15:19:28 +01:00
Andrew Hughes
3343782446 Vary portablesuffix depending on whether we are on RHEL ('el8') or CentOS ('el9')
- Related: RHEL-12210
2025-05-15 15:18:52 +01:00
Andrew Hughes
a265343430 Revert jcmd move as jcmd will not operate without tools.jar
- Related: RHEL-13585
2025-05-15 15:17:23 +01:00
Andrew Hughes
5575399c13 Movement of jcmd should happen for both portable and non-portable builds
- Related: RHEL-13585
2025-05-15 15:17:20 +01:00
Andrew Hughes
204e3fe067 Update to shenandoah-jdk8u392-b08 (GA)
Update release notes for shenandoah-8u392-b08.
Sync the copy of the portable specfile with the latest update
Update generate_tarball.sh to be closer to upstream vanilla script inc. no more ECC removal
Update bug URL for RHEL to point to the Red Hat customer portal
Change top_level_dir_name to use the VCS tag, matching new upstream release style tarball
Regenerate PR2462 patch following JDK-8315135
Bump version of bundled libpng to 1.6.39
Add backport of JDK-8312489 heading upstream for 8u402 (see OPENJDK-2095)
Add missing JFR, alt-java, jre-* and java-* alternative ghosts
Move jcmd to the headless package

** This tarball is embargoed until 2023-10-17 @ 1pm PT. **

- Resolves: RHEL-12210
- Resolves: RHEL-13579
- Resolves: RHEL-13580
- Resolves: RHEL-13581
- Resolves: RHEL-11315
- Resolves: RHEL-13585
- Resolves: RHEL-2381
2025-05-15 15:16:54 +01:00
Jayashree Huttanagoudar
5769dbc708 Update to shenandoah-jdk8u392-b01 (GA)
Update release notes for shenandoah-8u392-b01.
Sync the copy of the portable specfile with the latest update
Update generate_tarball.sh to be closer to upstream vanilla script inc. no more ECC removal
Update bug URL for RHEL to point to the Red Hat customer portal
Change top_level_dir_name to use the VCS tag, matching new upstream release style tarball

Related: RHEL-12209
2023-10-14 20:26:01 +01:00
Andrew Hughes
4a2d0e432a Update to shenandoah-jdk8u372-b05 (GA)
Update release notes for shenandoah-8u372-b05.
Sync the copy of the portable specfile with the latest update
Add note at top of spec file about rebuilding
Use tapsets from the misc tarball on portable builds
Make sure root installation directory is created first
Use in-place substitution for all but the first of the tapset changes
The 'prelease' variable should refer to 'portablerelease', not 'rpmrelease'
Bump release number so we are newer than 9.0

** This tarball is embargoed until 2023-07-18 @ 1pm PT. **

Resolves: rhbz#2221106
2023-10-14 20:02:47 +01:00
Jayashree Huttanagoudar
c3bbb2bee6 Update to shenandoah-jdk8u382-b04 (EA)
Update release notes for shenandoah-8u382-b04.

Resolves: rhbz#2217711
2023-07-14 13:47:05 +01:00
Jayashree Huttanagoudar
9d450e0c4c Update to shenandoah-jdk8u382-b01 (EA)
Update release notes for shenandoah-8u382-b01.
Switch to EA mode.
Remove JDK-8271199 patch which is now upstream.
Add version of bundled zlib (bumped from 1.2.11 to 1.2.13 with this update)
Introduce 'prelease' for the portable release versioning, to handle EA builds
Sync the copy of the portable specfile with the latest update

Related: rhbz#2217711
2023-07-06 02:21:18 +01:00
Andrew Hughes
345ac01c22 Update to shenandoah-jdk8u372-b07 (GA)
Update release notes for shenandoah-8u372-b07.
Require tzdata 2023c due to inclusion of JDK-8305113 in 8u372-b07
Update generate_tarball.sh to add support for passing a boot JDK to the configure run
Add POSIX-friendly error codes to generate_tarball.sh and fix whitespace
Remove .jcheck and GitHub support when generating tarballs, as done in upstream release tarballs
Drop JDK-8275535/RH2053256 patch which is now upstream
Include JDK-8271199 backport early ahead of 8u382 (RH2175317)
Drop hack for difference in local and portable build version
Replace local copies of JDK portable binaries with build dependencies
Include the java-1.8.0-openjdk-portable.spec file with instructions on how to rebuild.
Remove duplicate use of README.md inside the *-src package (it is no longer about sources)
Use portable build on x86_32 now one is available

** This tarball is embargoed until 2023-04-18 @ 1pm PT. **

Resolves: rhbz#2185182
Resolves: rhbz#2189329
Resolves: rhbz#2188023
2023-04-28 02:06:17 +01:00
Andrew Hughes
ffd213c8a0 Drop use of portable build on s390x due to libffi compatibility issue (needs libffi.so.6)
Related: rhbz#2150202
2023-02-28 10:45:44 +00:00
Andrew Hughes
130be7d121 Add explicit libffi dependency for s390x build
Related: rhbz#2150202
2023-02-28 10:17:47 +00:00
Andrew Hughes
18cec3e209 On portable architectures, replace build section with extraction of existing builds from portables
Rewrite ELF files so the source file path is correct and debugsources can be assembled

Resolves: rhbz#2150202
2023-02-28 09:15:04 +00:00
Andrew Hughes
f7c0e1142a Update cacerts patch to fix OPENJDK-1433 SecurityManager issue
Update to shenandoah-jdk8u352-b09 (GA)
Update release notes for shenandoah-8u352-b09.

Resolves: rhbz#2162714
2023-01-24 02:33:33 +00:00
Andrew Hughes
062daf9bb4 Update to shenandoah-jdk8u352-b08 (GA)
Update release notes for shenandoah-8u352-b08.
Fix broken links and missing release notes in older releases.
Drop RH1163501 patch which is not upstream or in 11, 17 & 19 packages and seems obsolete
 - Patch was broken by inclusion of "JDK-8293554: Enhanced DH Key Exchanges"
 - Patch was added for a specific corner case of a 4096-bit DH key on a Fedora host that no longer exists
 - Fedora now appears to be using RSA and the JDK now supports ECC in preference to large DH keys

Resolves: rhbz#2160111
2023-01-22 14:36:10 +00:00
Andrew Hughes
9a313d328d Update to shenandoah-jdk8u362-b07 (EA)
Update release notes for shenandoah-8u362-b07.
Require tzdata 2022g due to inclusion of JDK-8296108, JDK-8296715 & JDK-8297804
Drop tzdata patches for 2022d & 2022e (JDK-8294357 & JDK-8295173) which are now upstream
Update TestTranslations.java to test the new America/Ciudad_Juarez zone

Resolves: rhbz#2150196
2023-01-11 03:31:28 +00:00
Andrew Hughes
d1d3afa07f Update to shenandoah-jdk8u362-b01 (EA)
Update release notes for shenandoah-8u362-b01.
Switch to EA mode for 8u362 pre-release builds.
Drop JDK-8195607/PR3776/RH1760437 now this is upstream

Related: rhbz#2150196
2023-01-10 03:14:55 +00:00
Andrew Hughes
11b43b8213 Update to shenandoah-jdk8u352-b08 (GA)
Update release notes for shenandoah-8u352-b08.
Switch to GA mode for final release.
Update in-tree tzdata to 2022e with JDK-8294357 & JDK-8295173
Add test to ensure timezones can be translated

Resolves: rhbz#2133695
2022-11-08 18:57:55 +00:00
Andrew Hughes
20b95ff808 Update to shenandoah-jdk8u352-b07 (EA)
Update release notes for shenandoah-8u352-b07.
Switch to EA mode for 8u352 pre-release builds.
Rebase FIPS patch against 8u352-b07

Resolves: rhbz#2130623
2022-10-13 01:41:47 +01:00
Andrew Hughes
64ee130bde Allow the default keystore to be configured using security.systemCACerts
Use of the property can now be disabled using -Dsecurity.systemCACerts=
Move cacerts replacement to install section and retain original of this and tzdb.dat

Resolves: rhbz#2077006
2022-08-30 04:59:12 +01:00
Andrew Hughes
b53bb40201 Switch to static builds, reducing system dependencies and making build more portable
Resolves: rhbz#2121273
2022-08-30 04:02:04 +01:00
Andrew Hughes
d9d44a0f3a 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.

Resolves: rhbz#2102727
2022-08-29 01:49:41 +01:00
Andrew Hughes
c2b26f5173 Update to shenandoah-jdk8u345-b01 (GA)
Update release notes for 8u345-b01.

Resolves: rhbz#2112405
2022-08-03 17:09:22 +01:00