Index | Thread | Search

From:
yaydn@protonmail.com
Subject:
Re: New port: www/chawan
To:
prx <prx@si3t.ch>, "ports@openbsd.org" <ports@openbsd.org>, "chilledfrogs@disroot.org" <chilledfrogs@disroot.org>
Date:
Thu, 06 Aug 2026 06:00:02 +0000

Download raw body.

Thread
På mandag 3. august 2026 kl. 16:08, skrev prx <prx@si3t.ch>:

> * Lydia Sobot <chilledfrogs@disroot.org> le [31-07-2026 20:13:33 +0200]:
> > Ping ping ping, version 0.4.4 attached
> >
>
> Hi,
>
> finally tested it.
> It is indeed a great browser I might use daily to replace w3m.
> Port build without issue on amd64.
>
> Thanks!
>
> prx
>
> > On Fri Jul 17, 2026 at 21:40 CEST, Lydia Sobot wrote:
> > > Ping
> > >
> > > On July 7, 2026 20:14:38 GMT+02:00, Lydia Sobot <chilledfrogs@disroot.org> wrote:
> > >>Anyone?
> > >>
> > >>On June 28, 2026 1:13:59 GMT+02:00, Lydia Sobot <chilledfrogs@disroot.org> wrote:
> > >>>Hi all, attached is Chawan, a cozy small web browser (i.e. it supports
> > >>>HTTP, but also Gemini, Gopher, and some other protocols). Been using it
> > >>>on and off and as my aerc mail HTML renderer instead of w3m, works like
> > >>>a charm on arm64. More testing very welcome, as I tried to ensure Nim
> > >>>plays nicely with the ports build system as there is no module.
> > >>
> >
>
>
>

Built/tested on current/amd64 with privsep.

$ cd /usr/ports/www/chawan/ && make clean=all clean && make build package test ; make port-lib-depends-check check-shlib-syms

===>  Regression tests for chawan-0.4.3
mkdir -p /usr/ports/pobj/chawan-0.4.3/nimcache
(cd test/js && ./run.sh)
window.htmlmlllplus.htmltmlracking.app.html
(cd test/layout && ./run.sh)
z-index-for-table.htmltrinsic-min-width.htmlce.htmltmlth.htmlsa.htmll
nim --nimcache:/usr/ports/pobj/chawan-0.4.3/nimcache c test/net/run.nim
Hint: used config file '/etc/nim/nim.cfg' [Conf]
Hint: used config file '/usr/ports/pobj/chawan-0.4.3/chawan-v0.4.3/nim.cfg' [Conf]
.....................................................................................................................................................
CC: system/exceptions.nim
CC: system/ctypes.nim
CC: std/private/digitsutils.nim
CC: std/assertions.nim
CC: std/objectdollar.nim
CC: system/dollars.nim
CC: std/syncio.nim
CC: system.nim
CC: parseutils.nim
CC: math.nim
CC: algorithm.nim
CC: std/strbasics.nim
CC: strutils.nim
CC: std/oserrors.nim
CC: posix.nim
CC: options.nim
CC: times.nim
CC: std/envvars.nim
CC: std/cmdline.nim
CC: hashes.nim
CC: tables.nim
CC: heapqueue.nim
CC: sets.nim
CC: deques.nim
CC: asyncfutures.nim
CC: std/monotimes.nim
CC: nativesockets.nim
CC: net.nim
CC: kqueue.nim
CC: selectors.nim
CC: asyncdispatch.nim
CC: asyncnet.nim
CC: uri.nim
CC: httpcore.nim
CC: asynchttpserver.nim
CC: utils/twtstr.nim
CC: io/chafile.nim
CC: run.nim
Hint:  [Link]
Hint: mm: refc; opt: none (DEBUG BUILD, `-d:release` generates faster code)
61831 lines; 16.882s; 110.168MiB peakmem; proj: /usr/ports/pobj/chawan-0.4.3/chawan-v0.4.3/test/net/run.nim; out: /usr/ports/pobj/chawan-0.4.3/chawan-v0.4.3/test/net/run [SuccessX]
(cd test/net && ./run.sh)
cookie.http
(cd test/md && ./run.sh)
thematic-break.mdd.mdch.mdeof.md
(cd test/pager && ./run.sh)
mkdir -p .obj/chagashi_test
cp test/charset/data.tar.xz .obj/chagashi_test
unxz .obj/chagashi_test/data.tar.xz
tar xf .obj/chagashi_test/data.tar -C .obj/chagashi_test
(cd test/charset && ./run.sh)
nim --nimcache:/usr/ports/pobj/chawan-0.4.3/nimcache r --verbosity:0 test/charset/basic.nim
CGS_TESTDIR=.obj/chagashi_test nim --nimcache:/usr/ports/pobj/chawan-0.4.3/nimcache r --verbosity:0 test/charset/data.nim
(cd test/nim && nim --nimcache:/usr/ports/pobj/chawan-0.4.3/nimcache r --verbosity:0 ttwtstr.nim)
--
// Look fine? No issues from checks

# TRUSTED_PKG_PATH=/usr/ports/packages/amd64/all/ pkg_add -Dsnap chawan
chawan-0.4.3: ok
--

Nits in Makefile:
BUILD_DEPENDS = lang/nim #security/libssh2 archivers/brotli

Think the comment above was leftover by mistake?

Also while no spaces where tabs are preferred, but the lines are not
very symmetrical? Staggered rather than consistent. Not big.
Possible change below.

Spelling/grammar looks fine.

Otherwise I can also attest to this building and running.

$ cha --version
Chawan browser v0.4.3 (release, sandboxed by pledge, poll uses poll)

This is was with foot on sway if it makes any difference. Could make
images load with the alt-i key combo, which was odd but cool in a
terminal browser for me at least.

Looks neat. Bit better than lynx for github pages, though w3m has tabs,
but no github display(though everything else loads). This along with
surf, all these options are great to have.

Thanks for the port. Might use this regularly in multiple foot
windows.

Sorry for any noise.

Hope this helps and may you have a cool one.
--
yaydn

An example for possible changes for Makefile:

ONLY_FOR_ARCHS =	amd64 arm64 i386 # Nim arches

COMMENT =	TUI web/Gopher/Gemini/SFTP browser with CSS and JS support
DIST_TUPLE +=	srht bptato chawan v$V .
V =		0.4.3

CATEGORIES =	www sysutils
HOMEPAGE =	https://chawan.net/

MAINTAINER =	Lydia Sobot <chilledfrogs@disroot.org>

# Public Domain/Unlicense,
# see https://git.sr.ht/~bptato/chawan/tree/HEAD/res/license.md for deps
PERMIT_PACKAGE =	Yes

WANTLIB +=	brotlicommon brotlidec c crypto m ssh2 ssl

BUILD_DEPENDS =	lang/nim
LIB_DEPENDS =	security/libssh2 archivers/brotli

FAKE_FLAGS =	PREFIX=${LOCALBASE} MANPREFIX=${LOCALBASE}/man
TEST_FLAGS =	NIMC="nim --nimcache:${NIMCACHE} c" NIM="nim --nimcache:${NIMCACHE}"
NIMCACHE =	${WRKDIR}/nimcache
USE_GMAKE =	Yes

WRKDIST =	${WRKDIR}/chawan-v$V

pre-test:
	mkdir -p ${NIMCACHE}

.include <bsd.port.mk>

--
Don't know if that reads better. Thoughts?