Temporarily use a different portable version and release on RHEL while out of sync with CentOS
- Related: RHEL-12216
This commit is contained in:
		
							parent
							
								
									24d245d1cc
								
							
						
					
					
						commit
						6b3aafaef7
					
				| @ -364,7 +364,7 @@ | |||||||
| %endif | %endif | ||||||
| %endif | %endif | ||||||
| %endif | %endif | ||||||
| %global oj_vendor_version (Red_Hat-%{version}-%{portablerelease}) | %global oj_vendor_version (Red_Hat-%{pversion}-%{prelease}) | ||||||
| 
 | 
 | ||||||
| # Define IcedTea version used for SystemTap tapsets and desktop file | # Define IcedTea version used for SystemTap tapsets and desktop file | ||||||
| %global icedteaver      6.0.0pre00-c848b93a8598 | %global icedteaver      6.0.0pre00-c848b93a8598 | ||||||
| @ -1279,7 +1279,14 @@ Name:    java-%{javaver}-%{origin} | |||||||
| Version: %{newjavaver}.%{buildver} | Version: %{newjavaver}.%{buildver} | ||||||
| Release: %{?eaprefix}%{rpmrelease}%{?extraver}%{?dist} | Release: %{?eaprefix}%{rpmrelease}%{?extraver}%{?dist} | ||||||
| # Equivalent for the portable build | # Equivalent for the portable build | ||||||
|  | # Hack to use a later version on RHEL while CentOS and RHEL are out of sync | ||||||
|  | %if 0%{?centos} == 0 | ||||||
|  | %global pversion 11.0.25.0.9 | ||||||
|  | %global prelease 1 | ||||||
|  | %else | ||||||
|  | %global pversion %{version} | ||||||
| %global prelease %{?eaprefix}%{portablerelease}%{?extraver} | %global prelease %{?eaprefix}%{portablerelease}%{?extraver} | ||||||
|  | %endif | ||||||
| # java-1.5.0-ibm from jpackage.org set Epoch to 1 for unknown reasons | # 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 | # 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 | # also included the epoch in their virtual provides. This created a | ||||||
| @ -1355,14 +1362,14 @@ Source19: README.md | |||||||
| Source20: java-%{featurever}-openjdk-portable.specfile | Source20: java-%{featurever}-openjdk-portable.specfile | ||||||
| 
 | 
 | ||||||
| # Setup variables to reference correct sources | # Setup variables to reference correct sources | ||||||
| %global releasezip %{_jvmdir}/%{name}-%{version}-%{prelease}.portable.unstripped.jdk.%{_arch}.tar.xz | %global releasezip %{_jvmdir}/%{name}-%{pversion}-%{prelease}.portable.unstripped.jdk.%{_arch}.tar.xz | ||||||
| %global staticlibzip %{_jvmdir}/%{name}-%{version}-%{prelease}.portable.static-libs.%{_arch}.tar.xz | %global staticlibzip %{_jvmdir}/%{name}-%{pversion}-%{prelease}.portable.static-libs.%{_arch}.tar.xz | ||||||
| %global docszip %{_jvmdir}/%{name}-%{version}-%{prelease}.portable.docs.%{_arch}.tar.xz | %global docszip %{_jvmdir}/%{name}-%{pversion}-%{prelease}.portable.docs.%{_arch}.tar.xz | ||||||
| %global misczip %{_jvmdir}/%{name}-%{version}-%{prelease}.portable.misc.%{_arch}.tar.xz | %global misczip %{_jvmdir}/%{name}-%{pversion}-%{prelease}.portable.misc.%{_arch}.tar.xz | ||||||
| %global slowdebugzip %{_jvmdir}/%{name}-%{version}-%{prelease}.portable.slowdebug.jdk.%{_arch}.tar.xz | %global slowdebugzip %{_jvmdir}/%{name}-%{pversion}-%{prelease}.portable.slowdebug.jdk.%{_arch}.tar.xz | ||||||
| %global slowdebugstaticlibzip %{_jvmdir}/%{name}-%{version}-%{prelease}.portable.slowdebug.static-libs.%{_arch}.tar.xz | %global slowdebugstaticlibzip %{_jvmdir}/%{name}-%{pversion}-%{prelease}.portable.slowdebug.static-libs.%{_arch}.tar.xz | ||||||
| %global fastdebugzip %{_jvmdir}/%{name}-%{version}-%{prelease}.portable.fastdebug.jdk.%{_arch}.tar.xz | %global fastdebugzip %{_jvmdir}/%{name}-%{pversion}-%{prelease}.portable.fastdebug.jdk.%{_arch}.tar.xz | ||||||
| %global fastdebugstaticlibzip %{_jvmdir}/%{name}-%{version}-%{prelease}.portable.fastdebug.static-libs.%{_arch}.tar.xz | %global fastdebugstaticlibzip %{_jvmdir}/%{name}-%{pversion}-%{prelease}.portable.fastdebug.static-libs.%{_arch}.tar.xz | ||||||
| 
 | 
 | ||||||
| ############################################ | ############################################ | ||||||
| # | # | ||||||
| @ -1482,19 +1489,19 @@ BuildRequires: zip | |||||||
| BuildRequires: unzip | BuildRequires: unzip | ||||||
| BuildRequires: javapackages-filesystem | BuildRequires: javapackages-filesystem | ||||||
| %if %{include_normal_build} | %if %{include_normal_build} | ||||||
| BuildRequires: java-%{featurever}-openjdk-portable-unstripped = %{epoch}:%{version}-%{prelease}.%{portablesuffix} | BuildRequires: java-%{featurever}-openjdk-portable-unstripped = %{epoch}:%{pversion}-%{prelease}.%{portablesuffix} | ||||||
| BuildRequires: java-%{featurever}-openjdk-portable-static-libs = %{epoch}:%{version}-%{prelease}.%{portablesuffix} | BuildRequires: java-%{featurever}-openjdk-portable-static-libs = %{epoch}:%{pversion}-%{prelease}.%{portablesuffix} | ||||||
| %endif | %endif | ||||||
| %if %{include_fastdebug_build} | %if %{include_fastdebug_build} | ||||||
| BuildRequires: java-%{featurever}-openjdk-portable-devel-fastdebug = %{epoch}:%{version}-%{prelease}.%{portablesuffix} | BuildRequires: java-%{featurever}-openjdk-portable-devel-fastdebug = %{epoch}:%{pversion}-%{prelease}.%{portablesuffix} | ||||||
| BuildRequires: java-%{featurever}-openjdk-portable-static-libs-fastdebug = %{epoch}:%{version}-%{prelease}.%{portablesuffix} | BuildRequires: java-%{featurever}-openjdk-portable-static-libs-fastdebug = %{epoch}:%{pversion}-%{prelease}.%{portablesuffix} | ||||||
| %endif | %endif | ||||||
| %if %{include_debug_build} | %if %{include_debug_build} | ||||||
| BuildRequires: java-%{featurever}-openjdk-portable-devel-slowdebug = %{epoch}:%{version}-%{prelease}.%{portablesuffix} | BuildRequires: java-%{featurever}-openjdk-portable-devel-slowdebug = %{epoch}:%{pversion}-%{prelease}.%{portablesuffix} | ||||||
| BuildRequires: java-%{featurever}-openjdk-portable-static-libs-slowdebug = %{epoch}:%{version}-%{prelease}.%{portablesuffix} | BuildRequires: java-%{featurever}-openjdk-portable-static-libs-slowdebug = %{epoch}:%{pversion}-%{prelease}.%{portablesuffix} | ||||||
| %endif | %endif | ||||||
| BuildRequires: java-%{featurever}-openjdk-portable-docs = %{epoch}:%{version}-%{prelease}.%{portablesuffix} | BuildRequires: java-%{featurever}-openjdk-portable-docs = %{epoch}:%{pversion}-%{prelease}.%{portablesuffix} | ||||||
| BuildRequires: java-%{featurever}-openjdk-portable-misc = %{epoch}:%{version}-%{prelease}.%{portablesuffix} | BuildRequires: java-%{featurever}-openjdk-portable-misc = %{epoch}:%{pversion}-%{prelease}.%{portablesuffix} | ||||||
| # Zero-assembler build requirement | # Zero-assembler build requirement | ||||||
| %ifarch %{zero_arches} | %ifarch %{zero_arches} | ||||||
| BuildRequires: libffi-devel | BuildRequires: libffi-devel | ||||||
| @ -1965,7 +1972,7 @@ for suffix in %{build_loop} ; do | |||||||
|   mv java-%{featurever}-openjdk* ${installdir} |   mv java-%{featurever}-openjdk* ${installdir} | ||||||
| 
 | 
 | ||||||
|   # Fix build paths in ELF files so it looks like we built them |   # Fix build paths in ELF files so it looks like we built them | ||||||
|   portablenvr="%{name}-%{VERSION}-%{prelease}.%{portablesuffix}.%{_arch}" |   portablenvr="%{name}-%{pversion}-%{prelease}.%{portablesuffix}.%{_arch}" | ||||||
|   for file in $(find ${installdir} -type f) ; do |   for file in $(find ${installdir} -type f) ; do | ||||||
|       if file ${file} | grep -q 'ELF'; then |       if file ${file} | grep -q 'ELF'; then | ||||||
|           %{debugedit} -b %{portablebuilddir}/${portablenvr} -d $(pwd) -n ${file} |           %{debugedit} -b %{portablebuilddir}/${portablenvr} -d $(pwd) -n ${file} | ||||||
| @ -2199,7 +2206,12 @@ if ! echo $suffix | grep -q "debug" ; then | |||||||
|     # Install Javadoc documentation |     # Install Javadoc documentation | ||||||
|     install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir} |     install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir} | ||||||
|     cp -a ${docdir}/docs $RPM_BUILD_ROOT%{_javadocdir}/%{uniquejavadocdir -- $suffix} |     cp -a ${docdir}/docs $RPM_BUILD_ROOT%{_javadocdir}/%{uniquejavadocdir -- $suffix} | ||||||
|  | %if 0%{?centos} == 0 | ||||||
|  | # Hack to use a later version on RHEL while CentOS and RHEL are out of sync | ||||||
|  |     built_doc_archive=jdk-11.0.25+9-LTS-docs.zip | ||||||
|  | %else | ||||||
|     built_doc_archive=jdk-%{filever}%{ea_designator_zip}+%{buildver}%{lts_designator_zip}-docs.zip |     built_doc_archive=jdk-%{filever}%{ea_designator_zip}+%{buildver}%{lts_designator_zip}-docs.zip | ||||||
|  | %endif | ||||||
|     cp -a ${docdir}/${built_doc_archive} \ |     cp -a ${docdir}/${built_doc_archive} \ | ||||||
|         $RPM_BUILD_ROOT%{_javadocdir}/%{uniquejavadocdir -- $suffix}.zip |         $RPM_BUILD_ROOT%{_javadocdir}/%{uniquejavadocdir -- $suffix}.zip | ||||||
| fi | fi | ||||||
| @ -2486,6 +2498,7 @@ require "copy_jdk_configs.lua" | |||||||
| %changelog | %changelog | ||||||
| * Fri Oct 13 2023 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.21.0.9-3 | * Fri Oct 13 2023 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.21.0.9-3 | ||||||
| - Vary portablesuffix depending on whether we are on RHEL ('el8') or CentOS ('el9') | - Vary portablesuffix depending on whether we are on RHEL ('el8') or CentOS ('el9') | ||||||
|  | - Temporarily use a different portable version and release on RHEL while out of sync with CentOS | ||||||
| - Related: RHEL-12216 | - Related: RHEL-12216 | ||||||
| 
 | 
 | ||||||
| * Fri Oct 13 2023 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.21.0.9-2 | * Fri Oct 13 2023 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.21.0.9-2 | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user