x11/xbindkeys: MODTK_VERSION=8.6

Stuart Cassoff <[email protected]> Fri, 31 Jul 2026 10:52:42 -0400 (EDT)
Newsgroups gmane.os.openbsd.ports
Message-ID <[email protected]>
Runs fine with 8.6 on i386 and amd64.
Bonus patch for small bug fix.


Stu



MODTK_VERSION=8.6
Test the right variable inside an "if ()".



diff -Nurp /usr/ports/x11/xbindkeys/Makefile ./Makefile
--- /usr/ports/x11/xbindkeys/Makefile	Thu Oct  5 10:56:51 2023
+++ ./Makefile	Thu Jul 30 12:17:50 2026
@@ -1,4 +1,7 @@
 COMMENT =	bind keys or mouse buttons to shell commands under X11
+
+REVISION =	0
+
 DISTNAME =	xbindkeys-1.8.7
 CATEGORIES =	x11
 
@@ -13,6 +16,8 @@ WANTLIB =	X11 c
 SITES =		${HOMEPAGE:=/../}
 
 MODULES =	x11/tk
+MODTK_VERSION =	8.6
+
 RUN_DEPENDS =	${MODTK_RUN_DEPENDS} \
 		devel/desktop-file-utils
 
diff -Nurp /usr/ports/x11/xbindkeys/patches/patch-options_c ./patches/patch-options_c
--- /usr/ports/x11/xbindkeys/patches/patch-options_c	Wed Dec 31 19:00:00 1969
+++ ./patches/patch-options_c	Thu Jul 30 12:14:06 2026
@@ -0,0 +1,24 @@
+Test the right variable.
+
+
+Index: options.c
+--- options.c.orig
++++ options.c
+@@ -175,7 +175,7 @@ get_options (int argc, char **argv)
+     {
+       home = getenv ("HOME");
+ 
+-      if (rc_file != NULL)
++      if (home != NULL)
+ 	{
+ 	  strncpy (rc_file, home, sizeof (rc_file) - 20);
+ 	  strncat (rc_file, "/.xbindkeysrc", 20);
+@@ -187,7 +187,7 @@ get_options (int argc, char **argv)
+     {
+       home = getenv ("HOME");
+ 
+-      if (rc_guile_file != NULL)
++      if (home != NULL)
+ 	{
+ 	  strncpy (rc_guile_file, home, sizeof (rc_guile_file) - 20);
+ 	  strncat (rc_guile_file, "/.xbindkeysrc.scm", 20);