Index | Thread | Search

From:
Volker Schlecht <openbsd-ports@schlecht.dev>
Subject:
Re: [NEW] devel/libscfg and wayland/kanshi
To:
ports@openbsd.org, Matthieu Herrb <matthieu@openbsd.org>
Date:
Mon, 6 Apr 2026 11:15:37 +0200

Download raw body.

Thread
On 4/6/26 10:25 AM, Matthieu Herrb wrote:

>> I've had very similar files in my tree for some time. Looks like I
>> never submitted them though. Ok matthieu@
>>
> 
> Hmm I answered too fast. I forgot that I think that without kanshictl
> the port is not fully useable. To build kanshictl one needs devel/vali
> and devel/aml ports. I've ports for that. Attached below (still in a
> rough state) and an updated kanshi port.

I planned to come to that next ;-) I don't have much of a use-case for
named profiles myself, so I thought it's useful without kanshictl.

Here's my remarks:

devel/aml:

They merged your PR upstreaming your patch - why not use that commit?

COMMENT = Another Main Loop

V =     1.0.0
PKGNAME =       aml-$V
COMMIT =        c5a8bad585e4529a4e178589af30110326bf9df6
DIST_TUPLE =    github any1 aml ${COMMIT} .
...

devel/vali:

I tried using DIST_TUPLE, but the way freedesktop.org names their
tarball contents doesn't make this much nicer:

V =             0.1.1
COMMIT =        bd4b709430eef9a1252198f9a0ea4a05930eda26
DIST_TUPLE =    fdo emersion vali v${V} .
SHARED_LIBS +=  vali    0.0 # 0.0

[...]

WRKDIST =       ${WRKDIR}/vali-v${V}-${COMMIT}

ok volker@ one way or another, diff of wayland/kanshi against the imported
version is attached.
Index: Makefile
===================================================================
RCS file: /cvs/ports/wayland/kanshi/Makefile,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 Makefile
--- Makefile	6 Apr 2026 07:44:56 -0000	1.1.1.1
+++ Makefile	6 Apr 2026 09:07:10 -0000
@@ -4,6 +4,7 @@ V =		1.9.0
 CATEGORIES =	wayland
 DIST_TUPLE =	fdo emersion kanshi v${V} .
 KANSHI_COMMIT =	424f454329ec48f7f078b9225a6e3c7b7d8185ae
+REVISION =	0
 
 # MIT
 PERMIT_PACKAGE = Yes
@@ -16,12 +17,11 @@ MODULES =	devel/meson
 BUILD_DEPENDS = textproc/scdoc
 
 LIB_DEPENDS =	devel/libscfg \
+		devel/vali \
 		wayland/wayland
 
-CONFIGURE_ARGS += -Dipc=disabled
-
 WRKDIST =	${WRKDIR}/kanshi-v${V}-${KANSHI_COMMIT}
 
-WANTLIB += c m scfg wayland-client
+WANTLIB += c json-c m scfg vali wayland-client
 
 .include <bsd.port.mk>
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/wayland/kanshi/pkg/PLIST,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 PLIST
--- pkg/PLIST	6 Apr 2026 07:44:56 -0000	1.1.1.1
+++ pkg/PLIST	6 Apr 2026 09:07:10 -0000
@@ -1,3 +1,5 @@
 @bin bin/kanshi
+@bin bin/kanshictl
 @man man/man1/kanshi.1
+@man man/man1/kanshictl.1
 @man man/man5/kanshi.5