On Thu, 10 Nov 2016, Theo Buehler wrote: > On Thu, Nov 10, 2016 at 11:13:27PM +0100, David Coppa wrote: > > On Thu, Nov 10, 2016 at 10:06 PM, David Coppa <[email protected]> wrote: > > > > > > Hi i3 users, > > > > > > Here's the update to i3-4.13. > > > > > > Please test and report (comments, OKs, whatever...) > > > > > > Ciao! > > > David > > > > And here's the diff as attachment, if the inline one causes problems. > > Thanks, running it now. Will probably have time to look more closely at > the diff tomorrow or on Saturday.
New diff (also attached) with patches for manpages.
I think this is ready for commit...
Ciao!
David
Index: Makefile
===================================================================
RCS file: /cvs/ports/x11/i3/Makefile,v
retrieving revision 1.105
diff -u -p -u -p -r1.105 Makefile
--- Makefile 29 Aug 2016 09:13:37 -0000 1.105
+++ Makefile 11 Nov 2016 11:14:30 -0000
@@ -2,8 +2,7 @@
COMMENT = improved dynamic tiling window manager
-DISTNAME = i3-4.12
-REVISION = 0
+DISTNAME = i3-4.13
CATEGORIES = x11
EXTRACT_SUFX = .tar.bz2
@@ -16,9 +15,13 @@ PERMIT_PACKAGE_CDROM = Yes
# uses pledge()
WANTLIB += c cairo ev glib-2.0 gobject-2.0 iconv intl m pango-1.0
-WANTLIB += pangocairo-1.0 pcre startup-notification-1 xcb xcb-cursor
-WANTLIB += xcb-icccm xcb-keysyms xcb-randr xcb-render xcb-util
-WANTLIB += xcb-xinerama xcb-xkb xkbcommon xkbcommon-x11 yajl
+WANTLIB += pangocairo-1.0 pcre pthread startup-notification-1 xcb
+WANTLIB += xcb-cursor xcb-icccm xcb-keysyms xcb-randr xcb-util
+WANTLIB += xcb-xinerama xcb-xkb xcb-xrm xkbcommon xkbcommon-x11
+WANTLIB += yajl
+
+BUILD_DEPENDS = textproc/asciidoc \
+ textproc/xmlto
LIB_DEPENDS = devel/libev \
devel/libyajl>=2.0.0 \
@@ -32,40 +35,29 @@ RUN_DEPENDS = devel/desktop-file-utils \
x11/i3status \
x11/p5-AnyEvent-I3
+FAKE_FLAGS = i3confdir="${PREFIX}/share/examples/i3/"
+
+SEPARATE_BUILD = Yes
+
USE_GMAKE = Yes
-NO_TEST = Yes
+CONFIGURE_STYLE = gnu
-MAKE_FLAGS = CC="${CC}" \
- SYSCONFDIR=${SYSCONFDIR} \
- V=1
-
-.if defined(DEBUG)
-MAKE_FLAGS += DEBUG=1
-.endif
-
-FAKE_FLAGS = PREFIX=${PREFIX} \
- EXEC_PREFIX=${PREFIX} \
- SYSCONFDIR=${PREFIX}/share/examples \
- INSTALL_DATA="${INSTALL_DATA}" \
- INSTALL_PROGRAM="${INSTALL_PROGRAM}" \
- INSTALL_SCRIPT="${INSTALL_SCRIPT}"
+CONFIGURE_ARGS = --enable-builddir=${WRKBUILD}
-post-configure:
- ${SUBST_CMD} ${WRKSRC}/i3-dmenu-desktop \
+CONFIGURE_ENV = CPPFLAGS="-I${X11BASE}/include \
+ -I${LOCALBASE}/include" \
+ LDFLAGS="-L${X11BASE}/lib \
+ -L${LOCALBASE}/lib"
+
+pre-configure:
+ ${SUBST_CMD} ${WRKSRC}/etc/config \
+ ${WRKSRC}/etc/config.keycodes \
+ ${WRKSRC}/i3-dmenu-desktop \
${WRKSRC}/i3-nagbar/main.c \
- ${WRKSRC}/i3.config \
- ${WRKSRC}/i3.config.keycodes \
${WRKSRC}/libi3/get_config_path.c \
- ${WRKSRC}/libi3/get_exe_path.c
-
-post-install:
- ${INSTALL_MAN} ${WRKBUILD}/man/*.1 ${PREFIX}/man/man1/
- ${SUBST_MAN} ${WRKBUILD}/man/i3-config-wizard.1 \
- ${PREFIX}/man/man1/i3-config-wizard.1
- ${SUBST_MAN} ${WRKBUILD}/man/i3-dmenu-desktop.1 \
- ${PREFIX}/man/man1/i3-dmenu-desktop.1
- ${SUBST_MAN} ${WRKBUILD}/man/i3.1 ${PREFIX}/man/man1/i3.1
- @rm ${PREFIX}/man/man1/i3-sensible*.1
+ ${WRKSRC}/libi3/get_exe_path.c \
+ ${WRKSRC}/man/i3-config-wizard.man \
+ ${WRKSRC}/man/i3.man
.include <bsd.port.mk>
Index: distinfo
===================================================================
RCS file: /cvs/ports/x11/i3/distinfo,v
retrieving revision 1.25
diff -u -p -u -p -r1.25 distinfo
--- distinfo 9 Mar 2016 09:25:51 -0000 1.25
+++ distinfo 11 Nov 2016 11:14:30 -0000
@@ -1,2 +1,2 @@
-SHA256 (i3-4.12.tar.bz2) = 4Z4c4IwlScuoPgg8x2jUhyAsQXYNXCg/Z3UueR8deLQ=
-SIZE (i3-4.12.tar.bz2) = 988084
+SHA256 (i3-4.13.tar.bz2) = lMExg+UnqYQTKjsFDIv2KWJlAqbhM+B7QTZBrsX4z4o=
+SIZE (i3-4.13.tar.bz2) = 1121298
Index: patches/patch-Makefile_in
===================================================================
RCS file: patches/patch-Makefile_in
diff -N patches/patch-Makefile_in
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-Makefile_in 11 Nov 2016 11:14:30 -0000
@@ -0,0 +1,34 @@
+$OpenBSD$
+--- Makefile.in.orig Tue Nov 8 19:54:08 2016
++++ Makefile.in Thu Nov 10 19:44:19 2016
+@@ -744,10 +744,7 @@ i3include_HEADERS = \
+ dist_bin_SCRIPTS = \
+ i3-dmenu-desktop \
+ i3-migrate-config-to-v4 \
+- i3-save-tree \
+- i3-sensible-editor \
+- i3-sensible-pager \
+- i3-sensible-terminal
++ i3-save-tree
+
+ i3confdir = $(sysconfdir)/i3
+ dist_i3conf_DATA = \
+@@ -882,9 +879,6 @@ docs_poddir = ${docdir}
+ @BUILD_MANS_TRUE@ man/i3-nagbar.1 \
+ @BUILD_MANS_TRUE@ man/i3-config-wizard.1 \
+ @BUILD_MANS_TRUE@ man/i3-migrate-config-to-v4.1 \
+-@BUILD_MANS_TRUE@ man/i3-sensible-editor.1 \
+-@BUILD_MANS_TRUE@ man/i3-sensible-pager.1 \
+-@BUILD_MANS_TRUE@ man/i3-sensible-terminal.1 \
+ @BUILD_MANS_TRUE@ man/i3-dump-log.1
+
+ @BUILD_MANS_TRUE@pod_MANS = \
+@@ -3121,7 +3115,7 @@ distclean-tags:
+
+ # Leading 'am--fnord' is there to ensure the list of targets does not
+ # expand to empty, as could happen e.g. with make check TESTS=''.
+-am--fnord $(TEST_LOGS) $(TEST_LOGS:.log=.trs): $(am__force_recheck)
++am--fnord $(TEST_LOGS): $(am__force_recheck)
+ am--force-recheck:
+ @:
+
Index: patches/patch-common_mk
===================================================================
RCS file: patches/patch-common_mk
diff -N patches/patch-common_mk
--- patches/patch-common_mk 9 Mar 2016 09:25:51 -0000 1.24
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,15 +0,0 @@
-$OpenBSD: patch-common_mk,v 1.24 2016/03/09 09:25:51 dcoppa Exp $
---- common.mk.orig Sun Mar 6 16:17:18 2016
-+++ common.mk Mon Mar 7 15:15:37 2016
-@@ -171,9 +171,9 @@ I3_LDFLAGS += -Wl,-rpath,/usr/local/lib -Wl,-rpath,/us
- endif
-
- ifeq ($(UNAME),OpenBSD)
--I3_CFLAGS += -I${X11BASE}/include
-+I3_CFLAGS += -I${X11BASE}/include -I${LOCALBASE}/include
- LIBS += -liconv
--I3_LDFLAGS += -L${X11BASE}/lib
-+I3_LDFLAGS += -L${X11BASE}/lib -L${LOCALBASE}/lib
- endif
-
- ifeq ($(UNAME),FreeBSD)
Index: patches/patch-configure
===================================================================
RCS file: patches/patch-configure
diff -N patches/patch-configure
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-configure 11 Nov 2016 11:14:30 -0000
@@ -0,0 +1,12 @@
+$OpenBSD$
+--- configure.orig Thu Nov 10 21:43:14 2016
++++ configure Thu Nov 10 21:43:53 2016
+@@ -3351,7 +3351,7 @@ if test "x$_cv_gnu_make_command" = x""; then :
+ fi
+
+ case $srcdir in #(
+- .|.*) :
++ /*|.|.*) :
+
+ # pwd -P is specified in IEEE 1003.1 from 2004
+ as_dir=`cd "$srcdir" && pwd -P`
Index: patches/patch-etc_config
===================================================================
RCS file: patches/patch-etc_config
diff -N patches/patch-etc_config
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-etc_config 11 Nov 2016 11:14:30 -0000
@@ -0,0 +1,19 @@
+$OpenBSD$
+--- etc/config.orig Sun Mar 29 19:07:08 2015
++++ etc/config Mon Mar 30 14:13:25 2015
+@@ -35,13 +35,13 @@ set $right semicolon
+ floating_modifier Mod1
+
+ # start a terminal
+-bindsym Mod1+Return exec i3-sensible-terminal
++bindsym Mod1+Return exec ${X11BASE}/bin/xterm
+
+ # kill focused window
+ bindsym Mod1+Shift+q kill
+
+ # start dmenu (a program launcher)
+-bindsym Mod1+d exec dmenu_run
++bindsym Mod1+d exec ${LOCALBASE}/bin/dmenu_run
+ # There also is the (new) i3-dmenu-desktop which only displays applications
+ # shipping a .desktop file. It is a wrapper around dmenu, so you need that
+ # installed.
Index: patches/patch-etc_config_keycodes
===================================================================
RCS file: patches/patch-etc_config_keycodes
diff -N patches/patch-etc_config_keycodes
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-etc_config_keycodes 11 Nov 2016 11:14:30 -0000
@@ -0,0 +1,68 @@
+$OpenBSD$
+
+Fix keycodes for the "Left", "Down", "Up" and "Right" keys: they're
+different between Linux and OpenBSD.
+
+--- etc/config.keycodes.orig Sun Mar 29 19:07:08 2015
++++ etc/config.keycodes Mon Mar 30 14:13:25 2015
+@@ -29,13 +29,13 @@ font pango:monospace 8
+ floating_modifier $mod
+
+ # start a terminal
+-bindcode $mod+36 exec i3-sensible-terminal
++bindcode $mod+36 exec ${X11BASE}/bin/xterm
+
+ # kill focused window
+ bindcode $mod+Shift+24 kill
+
+ # start dmenu (a program launcher)
+-bindcode $mod+40 exec dmenu_run
++bindcode $mod+40 exec ${LOCALBASE}/bin/dmenu_run
+ # There also is the (new) i3-dmenu-desktop which only displays applications
+ # shipping a .desktop file. It is a wrapper around dmenu, so you need that
+ # installed.
+@@ -48,10 +48,10 @@ bindcode $mod+46 focus up
+ bindcode $mod+47 focus right
+
+ # alternatively, you can use the cursor keys:
+-bindcode $mod+113 focus left
+-bindcode $mod+116 focus down
+-bindcode $mod+111 focus up
+-bindcode $mod+114 focus right
++bindcode $mod+100 focus left
++bindcode $mod+104 focus down
++bindcode $mod+98 focus up
++bindcode $mod+102 focus right
+
+ # move focused window
+ bindcode $mod+Shift+44 move left
+@@ -60,10 +60,10 @@ bindcode $mod+Shift+46 move up
+ bindcode $mod+Shift+47 move right
+
+ # alternatively, you can use the cursor keys:
+-bindcode $mod+Shift+113 move left
+-bindcode $mod+Shift+116 move down
+-bindcode $mod+Shift+111 move up
+-bindcode $mod+Shift+114 move right
++bindcode $mod+Shift+100 move left
++bindcode $mod+Shift+104 move down
++bindcode $mod+Shift+98 move up
++bindcode $mod+Shift+102 move right
+
+ # split in horizontal orientation
+ bindcode $mod+43 split h
+@@ -136,10 +136,10 @@ mode "resize" {
+ bindcode 47 resize grow width 10 px or 10 ppt
+
+ # same bindings, but for the arrow keys
+- bindcode 113 resize shrink width 10 px or 10 ppt
+- bindcode 116 resize grow height 10 px or 10 ppt
+- bindcode 111 resize shrink height 10 px or 10 ppt
+- bindcode 114 resize grow width 10 px or 10 ppt
++ bindcode 100 resize shrink width 10 px or 10 ppt
++ bindcode 104 resize grow height 10 px or 10 ppt
++ bindcode 98 resize shrink height 10 px or 10 ppt
++ bindcode 102 resize grow width 10 px or 10 ppt
+
+ # back to normal: Enter or Escape
+ bindcode 36 mode "default"
Index: patches/patch-i3-config-wizard_i3-config-wizard_mk
===================================================================
RCS file: patches/patch-i3-config-wizard_i3-config-wizard_mk
diff -N patches/patch-i3-config-wizard_i3-config-wizard_mk
--- patches/patch-i3-config-wizard_i3-config-wizard_mk 4 Oct 2015 08:48:12
-0000 1.3
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,12 +0,0 @@
-$OpenBSD: patch-i3-config-wizard_i3-config-wizard_mk,v 1.3 2015/10/04 08:48:12
dcoppa Exp $
---- i3-config-wizard/i3-config-wizard.mk.orig Fri Sep 21 11:40:58 2012
-+++ i3-config-wizard/i3-config-wizard.mk Fri Sep 21 11:42:00 2012
-@@ -21,7 +21,7 @@ i3-config-wizard/i3-config-wizard: libi3.a $(i3_config
- install-i3-config-wizard: i3-config-wizard/i3-config-wizard
- echo "[i3-config-wizard] Install"
- $(INSTALL) -d -m 0755 $(DESTDIR)$(EXEC_PREFIX)/bin
-- $(INSTALL) -m 0755 i3-config-wizard/i3-config-wizard
$(DESTDIR)$(EXEC_PREFIX)/bin/
-+ ${INSTALL_PROGRAM} i3-config-wizard/i3-config-wizard
$(DESTDIR)$(EXEC_PREFIX)/bin/
-
- clean-i3-config-wizard:
- echo "[i3-config-wizard] Clean"
Index: patches/patch-i3-dmenu-desktop
===================================================================
RCS file: /cvs/ports/x11/i3/patches/patch-i3-dmenu-desktop,v
retrieving revision 1.5
diff -u -p -u -p -r1.5 patch-i3-dmenu-desktop
--- patches/patch-i3-dmenu-desktop 17 Mar 2015 15:39:47 -0000 1.5
+++ patches/patch-i3-dmenu-desktop 11 Nov 2016 11:14:30 -0000
@@ -1,7 +1,7 @@
$OpenBSD: patch-i3-dmenu-desktop,v 1.5 2015/03/17 15:39:47 dcoppa Exp $
---- i3-dmenu-desktop.orig Sun Jun 15 19:12:43 2014
-+++ i3-dmenu-desktop Fri Jul 11 16:49:32 2014
-@@ -107,7 +107,7 @@ $xdg_data_home = $ENV{HOME} . '/.local/share' if
+--- i3-dmenu-desktop.orig Tue Nov 8 19:54:01 2016
++++ i3-dmenu-desktop Thu Nov 10 18:04:35 2016
+@@ -111,7 +111,7 @@ $xdg_data_home = $ENV{HOME} . '/.local/share' if
! -d $xdg_data_home;
my $xdg_data_dirs = $ENV{XDG_DATA_DIRS};
@@ -10,7 +10,7 @@ $OpenBSD: patch-i3-dmenu-desktop,v 1.5 2
!defined($xdg_data_dirs) ||
$xdg_data_dirs eq '';
-@@ -209,12 +209,12 @@ for my $file (values %desktops) {
+@@ -213,12 +213,12 @@ for my $file (values %desktops) {
# 'evince.desktop' => {
# 'Exec' => 'evince %U',
# 'Name' => 'Dokumentenbetrachter',
@@ -25,7 +25,7 @@ $OpenBSD: patch-i3-dmenu-desktop,v 1.5 2
# }
# };
-@@ -420,7 +420,7 @@ if (exists($app->{Terminal}) && $app->{Terminal}) {
+@@ -424,7 +424,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.
@@ -34,7 +34,7 @@ $OpenBSD: patch-i3-dmenu-desktop,v 1.5 2
my ($fh, $filename) = tempfile();
binmode($fh, ':utf8');
say $fh <<EOT;
-@@ -431,7 +431,7 @@ EOT
+@@ -435,7 +435,7 @@ EOT
close($fh);
chmod 0755, $filename;
@@ -43,7 +43,7 @@ $OpenBSD: patch-i3-dmenu-desktop,v 1.5 2
} else {
# i3 executes applications by passing the argument to i3???s ???exec???
command
# as-is to $SHELL -c. The i3 parser supports quoted strings: When a string
-@@ -472,7 +472,7 @@ notifications.
+@@ -476,7 +476,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
@@ -52,7 +52,7 @@ $OpenBSD: patch-i3-dmenu-desktop,v 1.5 2
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
-@@ -486,7 +486,7 @@ file respectively) by appending it to the name of the
+@@ -490,7 +490,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.
Index: patches/patch-i3-dump-log_i3-dump-log_mk
===================================================================
RCS file: patches/patch-i3-dump-log_i3-dump-log_mk
diff -N patches/patch-i3-dump-log_i3-dump-log_mk
--- patches/patch-i3-dump-log_i3-dump-log_mk 4 Oct 2015 08:48:12 -0000
1.2
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,12 +0,0 @@
-$OpenBSD: patch-i3-dump-log_i3-dump-log_mk,v 1.2 2015/10/04 08:48:12 dcoppa
Exp $
---- i3-dump-log/i3-dump-log.mk.orig Thu May 23 11:38:40 2013
-+++ i3-dump-log/i3-dump-log.mk Thu May 23 11:40:29 2013
-@@ -21,7 +21,7 @@ i3-dump-log/i3-dump-log: libi3.a $(i3_dump_log_OBJECTS
- install-i3-dump-log: i3-dump-log/i3-dump-log
- echo "[i3-dump-log] Install"
- $(INSTALL) -d -m 0755 $(DESTDIR)$(EXEC_PREFIX)/bin
-- $(INSTALL) -m 0755 i3-dump-log/i3-dump-log $(DESTDIR)$(EXEC_PREFIX)/bin/
-+ ${INSTALL_PROGRAM} i3-dump-log/i3-dump-log $(DESTDIR)$(EXEC_PREFIX)/bin/
-
- clean-i3-dump-log:
- echo "[i3-dump-log] Clean"
Index: patches/patch-i3-dump-log_main_c
===================================================================
RCS file: patches/patch-i3-dump-log_main_c
diff -N patches/patch-i3-dump-log_main_c
--- patches/patch-i3-dump-log_main_c 9 Mar 2016 09:25:51 -0000 1.4
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,82 +0,0 @@
-$OpenBSD: patch-i3-dump-log_main_c,v 1.4 2016/03/09 09:25:51 dcoppa Exp $
-
-OpenBSD lacks pthread_condattr_setpshared()
-
---- i3-dump-log/main.c.orig Sun Mar 6 16:17:18 2016
-+++ i3-dump-log/main.c Mon Mar 7 15:15:37 2016
-@@ -28,8 +28,12 @@
- #include "shmlog.h"
- #include <i3/ipc.h>
-
-+#if !defined(__OpenBSD__)
- static uint32_t offset_next_write,
- wrap_count;
-+#else
-+static uint32_t wrap_count;
-+#endif
-
- static i3_shmlog_header *header;
- static char *logbuffer,
-@@ -57,17 +61,27 @@ static void print_till_end(void) {
-
- int main(int argc, char *argv[]) {
- int o, option_index = 0;
-+#if !defined(__OpenBSD__)
- bool verbose = false,
- follow = false;
-+#else
-+ bool verbose = false;
-+#endif
-
- static struct option long_options[] = {
- {"version", no_argument, 0, 'v'},
- {"verbose", no_argument, 0, 'V'},
-+#if !defined(__OpenBSD__)
- {"follow", no_argument, 0, 'f'},
-+#endif
- {"help", no_argument, 0, 'h'},
- {0, 0, 0, 0}};
-
-+#if !defined(__OpenBSD__)
- char *options_string = "s:vfVh";
-+#else
-+ char *options_string = "vVh";
-+#endif
-
- while ((o = getopt_long(argc, argv, options_string, long_options,
&option_index)) != -1) {
- if (o == 'v') {
-@@ -75,11 +89,17 @@ int main(int argc, char *argv[]) {
- return 0;
- } else if (o == 'V') {
- verbose = true;
-+#if !defined(__OpenBSD__)
- } else if (o == 'f') {
- follow = true;
-+#endif
- } else if (o == 'h') {
- printf("i3-dump-log " I3_VERSION "\n");
-- printf("i3-dump-log [-f] [-s <socket>]\n");
-+#if !defined(__OpenBSD__)
-+ printf("i3-dump-log [-fhVv]\n");
-+#else
-+ printf("i3-dump-log [-hVv]\n");
-+#endif
- return 0;
- }
- }
-@@ -162,6 +182,7 @@ int main(int argc, char *argv[]) {
- walk = logbuffer + sizeof(i3_shmlog_header);
- print_till_end();
-
-+#if !defined(__OpenBSD__)
- if (follow) {
- /* Since pthread_cond_wait() expects a mutex, we need to provide one.
- * To not lock i3 (that???s bad, mhkay?) we just define one outside of
-@@ -177,6 +198,7 @@ int main(int argc, char *argv[]) {
- }
- }
- }
-+#endif
-
- return 0;
- }
Index: patches/patch-i3-input_i3-input_mk
===================================================================
RCS file: patches/patch-i3-input_i3-input_mk
diff -N patches/patch-i3-input_i3-input_mk
--- patches/patch-i3-input_i3-input_mk 4 Oct 2015 08:48:12 -0000 1.2
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,12 +0,0 @@
-$OpenBSD: patch-i3-input_i3-input_mk,v 1.2 2015/10/04 08:48:12 dcoppa Exp $
---- i3-input/i3-input.mk.orig Fri Sep 21 11:42:35 2012
-+++ i3-input/i3-input.mk Fri Sep 21 11:43:10 2012
-@@ -21,7 +21,7 @@ i3-input/i3-input: libi3.a $(i3_input_OBJECTS)
- install-i3-input: i3-input/i3-input
- echo "[i3-input] Install"
- $(INSTALL) -d -m 0755 $(DESTDIR)$(EXEC_PREFIX)/bin
-- $(INSTALL) -m 0755 i3-input/i3-input $(DESTDIR)$(EXEC_PREFIX)/bin/
-+ ${INSTALL_PROGRAM} i3-input/i3-input $(DESTDIR)$(EXEC_PREFIX)/bin/
-
- clean-i3-input:
- echo "[i3-input] Clean"
Index: patches/patch-i3-msg_i3-msg_mk
===================================================================
RCS file: patches/patch-i3-msg_i3-msg_mk
diff -N patches/patch-i3-msg_i3-msg_mk
--- patches/patch-i3-msg_i3-msg_mk 4 Oct 2015 08:48:12 -0000 1.2
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,21 +0,0 @@
-$OpenBSD: patch-i3-msg_i3-msg_mk,v 1.2 2015/10/04 08:48:12 dcoppa Exp $
---- i3-msg/i3-msg.mk.orig Wed Sep 19 18:08:09 2012
-+++ i3-msg/i3-msg.mk Fri Sep 21 15:22:52 2012
-@@ -12,7 +12,7 @@ i3_msg_OBJECTS := $(i3_msg_SOURCES:.c=.o)
-
- i3-msg/%.o: i3-msg/%.c $(i3_msg_HEADERS)
- echo "[i3-msg] CC $<"
-- $(CC) $(I3_CPPFLAGS) $(XCB_CPPFLAGS) $(CPPFLAGS) $(i3_msg_CFLAGS)
$(I3_CFLAGS) $(CFLAGS) -c -o $@ $<
-+ $(CC) $(I3_CPPFLAGS) $(XCB_CPPFLAGS) $(CPPFLAGS) $(I3_CFLAGS)
$(i3_msg_CFLAGS) $(CFLAGS) -c -o $@ $<
-
- i3-msg/i3-msg: libi3.a $(i3_msg_OBJECTS)
- echo "[i3-msg] Link i3-msg"
-@@ -21,7 +21,7 @@ i3-msg/i3-msg: libi3.a $(i3_msg_OBJECTS)
- install-i3-msg: i3-msg/i3-msg
- echo "[i3-msg] Install"
- $(INSTALL) -d -m 0755 $(DESTDIR)$(EXEC_PREFIX)/bin
-- $(INSTALL) -m 0755 i3-msg/i3-msg $(DESTDIR)$(EXEC_PREFIX)/bin/
-+ ${INSTALL_PROGRAM} i3-msg/i3-msg $(DESTDIR)$(EXEC_PREFIX)/bin/
-
- clean-i3-msg:
- echo "[i3-msg] Clean"
Index: patches/patch-i3-nagbar_i3-nagbar_mk
===================================================================
RCS file: patches/patch-i3-nagbar_i3-nagbar_mk
diff -N patches/patch-i3-nagbar_i3-nagbar_mk
--- patches/patch-i3-nagbar_i3-nagbar_mk 4 Oct 2015 08:48:12 -0000
1.2
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,12 +0,0 @@
-$OpenBSD: patch-i3-nagbar_i3-nagbar_mk,v 1.2 2015/10/04 08:48:12 dcoppa Exp $
---- i3-nagbar/i3-nagbar.mk.orig Fri Sep 21 11:45:36 2012
-+++ i3-nagbar/i3-nagbar.mk Fri Sep 21 11:45:51 2012
-@@ -21,7 +21,7 @@ i3-nagbar/i3-nagbar: libi3.a $(i3_nagbar_OBJECTS)
- install-i3-nagbar: i3-nagbar/i3-nagbar
- echo "[i3-nagbar] Install"
- $(INSTALL) -d -m 0755 $(DESTDIR)$(EXEC_PREFIX)/bin
-- $(INSTALL) -m 0755 i3-nagbar/i3-nagbar $(DESTDIR)$(EXEC_PREFIX)/bin/
-+ ${INSTALL_PROGRAM} i3-nagbar/i3-nagbar $(DESTDIR)$(EXEC_PREFIX)/bin/
-
- clean-i3-nagbar:
- echo "[i3-nagbar] Clean"
Index: patches/patch-i3-nagbar_main_c
===================================================================
RCS file: /cvs/ports/x11/i3/patches/patch-i3-nagbar_main_c,v
retrieving revision 1.10
diff -u -p -u -p -r1.10 patch-i3-nagbar_main_c
--- patches/patch-i3-nagbar_main_c 9 Mar 2016 09:25:51 -0000 1.10
+++ patches/patch-i3-nagbar_main_c 11 Nov 2016 11:14:30 -0000
@@ -1,8 +1,8 @@
$OpenBSD: patch-i3-nagbar_main_c,v 1.10 2016/03/09 09:25:51 dcoppa Exp $
---- i3-nagbar/main.c.orig Sun Mar 6 16:17:18 2016
-+++ i3-nagbar/main.c Mon Mar 7 15:15:37 2016
-@@ -175,7 +175,7 @@ static void handle_button_release(xcb_connection_t *co
+--- i3-nagbar/main.c.orig Tue Nov 8 19:54:01 2016
++++ i3-nagbar/main.c Thu Nov 10 18:04:35 2016
+@@ -176,7 +176,7 @@ static void handle_button_release(xcb_connection_t *co
}
char *terminal_cmd;
Index: patches/patch-i3_config
===================================================================
RCS file: patches/patch-i3_config
diff -N patches/patch-i3_config
--- patches/patch-i3_config 30 Mar 2015 12:33:46 -0000 1.16
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,19 +0,0 @@
-$OpenBSD: patch-i3_config,v 1.16 2015/03/30 12:33:46 dcoppa Exp $
---- i3.config.orig Sun Mar 29 19:07:08 2015
-+++ i3.config Mon Mar 30 14:13:25 2015
-@@ -35,13 +35,13 @@ set $right semicolon
- floating_modifier Mod1
-
- # start a terminal
--bindsym Mod1+Return exec i3-sensible-terminal
-+bindsym Mod1+Return exec ${X11BASE}/bin/xterm
-
- # kill focused window
- bindsym Mod1+Shift+q kill
-
- # start dmenu (a program launcher)
--bindsym Mod1+d exec dmenu_run
-+bindsym Mod1+d exec ${LOCALBASE}/bin/dmenu_run
- # There also is the (new) i3-dmenu-desktop which only displays applications
- # shipping a .desktop file. It is a wrapper around dmenu, so you need that
- # installed.
Index: patches/patch-i3_config_keycodes
===================================================================
RCS file: patches/patch-i3_config_keycodes
diff -N patches/patch-i3_config_keycodes
--- patches/patch-i3_config_keycodes 30 Mar 2015 12:33:46 -0000 1.12
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,68 +0,0 @@
-$OpenBSD: patch-i3_config_keycodes,v 1.12 2015/03/30 12:33:46 dcoppa Exp $
-
-Fix keycodes for the "Left", "Down", "Up" and "Right" keys: they're
-different between Linux and OpenBSD.
-
---- i3.config.keycodes.orig Sun Mar 29 19:07:08 2015
-+++ i3.config.keycodes Mon Mar 30 14:13:25 2015
-@@ -29,13 +29,13 @@ font pango:monospace 8
- floating_modifier $mod
-
- # start a terminal
--bindcode $mod+36 exec i3-sensible-terminal
-+bindcode $mod+36 exec ${X11BASE}/bin/xterm
-
- # kill focused window
- bindcode $mod+Shift+24 kill
-
- # start dmenu (a program launcher)
--bindcode $mod+40 exec dmenu_run
-+bindcode $mod+40 exec ${LOCALBASE}/bin/dmenu_run
- # There also is the (new) i3-dmenu-desktop which only displays applications
- # shipping a .desktop file. It is a wrapper around dmenu, so you need that
- # installed.
-@@ -48,10 +48,10 @@ bindcode $mod+46 focus up
- bindcode $mod+47 focus right
-
- # alternatively, you can use the cursor keys:
--bindcode $mod+113 focus left
--bindcode $mod+116 focus down
--bindcode $mod+111 focus up
--bindcode $mod+114 focus right
-+bindcode $mod+100 focus left
-+bindcode $mod+104 focus down
-+bindcode $mod+98 focus up
-+bindcode $mod+102 focus right
-
- # move focused window
- bindcode $mod+Shift+44 move left
-@@ -60,10 +60,10 @@ bindcode $mod+Shift+46 move up
- bindcode $mod+Shift+47 move right
-
- # alternatively, you can use the cursor keys:
--bindcode $mod+Shift+113 move left
--bindcode $mod+Shift+116 move down
--bindcode $mod+Shift+111 move up
--bindcode $mod+Shift+114 move right
-+bindcode $mod+Shift+100 move left
-+bindcode $mod+Shift+104 move down
-+bindcode $mod+Shift+98 move up
-+bindcode $mod+Shift+102 move right
-
- # split in horizontal orientation
- bindcode $mod+43 split h
-@@ -136,10 +136,10 @@ mode "resize" {
- bindcode 47 resize grow width 10 px or 10 ppt
-
- # same bindings, but for the arrow keys
-- bindcode 113 resize shrink width 10 px or 10 ppt
-- bindcode 116 resize grow height 10 px or 10 ppt
-- bindcode 111 resize shrink height 10 px or 10 ppt
-- bindcode 114 resize grow width 10 px or 10 ppt
-+ bindcode 100 resize shrink width 10 px or 10 ppt
-+ bindcode 104 resize grow height 10 px or 10 ppt
-+ bindcode 98 resize shrink height 10 px or 10 ppt
-+ bindcode 102 resize grow width 10 px or 10 ppt
-
- # back to normal: Enter or Escape
- bindcode 36 mode "default"
Index: patches/patch-i3bar_i3bar_mk
===================================================================
RCS file: patches/patch-i3bar_i3bar_mk
diff -N patches/patch-i3bar_i3bar_mk
--- patches/patch-i3bar_i3bar_mk 4 Oct 2015 08:48:12 -0000 1.2
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,12 +0,0 @@
-$OpenBSD: patch-i3bar_i3bar_mk,v 1.2 2015/10/04 08:48:12 dcoppa Exp $
---- i3bar/i3bar.mk.orig Fri Sep 21 11:43:45 2012
-+++ i3bar/i3bar.mk Fri Sep 21 11:44:13 2012
-@@ -21,7 +21,7 @@ i3bar/i3bar: libi3.a $(i3bar_OBJECTS)
- install-i3bar: i3bar/i3bar
- echo "[i3bar] Install"
- $(INSTALL) -d -m 0755 $(DESTDIR)$(EXEC_PREFIX)/bin
-- $(INSTALL) -m 0755 i3bar/i3bar $(DESTDIR)$(EXEC_PREFIX)/bin/
-+ ${INSTALL_PROGRAM} i3bar/i3bar $(DESTDIR)$(EXEC_PREFIX)/bin/
-
- clean-i3bar:
- echo "[i3bar] Clean"
Index: patches/patch-include_shmlog_h
===================================================================
RCS file: patches/patch-include_shmlog_h
diff -N patches/patch-include_shmlog_h
--- patches/patch-include_shmlog_h 11 Jul 2014 15:49:58 -0000 1.3
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,27 +0,0 @@
-$OpenBSD: patch-include_shmlog_h,v 1.3 2014/07/11 15:49:58 dcoppa Exp $
-
-OpenBSD lacks pthread_condattr_setpshared()
-
---- include/shmlog.h.orig Sun Jun 15 19:12:43 2014
-+++ include/shmlog.h Thu Jul 3 21:06:32 2014
-@@ -11,7 +11,9 @@
- #pragma once
-
- #include <stdint.h>
-+#if !defined(__OpenBSD__)
- #include <pthread.h>
-+#endif
-
- /* Default shmlog size if not set by user. */
- extern const int default_shmlog_size;
-@@ -37,8 +39,10 @@ typedef struct i3_shmlog_header {
- * and don???t matter ??? clients use an equality check (==). */
- uint32_t wrap_count;
-
-+#if !defined(__OpenBSD__)
- /* pthread condvar which will be broadcasted whenever there is a new
- * message in the log. i3-dump-log uses this to implement -f (follow, like
- * tail -f) in an efficient way. */
- pthread_cond_t condvar;
-+#endif
- } i3_shmlog_header;
Index: patches/patch-libi3_get_config_path_c
===================================================================
RCS file: /cvs/ports/x11/i3/patches/patch-libi3_get_config_path_c,v
retrieving revision 1.1
diff -u -p -u -p -r1.1 patch-libi3_get_config_path_c
--- patches/patch-libi3_get_config_path_c 4 Oct 2015 08:48:12 -0000
1.1
+++ patches/patch-libi3_get_config_path_c 11 Nov 2016 11:14:30 -0000
@@ -1,7 +1,7 @@
$OpenBSD: patch-libi3_get_config_path_c,v 1.1 2015/10/04 08:48:12 dcoppa Exp $
---- libi3/get_config_path.c.orig Sun Oct 4 10:09:31 2015
-+++ libi3/get_config_path.c Sun Oct 4 10:09:58 2015
-@@ -70,7 +70,7 @@ char *get_config_path(const char *override_configpath,
+--- libi3/get_config_path.c.orig Tue Nov 8 19:54:01 2016
++++ libi3/get_config_path.c Thu Nov 10 18:04:35 2016
+@@ -71,7 +71,7 @@ char *get_config_path(const char *override_configpath,
/* 4: check for $XDG_CONFIG_DIRS/i3/config */
if ((xdg_config_dirs = getenv("XDG_CONFIG_DIRS")) == NULL)
Index: patches/patch-libi3_get_exe_path_c
===================================================================
RCS file: /cvs/ports/x11/i3/patches/patch-libi3_get_exe_path_c,v
retrieving revision 1.2
diff -u -p -u -p -r1.2 patch-libi3_get_exe_path_c
--- patches/patch-libi3_get_exe_path_c 11 Jul 2014 15:49:58 -0000 1.2
+++ patches/patch-libi3_get_exe_path_c 11 Nov 2016 11:14:30 -0000
@@ -1,7 +1,7 @@
$OpenBSD: patch-libi3_get_exe_path_c,v 1.2 2014/07/11 15:49:58 dcoppa Exp $
---- libi3/get_exe_path.c.orig Sun Jun 15 19:12:43 2014
-+++ libi3/get_exe_path.c Thu Jul 3 21:06:32 2014
-@@ -96,5 +96,5 @@ char *get_exe_path(const char *argv0) {
+--- libi3/get_exe_path.c.orig Tue Nov 8 19:54:01 2016
++++ libi3/get_exe_path.c Thu Nov 10 18:04:35 2016
+@@ -103,5 +103,5 @@ char *get_exe_path(const char *argv0) {
free(tmp);
/* Last resort: maybe it???s in /usr/bin? */
Index: patches/patch-libi3_libi3_mk
===================================================================
RCS file: patches/patch-libi3_libi3_mk
diff -N patches/patch-libi3_libi3_mk
--- patches/patch-libi3_libi3_mk 16 May 2013 18:42:30 -0000 1.2
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,12 +0,0 @@
-$OpenBSD: patch-libi3_libi3_mk,v 1.2 2013/05/16 18:42:30 dcoppa Exp $
---- libi3/libi3.mk.orig Thu Dec 27 15:01:05 2012
-+++ libi3/libi3.mk Thu Dec 27 15:01:40 2012
-@@ -10,7 +10,7 @@ libi3_OBJECTS := $(libi3_SOURCES:.c=.o)
-
- libi3/%.o: libi3/%.c $(libi3_HEADERS)
- echo "[libi3] CC $<"
-- $(CC) $(I3_CPPFLAGS) $(XCB_CPPFLAGS) $(CPPFLAGS) $(libi3_CFLAGS)
$(I3_CFLAGS) $(CFLAGS) -c -o $@ $<
-+ $(CC) $(I3_CPPFLAGS) $(XCB_CPPFLAGS) $(CPPFLAGS) $(I3_CFLAGS)
$(libi3_CFLAGS) $(CFLAGS) -c -o $@ $<
-
- libi3.a: $(libi3_OBJECTS)
- echo "[libi3] AR libi3.a"
Index: patches/patch-man_i3-config-wizard_1
===================================================================
RCS file: patches/patch-man_i3-config-wizard_1
diff -N patches/patch-man_i3-config-wizard_1
--- patches/patch-man_i3-config-wizard_1 1 Dec 2011 16:00:01 -0000
1.1
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,18 +0,0 @@
-$OpenBSD: patch-man_i3-config-wizard_1,v 1.1 2011/12/01 16:00:01 dcoppa Exp $
---- man/i3-config-wizard.1.orig Thu Dec 1 15:05:38 2011
-+++ man/i3-config-wizard.1 Thu Dec 1 15:09:23 2011
-@@ -33,12 +33,12 @@ i3-config-wizard \- creates a keysym based config base
- .sp
- i3\-config\-wizard
- .SH "FILES"
--.SS "/etc/i3/config\&.keycodes"
-+.SS "${SYSCONFDIR}/i3/config\&.keycodes"
- .sp
- This file contains the default configuration with keycodes\&. All the
bindcode lines will be transformed to bindsym and the user\-specified modifier
will be used\&.
- .SH "DESCRIPTION"
- .sp
--i3\-config\-wizard is started by i3 in its default config, unless
/\&.i3/config exists\&. i3\-config\-wizard creates a keysym based i3 config
file (based on /etc/i3/config\&.keycodes) in /\&.i3/config\&.
-+i3\-config\-wizard is started by i3 in its default config, unless
/\&.i3/config exists\&. i3\-config\-wizard creates a keysym based i3 config
file (based on ${SYSCONFDIR}/i3/config\&.keycodes) in /\&.i3/config\&.
- .sp
- The advantage of using keysyms is that the config file is easy to read,
understand and modify\&. However, if we shipped with a keysym based default
config file, the key positions would not be consistent across different
keyboard layouts (take for example the homerow for movement)\&. Therefore, we
ship with a keycode based default config and let the wizard transform it
according to your current keyboard layout\&.
- .SH "SEE ALSO"
Index: patches/patch-man_i3-config-wizard_man
===================================================================
RCS file: patches/patch-man_i3-config-wizard_man
diff -N patches/patch-man_i3-config-wizard_man
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-man_i3-config-wizard_man 11 Nov 2016 11:14:30 -0000
@@ -0,0 +1,21 @@
+$OpenBSD$
+--- man/i3-config-wizard.man.orig Fri Nov 11 10:55:30 2016
++++ man/i3-config-wizard.man Fri Nov 11 11:02:04 2016
+@@ -13,7 +13,7 @@ i3-config-wizard
+
+ == FILES
+
+-=== /etc/i3/config.keycodes
++=== ${SYSCONFDIR}/i3/config.keycodes
+
+ This file contains the default configuration with keycodes. All the bindcode
+ lines will be transformed to bindsym and the user-specified modifier will be
+@@ -23,7 +23,7 @@ used.
+
+ i3-config-wizard is started by i3 in its default config, unless ~/.i3/config
+ exists. i3-config-wizard creates a keysym based i3 config file (based on
+-/etc/i3/config.keycodes) in ~/.i3/config.
++${SYSCONFDIR}/i3/config.keycodes) in ~/.i3/config.
+
+ The advantage of using keysyms is that the config file is easy to read,
+ understand and modify. However, if we shipped with a keysym based default
Index: patches/patch-man_i3-dmenu-desktop_1
===================================================================
RCS file: patches/patch-man_i3-dmenu-desktop_1
diff -N patches/patch-man_i3-dmenu-desktop_1
--- patches/patch-man_i3-dmenu-desktop_1 11 Jan 2014 16:04:43 -0000
1.2
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,21 +0,0 @@
-$OpenBSD: patch-man_i3-dmenu-desktop_1,v 1.2 2014/01/11 16:04:43 dcoppa Exp $
---- man/i3-dmenu-desktop.1.orig Sun Dec 22 21:12:52 2013
-+++ man/i3-dmenu-desktop.1 Fri Jan 10 16:31:33 2014
-@@ -98,7 +98,7 @@ notifications.
- .PP
- The .desktop files are searched in \f(CW$XDG_DATA_HOME\fR/applications (by
default
- \&\f(CW$HOME\fR/.local/share/applications) and in the \*(L"applications\*(R"
subdirectory of each
--entry of \f(CW$XDG_DATA_DIRS\fR (by default /usr/local/share/:/usr/share/).
-+entry of \f(CW$XDG_DATA_DIRS\fR (by default ${LOCALBASE}/share/).
- .PP
- Files with the same name in \f(CW$XDG_DATA_HOME\fR/applications take
precedence over
- files in \f(CW$XDG_DATA_DIRS\fR, so that you can overwrite parts of the
system-wide
-@@ -112,7 +112,7 @@ file respectively) by appending it to the name of the
- want to launch \*(L"\s-1GNU\s0 Emacs 24\*(R" with the patch /tmp/foobar.txt,
you would type
- \&\*(L"emacs\*(R", press \s-1TAB,\s0 type \*(L" /tmp/foobar.txt\*(R" and
press \s-1ENTER.\s0
- .PP
--\&.desktop files with Terminal=true are started using
\fIi3\-sensible\-terminal\fR\|(1).
-+\&.desktop files with Terminal=true are started using \fIxterm\fR\|(1).
- .PP
- \&.desktop files with NoDisplay=true or Hidden=true are skipped.
- .PP
Index: patches/patch-man_i3-dump-log_1
===================================================================
RCS file: patches/patch-man_i3-dump-log_1
diff -N patches/patch-man_i3-dump-log_1
--- patches/patch-man_i3-dump-log_1 11 Jan 2014 16:04:43 -0000 1.2
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,19 +0,0 @@
-$OpenBSD: patch-man_i3-dump-log_1,v 1.2 2014/01/11 16:04:43 dcoppa Exp $
---- man/i3-dump-log.1.orig Sun Dec 22 21:12:52 2013
-+++ man/i3-dump-log.1 Fri Jan 10 17:03:23 2014
-@@ -31,14 +31,12 @@
- i3-dump-log \- dumps the i3 SHM log
- .SH "SYNOPSIS"
- .sp
--i3\-dump\-log [\-s <socketpath>] [\-f]
-+i3\-dump\-log [\-hVv]
- .SH "DESCRIPTION"
- .sp
- Debug versions of i3 automatically use 1% of your RAM (but 25 MiB max) to
store full debug log output\&. This is extremely helpful for bugreports and
figuring out what is going on, without permanently logging to a file\&.
- .sp
- With i3\-dump\-log, you can dump the SHM log to stdout\&.
--.sp
--The \-f flag works like tail \-f, i\&.e\&. the process does not terminate
after dumping the log, but prints new lines as they appear\&.
- .SH "EXAMPLE"
- .sp
- i3\-dump\-log | gzip \-9 > /tmp/i3\-log\&.gz
Index: patches/patch-man_i3-dump-log_man
===================================================================
RCS file: patches/patch-man_i3-dump-log_man
diff -N patches/patch-man_i3-dump-log_man
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-man_i3-dump-log_man 11 Nov 2016 11:14:30 -0000
@@ -0,0 +1,22 @@
+$OpenBSD$
+--- man/i3-dump-log.man.orig Fri Nov 11 11:05:52 2016
++++ man/i3-dump-log.man Fri Nov 11 11:07:08 2016
+@@ -9,7 +9,7 @@ i3-dump-log - dumps the i3 SHM log
+
+ == SYNOPSIS
+
+-i3-dump-log [-s <socketpath>] [-f]
++i3-dump-log [-hVv]
+
+ == DESCRIPTION
+
+@@ -18,9 +18,6 @@ full debug log output. This is extremely helpful for b
+ figuring out what is going on, without permanently logging to a file.
+
+ With i3-dump-log, you can dump the SHM log to stdout.
+-
+-The -f flag works like tail -f, i.e. the process does not terminate after
+-dumping the log, but prints new lines as they appear.
+
+ == EXAMPLE
+
Index: patches/patch-man_i3-migrate-config-to-v4_1
===================================================================
RCS file: patches/patch-man_i3-migrate-config-to-v4_1
diff -N patches/patch-man_i3-migrate-config-to-v4_1
--- patches/patch-man_i3-migrate-config-to-v4_1 9 Mar 2016 09:25:51 -0000
1.21
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,18 +0,0 @@
-$OpenBSD: patch-man_i3-migrate-config-to-v4_1,v 1.21 2016/03/09 09:25:51
dcoppa Exp $
-
-The escape sequence \" introduces a comment.
-Consequently, the rest of the input line is ignored.
-That means the information that this is a section 1 manual page and
-the date of the last change is lost.
-
---- man/i3-migrate-config-to-v4.1.orig Wed Sep 30 08:55:23 2015
-+++ man/i3-migrate-config-to-v4.1 Fri Oct 2 16:59:55 2015
-@@ -7,7 +7,7 @@
- .\" Source: i3 4.12
- .\" Language: English
- .\"
--.TH "I3\-MIGRATE\-CONFIG\" "1" "03/06/2016" "i3 4\&.12" "i3 Manual"
-+.TH "I3\-MIGRATE\-CONFIG" "1" "03/06/2016" "i3 4\&.12" "i3 Manual"
- .\" -----------------------------------------------------------------
- .\" * Define some portability stuff
- .\" -----------------------------------------------------------------
Index: patches/patch-man_i3-nagbar_man
===================================================================
RCS file: patches/patch-man_i3-nagbar_man
diff -N patches/patch-man_i3-nagbar_man
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-man_i3-nagbar_man 11 Nov 2016 11:14:30 -0000
@@ -0,0 +1,12 @@
+$OpenBSD$
+--- man/i3-nagbar.man.orig Tue Nov 8 19:54:01 2016
++++ man/i3-nagbar.man Fri Nov 11 11:19:10 2016
+@@ -44,7 +44,7 @@ after modifying the configuration file.
+
+ ------------------------------------------------
+ i3-nagbar -m 'You have an error in your i3 config file!' \
+--b 'edit config' 'i3-sensible-editor ~/.config/i3/config'
++-b 'edit config' '/usr/bin/vi ~/.config/i3/config'
+ ------------------------------------------------
+
+ == SEE ALSO
Index: patches/patch-man_i3_1
===================================================================
RCS file: patches/patch-man_i3_1
diff -N patches/patch-man_i3_1
--- patches/patch-man_i3_1 9 Mar 2016 09:25:51 -0000 1.8
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,46 +0,0 @@
-$OpenBSD: patch-man_i3_1,v 1.8 2016/03/09 09:25:51 dcoppa Exp $
---- man/i3.1.orig Sun Mar 6 16:17:27 2016
-+++ man/i3.1 Mon Mar 7 15:15:37 2016
-@@ -245,7 +245,7 @@ When starting, i3 looks for configuration files in the
- .sp -1
- .IP " 2." 4.2
- .\}
--/etc/xdg/i3/config (or $XDG_CONFIG_DIRS/i3/config if set)
-+${SYSCONFDIR}/xdg/i3/config (or $XDG_CONFIG_DIRS/i3/config if set)
- .RE
- .sp
- .RS 4
-@@ -267,7 +267,7 @@ When starting, i3 looks for configuration files in the
- .sp -1
- .IP " 4." 4.2
- .\}
--/etc/i3/config
-+${SYSCONFDIR}/i3/config
- .RE
- .sp
- You can specify a custom path using the \-c option\&.
-@@ -296,13 +296,13 @@ font pango:DejaVu Sans Mono 8
- floating_modifier Mod1
-
- # start a terminal
--bindsym Mod1+Return exec /usr/bin/urxvt
-+bindsym Mod1+Return exec ${X11BASE}/bin/xterm
-
- # kill focused window
- bindsym Mod1+Shift+q kill
-
- # start dmenu (a program launcher)
--bindsym Mod1+d exec /usr/bin/dmenu_run
-+bindsym Mod1+d exec ${LOCALBASE}/bin/dmenu_run
-
- # change focus
- bindsym Mod1+j focus left
-@@ -421,7 +421,7 @@ ulimit \-c unlimited
-
- # Start i3 and log to ~/\&.i3/logfile
- echo "Starting at $(date)" >> ~/\&.i3/logfile
--exec /usr/bin/i3 \-V \-d all >> ~/\&.i3/logfile
-+exec ${TRUEPREFIX}/bin/i3 \-V \-d all >> ~/\&.i3/logfile
- .fi
- .if n \{\
- .RE
Index: patches/patch-man_i3_man
===================================================================
RCS file: patches/patch-man_i3_man
diff -N patches/patch-man_i3_man
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-man_i3_man 11 Nov 2016 11:14:30 -0000
@@ -0,0 +1,40 @@
+$OpenBSD$
+--- man/i3.man.orig Fri Nov 11 11:07:56 2016
++++ man/i3.man Fri Nov 11 11:10:25 2016
+@@ -171,9 +171,9 @@ Exits i3.
+ When starting, i3 looks for configuration files in the following order:
+
+ 1. ~/.config/i3/config (or $XDG_CONFIG_HOME/i3/config if set)
+-2. /etc/xdg/i3/config (or $XDG_CONFIG_DIRS/i3/config if set)
++2. ${SYSCONFDIR}/xdg/i3/config (or $XDG_CONFIG_DIRS/i3/config if set)
+ 3. ~/.i3/config
+-4. /etc/i3/config
++4. ${SYSCONFDIR}/i3/config
+
+ You can specify a custom path using the -c option.
+
+@@ -197,13 +197,13 @@ font pango:DejaVu Sans Mono 8
+ floating_modifier Mod1
+
+ # start a terminal
+-bindsym Mod1+Return exec /usr/bin/urxvt
++bindsym Mod1+Return exec ${X11BASE}/bin/xterm
+
+ # kill focused window
+ bindsym Mod1+Shift+q kill
+
+ # start dmenu (a program launcher)
+-bindsym Mod1+d exec /usr/bin/dmenu_run
++bindsym Mod1+d exec ${LOCALBASE}/bin/dmenu_run
+
+ # change focus
+ bindsym Mod1+j focus left
+@@ -316,7 +316,7 @@ ulimit -c unlimited
+
+ # Start i3 and log to ~/.i3/logfile
+ echo "Starting at $(date)" >> ~/.i3/logfile
+-exec /usr/bin/i3 -V -d all >> ~/.i3/logfile
++exec ${TRUEPREFIX}/bin/i3 -V -d all >> ~/.i3/logfile
+ -------------------------------------------------------------
+
+ == ENVIRONMENT
Index: patches/patch-src_bindings_c
===================================================================
RCS file: /cvs/ports/x11/i3/patches/patch-src_bindings_c,v
retrieving revision 1.5
diff -u -p -u -p -r1.5 patch-src_bindings_c
--- patches/patch-src_bindings_c 9 Mar 2016 09:25:51 -0000 1.5
+++ patches/patch-src_bindings_c 11 Nov 2016 11:14:30 -0000
@@ -1,7 +1,7 @@
$OpenBSD: patch-src_bindings_c,v 1.5 2016/03/09 09:25:51 dcoppa Exp $
---- src/bindings.c.orig Sun Mar 6 16:17:18 2016
-+++ src/bindings.c Mon Mar 7 15:15:37 2016
-@@ -663,7 +663,7 @@ CommandResult *run_binding(Binding *bind, Con *con) {
+--- src/bindings.c.orig Tue Nov 8 19:54:01 2016
++++ src/bindings.c Thu Nov 10 18:04:35 2016
+@@ -797,7 +797,7 @@ CommandResult *run_binding(Binding *bind, Con *con) {
if (result->parse_error) {
char *pageraction;
Index: patches/patch-src_config_parser_c
===================================================================
RCS file: /cvs/ports/x11/i3/patches/patch-src_config_parser_c,v
retrieving revision 1.9
diff -u -p -u -p -r1.9 patch-src_config_parser_c
--- patches/patch-src_config_parser_c 9 Mar 2016 09:25:51 -0000 1.9
+++ patches/patch-src_config_parser_c 11 Nov 2016 11:14:30 -0000
@@ -1,7 +1,7 @@
$OpenBSD: patch-src_config_parser_c,v 1.9 2016/03/09 09:25:51 dcoppa Exp $
---- src/config_parser.c.orig Mon Mar 7 15:15:54 2016
-+++ src/config_parser.c Mon Mar 7 15:16:45 2016
-@@ -788,8 +788,8 @@ static char *migrate_config(char *input, off_t size) {
+--- src/config_parser.c.orig Tue Nov 8 19:54:01 2016
++++ src/config_parser.c Thu Nov 10 18:04:35 2016
+@@ -789,8 +789,8 @@ static char *migrate_config(char *input, off_t size) {
*/
void start_config_error_nagbar(const char *configpath, bool has_errors) {
char *editaction, *pageraction;
Index: patches/patch-src_i3_mk
===================================================================
RCS file: patches/patch-src_i3_mk
diff -N patches/patch-src_i3_mk
--- patches/patch-src_i3_mk 9 Mar 2016 09:25:51 -0000 1.11
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,50 +0,0 @@
-$OpenBSD: patch-src_i3_mk,v 1.11 2016/03/09 09:25:51 dcoppa Exp $
-
-OpenBSD lacks pthread_condattr_setpshared(), so no need to link
-with libpthread here.
-
---- src/i3.mk.orig Wed Sep 30 08:55:10 2015
-+++ src/i3.mk Sun Oct 4 10:06:37 2015
-@@ -6,7 +6,11 @@ i3_SOURCES := $(filter-out $(i3_SOURCES_GENE
- i3_HEADERS_CMDPARSER := $(wildcard include/GENERATED_*.h)
- i3_HEADERS := $(filter-out $(i3_HEADERS_CMDPARSER),$(wildcard
include/*.h))
- i3_CFLAGS = $(XKB_COMMON_CFLAGS) $(XKB_COMMON_X11_CFLAGS)
$(XCB_CFLAGS) $(XCB_KBD_CFLAGS) $(XCB_WM_CFLAGS) $(XCB_CURSOR_CFLAGS)
$(PANGO_CFLAGS) $(YAJL_CFLAGS) $(LIBEV_CFLAGS) $(PCRE_CFLAGS) $(LIBSN_CFLAGS)
-+ifneq ($(UNAME),OpenBSD)
- i3_LIBS = $(XKB_COMMON_LIBS) $(XKB_COMMON_X11_LIBS) $(XCB_LIBS)
$(XCB_XKB_LIBS) $(XCB_KBD_LIBS) $(XCB_WM_LIBS) $(XCB_CURSOR_LIBS) $(PANGO_LIBS)
$(YAJL_LIBS) $(LIBEV_LIBS) $(PCRE_LIBS) $(LIBSN_LIBS) -lm -lpthread
-+else
-+i3_LIBS = $(XKB_COMMON_LIBS) $(XKB_COMMON_X11_LIBS) $(XCB_LIBS)
$(XCB_XKB_LIBS) $(XCB_KBD_LIBS) $(XCB_WM_LIBS) $(XCB_CURSOR_LIBS) $(PANGO_LIBS)
$(YAJL_LIBS) $(LIBEV_LIBS) $(PCRE_LIBS) $(LIBSN_LIBS) -lm
-+endif
-
- # When using clang, we use pre-compiled headers to speed up the build. With
- # gcc, this actually makes the build slower.
-@@ -79,20 +83,17 @@ install-i3: i3
- $(INSTALL) -d -m 0755 $(DESTDIR)$(EXEC_PREFIX)/include/i3
- $(INSTALL) -d -m 0755 $(DESTDIR)$(PREFIX)/share/xsessions
- $(INSTALL) -d -m 0755 $(DESTDIR)$(PREFIX)/share/applications
-- $(INSTALL) -m 0755 i3 $(DESTDIR)$(EXEC_PREFIX)/bin/
-+ $(INSTALL_PROGRAM) i3 $(DESTDIR)$(EXEC_PREFIX)/bin/
- $(LN) -sf i3 $(DESTDIR)$(EXEC_PREFIX)/bin/i3-with-shmlog
-- $(INSTALL) -m 0755 i3-migrate-config-to-v4 $(DESTDIR)$(EXEC_PREFIX)/bin/
-- $(INSTALL) -m 0755 i3-sensible-editor $(DESTDIR)$(EXEC_PREFIX)/bin/
-- $(INSTALL) -m 0755 i3-sensible-pager $(DESTDIR)$(EXEC_PREFIX)/bin/
-- $(INSTALL) -m 0755 i3-sensible-terminal $(DESTDIR)$(EXEC_PREFIX)/bin/
-- $(INSTALL) -m 0755 i3-save-tree $(DESTDIR)$(EXEC_PREFIX)/bin/
-- $(INSTALL) -m 0755 i3-dmenu-desktop $(DESTDIR)$(EXEC_PREFIX)/bin/
-- test -e $(DESTDIR)$(SYSCONFDIR)/i3/config || $(INSTALL) -m 0644
i3.config $(DESTDIR)$(SYSCONFDIR)/i3/config
-- test -e $(DESTDIR)$(SYSCONFDIR)/i3/config.keycodes || $(INSTALL) -m
0644 i3.config.keycodes $(DESTDIR)$(SYSCONFDIR)/i3/config.keycodes
-- $(INSTALL) -m 0644 i3.xsession.desktop
$(DESTDIR)$(PREFIX)/share/xsessions/i3.desktop
-- $(INSTALL) -m 0644 i3-with-shmlog.xsession.desktop
$(DESTDIR)$(PREFIX)/share/xsessions/i3-with-shmlog.desktop
-- $(INSTALL) -m 0644 i3.applications.desktop
$(DESTDIR)$(PREFIX)/share/applications/i3.desktop
-- $(INSTALL) -m 0644 include/i3/ipc.h $(DESTDIR)$(EXEC_PREFIX)/include/i3/
-+ $(INSTALL_SCRIPT) i3-migrate-config-to-v4 $(DESTDIR)$(EXEC_PREFIX)/bin/
-+ $(INSTALL_SCRIPT) i3-save-tree $(DESTDIR)$(EXEC_PREFIX)/bin/
-+ $(INSTALL_SCRIPT) i3-dmenu-desktop $(DESTDIR)$(EXEC_PREFIX)/bin/
-+ $(INSTALL_DATA) i3.config $(DESTDIR)$(SYSCONFDIR)/i3/config
-+ $(INSTALL_DATA) i3.config.keycodes
$(DESTDIR)$(SYSCONFDIR)/i3/config.keycodes
-+ $(INSTALL_DATA) i3.xsession.desktop
$(DESTDIR)$(PREFIX)/share/xsessions/i3.desktop
-+ $(INSTALL_DATA) i3-with-shmlog.xsession.desktop
$(DESTDIR)$(PREFIX)/share/xsessions/i3-with-shmlog.desktop
-+ $(INSTALL_DATA) i3.applications.desktop
$(DESTDIR)$(PREFIX)/share/applications/i3.desktop
-+ $(INSTALL_DATA) include/i3/ipc.h $(DESTDIR)$(EXEC_PREFIX)/include/i3/
-
- clean-i3:
- echo "[i3] Clean"
Index: patches/patch-src_ipc_c
===================================================================
RCS file: patches/patch-src_ipc_c
diff -N patches/patch-src_ipc_c
--- patches/patch-src_ipc_c 9 Mar 2016 09:25:51 -0000 1.16
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,14 +0,0 @@
-$OpenBSD: patch-src_ipc_c,v 1.16 2016/03/09 09:25:51 dcoppa Exp $
-
-Add missing header
-
---- src/ipc.c.orig Sun Jun 15 19:12:43 2014
-+++ src/ipc.c Fri Jul 11 16:39:36 2014
-@@ -12,6 +12,7 @@
- #include "all.h"
- #include "yajl_utils.h"
-
-+#include <sys/types.h>
- #include <sys/socket.h>
- #include <sys/un.h>
- #include <fcntl.h>
Index: patches/patch-src_log_c
===================================================================
RCS file: patches/patch-src_log_c
diff -N patches/patch-src_log_c
--- patches/patch-src_log_c 9 Mar 2016 09:25:51 -0000 1.12
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,41 +0,0 @@
-$OpenBSD: patch-src_log_c,v 1.12 2016/03/09 09:25:51 dcoppa Exp $
-
-OpenBSD lacks pthread_condattr_setpshared()
-
---- src/log.c.orig Sun Mar 6 16:17:18 2016
-+++ src/log.c Mon Mar 7 15:15:37 2016
-@@ -20,7 +20,9 @@
- #include <sys/mman.h>
- #include <sys/stat.h>
- #include <errno.h>
-+#if !defined(__OpenBSD__)
- #include <pthread.h>
-+#endif
-
- #include "util.h"
- #include "log.h"
-@@ -157,11 +159,13 @@ void open_logbuffer(void) {
-
- header = (i3_shmlog_header *)logbuffer;
-
-+#if !defined(__OpenBSD__)
- pthread_condattr_t cond_attr;
- pthread_condattr_init(&cond_attr);
- if (pthread_condattr_setpshared(&cond_attr, PTHREAD_PROCESS_SHARED) != 0)
- fprintf(stderr, "pthread_condattr_setpshared() failed, i3-dump-log -f
will not work!\n");
- pthread_cond_init(&(header->condvar), &cond_attr);
-+#endif
-
- logwalk = logbuffer + sizeof(i3_shmlog_header);
- loglastwrap = logbuffer + logbuffer_size;
-@@ -277,8 +281,10 @@ static void vlog(const bool print, const char *fmt, va
-
- store_log_markers();
-
-+#if !defined(__OpenBSD__)
- /* Wake up all (i3-dump-log) processes waiting for condvar. */
- pthread_cond_broadcast(&(header->condvar));
-+#endif
-
- if (print)
- fwrite(message, len, 1, stdout);
Index: patches/patch-src_manage_c
===================================================================
RCS file: /cvs/ports/x11/i3/patches/patch-src_manage_c,v
retrieving revision 1.18
diff -u -p -u -p -r1.18 patch-src_manage_c
--- patches/patch-src_manage_c 9 Mar 2016 09:25:51 -0000 1.18
+++ patches/patch-src_manage_c 11 Nov 2016 11:14:30 -0000
@@ -1,7 +1,7 @@
$OpenBSD: patch-src_manage_c,v 1.18 2016/03/09 09:25:51 dcoppa Exp $
---- src/manage.c.orig Sun Mar 6 16:17:18 2016
-+++ src/manage.c Tue Mar 8 13:31:05 2016
-@@ -468,10 +468,16 @@ void manage_window(xcb_window_t window, xcb_get_window
+--- src/manage.c.orig Tue Nov 8 19:54:01 2016
++++ src/manage.c Thu Nov 10 18:04:35 2016
+@@ -480,10 +480,16 @@ void manage_window(xcb_window_t window, xcb_get_window
if (cwindow->dock)
want_floating = false;
Index: patches/patch-src_startup_c
===================================================================
RCS file: patches/patch-src_startup_c
diff -N patches/patch-src_startup_c
--- patches/patch-src_startup_c 9 Mar 2016 09:25:51 -0000 1.7
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,28 +0,0 @@
-$OpenBSD: patch-src_startup_c,v 1.7 2016/03/09 09:25:51 dcoppa Exp $
-
-On OpenBSD, time_t is long long.
-
---- src/startup.c.orig Sun Jun 15 19:12:43 2014
-+++ src/startup.c Wed Jul 2 20:42:22 2014
-@@ -103,8 +103,8 @@ static int _prune_startup_sequences(void) {
- */
- void startup_sequence_delete(struct Startup_Sequence *sequence) {
- assert(sequence != NULL);
-- DLOG("Deleting startup sequence %s, delete_at = %ld, current_time =
%ld\n",
-- sequence->id, sequence->delete_at, time(NULL));
-+ DLOG("Deleting startup sequence %s, delete_at = %lld, current_time =
%lld\n",
-+ sequence->id, (long long)sequence->delete_at, (long long)time(NULL));
-
- /* Unref the context, will be free()d */
- sn_launcher_context_unref(sequence->context);
-@@ -239,8 +239,8 @@ void startup_monitor_event(SnMonitorEvent *event, void
- /* Mark the given sequence for deletion in 30 seconds. */
- time_t current_time = time(NULL);
- sequence->delete_at = current_time + 30;
-- DLOG("Will delete startup sequence %s at timestamp %ld\n",
-- sequence->id, sequence->delete_at);
-+ DLOG("Will delete startup sequence %s at timestamp %lld\n",
-+ sequence->id, (long long)sequence->delete_at);
-
- if (_prune_startup_sequences() == 0) {
- DLOG("No more startup sequences running, changing root window
cursor to default pointer.\n");
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/x11/i3/pkg/PLIST,v
retrieving revision 1.10
diff -u -p -u -p -r1.10 PLIST
--- pkg/PLIST 11 Jul 2014 15:49:58 -0000 1.10
+++ pkg/PLIST 11 Nov 2016 11:14:30 -0000
@@ -25,6 +25,18 @@ include/i3/ipc.h
@man man/man1/i3.1
@man man/man1/i3bar.1
share/applications/i3.desktop
+share/doc/i3/
+share/doc/i3/debugging.html
+share/doc/i3/hacking-howto.html
+share/doc/i3/i3bar-protocol.html
+share/doc/i3/ipc.html
+share/doc/i3/layout-saving.html
+share/doc/i3/lib-i3test-test.html
+share/doc/i3/lib-i3test.html
+share/doc/i3/multi-monitor.html
+share/doc/i3/testsuite.html
+share/doc/i3/userguide.html
+share/doc/i3/wsbar.html
share/examples/i3/
@sample ${SYSCONFDIR}/i3/
share/examples/i3/config
i3-4.13_rev2.diff.gz
Description: application/gunzip
