diff options
author | Rozhuk Ivan <rozhuk.im@gmail.com> | 2021-06-13 21:42:36 +0000 |
---|---|---|
committer | Kevin Bowling <kbowling@FreeBSD.org> | 2021-06-13 23:17:44 +0000 |
commit | f7e91e1e0fe3860f53a83a180b1643fa45ea2c33 (patch) | |
tree | e83917eea5654dc92dbcc1a0a56bab65984d625c /databases | |
parent | f2ed8c38d0b7ca3e4455ac5bc1553397a1a09b2a (diff) | |
download | ports-f7e91e1e0fe3860f53a83a180b1643fa45ea2c33.tar.gz ports-f7e91e1e0fe3860f53a83a180b1643fa45ea2c33.zip |
databases/sqlite3: enable OS features
Enable various FreeBSD API options and go-fasters
The only one of these that raised concern is related to mmap, but this
compile time flag will not enable mmap usage on its own.
There is a test failure on ZFS with posix_fallocate(), leave that off
for now.
PR: 241385
Tested by: kbowling (test harness https://www.sqlite.org/testing.html)
Approved by: maintainer timeout
Diffstat (limited to 'databases')
-rw-r--r-- | databases/sqlite3/Makefile | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/databases/sqlite3/Makefile b/databases/sqlite3/Makefile index d0d346518849..b076d5ab0505 100644 --- a/databases/sqlite3/Makefile +++ b/databases/sqlite3/Makefile @@ -2,7 +2,7 @@ PORTNAME= sqlite3 DISTVERSION= 3.35.5 -PORTREVISION= 1 +PORTREVISION= 2 PORTEPOCH= 1 CATEGORIES= databases MASTER_SITES= https://www.sqlite.org/${%Y:L:gmtime}/ https://www2.sqlite.org/${%Y:L:gmtime}/ https://www3.sqlite.org/${%Y:L:gmtime}/ @@ -188,7 +188,22 @@ URI_AUTHORITY_CPPFLAGS= -DSQLITE_ALLOW_URI_AUTHORITY=1 .include <bsd.port.options.mk> # Platform Configuration -CPPFLAGS+= -DHAVE_ISNAN=1 -DHAVE_MALLOC_USABLE_SIZE=1 -DHAVE_GMTIME_R=1 -DHAVE_LOCALTIME_R=1 -DHAVE_USLEEP=1 -DHAVE_STRCHRNUL=1 +# -DHAVE_POSIX_FALLOCATE=1 not yet, chunksize.test ZFS failure chunksize-1.2 expected: [32768] got: [2048] +CPPFLAGS+= -DHAVE_FCHOWN=1 \ + -DHAVE_FDATASYNC=1 \ + -DHAVE_ISNAN=1 \ + -DHAVE_GMTIME_R=1 \ + -DHAVE_LOCALTIME_R=1 \ + -DHAVE_LSTAT=1 \ + -DHAVE_MALLOC_USABLE_SIZE=1 \ + -DHAVE_PREAD=1 \ + -DHAVE_PWRITE=1 \ + -DHAVE_USLEEP=1 \ + -DHAVE_STRCHRNUL=1 \ + -DHAVE_STRERROR_R=1 \ + -DHAVE_READLINK=1 \ + -DSQLITE_MMAP_READWRITE=1 \ + -DSQLITE_OS_UNIX=1 CFLAGS_powerpc64le= -DSQLITE_BYTEORDER=1234 # For compare with checksum from of the site. Now, this is a NIST SHA3-256 hash. sha256 not suitable for compare. |