Return-Path: X-Original-To: apmail-couchdb-dev-archive@www.apache.org Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 87954D8C2 for ; Sat, 10 Nov 2012 20:53:13 +0000 (UTC) Received: (qmail 53432 invoked by uid 500); 10 Nov 2012 20:53:12 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 53404 invoked by uid 500); 10 Nov 2012 20:53:12 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 53395 invoked by uid 99); 10 Nov 2012 20:53:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 10 Nov 2012 20:53:12 +0000 Date: Sat, 10 Nov 2012 20:53:12 +0000 (UTC) From: "Dave Cottlehuber (JIRA)" To: dev@couchdb.apache.org Message-ID: <1214365702.96984.1352580792509.JavaMail.jiratomcat@arcas> In-Reply-To: <1162118346.95997.1352545872613.JavaMail.jiratomcat@arcas> Subject: [jira] [Commented] (COUCHDB-1595) etc/couchdb/Makefile should use autoconf rules for windows MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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