summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Eklöf2021-04-22 22:04:44 +0200
committerDaniel Eklöf2021-04-22 22:08:21 +0200
commit19c78ee363e0899b9e7fdc2f72138e5d48475855 (patch)
tree81db55353fe71f3fd88968714d8f6387ef23fa1a
parent972245dfd890bbab11542e352e43b6b1f83e7685 (diff)
downloadaur-19c78ee363e0899b9e7fdc2f72138e5d48475855.tar.gz
Full PGO: add a short sleep before executing generate-alt-random-writes.py
This should ensure the foot window has been mapped once generate-alt-random-writes.py runs. This ensures it (the script) reads non-zero pixel values for the window width/height. This fixes a crash in generate-alt-random-writes.py that resulted in build failures. Also add --wrap-mode=nodownload - the PKGBUILD doesn’t handle tllist+fcft being built as subprojects (PGO failures due to the subprojects’ unit tests not having been executed).
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD8
2 files changed, 6 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 150bcd7e8e4..00950299826 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = foot
pkgver = 1.7.2
- pkgrel = 1
+ pkgrel = 2
url = https://codeberg.org/dnkl/foot
arch = x86_64
arch = aarch64
diff --git a/PKGBUILD b/PKGBUILD
index 2376ba1c606..84ba0587df3 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Daniel Eklöf <daniel at ekloef dot se>
pkgname=('foot' 'foot-terminfo')
pkgver=1.7.2 # Don’t forget to update CHANGELOG.md
-pkgrel=1
+pkgrel=2
arch=('x86_64' 'aarch64')
url=https://codeberg.org/dnkl/foot
license=(mit)
@@ -41,7 +41,7 @@ build() {
;;
esac
- meson --prefix=/usr --buildtype=release -Db_lto=true . build
+ meson --prefix=/usr --buildtype=release --wrap-mode=nodownload -Db_lto=true . build
if [[ ${do_pgo} == yes ]]; then
find -name "*.gcda" -delete
@@ -53,11 +53,13 @@ build() {
local tmp_file=$(mktemp)
if [[ -v WAYLAND_DISPLAY ]]; then
+ # TODO: remove the sleep in the next release (with SIGWINCH
+ # fixes in generate-alt-random-writes.py)
build/footclient --version
build/foot \
--config /dev/null \
--term=xterm \
- sh -c "./scripts/generate-alt-random-writes.py ${script_options} ${tmp_file} && cat ${tmp_file}"
+ sh -c "sleep 2 && ./scripts/generate-alt-random-writes.py ${script_options} ${tmp_file} && cat ${tmp_file}"
else
build/footclient --version
build/foot --version