Please add this to the src_configure() section for FreeMiNT if [[ "${CHOST}" == *-mint* ]] ; then append-cppflags -DSQLITE_OMIT_WAL fi And add this in src_unpack... epatch "${FILESDIR}/${PN}-3.7.0-mman.patch" With the attached file for files/ This patch was sent to Richard Hipp <drh@sqlite.org> a few months back but has yet to appear in a release, so I've resent it. It was also sent via the mailing lists.
Created attachment 253375 [details, diff] Don't include sys/mman.h when OMIT_WAL used.
@maintainer: ok?
This patch doesn't apply to non-amalgamation sources. Which symbols from <sys/mman.h> are needed?
Basically when SQLITE_OMIT_WAL is defined we don't use mmap/munmap.
ping ?
This patch modifies generated file. Please create the patch for original file and send the new patch to upstream: http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-dev
Modifies a generated file ?? If use sqlite-autoconf-3070400 from sqlite-3.7.4 I see sqlite3.c in it with sys/mman.h again.
I see a "Legacy Source Code Distribution Formats (Not Recommended)" zip file containing a file called src/os_unix.c which has the only <sys/mman.h> reference. Is this what you are referring to ?
The amalgamation tarball is generated from normal sources. The normal tarball is used with USE="tcl" or USE="test".
If I read it right, what you refer to as "normal" is actually "legacy" from the sqlite website. Anyway, I've sent the patch to the sqlite-dev list.
Sent to sqlite-dev list twice and absolutely no reply to either post, gone into a black hole. :-(
http://www.sqlite.org/cgi/src/ci/b82e85ece9
Fixed in dev-db/sqlite-3.7.5.