Summary
sql-de-lite ignores new versions of sqlite3 on Cygwin
Metadata
- Id: 0a57cea31f114132d49544677312ed0994bfe414
- Trac id: 1382
- Type: defect
- Reporter: johnwcowan
- Owner: zbigniew
- Cc:
- Status: assigned
- Component: extensions
- Estimated difficulty: trivial
- Resolution:
- Priority: minor
- Milestone: someday
- Version: 4.12.0
- Changetime: 2017-06-28 13:00:37 UTC
- Created: 2017-06-27 17:15:31 UTC
- Keywords: sql-de-lite
Description
The `version-check` program does not run under Cygwin, so `sql-de-lite` installation conservatively assumes it should use the bundled 3.0.17 version of sqlite3 instead of Cygwin's current 3.0.18.
The root cause of this is that Cygwin really isn't Windows and shouldn't set the `windows:` feature (see #1381). As a workaround, change line 49 of the setup file with `s/windows/(and windows (not cygwin))/`. A more portable resolution is to get rid of `version-check` altogether and run `sqlite3 --version` instead: the first few characters of the output (up to a space) are the formatted sqlite3 version number.
Changes and comments
[2017-06-28 13:00:37 UTC] LemonBoy wrote:
> A more portable resolution is to get rid of version-check altogether and run sqlite3 --version instead
Sadly you can't rely on the `sqlite` binary to be there, for example Debian ships the library and the command line program in separate packages.