Skip to content

Commit 72cabc3

Browse files
committed
change --enable-{nouveau,clouseau} to --with-
We've decided that CouchDB should not alter default.ini in the release tarball if you enable either or both of the search add-ons. That activation should be done by our packages or by the system administrator. We change the configure flags from --enable to --with to indicate that these components will only be built and included in the release artifact.
1 parent 09996db commit 72cabc3

File tree

8 files changed

+51
-55
lines changed

8 files changed

+51
-55
lines changed

.devcontainer/devcontainer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
// Your code will live inside the volume created for the container under /workspace.
2424
"workspaceMount": "target=/workspaces/couchdb,type=volume",
2525
"workspaceFolder": "/workspaces/couchdb",
26-
"postCreateCommand": "./configure --enable-nouveau --enable-clouseau && make",
26+
"postCreateCommand": "./configure --with-nouveau --with-clouseau && make",
2727

2828
"customizations": {
2929
"vscode": {

README-DEV.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ Configure the source by running::
154154

155155
If you intend to run the test suites with Clouseau::
156156

157-
./configure --enable-clouseau
157+
./configure --with-clouseau
158158

159159
If you don't want to build Fauxton or documentation specify
160160
``--disable-fauxton`` and/or ``--disable-docs`` arguments for ``configure`` to

build-aux/Jenkinsfile.full

+26-26
Original file line numberDiff line numberDiff line change
@@ -26,81 +26,81 @@ meta = [
2626
'centos8': [
2727
name: 'CentOS 8',
2828
spidermonkey_vsn: '60',
29-
enable_nouveau: true,
30-
enable_clouseau: true,
29+
with_nouveau: true,
30+
with_clouseau: true,
3131
image: "apache/couchdbci-centos:8-erlang-${ERLANG_VERSION}"
3232
],
3333

3434
'centos9': [
3535
name: 'CentOS 9',
3636
spidermonkey_vsn: '78',
37-
enable_nouveau: true,
38-
enable_clouseau: true,
37+
with_nouveau: true,
38+
with_clouseau: true,
3939
image: "apache/couchdbci-centos:9-erlang-${ERLANG_VERSION}"
4040
],
4141

4242
'focal': [
4343
name: 'Ubuntu 20.04',
4444
spidermonkey_vsn: '68',
45-
enable_nouveau: true,
46-
enable_clouseau: true,
45+
with_nouveau: true,
46+
with_clouseau: true,
4747
image: "apache/couchdbci-ubuntu:focal-erlang-${ERLANG_VERSION}"
4848
],
4949

5050
'jammy': [
5151
name: 'Ubuntu 22.04',
5252
spidermonkey_vsn: '91',
53-
enable_nouveau: true,
54-
enable_clouseau: true,
53+
with_nouveau: true,
54+
with_clouseau: true,
5555
image: "apache/couchdbci-ubuntu:jammy-erlang-${ERLANG_VERSION}"
5656
],
5757

5858
'bullseye-ppc64': [
5959
name: 'Debian 11 POWER',
6060
spidermonkey_vsn: '78',
61-
enable_nouveau: true,
62-
enable_clouseau: true,
61+
with_nouveau: true,
62+
with_clouseau: true,
6363
image: "apache/couchdbci-debian:bullseye-erlang-${ERLANG_VERSION}",
6464
node_label: 'ppc64le'
6565
],
6666

6767
'bullseye-s390x': [
6868
name: 'Debian 11 s390x',
6969
spidermonkey_vsn: '78',
70-
enable_nouveau: true,
70+
with_nouveau: true,
7171
image: "apache/couchdbci-debian:bullseye-erlang-${ERLANG_VERSION}",
7272
node_label: 's390x'
7373
],
7474

7575
'bullseye': [
7676
name: 'Debian 11',
7777
spidermonkey_vsn: '78',
78-
enable_nouveau: true,
79-
enable_clouseau: true,
78+
with_nouveau: true,
79+
with_clouseau: true,
8080
image: "apache/couchdbci-debian:bullseye-erlang-${ERLANG_VERSION}"
8181
],
8282

8383
'bookworm': [
8484
name: 'Debian 12',
8585
spidermonkey_vsn: '78',
86-
enable_nouveau: true,
87-
enable_clouseau: true,
86+
with_nouveau: true,
87+
with_clouseau: true,
8888
image: "apache/couchdbci-debian:bookworm-erlang-${ERLANG_VERSION}"
8989
],
9090

9191
'bookworm-quickjs': [
9292
name: 'Debian 12 with QuickJS',
9393
disable_spidermonkey: true,
94-
enable_nouveau: true,
95-
enable_clouseau: true,
94+
with_nouveau: true,
95+
with_clouseau: true,
9696
image: "apache/couchdbci-debian:bookworm-erlang-${ERLANG_VERSION}"
9797
],
9898

9999
// Temp disable until worker is back
100100
// 'freebsd-x86_64': [
101101
// name: 'FreeBSD x86_64',
102102
// spidermonkey_vsn: '91',
103-
// enable_clouseau: false,
103+
// with_clouseau: false,
104104
// gnu_make: 'gmake'
105105
// ],
106106

@@ -109,15 +109,15 @@ meta = [
109109
'freebsd-arm64': [
110110
name: 'FreeBSD ARM64 QuickJS',
111111
disable_spidermonkey: true,
112-
enable_clouseau: false,
112+
with_clouseau: false,
113113
gnu_make: 'gmake'
114114
],
115115

116116
'macos': [
117117
name: 'macOS',
118118
spidermonkey_vsn: '91',
119-
enable_nouveau: false,
120-
enable_clouseau: true,
119+
with_nouveau: false,
120+
with_clouseau: true,
121121
gnu_make: 'make'
122122
]
123123
]
@@ -128,11 +128,11 @@ def String configure(config) {
128128
} else {
129129
result = "./configure --skip-deps --spidermonkey-version ${config.spidermonkey_vsn}"
130130
}
131-
if (config.enable_nouveau) {
132-
result += " --enable-nouveau"
131+
if (config.with_nouveau) {
132+
result += " --with-nouveau"
133133
}
134-
if (config.enable_clouseau) {
135-
result += " --enable-clouseau"
134+
if (config.with_clouseau) {
135+
result += " --with-clouseau"
136136
}
137137
return result
138138
}
@@ -319,7 +319,7 @@ pipeline {
319319
steps {
320320
timeout(time: 15, unit: "MINUTES") {
321321
sh (script: 'rm -rf apache-couchdb-*', label: 'Clean workspace of any previous release artifacts' )
322-
sh "./configure --spidermonkey-version 78 --enable-nouveau"
322+
sh "./configure --spidermonkey-version 78 --with-nouveau"
323323
sh 'make dist'
324324
}
325325
}

build-aux/Jenkinsfile.pr

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ mkdir build
2020
cd build
2121
tar -xf ${WORKSPACE}/apache-couchdb-*.tar.gz
2222
cd apache-couchdb-*
23-
./configure --enable-nouveau --enable-clouseau --js-engine=${JS_ENGINE}
23+
./configure --with-nouveau --with-clouseau --js-engine=${JS_ENGINE}
2424
make check || (make build-report && false)
2525
'''
2626

@@ -218,7 +218,7 @@ pipeline {
218218
steps {
219219
sh '''
220220
rm -rf apache-couchdb-*
221-
./configure --spidermonkey-version 78 --enable-nouveau --enable-clouseau
221+
./configure --spidermonkey-version 78 --with-nouveau --with-clouseau
222222
make dist
223223
chmod -R a+w * .
224224
'''

configure

+13-14
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ Options:
6565
-u | --user USER set the username to run as (defaults to $COUCHDB_USER)
6666
--disable-fauxton do not build Fauxton
6767
--disable-docs do not build any documentation or manpages
68-
--enable-nouveau enable the new experimental search module
69-
--enable-clouseau enable the Clouseau search module
68+
--with-nouveau build the new experimental search module
69+
--with-clouseau build the Clouseau search module
7070
--erlang-md5 use erlang for md5 hash operations
7171
--dev alias for --disable-docs --disable-fauxton
7272
--spidermonkey-version VSN specify the version of SpiderMonkey to use (defaults to $SM_VSN)
@@ -108,22 +108,22 @@ parse_opts() {
108108
continue
109109
;;
110110

111-
--enable-nouveau)
111+
--with-nouveau)
112112
WITH_NOUVEAU="true"
113113
shift
114114
continue
115115
;;
116116

117-
--enable-clouseau)
118-
if [ "${ERLANG_VER}" -gt 25 ]; then
119-
echo "Warning: Clouseau is not working with OTP 26 or later at the moment, therefore it is not configured. Continue in 5 seconds..."
120-
sleep 5
121-
else
122-
WITH_CLOUSEAU=1
123-
fi
124-
shift
125-
continue
126-
;;
117+
--with-clouseau)
118+
if [ "${ERLANG_VER}" -gt 25 ]; then
119+
echo "Warning: Clouseau is not working with OTP 26 or later at the moment, therefore it is not configured. Continue in 5 seconds..."
120+
sleep 5
121+
else
122+
WITH_CLOUSEAU=1
123+
fi
124+
shift
125+
continue
126+
;;
127127

128128
--erlang-md5)
129129
ERLANG_MD5="true"
@@ -380,7 +380,6 @@ cat > rel/couchdb.config << EOF
380380
{prefix, "."}.
381381
{data_dir, "./data"}.
382382
{view_index_dir, "./data"}.
383-
{nouveau_enable, "$WITH_NOUVEAU"}.
384383
{nouveau_index_dir, "./data/nouveau"}.
385384
{nouveau_url, "http://127.0.0.1:5987"}.
386385
{nouveau_port, 5987}.

configure.ps1

+5-8
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
-DisableFauxton request build process skip building Fauxton (default false)
99
-DisableDocs request build process skip building documentation (default false)
1010
-DisableSpiderMonkey do not use SpiderMonkey as JS engine (default false)
11-
-EnableNouveau enable the new experiemtal search module (default false)
12-
-EnableClouseau enable the Clouseau search module (default false)
11+
-WithNouveau build the new experiemtal search module (default false)
12+
-WithClouseau build the Clouseau search module (default false)
1313
-SkipDeps do not update Erlang dependencies (default false)
1414
-CouchDBUser USER set the username to run as (defaults to current user)
1515
-SpiderMonkeyVersion VSN select the version of SpiderMonkey to use (default 91)
@@ -50,8 +50,8 @@ Param(
5050
[switch]$Test = $false,
5151
[switch]$DisableFauxton = $false, # do not build Fauxton
5252
[switch]$DisableDocs = $false, # do not build any documentation or manpages
53-
[switch]$EnableNouveau = $false, # dont use new search module by default
54-
[switch]$EnableClouseau = $false, # do not use Clouseau by default
53+
[switch]$WithNouveau = $false, # dont use new search module by default
54+
[switch]$WithClouseau = $false, # do not use Clouseau by default
5555
[switch]$SkipDeps = $false, # do not update erlang dependencies
5656
[switch]$DisableProper = $false, # a compilation pragma. proper is a kind of automated test suite
5757
[switch]$DisableSpiderMonkey = $false, # do not use SpiderMonkey as JS engine
@@ -145,8 +145,6 @@ $InstallDir="$LibDir\couchdb"
145145
$LogFile="$LogDir\couch.log"
146146
$BuildFauxton = [int](-not $DisableFauxton)
147147
$BuildDocs = [int](-not $DisableDocs)
148-
$WithNouveau = ($EnableNouveau).ToString().ToLower()
149-
$WithClouseau = $(If ($EnableClouseau) {1} else {0})
150148
$Hostname = [System.Net.Dns]::GetHostEntry([string]"localhost").HostName
151149
$WithProper = (-not $DisableProper).ToString().ToLower()
152150
$ErlangMD5 = ($EnableErlangMD5).ToString().ToLower()
@@ -182,7 +180,6 @@ $CouchDBConfig = @"
182180
{prefix, "."}.
183181
{data_dir, "./data"}.
184182
{view_index_dir, "./data"}.
185-
{nouveau_enable, "$WithNouveau"}.
186183
{nouveau_index_dir, "./data/nouveau"}.
187184
{nouveau_url, "http://127.0.0.1:5987"}.
188185
{nouveau_port, 5987}.
@@ -310,7 +307,7 @@ if ((Get-Command "erlfmt.cmd" -ErrorAction SilentlyContinue) -eq $null)
310307

311308
$ClouseauDir = "$rootdir\clouseau"
312309

313-
if ($EnableClouseau)
310+
if ($WithClouseau)
314311
{
315312

316313
if (Test-Path $ClouseauDir) {

dev/run

+2-2
Original file line numberDiff line numberDiff line change
@@ -603,9 +603,9 @@ log4j.appender.CONSOLE.layout.ConversionPattern=%d{ISO8601} %c [%p] %m%n
603603
@log("Start Clouseau node clouseau{idx}")
604604
def boot_clouseau(ctx, idx):
605605
configure_cmd = (
606-
"&.\\configure.ps1 -EnableClouseau"
606+
"&.\\configure.ps1 -WithClouseau"
607607
if platform.system() == "Windows"
608-
else "./configure --enable-clouseau"
608+
else "./configure --with-clouseau"
609609
)
610610
clouseau_dir = ctx["clouseau_dir"]
611611

nouveau/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ I don't intend to add grouping support, it seems barely used. Would accept a tid
4343

4444
## Getting started
4545

46-
Configure CouchDB with `--enable-nouveau`
46+
Configure CouchDB with `--with-nouveau`
4747

4848
Build Nouveau with;
4949

0 commit comments

Comments
 (0)