From: ismay <ismay@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] kakoune: update to 2024.05.09.
Date: Wed, 15 May 2024 08:37:53 +0200 [thread overview]
Message-ID: <20240515063753.83EC6201A4@inbox.vuxu.org> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-50328@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 712 bytes --]
There is an updated pull request by ismay against master on the void-packages repository
https://github.com/ismay/void-packages update-kakoune
https://github.com/void-linux/void-packages/pull/50328
kakoune: update to 2024.05.09.
#### Testing the changes
- I tested the changes in this PR: **YES**
#### Local build testing
- I built this PR locally for my native architecture, (x86_64): **YES**, works
`build_wrksrc="src"` was removed because of [this change](https://github.com/mawww/kakoune/commit/b05295637e7dbe5239a1142a72afe8265e5d77c3#diff-3e2513390df543315686d7c85bd901ca9256268970032298815d2f893a9f0685)
A patch file from https://github.com/void-linux/void-packages/pull/50328.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-update-kakoune-50328.patch --]
[-- Type: text/x-diff, Size: 8842 bytes --]
From d7d3d2f88a8278c0e3bd2272b8ef9be5fb2ae2f6 Mon Sep 17 00:00:00 2001
From: ismay <git.email@ismay.email>
Date: Tue, 14 May 2024 11:19:12 +0200
Subject: [PATCH] kakoune: update to 2024.05.09.
---
.../patches/fix-hanging-git-tests.patch | 106 ++++++++++++++++++
srcpkgs/kakoune/template | 6 +-
2 files changed, 108 insertions(+), 4 deletions(-)
create mode 100644 srcpkgs/kakoune/patches/fix-hanging-git-tests.patch
diff --git a/srcpkgs/kakoune/patches/fix-hanging-git-tests.patch b/srcpkgs/kakoune/patches/fix-hanging-git-tests.patch
new file mode 100644
index 00000000000000..97da53d286b297
--- /dev/null
+++ b/srcpkgs/kakoune/patches/fix-hanging-git-tests.patch
@@ -0,0 +1,106 @@
+https://github.com/mawww/kakoune/commit/0e92b3fdefddbf81a008b3678faf4bf550be215c
+https://github.com/mawww/kakoune/commit/8c2775f665fd4aae603b423362cf0d4d917fc0df
+
+--- a/test/commands/edit-fifo-noscroll/script
++++ b/test/commands/edit-fifo-noscroll/script
+@@ -1,19 +1,18 @@
+-ui_out -ignore 7
++ui_out -until '{ "jsonrpc": "2.0", "method": "refresh", "params": [true] }'
+ exec 5>fifo
+-ui_out '{ "jsonrpc": "2.0", "method": "refresh", "params": [true] }'
+
+ echo '* line1' >&5
+ ui_out '{ "jsonrpc": "2.0", "method": "draw", "params": [[[{ "face": { "fg": "black", "bg": "white", "underline": "default", "attributes": [] }, "contents": "*" }, { "face": { "fg": "default", "bg": "default", "underline": "default", "attributes": [] }, "contents": " line1\u000a" }]], { "fg": "default", "bg": "default", "underline": "default", "attributes": [] }, { "fg": "blue", "bg": "default", "underline": "default", "attributes": [] }] }'
+-ui_out -ignore 2
++ui_out -until '{ "jsonrpc": "2.0", "method": "refresh", "params": [false] }'
+
+ echo '* line2' >&5
+ ui_out '{ "jsonrpc": "2.0", "method": "draw", "params": [[[{ "face": { "fg": "black", "bg": "white", "underline": "default", "attributes": [] }, "contents": "*" }, { "face": { "fg": "default", "bg": "default", "underline": "default", "attributes": [] }, "contents": " line1\u000a" }], [{ "face": { "fg": "default", "bg": "default", "underline": "default", "attributes": [] }, "contents": "* line2\u000a" }]], { "fg": "default", "bg": "default", "underline": "default", "attributes": [] }, { "fg": "blue", "bg": "default", "underline": "default", "attributes": [] }] }'
+-ui_out -ignore 2
++ui_out -until '{ "jsonrpc": "2.0", "method": "refresh", "params": [false] }'
+
+ dd if=/dev/zero bs=2049 count=1 2>/dev/null | sed s/././g >&5
+-ui_out -ignore 3
++ui_out -until '{ "jsonrpc": "2.0", "method": "refresh", "params": [false] }'
+ ui_in '{ "jsonrpc": "2.0", "method": "keys", "params": [ "gjxH|wc -c | tr -d \" \"<ret>" ] }'
+-ui_out -ignore 6
++ui_out -until '{ "jsonrpc": "2.0", "method": "refresh", "params": [false] }'
+
+ exec 5>&-
+-ui_out '{ "jsonrpc": "2.0", "method": "draw_status", "params": [[], [{ "face": { "fg": "default", "bg": "default", "underline": "default", "attributes": [] }, "contents": "*fifo* 3:4 " }, { "face": { "fg": "black", "bg": "yellow", "underline": "default", "attributes": [] }, "contents": "[scratch]" }, { "face": { "fg": "default", "bg": "default", "underline": "default", "attributes": [] }, "contents": " " }, { "face": { "fg": "blue", "bg": "default", "underline": "default", "attributes": [] }, "contents": "1 sel" }, { "face": { "fg": "default", "bg": "default", "underline": "default", "attributes": [] }, "contents": " - client0@[kak-tests]" }], { "fg": "cyan", "bg": "default", "underline": "default", "attributes": [] }] }'
++ui_out -until '{ "jsonrpc": "2.0", "method": "draw_status", "params": [[], [{ "face": { "fg": "default", "bg": "default", "underline": "default", "attributes": [] }, "contents": "*fifo* 3:4 " }, { "face": { "fg": "black", "bg": "yellow", "underline": "default", "attributes": [] }, "contents": "[scratch]" }, { "face": { "fg": "default", "bg": "default", "underline": "default", "attributes": [] }, "contents": " " }, { "face": { "fg": "blue", "bg": "default", "underline": "default", "attributes": [] }, "contents": "1 sel" }, { "face": { "fg": "default", "bg": "default", "underline": "default", "attributes": [] }, "contents": " - client0@[kak-tests]" }], { "fg": "cyan", "bg": "default", "underline": "default", "attributes": [] }] }'
+--- a/test/run
++++ b/test/run
+@@ -190,6 +190,12 @@ ui_out() {
+ skip_count=$(( skip_count - 1 ))
+ done
+ ;;
++ -until)
++ shift
++ while read -r event <&4; do
++ [ "$event" = "$1" ] && break
++ done
++ ;;
+ -until-grep)
+ shift
+ while
+--- a/test/tools/git/blame-in-diff/enabled
++++ b/test/tools/git/blame-in-diff/enabled
+@@ -1,2 +1,2 @@
+ #!/bin/sh
+-command -v git >/dev/null
++command -v git >/dev/null && command -v perl >/dev/null
+--- a/test/tools/git/blame-in-diff/script
++++ b/test/tools/git/blame-in-diff/script
+@@ -1,11 +1,10 @@
+-ui_out -ignore 7
+-ui_out -ignore 11
++ui_out -until '{ "jsonrpc": "2.0", "method": "refresh", "params": [false] }'
+
+ # We've jumped to the new version of line 2. Move to the old version so we
+ # can annotate the old file.
+ ui_in '{ "jsonrpc": "2.0", "method": "keys", "params": [ "k:git blame<ret>" ] }'
+-ui_out -ignore 11
++while ui_out -until-grep '"draw_status"' | grep '\[fifo\]'; do :; done > /dev/null
+
+ # We should have jumped to the old version of line 2, assert on kak_selection.
+ ui_in '{ "jsonrpc": "2.0", "method": "keys", "params": [ "x" ] }'
+-ui_out -ignore 5
++ui_out -until '{ "jsonrpc": "2.0", "method": "refresh", "params": [false] }'
+--- a/test/tools/git/blame-jump-message/enabled
++++ b/test/tools/git/blame-jump-message/enabled
+@@ -1,2 +1,2 @@
+ #!/bin/sh
+-command -v git >/dev/null
++command -v git >/dev/null && command -v perl >/dev/null
+--- a/test/tools/git/blame-jump-message/script
++++ b/test/tools/git/blame-jump-message/script
+@@ -1,6 +1,5 @@
+-while ! ui_out -until-grep draw_status | grep -v '\[fifo\]' >/dev/null;
+-do
+- :
++while true; do
++ ui_out -until-grep draw_status | grep -v '\[fifo\]' >/dev/null && break
+ done
+ actual_draw_status=$(ui_out -until-grep draw_status)
+
+@@ -11,5 +10,5 @@ EOF
+ expected_subject_json=\"$(printf '%s' "$expected_subject" | sed 's/"/\\"/g')\"
+ expected_draw_status='{ "jsonrpc": "2.0", "method": "draw_status", "params": [[{ "face": { "fg": "black", "bg": "yellow", "underline": "default", "attributes": [] }, "contents": '"$expected_subject_json"' }], [{ "face": { "fg": "default", "bg": "default", "underline": "default", "attributes": [] }, "contents": "*git* 13:2 " }, { "face": { "fg": "black", "bg": "yellow", "underline": "default", "attributes": [] }, "contents": "[scratch]" }, { "face": { "fg": "default", "bg": "default", "underline": "default", "attributes": [] }, "contents": " " }, { "face": { "fg": "blue", "bg": "default", "underline": "default", "attributes": [] }, "contents": "1 sel" }, { "face": { "fg": "default", "bg": "default", "underline": "default", "attributes": [] }, "contents": " - client0@[kak-tests]" }], { "fg": "cyan", "bg": "default", "underline": "default", "attributes": [] }] }'
+
+-assert_eq "$actual_draw_status" "$expected_draw_status"
++assert_eq "$expected_draw_status" "$actual_draw_status"
+ ui_out -ignore 2
+--- a/rc/tools/git.kak
++++ b/rc/tools/git.kak
+@@ -224,7 +224,7 @@ define-command -params 1.. \
+ execute-keys <a-l><semicolon><a-?>^commit<ret><a-semicolon>
+ } catch %{
+ # Missing commit line, assume it is an uncommitted change.
+- execute-keys <a-l><semicolon><a-?>\A<ret><a-semicolon>
++ execute-keys <a-l><semicolon>Gg<a-semicolon>
+ }
+ require-module diff
+ try %{
+diff --git a/src/file.cc b/src/file.cc
+index be2989641b..ca2d283404 100644
diff --git a/srcpkgs/kakoune/template b/srcpkgs/kakoune/template
index cea330d16886a4..c8be8086576278 100644
--- a/srcpkgs/kakoune/template
+++ b/srcpkgs/kakoune/template
@@ -1,20 +1,18 @@
# Template file for 'kakoune'
pkgname=kakoune
reverts=20180409_1
-version=2023.08.05
+version=2024.05.09
revision=1
-build_wrksrc="src"
build_style=gnu-makefile
make_build_args="debug=no gzip_man=no"
make_install_args="debug=no gzip_man=no"
-make_use_env=yes
hostmakedepends="pkg-config"
short_desc="Selection-based vim-like editor with less keystrokes"
maintainer="Orphaned <orphan@voidlinux.org>"
license="Unlicense"
homepage="https://kakoune.org"
distfiles="https://github.com/mawww/kakoune/releases/download/v${version}/kakoune-${version}.tar.bz2"
-checksum=3e45151e0addd3500de2d6a29b5aacf2267c42bb256d44a782e73defb29cda5c
+checksum=2190bddfd3af590c0593c38537088976547506f47bd6eb6c0e22350dbd16a229
post_patch() {
vsed -i -e 's/-O3//' Makefile
next prev parent reply other threads:[~2024-05-15 6:37 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-14 9:22 [PR PATCH] " ismay
2024-05-14 9:42 ` [PR PATCH] [Updated] " ismay
2024-05-14 15:48 ` ismay
2024-05-14 16:17 ` ismay
2024-05-14 16:20 ` ismay
2024-05-14 16:36 ` ismay
2024-05-14 16:54 ` ismay
2024-05-15 6:37 ` ismay [this message]
2024-05-18 12:13 ` ismay
2024-05-19 10:13 ` [PR PATCH] [Updated] kakoune: update to 2024.05.18 ismay
2024-05-20 22:59 ` [PR PATCH] [Merged]: " sgn
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240515063753.83EC6201A4@inbox.vuxu.org \
--to=ismay@users.noreply.github.com \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).