From: atweiden <atweiden@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] vim: build with +sodium feature
Date: Sun, 11 Sep 2022 07:31:33 +0200 [thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-39225@inbox.vuxu.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 2057 bytes --]
There is a new pull request by atweiden against master on the void-packages repository
https://github.com/atweiden/void-packages vim-libsodium
https://github.com/void-linux/void-packages/pull/39225
vim: build with +sodium feature
xchacha20 XChaCha20 Cipher with Poly1305 Message Authentication
Code. Medium strong till strong encryption.
Encryption is provided by the libsodium library, it
requires Vim to be built with |+sodium|.
It adds a seed and a message authentication code (MAC)
to the file. This needs at least a Vim 8.2.3022 to
read the encrypted file.
Encryption of swap files is not supported, therefore
no swap file will be used when xchacha20 encryption is
enabled.
Encryption of undo files is not yet supported,
therefore no undo file will currently be written.
CURRENTLY EXPERIMENTAL: Files written with this method
might have to be read back with the same version of
Vim if the binary format changes later.
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **YES**|**briefly**|**NO**
<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
A patch file from https://github.com/void-linux/void-packages/pull/39225.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-vim-libsodium-39225.patch --]
[-- Type: text/x-diff, Size: 2003 bytes --]
From 1de150f9d14c90ece66cb521af762c33dc55041b Mon Sep 17 00:00:00 2001
From: Andy Weidenbaum <atweiden@ioiojo.com>
Date: Sun, 11 Sep 2022 15:30:24 +1000
Subject: [PATCH] vim: build with +sodium feature
xchacha20 XChaCha20 Cipher with Poly1305 Message Authentication
Code. Medium strong till strong encryption.
Encryption is provided by the libsodium library, it
requires Vim to be built with |+sodium|.
It adds a seed and a message authentication code (MAC)
to the file. This needs at least a Vim 8.2.3022 to
read the encrypted file.
Encryption of swap files is not supported, therefore
no swap file will be used when xchacha20 encryption is
enabled.
Encryption of undo files is not yet supported,
therefore no undo file will currently be written.
CURRENTLY EXPERIMENTAL: Files written with this method
might have to be read back with the same version of
Vim if the binary format changes later.
---
srcpkgs/vim/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/vim/template b/srcpkgs/vim/template
index 4357914ae8e9..aaa5f00aec99 100644
--- a/srcpkgs/vim/template
+++ b/srcpkgs/vim/template
@@ -1,9 +1,9 @@
# Template file for 'vim'
pkgname=vim
version=9.0.0335
-revision=1
+revision=2
hostmakedepends="gettext glib-devel pkg-config"
-makedepends="acl-devel ncurses-devel
+makedepends="acl-devel libsodium-devel ncurses-devel
$(vopt_if x11 libXt-devel)
$(vopt_if gtk3 gtk+3-devel)
$(vopt_if huge 'lua53-devel perl python3-devel ruby-devel')"
@@ -40,8 +40,8 @@ pre_configure() {
}
do_configure() {
- args="--enable-cscope --enable-multibyte --with-tlib=ncursesw
- --with-ex-name=vim-ex --with-view-name=vim-view"
+ args="--enable-cscope --enable-libsodium --enable-multibyte
+ --with-tlib=ncursesw --with-ex-name=vim-ex --with-view-name=vim-view"
nohuge_args="--disable-perlinterp --disable-pythoninterp
--disable-rubyinterp --disable-netbeans --disable-gpm"
next reply other threads:[~2022-09-11 5:31 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-11 5:31 atweiden [this message]
2022-09-12 1:58 ` sgn
2022-09-12 11:36 ` atweiden
2022-09-12 11:36 ` atweiden
2022-09-12 11:37 ` atweiden
2022-09-12 11:37 ` atweiden
2022-09-12 11:37 ` atweiden
2022-09-12 13:16 ` sgn
2022-09-12 23:26 ` atweiden
2022-09-20 15:24 ` leahneukirchen
2022-12-20 1:58 ` github-actions
2023-01-04 1:59 ` [PR PATCH] [Closed]: " github-actions
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=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-39225@inbox.vuxu.org \
--to=atweiden@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).