[87248] trunk/dports/databases/couchdb/Portfile

ryandesign at macports.org ryandesign at macports.org
Mon Nov 14 16:37:26 PST 2011


Revision: 87248
          http://trac.macports.org/changeset/87248
Author:   ryandesign at macports.org
Date:     2011-11-14 16:37:26 -0800 (Mon, 14 Nov 2011)
Log Message:
-----------
couchdb: set HOME when running erl to check for ssl support, to avoid permissions issue reading $HOME/.erlang; see #30089

Modified Paths:
--------------
    trunk/dports/databases/couchdb/Portfile

Modified: trunk/dports/databases/couchdb/Portfile
===================================================================
--- trunk/dports/databases/couchdb/Portfile	2011-11-15 00:13:33 UTC (rev 87247)
+++ trunk/dports/databases/couchdb/Portfile	2011-11-15 00:37:26 UTC (rev 87248)
@@ -37,8 +37,9 @@
 patchfiles          patch-configure.diff
 
 pre-configure {
+    file mkdir ${workpath}/home
     # this check was copied from configure.ac
-    if {[catch {system -W ${worksrcpath} "${prefix}/bin/erl -eval 'case application:load(crypto) of ok -> ok; _ -> exit(no_crypto) end.' -noshell -s init stop"}]} {
+    if {[catch {system -W ${workpath} "HOME=${workpath}/home ${prefix}/bin/erl -eval 'case application:load(crypto) of ok -> ok; _ -> exit(no_crypto) end.' -noshell -s init stop"}]} {
         ui_error "${name} requires erlang to be installed with the +ssl variant"
         return -code error "incompatible erlang installation"
     }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20111114/9db4e18d/attachment-0001.html>


More information about the macports-changes mailing list