summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--foot/.signature5
-rw-r--r--foot/Pkgfile5
-rw-r--r--foot/pgo.patch42
3 files changed, 48 insertions, 4 deletions
diff --git a/foot/.signature b/foot/.signature
index e96d150d2..26ec23eb2 100644
--- a/foot/.signature
+++ b/foot/.signature
@@ -1,5 +1,6 @@
untrusted comment: verify with /etc/ports/contrib.pub
-RWSagIOpLGJF3yyZg3k7NIIK6O85ifzotbcu6t+cwk66lgn0ApMtZ8m1COO4ElYLFsdh+K8uUYjYfxQ0fLim2pT11+k7ydxOzQk=
-SHA256 (Pkgfile) = 2246c2e9523a18d86ce1257e71ff82213e1c8d49a1a6186e5bdb8352645dff6b
+RWSagIOpLGJF39soCXiNM31YJ1QVqk+800DblRPFwoqBl/q5yCqeInwLuxoQOdaEMP/WHfaWfjXyeYmn3HOyB++mmnBDMSWkog8=
+SHA256 (Pkgfile) = 7e48e6c71755d70f30ce75081ab3511a27ea907ead4576044942218455171c37
SHA256 (.footprint) = 2c57774d616b5817277becd41a9e358aeae1841bb3b20f259188ec9db2ca8cdc
SHA256 (1.12.0.tar.gz) = d8c27f735d2f361ee627cce282bee2462545f4df9532ee6ac28fd86a193404fa
+SHA256 (pgo.patch) = 822c0ea023751a5bf2a14f81e51c8e4529f54702d11b83651c22ccf4b8970249
diff --git a/foot/Pkgfile b/foot/Pkgfile
index 0f289c3fd..6cf88b9c1 100644
--- a/foot/Pkgfile
+++ b/foot/Pkgfile
@@ -6,12 +6,13 @@
name=foot
version=1.12.0
-release=1
-source=(https://codeberg.org/dnkl/foot/archive/$version.tar.gz)
+release=2
+source=(https://codeberg.org/dnkl/foot/archive/$version.tar.gz pgo.patch)
build() {
prt-get isinst utf8proc && PKGMK_FOOT+=' -D grapheme-clustering=enabled'
+ patch -Np1 -d $name -i $SRC/pgo.patch
# doing the lto dance
export CFLAGS='-march=x86-64 -O3 -Wno-missing-profile -Wno-error'
meson setup $name build $PKGMK_FOOT \
diff --git a/foot/pgo.patch b/foot/pgo.patch
new file mode 100644
index 000000000..875819f90
--- /dev/null
+++ b/foot/pgo.patch
@@ -0,0 +1,42 @@
+From 8ceb6e45a49ea414bf779adf1ba484c1dd5b5e7b Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= <daniel@ekloef.se>
+Date: Sat, 23 Apr 2022 00:44:46 +0200
+Subject: [PATCH] pgo: add missing stubs for key-binding functions
+
+* key_binding_new_for_term()
+* key_binding_unref_term()
+---
+ pgo/pgo.c | 12 +++++++++++-
+ 1 file changed, 11 insertions(+), 1 deletion(-)
+
+diff --git a/pgo/pgo.c b/pgo/pgo.c
+index 26e0c10e..92d97dbf 100644
+--- a/pgo/pgo.c
++++ b/pgo/pgo.c
+@@ -178,6 +178,13 @@ struct key_binding_set *
+ key_binding_for(
+ struct key_binding_manager *mgr, const struct terminal *term,
+ const struct seat *seat)
++{
++ return &kbd;
++}
++
++void
++key_binding_new_for_term(
++ struct key_binding_manager *mgr, const struct terminal *term)
+ {
+ if (!kbd_initialized) {
+ kbd_initialized = true;
+@@ -189,8 +196,11 @@ key_binding_for(
+ .selection_overrides = 0,
+ };
+ }
++}
+
+- return &kbd;
++void
++key_binding_unref_term(struct key_binding_manager *mgr, const struct terminal *term)
++{
+ }
+
+ int

Generated by cgit