Update i3-gaps to 4.20.1

OK sthen@
This commit is contained in:
rsadowski 2021-11-12 09:28:46 +00:00
parent 54d75582e8
commit e9f0264595
13 changed files with 81 additions and 36 deletions

View File

@ -1,15 +1,16 @@
# $OpenBSD: Makefile,v 1.13 2021/02/27 13:55:47 sthen Exp $
# $OpenBSD: Makefile,v 1.14 2021/11/12 09:28:46 rsadowski Exp $
COMMENT = improved dynamic tiling window manager, fork with gaps
V = 4.19.1
REVISION = 1
V = 4.20.1
DISTNAME = i3-gaps-${V}
CATEGORIES = x11
HOMEPAGE = https://i3wm.org/
MAINTAINER = Rafael Sadowski <rsadowski@openbsd.org>
# BSD
PERMIT_PACKAGE = Yes

View File

@ -1,2 +1,2 @@
SHA256 (gaps-i3-4.19.1.tar.xz) = +yZ4Pc7zPZfwgBKbjQsrlXxIaxJBmIdE47lljx8FZG0=
SIZE (gaps-i3-4.19.1.tar.xz) = 1280920
SHA256 (gaps-i3-4.20.1.tar.xz) = /Y4ttm8dqCojtnFAQHj4/BAT67oarNQkXl0cLTMaOtg=
SIZE (gaps-i3-4.20.1.tar.xz) = 1288400

View File

@ -1,9 +1,9 @@
$OpenBSD: patch-etc_config,v 1.4 2021/02/13 05:59:02 rsadowski Exp $
$OpenBSD: patch-etc_config,v 1.5 2021/11/12 09:28:46 rsadowski Exp $
Index: etc/config
--- etc/config.orig
+++ etc/config
@@ -22,18 +22,18 @@ font pango:monospace 8
@@ -26,18 +26,18 @@ exec --no-startup-id dex --autostart --environment i3
# xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the
# screen before suspend. Use loginctl lock-session to lock your screen.
@ -29,7 +29,7 @@ Index: etc/config
# use these keys for focus, movement, and resize directions when reaching for
# the arrows is not convenient
@@ -46,13 +46,13 @@ set $right semicolon
@@ -50,13 +50,13 @@ set $right semicolon
floating_modifier Mod1
# start a terminal

View File

@ -1,4 +1,4 @@
$OpenBSD: patch-etc_config_keycodes,v 1.4 2021/02/13 05:59:02 rsadowski Exp $
$OpenBSD: patch-etc_config_keycodes,v 1.5 2021/11/12 09:28:46 rsadowski Exp $
Fix keycodes for the "Left", "Down", "Up" and "Right" keys: they're
different between Linux and OpenBSD.
@ -6,7 +6,7 @@ different between Linux and OpenBSD.
Index: etc/config.keycodes
--- etc/config.keycodes.orig
+++ etc/config.keycodes
@@ -23,30 +23,30 @@ font pango:monospace 8
@@ -27,30 +27,30 @@ exec --no-startup-id dex --autostart --environment i3
# xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the
# screen before suspend. Use loginctl lock-session to lock your screen.
@ -46,7 +46,7 @@ Index: etc/config.keycodes
# A more modern dmenu replacement is rofi:
# bindcode $mod+40 exec "rofi -modi drun,run -show drun"
# There also is i3-dmenu-desktop which only displays applications shipping a
@@ -60,10 +60,10 @@ bindcode $mod+46 focus up
@@ -64,10 +64,10 @@ bindcode $mod+46 focus up
bindcode $mod+47 focus right
# alternatively, you can use the cursor keys:
@ -61,7 +61,7 @@ Index: etc/config.keycodes
# move focused window
bindcode $mod+Shift+44 move left
@@ -72,10 +72,10 @@ bindcode $mod+Shift+46 move up
@@ -76,10 +76,10 @@ bindcode $mod+Shift+46 move up
bindcode $mod+Shift+47 move right
# alternatively, you can use the cursor keys:
@ -76,7 +76,7 @@ Index: etc/config.keycodes
# split in horizontal orientation
bindcode $mod+43 split h
@@ -161,10 +161,10 @@ mode "resize" {
@@ -165,10 +165,10 @@ mode "resize" {
bindcode 47 resize grow width 10 px or 10 ppt
# same bindings, but for the arrow keys

View File

@ -1,4 +1,4 @@
$OpenBSD: patch-i3-dmenu-desktop,v 1.3 2021/02/13 05:59:02 rsadowski Exp $
$OpenBSD: patch-i3-dmenu-desktop,v 1.4 2021/11/12 09:28:46 rsadowski Exp $
Index: i3-dmenu-desktop
--- i3-dmenu-desktop.orig
@ -12,7 +12,7 @@ Index: i3-dmenu-desktop
!defined($xdg_data_dirs) ||
$xdg_data_dirs eq '';
@@ -224,12 +224,12 @@ for my $file (values %desktops) {
@@ -226,12 +226,12 @@ for my $file (values %desktops) {
# 'evince.desktop' => {
# 'Exec' => 'evince %U',
# 'Name' => 'Dokumentenbetrachter',
@ -27,7 +27,7 @@ Index: i3-dmenu-desktop
# }
# };
@@ -461,7 +461,7 @@ if (exists($app->{Terminal}) && $app->{Terminal}) {
@@ -463,7 +463,7 @@ if (exists($app->{Terminal}) && $app->{Terminal}) {
# we need to create a temporary script that contains the full command line
# as the syntax for starting commands with arguments varies from terminal
# emulator to terminal emulator.
@ -36,7 +36,7 @@ Index: i3-dmenu-desktop
my ($fh, $filename) = tempfile();
binmode($fh, ':utf8');
say $fh <<EOT;
@@ -472,7 +472,7 @@ EOT
@@ -474,7 +474,7 @@ EOT
close($fh);
chmod 0755, $filename;
@ -45,7 +45,7 @@ Index: i3-dmenu-desktop
} else {
# i3 executes applications by passing the argument to i3s “exec” command
# as-is to $SHELL -c. The i3 parser supports quoted strings: When a string
@@ -513,7 +513,7 @@ notifications.
@@ -515,7 +515,7 @@ notifications.
The .desktop files are searched in $XDG_DATA_HOME/applications (by default
$HOME/.local/share/applications) and in the "applications" subdirectory of each
@ -54,7 +54,7 @@ Index: i3-dmenu-desktop
Files with the same name in $XDG_DATA_HOME/applications take precedence over
files in $XDG_DATA_DIRS, so that you can overwrite parts of the system-wide
@@ -527,7 +527,7 @@ file respectively) by appending it to the name of the
@@ -529,7 +529,7 @@ file respectively) by appending it to the name of the
want to launch "GNU Emacs 24" with the patch /tmp/foobar.txt, you would type
"emacs", press TAB, type " /tmp/foobar.txt" and press ENTER.

View File

@ -1,4 +1,4 @@
$OpenBSD: patch-i3-nagbar_main_c,v 1.4 2021/02/13 05:59:02 rsadowski Exp $
$OpenBSD: patch-i3-nagbar_main_c,v 1.5 2021/11/12 09:28:46 rsadowski Exp $
Index: i3-nagbar/main.c
--- i3-nagbar/main.c.orig
@ -12,7 +12,7 @@ Index: i3-nagbar/main.c
} else {
terminal_cmd = sstrdup(link_path);
}
@@ -459,7 +459,7 @@ int main(int argc, char *argv[]) {
@@ -507,7 +507,7 @@ int main(int argc, char *argv[]) {
font = load_font(pattern, true);
set_font(&font);

View File

@ -1,9 +1,9 @@
$OpenBSD: patch-man_i3-nagbar_man,v 1.3 2021/02/13 05:59:02 rsadowski Exp $
$OpenBSD: patch-man_i3-nagbar_man,v 1.4 2021/11/12 09:28:46 rsadowski Exp $
Index: man/i3-nagbar.man
--- man/i3-nagbar.man.orig
+++ man/i3-nagbar.man
@@ -50,7 +50,7 @@ after modifying the configuration file.
@@ -54,7 +54,7 @@ after modifying the configuration file.
------------------------------------------------
i3-nagbar -m 'You have an error in your i3 config file!' \

View File

@ -1,9 +1,9 @@
$OpenBSD: patch-man_i3_man,v 1.3 2021/02/13 05:59:02 rsadowski Exp $
$OpenBSD: patch-man_i3_man,v 1.4 2021/11/12 09:28:46 rsadowski Exp $
Index: man/i3.man
--- man/i3.man.orig
+++ man/i3.man
@@ -172,8 +172,8 @@ When starting, i3 looks for configuration files in the
@@ -175,8 +175,8 @@ When starting, i3 looks for configuration files in the
1. ~/.config/i3/config (or $XDG_CONFIG_HOME/i3/config if set)
2. ~/.i3/config
@ -14,7 +14,7 @@ Index: man/i3.man
You can specify a custom path using the -c option.
@@ -197,13 +197,13 @@ font pango:DejaVu Sans Mono 8
@@ -200,13 +200,13 @@ font pango:DejaVu Sans Mono 8
floating_modifier Mod1
# start a terminal
@ -30,7 +30,7 @@ Index: man/i3.man
# change focus
bindsym Mod1+j focus left
@@ -316,7 +316,7 @@ ulimit -c unlimited
@@ -319,7 +319,7 @@ ulimit -c unlimited
# Start i3 and log to ~/.i3/logfile
echo "Starting at $(date)" >> ~/.i3/logfile

View File

@ -1,9 +1,9 @@
$OpenBSD: patch-meson_build,v 1.1 2021/02/13 10:51:01 rsadowski Exp $
$OpenBSD: patch-meson_build,v 1.2 2021/11/12 09:28:46 rsadowski Exp $
Index: meson.build
--- meson.build.orig
+++ meson.build
@@ -598,7 +598,7 @@ install_headers(
@@ -607,7 +607,7 @@ install_headers(
# because configure_file strips the backslash in e.g. \@display,
# resulting in @display, breaking our Perl code:
# https://github.com/mesonbuild/meson/issues/7165

View File

@ -1,9 +1,9 @@
$OpenBSD: patch-src_bindings_c,v 1.3 2021/02/13 05:59:02 rsadowski Exp $
$OpenBSD: patch-src_bindings_c,v 1.4 2021/11/12 09:28:46 rsadowski Exp $
Index: src/bindings.c
--- src/bindings.c.orig
+++ src/bindings.c
@@ -835,7 +835,7 @@ CommandResult *run_binding(Binding *bind, Con *con) {
@@ -851,7 +851,7 @@ CommandResult *run_binding(Binding *bind, Con *con) {
if (result->parse_error) {
char *pageraction;

View File

@ -0,0 +1,44 @@
$OpenBSD: patch-src_config_directives_c,v 1.3 2021/11/12 09:28:46 rsadowski Exp $
Index: src/config_directives.c
--- src/config_directives.c.orig
+++ src/config_directives.c
@@ -9,7 +9,7 @@
*/
#include "all.h"
-#include <wordexp.h>
+#include <glob.h>
/*******************************************************************************
* Include functions.
@@ -18,15 +18,15 @@
CFGFUN(include, const char *pattern) {
DLOG("include %s\n", pattern);
- wordexp_t p;
- const int ret = wordexp(pattern, &p, 0);
+ glob_t p;
+ const int ret = glob(pattern, GLOB_ERR, NULL, &p );
if (ret != 0) {
- ELOG("wordexp(%s): error %d\n", pattern, ret);
+ ELOG("glob(%s): error %d\n", pattern, ret);
result->has_errors = true;
return;
}
- char **w = p.we_wordv;
- for (size_t i = 0; i < p.we_wordc; i++) {
+ char **w = p.gl_pathv;
+ for (size_t i = 0; i < p.gl_pathc; i++) {
char resolved_path[PATH_MAX] = {'\0'};
if (realpath(w[i], resolved_path) == NULL) {
LOG("Skipping %s: %s\n", w[i], strerror(errno));
@@ -86,7 +86,7 @@ CFGFUN(include, const char *pattern) {
break;
}
}
- wordfree(&p);
+ globfree(&p);
}
/*******************************************************************************

View File

@ -1,9 +1,9 @@
$OpenBSD: patch-src_config_parser_c,v 1.3 2021/02/13 05:59:02 rsadowski Exp $
$OpenBSD: patch-src_config_parser_c,v 1.4 2021/11/12 09:28:46 rsadowski Exp $
Index: src/config_parser.c
--- src/config_parser.c.orig
+++ src/config_parser.c
@@ -792,8 +792,8 @@ static char *migrate_config(char *input, off_t size) {
@@ -752,8 +752,8 @@ static char *migrate_config(char *input, off_t size) {
*/
void start_config_error_nagbar(const char *configpath, bool has_errors) {
char *editaction, *pageraction;

View File

@ -1,10 +1,10 @@
$OpenBSD: patch-src_main_c,v 1.3 2021/02/13 05:59:02 rsadowski Exp $
$OpenBSD: patch-src_main_c,v 1.4 2021/11/12 09:28:46 rsadowski Exp $
Index: src/main.c
--- src/main.c.orig
+++ src/main.c
@@ -970,7 +970,7 @@ int main(int argc, char *argv[]) {
xcb_free_pixmap(conn, pixmap);
@@ -1125,7 +1125,7 @@ int main(int argc, char *argv[]) {
}
}
-#if defined(__OpenBSD__)