libunibreak: update to 5.1 and add test results
[oi-userland.git] / components / database / couchdb-31 / patches / 01-rebarconfigscript.patch
blob74d241fb2713a2eaa51e533930268686c49090a1
1 --- apache-couchdb-3.1.1/src/couch/rebar.config.script.~1~ 2020-09-12 00:37:00.000000000 +0000
2 +++ apache-couchdb-3.1.1/src/couch/rebar.config.script 2021-05-14 21:01:16.083045752 +0000
3 @@ -105,6 +105,21 @@
4 "/DXP_WIN",
5 "mozjs185-1.0.lib"
6 };
7 + {unix, sunos} when SMVsn == "1.8.5" ->
8 + {
9 + "-DXP_UNIX -I/usr/include/js",
10 + "-lmozjs185 -lm -m32"
11 + };
12 + {unix, sunos} when SMVsn == "60" ->
13 + {
14 + "-DXP_UNIX -I/usr/include/mozjs-60 -std=c++14 -m64",
15 + "-L/usr/lib/amd64 -lmozjs-60 -lm -std=c++14 -m64"
16 + };
17 + {unix, sunos} when SMVsn == "68" ->
18 + {
19 + "-DXP_UNIX -I/usr/include/mozjs-68 -std=c++14 -m64",
20 + "-L/usr/lib/amd64 -lmozjs-68 -lm -std=c++14 -m64"
21 + };
22 {unix, _} when SMVsn == "1.8.5" ->
24 "-DXP_UNIX -I/usr/include/js -I/usr/local/include/js",
26 end.
28 @@ -145,6 +160,11 @@
29 "-DHAVE_CURL -I/usr/local/include",
30 "-DHAVE_CURL -lcurl"
32 + {unix, sunos} ->
33 + {
34 + "-DHAVE_CURL -I/usr/include",
35 + "-DHAVE_CURL -lcurl"
36 + };
37 _ ->
39 "-DHAVE_CURL",
40 @@ -194,10 +214,12 @@
41 % ICU
42 {"darwin", IcuPath, IcuSrc, [{env, IcuEnv ++ IcuDarwinEnv}]},
43 {"linux", IcuPath, IcuSrc, [{env, IcuEnv}]},
44 + {"solaris", IcuPath, IcuSrc, [{env, IcuEnv}]},
45 {"bsd", IcuPath, IcuSrc, [{env, IcuEnv ++ IcuBsdEnv}]},
46 {"win32", IcuPath, IcuSrc, [{env, IcuWinEnv}]},
47 % ejson_compare
48 {"darwin", ComparePath, CompareSrc, [{env, IcuEnv ++ IcuDarwinEnv}]},
49 + {"solaris", ComparePath, CompareSrc, [{env, IcuEnv}]},
50 {"linux", ComparePath, CompareSrc, [{env, IcuEnv}]},
51 {"bsd", ComparePath, CompareSrc, [{env, IcuEnv ++ IcuBsdEnv}]},
52 {"win32", ComparePath, CompareSrc, [{env, IcuWinEnv}]}