[Buildroot] [PATCH v5] domoticz: new package

Arnout Vandecappelle arnout at mind.be
Thu May 19 21:21:38 UTC 2016


On 05/18/16 20:43, Thiago A. Corrêa wrote:
> There is a problem with domoticz on JFFS2 systems, because it enables
> some pragmas. Sqlite then tries to mmap on JFFS2 which is not
> supported and everything fails, Domoticz can't even create the tables.
>  I fixed it changing sqlite.mk to add:
> 
> +SQLITE_CFLAGS += -DSQLITE_TEMP_STORE=3
> +SQLITE_CFLAGS += -DSQLITE_SHM_DIRECTORY=/tmp
> +SQLITE_CFLAGS += -DSQLITE_OMIT_WAL

 If I understand correctly, the problem is that domoticz is creating sqlite
tables with pragmas that don't work on JFFS2, right? In that case, it's a
problem of domoticz and it shouldn't affect all other users of sqlite. In other
words, it's not OK to change the build options of sqlite.

 On the other hand, if sqlite never works at all on jffs2, then I think it could
be useful to add a config option to sqlite "support filesystems without mmap".

> 
> Maybe it could be added to the patch, checking if JFFS2 output is enabled.

 No, it's very well possible (likely even) that the filesystem on which the
database is stored is different from the rootfs.

 Regards,
 Arnout


-- 
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF


More information about the buildroot mailing list