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

bash: Build with PGO, LTO, BOLT #358

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
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
26 changes: 25 additions & 1 deletion b/bash/stone.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#
name : bash
version : '5.2.32'
release : 12
release : 13
homepage : http://www.gnu.org/software/bash/bash.html
upstreams :
- https://ftp.gnu.org/gnu/bash/bash-5.2.21.tar.gz : c8e31bdc59b69aaffc5b36509905ba3e5cbb12747091d27b4b977f078560d5b8
Expand All @@ -23,6 +23,8 @@ builddeps :
- bison
- pkgconfig(ncursesw)
- pkgconfig(readline)
#environment : |
# export CFLAGS="${CFLAGS} -mllvm -vp-counters-per-site=3"
setup : |
%patch %(pkgdir)/bash52-022 -p0
%patch %(pkgdir)/bash52-023 -p0
Expand All @@ -38,6 +40,9 @@ setup : |

%patch %(pkgdir)/stateless.patch

# often hangs
rm tests/run-jobs

%configure \
--without-bash-malloc \
--with-installed-readline \
Expand All @@ -47,8 +52,27 @@ setup : |
build : |
%make
install : |
%bolt_instr ./bash
# hangs with instrumented bash
mv tests/run-ifs-posix ifs-posix
mv tests/run-read run-read
mv tests/run-redir run-redir
%make check -k
%bolt_merge ./bash
%bolt_opt ./bash
mv ifs-posix tests/run-ifs-posix
mv run-read tests/run-read
mv run-redir tests/run-redir

%make_install
%install_file %(pkgdir)/profile %(installroot)%(vendordir)%(sysconfdir)/profile
%install_file %(pkgdir)/prompt.sh %(installroot)%(vendordir)%(sysconfdir)/profile.d/prompt.sh
%install_file %(pkgdir)/bashrc %(installroot)%(vendordir)%(sysconfdir)/bashrc
ln -svf bash "%(installroot)/usr/bin/sh"
#check : |
# %make check
workload : |
%make check
tuning :
- lto : full
- bolt