You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Dave Cottlehuber (JIRA)" <ji...@apache.org> on 2012/11/10 21:53:12 UTC

[jira] [Commented] (COUCHDB-1595) etc/couchdb/Makefile should use autoconf rules for windows

    [ https://issues.apache.org/jira/browse/COUCHDB-1595?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13494762#comment-13494762 ] 

Dave Cottlehuber commented on COUCHDB-1595:
-------------------------------------------

This is by "design'. In windows we deploy couch + erlang together as a single distribution executable. There's no control over where this gets installed to, and to avoid path problems (e.g. spaces in the c:\program files (x86)\Apache ...." or similar, all paths are relative to the %COUCHDIR%/bin directory, as you see. Unless there's an issue with this, its a reasonable compromise in accommodating unix heritage paths on a system with a completely different approach.

I'm open to finding a different way, but I am sure we'll find lots of our code doesn't handle paths with spaces well. The Windows solution would be to put this into c:\users\allusers\application data\apache software foundation\couchdb\ or similar, however this file location is inconsistent across windows releases:

http://blogs.msdn.com/b/patricka/archive/2010/03/18/where-should-i-store-my-data-and-configuration-files-if-i-target-multiple-os-versions.aspx
http://support.microsoft.com/kb/310294
http://code.msdn.microsoft.com/windowsapps/ApplicationData-sample-fb043eb2

There is no API available within the installer to target this cleanly, nor does http://www.erlang.org/doc/man/win32reg.html allow me to retrieve the information. The current approach is not ideal but the alternatives feel worse and unnecessarily painful. Unless there's a good reason for addressing this I'd prefer to close as wontfix, or reconsider during OTP-ification.



                
> etc/couchdb/Makefile should use autoconf rules for windows
> ----------------------------------------------------------
>
>                 Key: COUCHDB-1595
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1595
>             Project: CouchDB
>          Issue Type: Improvement
>          Components: Build System
>    Affects Versions: 1.2, 1.3
>            Reporter: Benoit Chesneau
>              Labels: Windows
>
> actually we have a case in the Makefile to use different dirs for windows where it should simply follow the rules given by the autotools:
> "s|%localstatelibdir%|../var/lib/couchdb|g" \
> should be:
> -e "s|%localstatelibdir%|$(localstatelibdir)|g" 
> like on unix.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira