couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Timothy Smith (JIRA)" <>
Subject [jira] Created: (COUCHDB-975) non-portable sh in (breaks on Solaris)
Date Fri, 03 Dec 2010 06:26:11 GMT
non-portable sh in (breaks on Solaris)

                 Key: COUCHDB-975
             Project: CouchDB
          Issue Type: Bug
          Components: Build System
    Affects Versions: 0.8
         Environment: OpenSolaris (will affect other Solaris versions, too)
SunOS osol-x86 5.11 snv_111b i86pc i386 i86pc Solaris

            Reporter: Timothy Smith

Get this when running configure:

checking for erl... /export/home/tim/c/build-couchdb/build/bin/erl
./configure[12123]: : cannot execute [Is a directory]
/opt/csw/bin/gsed: -e expression #1, char 9: unterminated `s' command
./configure[12123]: /g: not found [No such file or directory]
./configure[12125]: test: argument expected
./configure[12129]: test: argument expected
./configure[12133]: test: argument expected
checking for erlc... /export/home/tim/c/build-couchdb/build/bin/erlc

A patch to fix it is:

commit 6b018d087ba8ddaf3789e106ade9b74488de5136
Author: Timothy Smith <>
Date:   Thu Dec 2 23:13:10 2010 -0700

    Fix syntax error with /bin/sh on Solaris
    The RHS of an assignment is implicitly quoted in Bourne shell. Not
    all shells (in particular, not /bin/sh in Solaris) can handle nested
    double-quotes like foo="`bar "baz"`", and it's always safe to not
    use the outer set.

diff --git a/ b/
index c609a08..73ea9fe 100644
--- a/
+++ b/
@@ -243,7 +243,7 @@ fi
 erlang_version_error="The installed Erlang version is less than 5.6.5 (R12B05).
-version="`${ERL} -version 2>&1 | ${SED} "s/[[^0-9]]/ /g"`"
+version=`${ERL} -version 2>&1 | ${SED} "s/[[^0-9]]/ /g"`
 if test `echo $version | ${AWK} "{print \\$1}"` -lt 5; then

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message