[jira] [Updated] (COUCHDB-1426) error while building with 2 spidermonkey installed

2012-03-09 Thread Paul Joseph Davis (Updated) (JIRA)

 [ 
https://issues.apache.org/jira/browse/COUCHDB-1426?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Paul Joseph Davis updated COUCHDB-1426:
---

Attachment: COUCHDB-1426.patch

There were a couple issues with the last version from Benoit that needed fixing.

First, the JS_LIB_BASE selection was broken and only worked because of his 
particular combination of system vs. custom installation paths. It was relying 
on the older version being installed in a custom path, and picking up the right 
JS_LIB_BASE based on the order of tests. But if you swap the order (ie, system 
installed 1.8.0rc1 and custom path for 1.8.5) then you end up getting an error 
because it picks up -ljs for 1.8.0rc1 and fails to link properly.

There were also some weirdo edge cases based on how we screw up our usage of 
LDFLAGS. This should be fixed now.

I've tried a large number of combinations in specifying custom paths while 
having a 1.8.0rc1 installed on system paths with no errors, although, this does 
require some knowledge.

BIG IMPORTANT NOTE:

There's a new configuration parameter --with-js-lib-name that people can use to 
specify the value for -l which bypasses our checks of the various library names 
that SpiderMonkey uses. Its possible that if you *don't* specify this that the 
case I mentioned above kicks in and then there's gnarly error output. 
Unfortunately, there doesn't appear to be a sane way to match up library names 
to versions so if you have this error then you can try the new setting to force 
the use of the proper library name.

> error while building with 2 spidermonkey installed
> --
>
> Key: COUCHDB-1426
> URL: https://issues.apache.org/jira/browse/COUCHDB-1426
> Project: CouchDB
>  Issue Type: Bug
>  Components: Build System
>Affects Versions: 1.1.1, 1.2, 1.3
>Reporter: Benoit Chesneau
>Assignee: Benoit Chesneau
>Priority: Critical
> Attachments: 
> 0001-fix-build-with-custom-path-close-COUCHDB-1426.patch, 
> 0001-fix-build-with-custom-path-close-COUCHDB-1426.patch, 
> 0001-fix-build-with-custom-path-close-COUCHDB-1426.patch, 
> 0001-fix-build-with-custom-path-close-COUCHDB-1426.patch, 
> 0001-fix-build-with-custom-path-close-COUCHDB-1426.patch, COUCHDB-1426.patch
>
>
> Context:
> To bench the differences between different versions of couchdb I had to test 
> against spidermonkey 1.7 and 1.8.5 . 1.8.5 is installed globally in 
> /usr/local  while the 1.7 version is installed on a temporary path. 
> Problem:
> Using --witth-js-include & --with-js-lib configure options aren't enough to 
> use the 1.7 version it still want to use spidermonkey 1.8.5 . Removing 
> js-config from the path doesn't change anything.  I had to uninstall 
> spidermonkey 1.8.5 to have these setting working.
> Error result:
> $ ./configure 
> --with-erlang=/Users/benoitc/local/otp-r14b04/lib/erlang/usr/include 
> --with-js-include=/Users/benoitc/local/js-1.7.0/include 
> --with-js-lib=/Users/benoitc/local/js-1.7.0/lib64
> checking for a BSD-compatible install... /usr/bin/install -c
> checking whether build environment is sane... yes
> checking for a thread-safe mkdir -p... build-aux/install-sh -c -d
> checking for gawk... no
> checking for mawk... no
> checking for nawk... no
> checking for awk... awk
> checking whether make sets $(MAKE)... yes
> checking for gcc... gcc
> checking for C compiler default output file name... a.out
> checking whether the C compiler works... yes
> checking whether we are cross compiling... no
> checking for suffix of executables... 
> checking for suffix of object files... o
> checking whether we are using the GNU C compiler... yes
> checking whether gcc accepts -g... yes
> checking for gcc option to accept ISO C89... none needed
> checking for style of include used by make... GNU
> checking dependency style of gcc... gcc3
> checking build system type... i386-apple-darwin11.3.0
> checking host system type... i386-apple-darwin11.3.0
> checking for a sed that does not truncate output... /usr/bin/sed
> checking for grep that handles long lines and -e... /usr/bin/grep
> checking for egrep... /usr/bin/grep -E
> checking for fgrep... /usr/bin/grep -F
> checking for ld used by gcc... 
> /usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin11/4.2.1/ld
> checking if the linker 
> (/usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin11/4.2.1/ld) is GNU ld... no
> checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm
> checking the name lister (/usr/bin/nm) interface... BSD nm
> checking whether ln -s works... yes
> checking the maximum length of command line arguments... 196608
> checking whether the shell understands some XSI constructs... yes
> checking whether the shell understands "+="... yes
> checking for /usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin11/4.2.1/ld 
> opti

[jira] [Updated] (COUCHDB-1391) Implement _security as _local doc with revision trees

2012-01-24 Thread Paul Joseph Davis (Updated) (JIRA)

 [ 
https://issues.apache.org/jira/browse/COUCHDB-1391?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Paul Joseph Davis updated COUCHDB-1391:
---

Attachment: 0004-Implement-_security-as-a-_local-doc.patch
0003-Prevent-multiple-updates-to-a-single-_local-doc.patch
0002-Replace-_local-doc-sequence-with-revision-trees.patch
0001-Refactor-revision-merging.patch

Roast of patch with a cream sauce and a side of patch.

> Implement _security as _local doc with revision trees
> -
>
> Key: COUCHDB-1391
> URL: https://issues.apache.org/jira/browse/COUCHDB-1391
> Project: CouchDB
>  Issue Type: Improvement
>  Components: Database Core
>Reporter: Paul Joseph Davis
> Attachments: 0001-Refactor-revision-merging.patch, 
> 0002-Replace-_local-doc-sequence-with-revision-trees.patch, 
> 0003-Prevent-multiple-updates-to-a-single-_local-doc.patch, 
> 0004-Implement-_security-as-a-_local-doc.patch
>
>
> We had a discussion [1] a while back about updating the _security object so 
> that it could be replicated (internally) in a cluster or similar environment. 
> The basic gist was "update _local docs to have a revision tree, update 
> _security to be a _local doc with docid "_local/_security" and keep the 
> current _security API for a version or two for backwards compatibility (or 
> forever, what color is your bike shed?)"
> So I did that.
> Basic patch progression is:
> 1. Refactor revision merging logic so that we can split it out of 
> couch_db_updater's code path for updating normal docs.
> 2. Implement _local docs with #full_doc_info{} records (and thus revision 
> trees)
> 3. Implement _security as _local/_security
> These things are done. Tests should theoretically pass after each patch but I 
> haven't gone back and tried. They definitely pass (minus auth_cache which I 
> just submitted a fix for) now except for replication.js appears to fail for 
> random reasons. I can't quite decide if I've introduced this or if it just 
> fails randomly. Rather than run it a lot more times and continue to be 
> confused I'm starting this ticket so I can have other people test and tell me 
> their results.
> Also, the test suite is rather wonky on trunk with segfaults. We should 
> really look into that more.
> Patches forth coming. I've also pushed the branch to [2].
> [1] 
> http://grokbase.com/t/couchdb.apache.org/dev/2011/08/the-security-object-should-be-versioned/17rfmmtlu3lagqvgyq7cay26dqk4
> [2] 
> http://git-wip-us.apache.org/repos/asf?p=couchdb.git;a=log;h=refs/heads/new-security-object

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Updated] (COUCHDB-1390) Fix auth_cache etap test

2012-01-24 Thread Paul Joseph Davis (Updated) (JIRA)

 [ 
https://issues.apache.org/jira/browse/COUCHDB-1390?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Paul Joseph Davis updated COUCHDB-1390:
---

Attachment: COUCHDB-1390.patch

Lé patcheroo

> Fix auth_cache etap test
> 
>
> Key: COUCHDB-1390
> URL: https://issues.apache.org/jira/browse/COUCHDB-1390
> Project: CouchDB
>  Issue Type: Bug
>Reporter: Paul Joseph Davis
> Attachments: COUCHDB-1390.patch
>
>
> The auth_cache etap tests were failing for me. Debugged this to make sure it 
> wasn't related to something else. Commit message is:
> Fix for the auth_cache etap
> 
> As it turns out, opening a doc by id is different than opening it using
> a #doc_info record due to the inclusion of the full revision path. This
> ended up breaking the auth_cache tests. This way includes the entire
> revision path for all docs and not just first doc loads.
> Patching attaching in a few moments.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Updated] (COUCHDB-1389) Improve JS CLI test error reports

2012-01-24 Thread Paul Joseph Davis (Updated) (JIRA)

 [ 
https://issues.apache.org/jira/browse/COUCHDB-1389?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Paul Joseph Davis updated COUCHDB-1389:
---

Attachment: COUCHDB-1389.patch

Lé patch

> Improve JS CLI test error reports
> -
>
> Key: COUCHDB-1389
> URL: https://issues.apache.org/jira/browse/COUCHDB-1389
> Project: CouchDB
>  Issue Type: Improvement
>Reporter: Paul Joseph Davis
> Attachments: COUCHDB-1389.patch
>
>
> About to attach a simple patch that gives better error output when JS tests 
> fail.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Updated] (COUCHDB-1302) Fix couchjs

2011-10-10 Thread Paul Joseph Davis (Updated) (JIRA)

 [ 
https://issues.apache.org/jira/browse/COUCHDB-1302?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Paul Joseph Davis updated COUCHDB-1302:
---

Attachment: 0002-Minor-fixes-to-link-agianst-SpiderMonkey-trunk.patch
0001-Prevent-linking-against-too-new-of-a-SpiderMonkey.patch

Here's the fix for configure.ac as well as a minor patch to actually link 
against SpiderMonkey trunk.

Anyone care to review it before I commit?

> Fix couchjs
> ---
>
> Key: COUCHDB-1302
> URL: https://issues.apache.org/jira/browse/COUCHDB-1302
> Project: CouchDB
>  Issue Type: Improvement
>  Components: JavaScript View Server
>Affects Versions: 1.1.1, 1.2, 1.3
>Reporter: Paul Joseph Davis
>Priority: Blocker
> Attachments: 
> 0001-Prevent-linking-against-too-new-of-a-SpiderMonkey.patch, 
> 0002-Minor-fixes-to-link-agianst-SpiderMonkey-trunk.patch
>
>
> Figure out why some spidermonkeys have an error when doing: 
> eval("function(){}")

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira