Skip to content

Commit

Permalink
Package debug symbols for AL builds
Browse files Browse the repository at this point in the history
  • Loading branch information
cost0much authored Aug 23, 2024
1 parent 8902f10 commit 352eca7
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion installers/linux/al2/spec/java-amazon-corretto.spec.template
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,13 @@ Requires: %{name}-devel%{?1}%{?_isa} = %{epoch}:%{version}-%{release}
%description jmods
Amazon Corretto's packaging of the OpenJDK ${java_spec_version} jmods.

%package debugsymbols
Summary: Amazon Corretto ${java_spec_version} zipped debug symbols
Group: Development

%description debugsymbols
Amazon Corretto's packaging of the OpenJDK ${java_spec_version} debug symbols.

%prep
%setup -q -n src -c

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

make images
make LOG=debug docs
Expand Down Expand Up @@ -431,6 +438,9 @@ fi
%exclude %{java_lib}/libawt_xawt.so
%exclude %{java_lib}/libjawt.so
%exclude %{java_lib}/libsplashscreen.so
# Exclude debug symbol files
%exclude %{java_home}/lib/*.diz
%exclude %{java_home}/lib/server/*.diz

%files devel
%{java_home}/bin/jar
Expand Down Expand Up @@ -496,7 +506,15 @@ fi
%doc %{java_imgdir}/docs/specs
%license %{java_imgdir}/docs/legal

%files debugsymbols
%{java_home}/bin/*.diz
%{java_home}/lib/*.diz
%{java_home}/lib/server/*.diz

%changelog
* Mon Aug 5 2024 Daniel Hu <costmuch@amazon.com>
- Add package debug symbols

* Mon Oct 10 2022 Dan Lutker <lutkerd@amazon.com>
- Fix provides to include public shared libs

Expand Down

0 comments on commit 352eca7

Please sign in to comment.