Saturday, January 02, 2021

Re: New port: net/qtox and databases/sqlcipher and an update to net/toxcore

On Fri, Jan 01, 2021 at 10:25:36PM +0000, Stuart Henderson wrote:
> On 2021/01/01 14:30, Tom Murphy wrote:
> > Hi all,
> >
> > I've been wanting to get qtox running (since utox is rather
> > unstable).
> >
> > Attached to this email are two new ports:
> >
> > databases/sqlcipher - Allows you to encrypt sqlite databases
> > net/qtox - qtox client for the tox framework
> >
> > I'm also including a diff for net/toxcore to upgrade it from 0.2.3 to
> > 0.2.12.
>
> Here's a diff I had hanging around in my tree to update
> toxcore/toxic/utox, the API changed a bit and IIRC they all needed
> updating together. Builds OK but I don't use any of this, since
> you have a setup already could you give it a spin please? At least
> toxcore needs SHARED_LIBS bumping that wasn't in your diff.
> Diff for that is sent as a gzipped attachment because it was
> unfortunately imported with MSDOS line endings in the patches
> which usually gets mangled in email.
>
> > I'd like to propose that net/utox might be removed from the tree.
> > It's alpha and pretty unstable (sometimes it makes the cpu fan race and
> > I've had to kill -9 it sometimes)
>
> 0.18.0 changelog for utox suggests it's likely to be better:
> https://github.com/uTox/uTox/releases/tag/v0.18.0

I wasn't able to apply that multiple port patch cleanly. It fails on
toxcore's Makefile and then refuses to run elsewhere. Do I need to
split it out? What command line for patch should I use for it?

> > Note: net/qtox relies on databases/sqlcipher to compile and run.
> > It also relies on the newer net/toxcore. I'm not sure about net/toxic
> > client as I don't use it.
>
> here are a few tweaks for sqlcipher.
>
> diff 4a421e6a1869cd82df717c62298316607805167d /usr/ports/mystuff
> blob - 3daac481dad3c5c05bc9d0fabb11ec97653347cb
> file + databases/sqlcipher/Makefile
> --- databases/sqlcipher/Makefile
> +++ databases/sqlcipher/Makefile
> @@ -1,13 +1,10 @@
> # $OpenBSD: Makefile,v 1.10 2020/10/03 14:58:48 solene Exp $
>
> -N = sqlcipher
> -V = 4.4.2
> COMMENT = encrypted SQLite database
>
> -PKGNAME = ${N}-${V}
> GH_ACCOUNT = sqlcipher
> GH_PROJECT = sqlcipher
> -GH_TAGNAME = v${V}
> +GH_TAGNAME = v4.4.2
>
> SHARED_LIBS += sqlcipher 0.0 # 8.6
>
> @@ -27,11 +24,14 @@ CONFIGURE_ARGS += --enable-tempstore=yes \
> --disable-tcl \
> --disable-editline \
> --disable-readline
> +CONFIGURE_ENV += TCLSH_CMD=${MODTCL_BIN}
>
> NO_TEST = Yes
>
> CFLAGS += -DSQLITE_HAS_CODEC
>
> -BUILD_DEPENDS = lang/tcl/8.6
> +MODULES = lang/tcl
> +MODTCL_VERSION = 8.6
> +BUILD_DEPENDS = ${MODTCL_BUILD_DEPENDS}
>
> .include <bsd.port.mk>
>

The tweaks for databases/sqlcipher work fine here. I tested and it
works OK for me.

Thanks,
Tom

No comments:

Post a Comment