Skip to content

Commit

Permalink
macros: adjust compression for debuginfo and rpms
Browse files Browse the repository at this point in the history
We spend a significant amount of time compressing debuginfo for
limited gain, since the eventual use case for these symbols is to
archive them for retrieval from a symbol server. Turning it off
improves overall build times.

For compressing the RPMs there are two factors at work. Disabling any
compression speeds up the build, but the larger artifacts take longer
to copy out. Using zstd strikes a reasonable balance between the time
to compress and the time to copy.

Signed-off-by: Ben Cressey <bcressey@amazon.com>
  • Loading branch information
bcressey committed Aug 17, 2020
1 parent c66da50 commit c17a8c3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions macros/shared
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,13 @@ CROSS_COMPILATION_CONF_EOF\
# failures when rewriting "shebangs" in crate files.
%__brp_mangle_shebangs /bin/true

# Do not compress debuginfo.
%_find_debuginfo_dwz_opts %{nil}

# Compress RPM payloads with zstd level 1 in single-threaded mode.
%_source_payload w1T0.zstdio
%_binary_payload w1T0.zstdio

%__arch_install_post \
%{?!_cross_allow_rpath:/usr/lib/rpm/check-rpaths} \
/usr/lib/rpm/check-buildroot \
Expand Down

0 comments on commit c17a8c3

Please sign in to comment.