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

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

Benoit Chesneau created COUCHDB-1595:
----------------------------------------

             Summary: 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
            Reporter: Benoit Chesneau


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

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

Posted by "Dave Cottlehuber (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/COUCHDB-1595?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dave Cottlehuber updated COUCHDB-1595:
--------------------------------------

    Labels: Windows  (was: )
    
> 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

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

Posted by "Benoit Chesneau (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/COUCHDB-1595?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benoit Chesneau updated COUCHDB-1595:
-------------------------------------

    Affects Version/s: 1.3
                       1.2
    
> 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
>
> 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

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

Posted by "Dave Cottlehuber (JIRA)" <ji...@apache.org>.
    [ 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

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

Posted by "Benoit Chesneau (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/COUCHDB-1595?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13494765#comment-13494765 ] 

Benoit Chesneau commented on COUCHDB-1595:
------------------------------------------

Well even if they are relocatable or such I don't see any reason to not have them set by the autotools. Main reason is the use with rebar later. We need to make sure that paths can be set during the reconfiguration. They will be relocatable by default.
                
> 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