Fix flatpak builds
...after <6eee73b250> "Update to jdk-11.0.16.1+1" added the TestTranslations.java "test to ensure timezones can be translated": Similar to the previous <1ac4052b44> "Fix flatpak builds", during a flatpak build of java-11-openjdk its .../images/jdk/lib/tzdb.dat is a dangling symlink to /app/share/javazi-1.8/tzdb.dat (but which will be a working symlink in at least the assembled LibreOffice flatpak). That causes execution of TestTranslations.java during the build to fail due to a java.io.FileNotFoundException when trying to access that tzdb.dat. The easiest fix appears to be to just not run that specific test for a flatpak build. Related: RHEL-45216 n Bergmann <sbergman@redhat.com>
This commit is contained in:
		
							parent
							
								
									e7c2a55a19
								
							
						
					
					
						commit
						7b0d9a0664
					
				| @ -369,7 +369,7 @@ | |||||||
| %global top_level_dir_name   %{origin} | %global top_level_dir_name   %{origin} | ||||||
| %global top_level_dir_name_backup %{top_level_dir_name}-backup | %global top_level_dir_name_backup %{top_level_dir_name}-backup | ||||||
| %global buildver        9 | %global buildver        9 | ||||||
| %global rpmrelease      3 | %global rpmrelease      4 | ||||||
| # Priority must be 8 digits in total; up to openjdk 1.8, we were using 18..... so when we moved to 11, we had to add another digit | # Priority must be 8 digits in total; up to openjdk 1.8, we were using 18..... so when we moved to 11, we had to add another digit | ||||||
| %if %is_system_jdk | %if %is_system_jdk | ||||||
| # Using 10 digits may overflow the int used for priority, so we combine the patch and build versions | # Using 10 digits may overflow the int used for priority, so we combine the patch and build versions | ||||||
| @ -2161,10 +2161,14 @@ nm $JAVA_HOME/bin/%{alt_java_name} | grep set_speculation | |||||||
| if ! nm $JAVA_HOME/bin/%{alt_java_name} | grep set_speculation ; then true ; else false; fi | if ! nm $JAVA_HOME/bin/%{alt_java_name} | grep set_speculation ; then true ; else false; fi | ||||||
| %endif | %endif | ||||||
| 
 | 
 | ||||||
| # Check translations are available for new timezones | %if ! 0%{?flatpak} | ||||||
|  | # Check translations are available for new timezones (during flatpak builds, the | ||||||
|  | # tzdb.dat used by this test is not where the test expects it, so this is | ||||||
|  | # disabled for flatpak builds) | ||||||
| $JAVA_HOME/bin/javac -d . %{SOURCE18} | $JAVA_HOME/bin/javac -d . %{SOURCE18} | ||||||
| $JAVA_HOME/bin/java $(echo $(basename %{SOURCE18})|sed "s|\.java||") JRE | $JAVA_HOME/bin/java $(echo $(basename %{SOURCE18})|sed "s|\.java||") JRE | ||||||
| $JAVA_HOME/bin/java -Djava.locale.providers=CLDR $(echo $(basename %{SOURCE18})|sed "s|\.java||") CLDR | $JAVA_HOME/bin/java -Djava.locale.providers=CLDR $(echo $(basename %{SOURCE18})|sed "s|\.java||") CLDR | ||||||
|  | %endif | ||||||
| 
 | 
 | ||||||
| %if %{include_staticlibs} | %if %{include_staticlibs} | ||||||
| # Check debug symbols in static libraries (smoke test) | # Check debug symbols in static libraries (smoke test) | ||||||
| @ -2622,6 +2626,10 @@ cjc.mainProgram(args) | |||||||
| %endif | %endif | ||||||
| 
 | 
 | ||||||
| %changelog | %changelog | ||||||
|  | * Fri Jan 13 2023 Stephan Bergmann <sbergman@redhat.com> - 1:17.0.6.0.9-0.4.ea | ||||||
|  | - Fix flatpak builds by disabling TestTranslations test due to missing tzdb.dat | ||||||
|  | - Related: RHEL-45216 | ||||||
|  | 
 | ||||||
| * Wed Jan 04 2023 Andrew Hughes <gnu.andrew@redhat.com> - 1:17.0.6.0.9-0.3.ea | * Wed Jan 04 2023 Andrew Hughes <gnu.andrew@redhat.com> - 1:17.0.6.0.9-0.3.ea | ||||||
| - Update to jdk-17.0.6+9 | - Update to jdk-17.0.6+9 | ||||||
| - Update release notes to 17.0.6+9 | - Update release notes to 17.0.6+9 | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user