diff options
author | Pietro Cerutti <gahr@FreeBSD.org> | 2019-08-07 09:08:07 +0000 |
---|---|---|
committer | Pietro Cerutti <gahr@FreeBSD.org> | 2019-08-07 09:08:07 +0000 |
commit | 586104ae7cc8d5032820668dfc42a7888c2a58da (patch) | |
tree | 5d8bf68c6e2bc5f18ad849e3556a5a95d9487604 /devel/fossil | |
parent | 048f1c78ad2aa976de7228a2a40b620419bb246d (diff) | |
download | ports-586104ae7cc8d5032820668dfc42a7888c2a58da.tar.gz ports-586104ae7cc8d5032820668dfc42a7888c2a58da.zip |
devel/fossil: check for the JSON1 extension when using sqlite3 from ports
PR: 239668
Reported by: software@bertram-scharpf.de
Notes
Notes:
svn path=/head/; revision=508305
Diffstat (limited to 'devel/fossil')
-rw-r--r-- | devel/fossil/files/patch-auto.def | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/devel/fossil/files/patch-auto.def b/devel/fossil/files/patch-auto.def new file mode 100644 index 000000000000..ad5fc7abce0c --- /dev/null +++ b/devel/fossil/files/patch-auto.def @@ -0,0 +1,18 @@ +--- auto.def.orig 2019-07-13 13:05:19 UTC ++++ auto.def +@@ -149,6 +149,15 @@ if {![opt-bool internal-sqlite]} { + } + + find_internal_sqlite ++ ++ if {![cc-check-progs sqlite3]} { ++ user-error "system sqlite3 command not found" ++ } ++ msg-checking "Checking for JSON1 support in system sqlite3..." ++ if {[catch {exec [get-define SQLITE3] << {select json(true);}} res] || $res != 1} { ++ user-error "system sqlite3 does not have the JSON1 extension" ++ } ++ msg-result "yes" + } + + proc is_mingw {} { |