diff options
author | gahr <gahr@FreeBSD.org> | 2019-08-07 17:08:07 +0800 |
---|---|---|
committer | gahr <gahr@FreeBSD.org> | 2019-08-07 17:08:07 +0800 |
commit | c9c0302661abaeb452cb6a47735be8cde225a16f (patch) | |
tree | 5d8bf68c6e2bc5f18ad849e3556a5a95d9487604 /devel/fossil | |
parent | cb709217ed6da1de5e56148a572b31fb0df024ff (diff) | |
download | freebsd-ports-gnome-c9c0302661abaeb452cb6a47735be8cde225a16f.tar.gz freebsd-ports-gnome-c9c0302661abaeb452cb6a47735be8cde225a16f.tar.zst freebsd-ports-gnome-c9c0302661abaeb452cb6a47735be8cde225a16f.zip |
devel/fossil: check for the JSON1 extension when using sqlite3 from ports
PR: 239668
Reported by: software@bertram-scharpf.de
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 {} { |