[GitHub] wohali commented on issue #1378: Purge throws "this feature is not yet implemented"

2018-06-07 Thread GitBox
wohali commented on issue #1378: Purge throws "this feature is not yet 
implemented"
URL: https://github.com/apache/couchdb/issues/1378#issuecomment-395422101
 
 
   Duplicate of #1352.


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] wohali closed issue #1378: Purge throws "this feature is not yet implemented"

2018-06-07 Thread GitBox
wohali closed issue #1378: Purge throws "this feature is not yet implemented"
URL: https://github.com/apache/couchdb/issues/1378
 
 
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] couchdb-glazier pull request #2: CouchDB 2.x 32bit build instructions.

2018-06-07 Thread popojargo
GitHub user popojargo opened a pull request:

https://github.com/apache/couchdb-glazier/pull/2

CouchDB 2.x 32bit build instructions.

I had to compile CouchDB on 32bit for some of our clients.

It was kind of difficult so I feel like it would be amazing to share my 
instructions if anyone needs them in the future.

You can merge this pull request into a Git repository by running:

$ git pull https://github.com/popojargo/couchdb-glazier win32

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/couchdb-glazier/pull/2.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #2


commit 871fda59d9cc79abc576f81a8e561fd7ff517714
Author: Alexis 
Date:   2018-05-13T14:36:38Z

Add win32 scripts

commit 223ea6e84c9b8d261930913a8396b42b0634ed33
Author: Alexis Côté 
Date:   2018-05-13T19:29:30Z

Added instructions for 32bit build

commit c5c9780e6eff5121ba0699a83d575f737f002544
Author: Alexis Côté 
Date:   2018-05-16T16:00:05Z

Update few things according tol CouchDB 1.7.1 procedure

commit 8f60b5f81ab10af9032aca5e099f932028c82c4c
Author: Optiplex 
Date:   2018-05-23T14:06:13Z

Update scripts for Windows32

commit cda4311f9c9ec8ae6af449075341fcf1b46c55ba
Author: Alexis Côté 
Date:   2018-05-23T14:43:05Z

Update Readme

commit c3e8ada3cef2fa6d81e66b6fab08c41d77fa705d
Author: Alexis Côté 
Date:   2018-05-23T14:45:14Z

Fix links

commit a738903599fa5a3efa86aa981ef9147876320e57
Author: Alexis Côté 
Date:   2018-05-23T14:46:58Z

Fix links..

commit 6b5fd4f613ab63578cfdb37b63ac5d4ae814e058
Author: Alexis Côté 
Date:   2018-05-23T14:51:39Z

Clean curl build script




---


[GitHub] kocolosk commented on issue #1377: Fix _approx_count_distinct on non-clustered interface, optimize _stats

2018-06-07 Thread GitBox
kocolosk commented on issue #1377: Fix _approx_count_distinct on non-clustered 
interface, optimize _stats
URL: https://github.com/apache/couchdb/pull/1377#issuecomment-395393172
 
 
   Ah yeah @nickva added JS tests to my original PR for the feature.
   
   When I run `make check` locally it hangs because 3 dialogs pop up asking me 
to allow incoming network access for the various `beam.smp` processes and then 
they disappear before I can address them. 路‍♂️ I'm sure I'll sort it out 
eventually.


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] garrensmith commented on issue #1376: Add fields to sort based on selector

2018-06-07 Thread GitBox
garrensmith commented on issue #1376: Add fields to sort based on selector
URL: https://github.com/apache/couchdb/pull/1376#issuecomment-395425356
 
 
   thanks @davisp that was a really helpful review. I've done all the code 
changes you suggested. I've also moved all the `maybe_filter_sort_fields` into 
the index implementation modules. 
   
   The implementation you suggested doesn't work for the case where
   we might have a missing field in the middle of a sort list like 
[here](https://github.com/apache/couchdb/pull/1376/files#diff-cf1206e8c258c0a911b68eaaf80c8085R157)
   
   I've also rewritten the explanation in the code. Hopefully that makes more 
sense. I've also edited the PR explanation above with the same text.


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] wohali commented on issue #1377: Fix _approx_count_distinct on non-clustered interface, optimize _stats

2018-06-07 Thread GitBox
wohali commented on issue #1377: Fix _approx_count_distinct on non-clustered 
interface, optimize _stats
URL: https://github.com/apache/couchdb/pull/1377#issuecomment-395421800
 
 
   Ah, Little Snitch? Try adding blanket allow rules for it. The new Silent 
Mode stacks up the notifications so you can review them later, that might work 
for you.
   
   https://help.obdev.at/littlesnitch/#/intro-opmodes


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] wohali commented on issue #1378: Purge throws "this feature is not yet implemented"

2018-06-07 Thread GitBox
wohali commented on issue #1378: Purge throws "this feature is not yet 
implemented"
URL: https://github.com/apache/couchdb/issues/1378#issuecomment-395422351
 
 
   As a workaround, you can do a filtered replication to another database that 
removes the tombstones.
   
   See 
https://eclipsesource.com/blogs/2015/04/20/how-to-finally-delete-documents-in-couchdb/
 and especially the comment thread posts by @willholley .


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] abdasgupta closed pull request #84: Support multi-arch image building for couchdb docker image

2018-06-07 Thread GitBox
abdasgupta closed pull request #84: Support multi-arch image building for 
couchdb docker image
URL: https://github.com/apache/couchdb-docker/pull/84
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/.travis.yml b/.travis.yml
index 7db5791..cfb7473 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -11,5 +11,5 @@ env:
   - RELEASE=dev-cluster
 
 script:
-  - docker build -t couchdb:$RELEASE $RELEASE
-  - docker run -d -p 5984:5984 couchdb:$RELEASE && sleep 10 && curl 
http://localhost:5984
+  - make build VERSION=$RELEASE ARCH=ppc64le 
configure_options="--disable-fauxton --disable-docs"
+  - make build VERSION=$RELEASE configure_options="--disable-fauxton 
--disable-docs" && docker run -d -p 5984:5984 couchdb:$RELEASE && sleep 10 && 
curl http://localhost:5984
diff --git a/1.7.1-couchperuser/Dockerfile.crossbuild 
b/1.7.1-couchperuser/Dockerfile.crossbuild
new file mode 100644
index 000..1ed7a4c
--- /dev/null
+++ b/1.7.1-couchperuser/Dockerfile.crossbuild
@@ -0,0 +1,27 @@
+# Licensed under the Apache License, Version 2.0 (the "License"); you may not
+# use this file except in compliance with the License. You may obtain a copy of
+# the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+# License for the specific language governing permissions and limitations under
+# the License.
+
+FROM couchdb:1.7.1
+
+MAINTAINER CouchDB Developers d...@couchdb.apache.org
+
+ENV COUCHPERUSER_SHA 
5d28db3272eea9619d4391b33aae6030f0319ecc54aa2a2f2b6c6a8d448f03f2
+RUN apt-get update && apt-get install -y rebar make \
+ && mkdir -p /usr/local/lib/couchdb/plugins/couchperuser \
+ && cd /usr/local/lib/couchdb/plugins \
+ && curl -L -o couchperuser.tar.gz 
https://github.com/etrepum/couchperuser/archive/1.1.0.tar.gz \
+ && echo "$COUCHPERUSER_SHA *couchperuser.tar.gz" | sha256sum -c - \
+ && tar -xzf couchperuser.tar.gz -C couchperuser --strip-components=1 \
+ && rm couchperuser.tar.gz \
+ && cd couchperuser \
+ && make \
+ && apt-get purge -y --auto-remove rebar make
diff --git a/1.7.1-couchperuser/Makefile b/1.7.1-couchperuser/Makefile
new file mode 100644
index 000..122c022
--- /dev/null
+++ b/1.7.1-couchperuser/Makefile
@@ -0,0 +1,56 @@
+# Licensed under the Apache License, Version 2.0 (the "License"); you may not
+# use this file except in compliance with the License. You may obtain a copy of
+# the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+# License for the specific language governing permissions and limitations under
+# the License.
+
+.PHONY: build
+ARCH ?= amd64
+VERSION ?= 1.7.1-couchperuser
+QEMUVERSION=v2.9.1
+TEMP_DIR:=$(shell mktemp -d)
+BUILD_IMAGE ?= couchdb-$(ARCH)
+
+
+ifeq ($(ARCH),amd64)
+   BASEIMAGE?=couchdb:1.7.1
+endif
+
+ifeq ($(ARCH),ppc64le)
+   BASEIMAGE?=couchdb-ppc64le:1.7.1
+QEMUARCH=ppc64le
+endif
+
+build:
+
+ifeq ($(ARCH),amd64)
+   cp ./* $(TEMP_DIR)
+   cat Dockerfile.crossbuild \
+| sed "s|BASEIMAGE|$(BASEIMAGE)|g" \
+| sed "/CROSS_BUILD_COPY/d" \
+> $(TEMP_DIR)/Dockerfile.crossbuild
+   # We just build it using the usual process.
+   docker build -t couchdb:$(VERSION) -f $(TEMP_DIR)/Dockerfile.crossbuild 
$(TEMP_DIR)
+   rm -rf $(TEMP_DIR)
+
+else
+   cp ./* $(TEMP_DIR)
+   cat Dockerfile.crossbuild \
+   | sed "s|BASEIMAGE|$(BASEIMAGE)|g" \
+| sed "s|ARCH|$(QEMUARCH)|g" \
+> $(TEMP_DIR)/Dockerfile.crossbuild
+   docker run --rm --privileged multiarch/qemu-user-static:register --reset
+   curl -sSL 
https://github.com/multiarch/qemu-user-static/releases/download/$(QEMUVERSION)/x86_64_qemu-$(QEMUARCH)-static.tar.gz
 | tar -xz -C $(TEMP_DIR)
+   # This gosu command is not necessary to run when we are building the 
image. Hence drop it.
+   sed -e "/gosu nobody true; /d" -e "s/CROSS_BUILD_//g" 
$(TEMP_DIR)/Dockerfile.crossbuild > $(TEMP_DIR)/Dockerfile.crossbuild.tmp
+   mv $(TEMP_DIR)/Dockerfile.crossbuild.tmp 
$(TEMP_DIR)/Dockerfile.crossbuild
+   docker build -t $(BUILD_IMAGE):$(VERSION) -f 
$(TEMP_DIR)/Dockerfile.crossbuild $(TEMP_DIR)
+   rm -rf $(TEMP_DIR)
+
+endif
diff --git a/1.7.1/Dockerfile.crossbuild b/1.7.1/Dockerfile.crossbuild
new file mode 100644
index 000..9b1c665
--- /dev/null
+++ 

[GitHub] abdasgupta opened a new pull request #84: Support multi-arch image building for couchdb docker image

2018-06-07 Thread GitBox
abdasgupta opened a new pull request #84: Support multi-arch image building for 
couchdb docker image
URL: https://github.com/apache/couchdb-docker/pull/84
 
 
   
   
   ## Overview
   
   This PR is the continuation of 
https://github.com/apache/couchdb-docker/pull/60 PR. As the author of that PR 
will not be able to conitnue the work, I am planning to take it to completion. 
This PR is still dependent on enabling ASF Jenkins CI for couchdb on Power. I 
will update the PR for Jenkins CI here as soon as I come up with a patch.
   
   ## Testing recommendations
   
   
   
   `make build` on Power and Intel
   `make build ARCH=ppc64le` on Intel and vice-verse. 
   
   ## GitHub issue number
   
   
   
   ## Related Pull Requests
   
   
   
   ## Checklist
   
   - [x] Code is written and works correctly;
   - [x] Changes are covered by tests;
   - [ ] Documentation reflects the changes;
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] davisp commented on issue #1376: Add fields to sort based on selector

2018-06-07 Thread GitBox
davisp commented on issue #1376: Add fields to sort based on selector
URL: https://github.com/apache/couchdb/pull/1376#issuecomment-395485774
 
 
   @garrensmith I see the PR updated but nothing else. Did you forget to push 
your local changes?


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] rokek commented on issue #1171: couchdb unable to run on FIPS enabled CentOS

2018-06-07 Thread GitBox
rokek commented on issue #1171: couchdb unable to run on FIPS enabled CentOS
URL: https://github.com/apache/couchdb/issues/1171#issuecomment-395495971
 
 
   I like the ideas from @wohali and @nickva about replacing the md5 
`crypto:hash` calls with a `couch_util` function that swaps in `erlang:md5` if 
a compile setting exists.
   
   Would search/replace of the md5 `crypto:hash` calls be sufficient, or does 
CouchDB invoke OpenSSL's md5 function in other ways?


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] nickva commented on issue #1377: Fix _approx_count_distinct on non-clustered interface, optimize _stats

2018-06-07 Thread GitBox
nickva commented on issue #1377: Fix _approx_count_distinct on non-clustered 
interface, optimize _stats
URL: https://github.com/apache/couchdb/pull/1377#issuecomment-395538949
 
 
   One more thing that needs to be done is to include the app in the app 
dependencies for couch:
   
   https://github.com/apache/couchdb/blob/master/src/couch/src/couch.app.src#L50


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] couchdb-glazier issue #2: CouchDB 2.x 32bit build instructions.

2018-06-07 Thread wohali
Github user wohali commented on the issue:

https://github.com/apache/couchdb-glazier/pull/2
  
+1, go for it


---


[GitHub] nickva commented on issue #1377: Fix _approx_count_distinct on non-clustered interface, optimize _stats

2018-06-07 Thread GitBox
nickva commented on issue #1377: Fix _approx_count_distinct on non-clustered 
interface, optimize _stats
URL: https://github.com/apache/couchdb/pull/1377#issuecomment-395653775
 
 
   PR to add hyper to app dependencies: 
https://github.com/apache/couchdb/pull/1379


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] nickva opened a new pull request #1379: Add hyper app to dependencies

2018-06-07 Thread GitBox
nickva opened a new pull request #1379: Add hyper app to dependencies
URL: https://github.com/apache/couchdb/pull/1379
 
 
   Releases and dialyzer checks need app dependencies to work properly
   
   Issue: #1346
   
   
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] jiangphcn commented on issue #1378: Purge throws "this feature is not yet implemented"

2018-06-07 Thread GitBox
jiangphcn commented on issue #1378: Purge throws "this feature is not yet 
implemented"
URL: https://github.com/apache/couchdb/issues/1378#issuecomment-395344193
 
 
   Clustered Purge is under development. Hopefully it can help solve your 
problem once it lands. 


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] tarasvaskiv commented on issue #546: Support additional INCLUDE/LIB paths during compile

2018-06-07 Thread GitBox
tarasvaskiv commented on issue #546: Support additional INCLUDE/LIB paths 
during compile
URL: https://github.com/apache/couchdb/issues/546#issuecomment-395369426
 
 
   Yeah, I had to download 
https://launchpad.net/ubuntu/bionic/amd64/libmozjs185-dev/1.8.5-1.0.0+dfsg-7
   deb version from here and install on ubuntu 18.


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services