Re: New port: www/chawan

Lydia Sobot <[email protected]> Thu, 06 Aug 2026 09:38:36 +0200
Newsgroups gmane.os.openbsd.ports
Message-ID <[email protected]>
On August 6, 2026 8:00:02 GMT+02:00, yaydn@protonmail=2Ecom wrote:
>
>Built/tested on current/amd64 with privsep=2E
>
>$ cd /usr/ports/www/chawan/ && make clean=3Dall clean && make build packa=
ge test ; make port-lib-depends-check check-shlib-syms
>
>=3D=3D=3D>  Regression tests for chawan-0=2E4=2E3
>mkdir -p /usr/ports/pobj/chawan-0=2E4=2E3/nimcache
>(cd test/js && =2E/run=2Esh)
>window=2Ehtmlmlllplus=2Ehtmltmlracking=2Eapp=2Ehtml
>(cd test/layout && =2E/run=2Esh)
>z-index-for-table=2Ehtmltrinsic-min-width=2Ehtmlce=2Ehtmltmlth=2Ehtmlsa=
=2Ehtmll
>nim --nimcache:/usr/ports/pobj/chawan-0=2E4=2E3/nimcache c test/net/run=
=2Enim
>Hint: used config file '/etc/nim/nim=2Ecfg' [Conf]
>Hint: used config file '/usr/ports/pobj/chawan-0=2E4=2E3/chawan-v0=2E4=2E=
3/nim=2Ecfg' [Conf]
>=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=
=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=
=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=
=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=
=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=
=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E
>CC: system/exceptions=2Enim
>CC: system/ctypes=2Enim
>CC: std/private/digitsutils=2Enim
>CC: std/assertions=2Enim
>CC: std/objectdollar=2Enim
>CC: system/dollars=2Enim
>CC: std/syncio=2Enim
>CC: system=2Enim
>CC: parseutils=2Enim
>CC: math=2Enim
>CC: algorithm=2Enim
>CC: std/strbasics=2Enim
>CC: strutils=2Enim
>CC: std/oserrors=2Enim
>CC: posix=2Enim
>CC: options=2Enim
>CC: times=2Enim
>CC: std/envvars=2Enim
>CC: std/cmdline=2Enim
>CC: hashes=2Enim
>CC: tables=2Enim
>CC: heapqueue=2Enim
>CC: sets=2Enim
>CC: deques=2Enim
>CC: asyncfutures=2Enim
>CC: std/monotimes=2Enim
>CC: nativesockets=2Enim
>CC: net=2Enim
>CC: kqueue=2Enim
>CC: selectors=2Enim
>CC: asyncdispatch=2Enim
>CC: asyncnet=2Enim
>CC: uri=2Enim
>CC: httpcore=2Enim
>CC: asynchttpserver=2Enim
>CC: utils/twtstr=2Enim
>CC: io/chafile=2Enim
>CC: run=2Enim
>Hint:  [Link]
>Hint: mm: refc; opt: none (DEBUG BUILD, `-d:release` generates faster cod=
e)
>61831 lines; 16=2E882s; 110=2E168MiB peakmem; proj: /usr/ports/pobj/chawa=
n-0=2E4=2E3/chawan-v0=2E4=2E3/test/net/run=2Enim; out: /usr/ports/pobj/chaw=
an-0=2E4=2E3/chawan-v0=2E4=2E3/test/net/run [SuccessX]
>(cd test/net && =2E/run=2Esh)
>cookie=2Ehttp
>(cd test/md && =2E/run=2Esh)
>thematic-break=2Emdd=2Emdch=2Emdeof=2Emd
>(cd test/pager && =2E/run=2Esh)
>mkdir -p =2Eobj/chagashi_test
>cp test/charset/data=2Etar=2Exz =2Eobj/chagashi_test
>unxz =2Eobj/chagashi_test/data=2Etar=2Exz
>tar xf =2Eobj/chagashi_test/data=2Etar -C =2Eobj/chagashi_test
>(cd test/charset && =2E/run=2Esh)
>nim --nimcache:/usr/ports/pobj/chawan-0=2E4=2E3/nimcache r --verbosity:0 =
test/charset/basic=2Enim
>CGS_TESTDIR=3D=2Eobj/chagashi_test nim --nimcache:/usr/ports/pobj/chawan-=
0=2E4=2E3/nimcache r --verbosity:0 test/charset/data=2Enim
>(cd test/nim && nim --nimcache:/usr/ports/pobj/chawan-0=2E4=2E3/nimcache =
r --verbosity:0 ttwtstr=2Enim)
>--
>// Look fine? No issues from checks
>
># TRUSTED_PKG_PATH=3D/usr/ports/packages/amd64/all/ pkg_add -Dsnap chawan
>chawan-0=2E4=2E3: ok
Please test with 0=2E4=2E4

>
>Nits in Makefile:
>BUILD_DEPENDS =3D lang/nim #security/libssh2 archivers/brotli
>
>Think the comment above was leftover by mistake?
Oh god yes sorry, that's embarrassing

>Also while no spaces where tabs are preferred, but the lines are not
>very symmetrical? Staggered rather than consistent=2E Not big=2E
>Possible change below=2E
>
>Spelling/grammar looks fine=2E
>
>Otherwise I can also attest to this building and running=2E
>
>$ cha --version
>Chawan browser v0=2E4=2E3 (release, sandboxed by pledge, poll uses poll)
>
>This is was with foot on sway if it makes any difference=2E Could make
>images load with the alt-i key combo, which was odd but cool in a
>terminal browser for me at least=2E
I think image loading can be made the default, but yeah sixels are cool :)

>Looks neat=2E Bit better than lynx for github pages, though w3m has tabs,
>but no github display(though everything else loads)=2E This along with
>surf, all these options are great to have=2E
>
>Thanks for the port=2E Might use this regularly in multiple foot
>windows=2E
>
>Sorry for any noise=2E
>
>Hope this helps and may you have a cool one=2E
>--
>yaydn
>
>An example for possible changes for Makefile:
>
>ONLY_FOR_ARCHS =3D	amd64 arm64 i386 # Nim arches
>
>COMMENT =3D	TUI web/Gopher/Gemini/SFTP browser with CSS and JS support
>DIST_TUPLE +=3D	srht bptato chawan v$V =2E
>V =3D		0=2E4=2E3
>
>CATEGORIES =3D	www sysutils
>HOMEPAGE =3D	https://chawan=2Enet/
>
>MAINTAINER =3D	Lydia Sobot <chilledfrogs@disroot=2Eorg>
>
># Public Domain/Unlicense,
># see https://git=2Esr=2Eht/~bptato/chawan/tree/HEAD/res/license=2Emd for=
 deps
>PERMIT_PACKAGE =3D	Yes
>
>WANTLIB +=3D	brotlicommon brotlidec c crypto m ssh2 ssl
>
>BUILD_DEPENDS =3D	lang/nim
>LIB_DEPENDS =3D	security/libssh2 archivers/brotli
>
>FAKE_FLAGS =3D	PREFIX=3D${LOCALBASE} MANPREFIX=3D${LOCALBASE}/man
>TEST_FLAGS =3D	NIMC=3D"nim --nimcache:${NIMCACHE} c" NIM=3D"nim --nimcach=
e:${NIMCACHE}"
>NIMCACHE =3D	${WRKDIR}/nimcache
>USE_GMAKE =3D	Yes
>
>WRKDIST =3D	${WRKDIR}/chawan-v$V
>
>pre-test:
>	mkdir -p ${NIMCACHE}
>
>=2Einclude <bsd=2Eport=2Emk>
>
>--
>Don't know if that reads better=2E Thoughts?
Aren't there usually spaces after the equals sign except when semantically=
 important?