You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by va...@apache.org on 2024/07/01 17:29:04 UTC

(couchdb) 01/01: change --enable-{nouveau,clouseau} to --with-

This is an automated email from the ASF dual-hosted git repository.

vatamane pushed a commit to branch jenkins-dont-change-default-ini-nouveau
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit f30e669b4f614dbbe47d7bb6159e10134b74d7fb
Author: Robert Newson <Ro...@ibm.com>
AuthorDate: Fri Jun 28 11:45:29 2024 +0100

    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.
---
 configure     | 27 +++++++++++++--------------
 configure.ps1 | 13 +++++--------
 2 files changed, 18 insertions(+), 22 deletions(-)

diff --git a/configure b/configure
index f327e8901..e2c661216 100755
--- a/configure
+++ b/configure
@@ -65,8 +65,8 @@ Options:
   -u | --user USER            set the username to run as (defaults to $COUCHDB_USER)
   --disable-fauxton           do not build Fauxton
   --disable-docs              do not build any documentation or manpages
-  --enable-nouveau            enable the new experimental search module
-  --enable-clouseau           enable the Clouseau search module
+  --with-nouveau              build the new experimental search module
+  --with-clouseau             build the Clouseau search module
   --erlang-md5                use erlang for md5 hash operations
   --dev                       alias for --disable-docs --disable-fauxton
   --spidermonkey-version VSN  specify the version of SpiderMonkey to use (defaults to $SM_VSN)
@@ -108,22 +108,22 @@ parse_opts() {
                 continue
                 ;;
 
-            --enable-nouveau)
+            --with-nouveau)
                 WITH_NOUVEAU="true"
                 shift
                 continue
                 ;;
 
-	    --enable-clouseau)
-		if [ "${ERLANG_VER}" -gt 25 ]; then
-		    echo "Warning: Clouseau is not working with OTP 26 or later at the moment, therefore it is not configured.  Continue in 5 seconds..."
-		    sleep 5
-		else
-		    WITH_CLOUSEAU=1
-		fi
-		shift
-		continue
-		;;
+	        --with-clouseau)
+		        if [ "${ERLANG_VER}" -gt 25 ]; then
+		            echo "Warning: Clouseau is not working with OTP 26 or later at the moment, therefore it is not configured.  Continue in 5 seconds..."
+		            sleep 5
+		        else
+		            WITH_CLOUSEAU=1
+		        fi
+		        shift
+		        continue
+		        ;;
 
             --erlang-md5)
                 ERLANG_MD5="true"
@@ -380,7 +380,6 @@ cat > rel/couchdb.config << EOF
 {prefix, "."}.
 {data_dir, "./data"}.
 {view_index_dir, "./data"}.
-{nouveau_enable, "$WITH_NOUVEAU"}.
 {nouveau_index_dir, "./data/nouveau"}.
 {nouveau_url, "http://127.0.0.1:5987"}.
 {nouveau_port, 5987}.
diff --git a/configure.ps1 b/configure.ps1
index 853beeab0..7c1bbe825 100644
--- a/configure.ps1
+++ b/configure.ps1
@@ -8,8 +8,8 @@
   -DisableFauxton            request build process skip building Fauxton (default false)
   -DisableDocs               request build process skip building documentation (default false)
   -DisableSpiderMonkey       do not use SpiderMonkey as JS engine (default false)
-  -EnableNouveau             enable the new experiemtal search module (default false)
-  -EnableClouseau            enable the Clouseau search module (default false)
+  -WithNouveau               build the new experiemtal search module (default false)
+  -WithClouseau              build the Clouseau search module (default false)
   -SkipDeps                  do not update Erlang dependencies (default false)
   -CouchDBUser USER          set the username to run as (defaults to current user)
   -SpiderMonkeyVersion VSN   select the version of SpiderMonkey to use (default 91)
@@ -50,8 +50,8 @@ Param(
     [switch]$Test = $false,
     [switch]$DisableFauxton = $false, # do not build Fauxton
     [switch]$DisableDocs = $false, # do not build any documentation or manpages
-    [switch]$EnableNouveau = $false, # dont use new search module by default
-    [switch]$EnableClouseau = $false, # do not use Clouseau by default
+    [switch]$WithNouveau = $false, # dont use new search module by default
+    [switch]$WithClouseau = $false, # do not use Clouseau by default
     [switch]$SkipDeps = $false, # do not update erlang dependencies
     [switch]$DisableProper = $false, # a compilation pragma. proper is a kind of automated test suite
     [switch]$DisableSpiderMonkey = $false, # do not use SpiderMonkey as JS engine
@@ -145,8 +145,6 @@ $InstallDir="$LibDir\couchdb"
 $LogFile="$LogDir\couch.log"
 $BuildFauxton = [int](-not $DisableFauxton)
 $BuildDocs = [int](-not $DisableDocs)
-$WithNouveau = ($EnableNouveau).ToString().ToLower()
-$WithClouseau = $(If ($EnableClouseau) {1} else {0})
 $Hostname = [System.Net.Dns]::GetHostEntry([string]"localhost").HostName
 $WithProper = (-not $DisableProper).ToString().ToLower()
 $ErlangMD5 = ($EnableErlangMD5).ToString().ToLower()
@@ -182,7 +180,6 @@ $CouchDBConfig = @"
 {prefix, "."}.
 {data_dir, "./data"}.
 {view_index_dir, "./data"}.
-{nouveau_enable, "$WithNouveau"}.
 {nouveau_index_dir, "./data/nouveau"}.
 {nouveau_url, "http://127.0.0.1:5987"}.
 {nouveau_port, 5987}.
@@ -310,7 +307,7 @@ if ((Get-Command "erlfmt.cmd" -ErrorAction SilentlyContinue) -eq $null)
 
 $ClouseauDir = "$rootdir\clouseau"
 
-if ($EnableClouseau)
+if ($WithClouseau)
 {
 
     if (Test-Path $ClouseauDir) {