Skip to content

Commit 50b71f2

Browse files
committed
Backport a087b483a60bf60a362c273870e89add9e2873d7
1 parent 8902f10 commit 50b71f2

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

installers/linux/al2/spec/java-amazon-corretto.spec.template

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,13 @@ Requires: %{name}-devel%{?1}%{?_isa} = %{epoch}:%{version}-%{release}
245245
%description jmods
246246
Amazon Corretto's packaging of the OpenJDK ${java_spec_version} jmods.
247247

248+
%package debugsymbols
249+
Summary: Amazon Corretto ${java_spec_version} zipped debug symbols
250+
Group: Development
251+
252+
%description debugsymbols
253+
Amazon Corretto's packaging of the OpenJDK ${java_spec_version} debug symbols.
254+
248255
%prep
249256
%setup -q -n src -c
250257

@@ -284,7 +291,7 @@ bash ./configure \\
284291
--with-vendor-bug-url="https://github.com/corretto/corretto-${java_spec_version}/issues/" \\
285292
--with-vendor-vm-bug-url="https://github.com/corretto/corretto-${java_spec_version}/issues/" \\
286293
--with-debug-level=$debug_level \\
287-
--with-native-debug-symbols=none
294+
--with-native-debug-symbols=zipped
288295

289296
make images
290297
make LOG=debug docs
@@ -431,6 +438,9 @@ fi
431438
%exclude %{java_lib}/libawt_xawt.so
432439
%exclude %{java_lib}/libjawt.so
433440
%exclude %{java_lib}/libsplashscreen.so
441+
# Exclude debug symbol files
442+
%exclude %{java_home}/lib/*.diz
443+
%exclude %{java_home}/lib/server/*.diz
434444

435445
%files devel
436446
%{java_home}/bin/jar
@@ -496,7 +506,15 @@ fi
496506
%doc %{java_imgdir}/docs/specs
497507
%license %{java_imgdir}/docs/legal
498508

509+
%files debugsymbols
510+
%{java_home}/bin/*.diz
511+
%{java_home}/lib/*.diz
512+
%{java_home}/lib/server/*.diz
513+
499514
%changelog
515+
* Mon Aug 5 2024 Daniel Hu <[email protected]>
516+
- Add package debug symbols
517+
500518
* Mon Oct 10 2022 Dan Lutker <[email protected]>
501519
- Fix provides to include public shared libs
502520

0 commit comments

Comments
 (0)