Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Package debug symbols for AL builds #117

Merged
merged 1 commit into from
Aug 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading