SQLite is an SQL database engine in a C library. Programs that link the SQLite
library can have SQL database access without running a separate RDBMS process.
The distribution comes with a standalone command-line access program (sqlite3)
that can be used to administer an SQLite database and which serves as an
example of how to use the SQLite library.
===> The following configuration options are available for sqlite3-3.54.1,1:
ARMOR=off: Detect misuse of the API
DBPAGE=on: Enable DBPAGE Virtual Table
DBSTAT=on: Enable DBSTAT Virtual Table
DIRECT_READ=on: File is read directly from disk
DQS=off: Double-quoted String Literals
EXAMPLES=on: Build and/or install examples
EXTENSION=on: Enable loadable extensions
FTS3_TOKEN=on: Enable two-args version fts3_tokenizer
FTS4=on: Enable FTS3/4 (Full Text Search) module
FTS5=on: Enable version 5 full-text search engine
LIKENOTBLOB=off: LIKE does not match blobs
MEMMAN=off: Allow it to release unused memory
METADATA=on: Enable column metadata
NORMALIZE=off: Enable normalized sql function
NULL_TRIM=off: Omits NULL columns at the ends of rows
RBU=off: Enable the resumable bulk update
SECURE_DELETE=on: Overwrite deleted information with zeros
SORT_REF=off: To use references in the sorter
STATIC=off: Build static executables and/or libraries
STMT=off: Prepared statement scan status
TCL=off: Enable tcl extension and sqlite_analyzer
THREADS=on: Threading support
TRUSTED_SCHEMA=off: SQL functions & virtual tables are considered unsafe
UNKNOWN_SQL=off: Suppress unknown function errors
UNLOCK_NOTIFY=on: Enable notification on unlocking
UPDATE_LIMIT=off: UPDATE/DELETE is extended with ORDER BY and LIMIT
URI=on: Enable use the URI filename
URI_AUTHORITY=off: Allow convert URL into a UNC
====> Optional extensions
SESSION=on: Enable the session extension
====> Optional functions
OFFSET=off: Enable sqlite_offset() returning records file offset
SOUNDEX=off: Enable the soundex() SQL function
====> Index type for range queries
GEOPOLY=off: Uses the GeoJSON notation (RFC-7946)
RTREE=on: Enable R*Tree module
RTREE_INT=off: Store 32-bit sig int (no float) coordinates
====> Unicode support
ICU=off: Unicode support via ICU
UNICODE61=on: Unicode Version 6.1 tokenizer
====> Where to store temporary file: you have to select exactly one of them
TS0=off: Always use temporary file
TS1=on: File by default, change allowed PRAGMA
TS2=off: Memory by default, change allowed PRAGMA
TS3=off: Always use memory
====> Which query planner to use, stability or ...: you can only select none or one of them
STAT3=off: Collect histogram data from leftmost column
STAT4=off: Collect histogram data from all columns
====> Command line editing library: you can only select none or one of them
LIBEDIT=on: Command line editing via libedit
READLINE=off: Command line editing via libreadline
===> Use 'make config' to modify these settings
Reason:
Due to various ports not being prepared for this change (see 20230227
entry), the DQS option of databases/sqlite3 has been reenabled as a
stop gap measure. It is scheduled to be disabled again for good no
earlier than 20240101, giving downstream software authors more time
to fix their queries.
See also: https://sqlite.org/quirks.html#dblquote
Reason:
Option DQS is now disabled by default. This option controls the "double
quoted string literals are accepted" quirk, permitting the use of double
quotes around string literals if enabled. Users who rely on this quirk
need to manually build databases/sqlite3 with the DQS option enabled.
See also: https://sqlite.org/quirks.html#dblquote
Add explicit SQLITE_ENABLE_FTS3. This fixes the firefox and thunderburd
ports build.
Due to recent changes in sqlite3 even if this flag is actually
implicitly added to the build when the FTS4 option is enabled, it
is not reported as present via the
sqlite3_compileoption_used("SQLITE_ENABLE_FTS3") API call, which
is used by the gecko ports configure script to check for a suitable
sqlite3 library.
Related upstream change: https://sqlite.org/src/info/9a443397a6b110f6
PR: 221361, 219963
Submitted by: Vladimir Krstulja <vlad-fbsd@acheronmedia.com>,
jbeich@
Approved by: portmgr@ (blanket)
MFH: 2017Q3
* Updated to 3.19.3
- Fix a bug associated with auto_vacuum that can lead to database corruption
PR: 219902
Submitted by: pavelivolkov@gmail.com (maintainer)
Reviewed by: lifanov (mentor), matthew (mentor)
Approved by: pavelivolkov@gmail.com (maintainer), lifanov (mentor), matthew
(mentor)
Differential Revision: https://reviews.freebsd.org/D11132
Improve the way CFLAGS and CPPFLAGS are set.
":?" is not supported by fmake from FreeBSD 9, so replace it with an explicit
version check. The end result was still the desired one (-DHAVE_STRCHRNUL=1 was
not passed on FreeBSD 9).
While here, also improve the version check by including DragonFly (which
supports strchrnul(3) according to its online man page) and restricting the
FreeBSD version check to the revision range after strchrnul(3) was added to
base.
Also stop passing -Os when building in debug mode, and set UNICODE61_CPPFLAGS
to pet portlint.
PR: 214608
Submitted by: Pavel Volkov <pavelivolkov@gmail.com> (maintainer)
MFH: 2016Q4
- Update devel/icu to 57.1.
- Clean up the Makefile.
- Follow some upstream recommendations (--with-data-packaging=archive,
--disable-renaming, -DICU_NO_USER_DATA_OVERRIDE).
- Patch makefiles to install static libraries with INSTALL_DATA so they
aren't stripped.
- Patch config/mh-bsd-gcc to sync with config/mh-linux-gcc.
- Fix endianness detection in ICU. The code wanted to use BYTE_ORDER
defined in machine/endian.h, but this isn't visible because ICU is
compiled with _XOPEN_SOURCE. Patch the code to use _BYTE_ORDER instead.
- Compile ICU with C++11 compiler to enable move constructors.
- Patch ICU to fix a problem with atomics in the case of a C++11 compiler
without C++11 header <atomic> (like Clang on FreeBSD 9).
- Bump all ports that depend on it due to library version change.
- Add USES=compiler:c++0x to some ports that pick up -std=c++0x from ICU
pkgconfig files.
- Add USES=compiler:c++11-lib to graphics/libcdr01 because it also needs
a C++11 runtime library now. Add this to all ports that depend on it
so their executables load the right libstdc++.so on FreeBSD 9.
PR: 205120
Exp-run by: antoine
Approved by: portmgr (antoine)
Bump PORTREVISION for the icu revert.
This time not bumping lang/php70, but devel/php70-intl which is the one
really depending on icu.
PR: 205120
With hat: portmgr
Sponsored by: Absolight
databases/sqlite3: Enable one of the command line editing options
- The last update to sqlite3 disabled readline support
- Now several variants can be selected.
PR: 206944
Submitted by: Tobias Kortkamp <t@tobik.me>
Approved by: Pavel Volkov <pavelivolkov@gmail.com> (maintainer)
Add Public Domain support to ports license framework. You can now use
LICENSE= PD
Note that although Public Domain is not technically a license, it's
handled in the same way as licenses here, which is a common practice
(Arch, Gentoo, Fedora, Debian, even FOSSology do the same).
Convert all ports which redefine Public Domain LICENSE to LICENSE=PD.
Approved by: portmgr (bapt)
Differential Revision: D4149
- Update to 3.10.0
- Add options to choose the command line library used by shell tools
- Add option for static linking
- Add option to compile sqlite with SQLITE_LIKE_DOESNT_MATCH_BLOBS option
- Remove option TEMP_CACHE_SIZE
- Cosmetic changes
Changes: http://www.sqlite.org/releaselog/3_10_0.html
PR: 206062
Submitted by: Pavel Volkov <pavelivolkov@gmail.com> (maintainer)
Backout r384095 for breaking databases/tcl-sqlite3
PACKAGE_VERSION is 3.8.9, not 3.8.9.0. tcl-sqlite3 uses it for
naming shared library. Also saved in pkg-config --modversion.
Bump PORTREVISION to make sure both ports are on the same PORTVERSION.
PR: 199312
PR: 199313
Reported by: pkg-fallout
Requested by: Pavel Volkov <pavelivolkov@gmail.com> (maintainer)
Pointy hat: jbeich
Add READLINE option and conditionally add readline to USES, this
fixes command line editing on head, which does not install libreadline
anymore in base.
While heere also add ncurses USES.
PR: 194717
Submitted by: me
Approved by: Pavel Volkov <pavelivolkov at gmail.com> (maintainer)
- Update to 3.8.2
- Don't add RTREE by default
- Add new OPTION: UNICODE61
PR: ports/185465
Submitted by: Pavel I Volkov <pavelivolkov@gmail.com> (maintainer)
Remove SQLLOG option. It needs code on "client side", and should not be used
for system-wide library. No standard ports could be built when this option is
set. For example, "devel/subverison" could not detect SQLite when this option
is set.
PR: ports/179012
Approved by: Maintainer, Pavel Volkov <pavelivolkov [at] gmail.com>
New port for sqlcipher.
Sqlcipher is a drop in replacement for sqlite3. Sqlcipher creates encrypted
sql databases.
Sponsored by: iXsystems
Suggested by: Isilon
Approved by: kwm (mentor)
Variable that start with _ are considered private to the defining
makefile and may not be used by ports makefiles.
In addition, avoid problems should the defaults ever change.
Approved by: portmgr (tabthorpe)
Add patch that fixes blobs handling in interactive mode.
Looks like this issue is known by upstream since 2009,
but never was fixed in any release.
PR: 162650
Submitted by: Valentin Davydov <cs at soi.spb.ru>
Approved by: maintainer, novel (mentor, implicit)
- Add LDFLAGS to CONFIGURE_ENV and MAKE_ENV (as it was done with LDFLAGS)
- Fix all ports that add {CPP,LD}FLAGS to *_ENV to modify flags instead
PR: 157936
Submitted by: myself
Exp-runs by: pav
Approved by: pav