svn commit: r984800 - /websites/production/lucy/content/

2016-04-05 Thread nwellnhof
Author: nwellnhof
Date: Tue Apr  5 11:49:50 2016
New Revision: 984800

Log:
Publishing svnmucc operation to lucy site by nwellnhof

Added:
websites/production/lucy/content/
  - copied from r984799, websites/staging/lucy/trunk/content/



svn commit: r1737825 - /lucy/site/trunk/content/index.mdtext

2016-04-05 Thread nwellnhof
Author: nwellnhof
Date: Tue Apr  5 11:46:00 2016
New Revision: 1737825

URL: http://svn.apache.org/viewvc?rev=1737825&view=rev
Log:
Add some "Getting Started" links

Modified:
lucy/site/trunk/content/index.mdtext

Modified: lucy/site/trunk/content/index.mdtext
URL: 
http://svn.apache.org/viewvc/lucy/site/trunk/content/index.mdtext?rev=1737825&r1=1737824&r2=1737825&view=diff
==
--- lucy/site/trunk/content/index.mdtext (original)
+++ lucy/site/trunk/content/index.mdtext Tue Apr  5 11:46:00 2016
@@ -20,7 +20,10 @@ It requires the [Apache Clownfish](/down
 After downloading and installing Lucy, consider stepping through the
 tutorial:
 
-* [Perl tutorial](/docs/perl/Lucy/Docs/Tutorial.html)
+* [Lucy Perl tutorial](/docs/perl/Lucy/Docs/Tutorial.html)
+* [Lucy C tutorial](/docs/c/Lucy/Docs/Tutorial.html)
+* [Clownfish intro](/docs/c/Clownfish/Docs/ClassIntro.html)
+* [Clownfish specification](/docs/c/Clownfish/Docs/WritingClasses.html)
 
 --
 




svn commit: r984799 - in /websites/staging/lucy/trunk/content: ./ index.html

2016-04-05 Thread buildbot
Author: buildbot
Date: Tue Apr  5 11:46:06 2016
New Revision: 984799

Log:
Staging update by buildbot for lucy

Modified:
websites/staging/lucy/trunk/content/   (props changed)
websites/staging/lucy/trunk/content/index.html

Propchange: websites/staging/lucy/trunk/content/
--
--- cms:source-revision (original)
+++ cms:source-revision Tue Apr  5 11:46:06 2016
@@ -1 +1 @@
-1737686
+1737825

Modified: websites/staging/lucy/trunk/content/index.html
==
--- websites/staging/lucy/trunk/content/index.html (original)
+++ websites/staging/lucy/trunk/content/index.html Tue Apr  5 11:46:06 2016
@@ -89,7 +89,10 @@ It requires the 
 
 
-Perl tutorial
+Lucy Perl tutorial
+Lucy C tutorial
+Clownfish intro
+Clownfish 
specification
 
 
 




[2/4] lucy git commit: Rework Travis setup

2016-04-05 Thread nwellnhof
Rework Travis setup

- Test Go bindings.
- Test without sudo.


Project: http://git-wip-us.apache.org/repos/asf/lucy/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy/commit/9a64e898
Tree: http://git-wip-us.apache.org/repos/asf/lucy/tree/9a64e898
Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/9a64e898

Branch: refs/heads/0.5
Commit: 9a64e89804194cb28d0f680ed07a2f3b80ec9a45
Parents: 06e9181
Author: Nick Wellnhofer 
Authored: Sun Mar 6 18:39:12 2016 +0100
Committer: Nick Wellnhofer 
Committed: Tue Apr 5 11:53:32 2016 +0200

--
 .travis.yml  |  4 ++--
 devel/bin/travis-test.sh | 35 +--
 2 files changed, 27 insertions(+), 12 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/lucy/blob/9a64e898/.travis.yml
--
diff --git a/.travis.yml b/.travis.yml
index a84cc40..052e274 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -14,13 +14,13 @@
 # limitations under the License.
 
 language: perl
-sudo: required
+sudo: false
 # Override Travis' default Perl installation script.
 install: 'true'
 script: devel/bin/travis-test.sh
 env:
   - LUCY_DEBUG=1 CLOWNFISH_HOST=c
-#  - LUCY_DEBUG=1 CLOWNFISH_HOST=go
+  - LUCY_DEBUG=1 CLOWNFISH_HOST=go
   - LUCY_DEBUG=1 CLOWNFISH_HOST=perl PERL_VERSION=5.20
   - LUCY_DEBUG=1 CLOWNFISH_HOST=perl PERL_VERSION=5.18
   - LUCY_DEBUG=1 CLOWNFISH_HOST=perl PERL_VERSION=5.16

http://git-wip-us.apache.org/repos/asf/lucy/blob/9a64e898/devel/bin/travis-test.sh
--
diff --git a/devel/bin/travis-test.sh b/devel/bin/travis-test.sh
index 5846897..dbced44 100755
--- a/devel/bin/travis-test.sh
+++ b/devel/bin/travis-test.sh
@@ -21,31 +21,33 @@ set -e
 # Print all commands before executing.
 set -x
 
+install_dir="$TRAVIS_BUILD_DIR/install"
+
+# Fetch Clownfish.
+git clone -q -b 0.5 --depth 1 
https://git-wip-us.apache.org/repos/asf/lucy-clownfish.git
+
 test_c() {
 # Install Clownfish.
-git clone -q -b 0.5 --depth 1 
https://git-wip-us.apache.org/repos/asf/lucy-clownfish.git
 cd lucy-clownfish/runtime/c
 ./configure
 make -j
-sudo ./install.sh --prefix /usr/local
-sudo ldconfig
+./install.sh --prefix "$install_dir"
 
 cd ../../../c
-./configure
+./configure --clownfish-prefix "$install_dir"
 make -j test
 }
 
 test_perl() {
 perlbrew switch $PERL_VERSION
+export PERL5LIB="$install_dir/lib/perl5"
 
 # Install Clownfish.
-git clone -q -b 0.5 --depth 1 
https://git-wip-us.apache.org/repos/asf/lucy-clownfish.git
 cd lucy-clownfish/runtime/perl
 perl Build.PL
-./Build
-sudo ./Build install
+./Build install --install-base "$install_dir"
 cd ../../compiler/perl
-sudo ./Build install
+./Build install --install-base "$install_dir"
 
 cd ../../../perl
 perl Build.PL
@@ -53,8 +55,21 @@ test_perl() {
 }
 
 test_go() {
-# TODO
-exit 1
+export GOPATH="$install_dir"
+mkdir -p "$install_dir/src/git-wip-us.apache.org/repos/asf"
+ln -s "$TRAVIS_BUILD_DIR/lucy-clownfish" \
+"$install_dir/src/git-wip-us.apache.org/repos/asf/lucy-clownfish.git"
+ln -s "$TRAVIS_BUILD_DIR" \
+"$install_dir/src/git-wip-us.apache.org/repos/asf/lucy.git"
+
+# Install Clownfish.
+cd lucy-clownfish/compiler/go
+go run build.go install
+cd ../../runtime/go
+go run build.go install
+
+cd ../../../go
+go run build.go test
 }
 
 case $CLOWNFISH_HOST in



[1/4] lucy git commit: Fix wrong vararg type in LFLock_init

2016-04-05 Thread nwellnhof
Repository: lucy
Updated Branches:
  refs/heads/0.5 6ca063705 -> 4ad771ceb


Fix wrong vararg type in LFLock_init

This only results in random junk in a tempfile name, so probably
harmless.


Project: http://git-wip-us.apache.org/repos/asf/lucy/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy/commit/06e91814
Tree: http://git-wip-us.apache.org/repos/asf/lucy/tree/06e91814
Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/06e91814

Branch: refs/heads/0.5
Commit: 06e918146a0f42830c8e2295e2a8f84589ddd4c9
Parents: 6ca0637
Author: Nick Wellnhofer 
Authored: Fri Mar 25 11:25:09 2016 +0100
Committer: Nick Wellnhofer 
Committed: Tue Apr 5 11:49:16 2016 +0200

--
 core/Lucy/Store/Lock.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/lucy/blob/06e91814/core/Lucy/Store/Lock.c
--
diff --git a/core/Lucy/Store/Lock.c b/core/Lucy/Store/Lock.c
index 40b9704..20bffe2 100644
--- a/core/Lucy/Store/Lock.c
+++ b/core/Lucy/Store/Lock.c
@@ -124,7 +124,8 @@ LFLock_init(LockFileLock *self, Folder *folder, String 
*name,
 int pid = PID_getpid();
 Lock_init((Lock*)self, folder, name, host, timeout, interval);
 LockFileLockIVARS *const ivars = LFLock_IVARS(self);
-ivars->link_path = Str_newf("%o.%o.%i64", ivars->lock_path, host, pid);
+ivars->link_path = Str_newf("%o.%o.%i64", ivars->lock_path, host,
+(int64_t)pid);
 return self;
 }
 



[3/4] lucy git commit: Fix switching Perl versions under Travis

2016-04-05 Thread nwellnhof
Fix switching Perl versions under Travis


Project: http://git-wip-us.apache.org/repos/asf/lucy/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy/commit/50d01c16
Tree: http://git-wip-us.apache.org/repos/asf/lucy/tree/50d01c16
Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/50d01c16

Branch: refs/heads/0.5
Commit: 50d01c16f11ff918ed7376e0229eff6b9bb49cf6
Parents: 9a64e89
Author: Nick Wellnhofer 
Authored: Tue Apr 5 11:33:02 2016 +0200
Committer: Nick Wellnhofer 
Committed: Tue Apr 5 11:53:36 2016 +0200

--
 devel/bin/travis-test.sh | 2 ++
 1 file changed, 2 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/lucy/blob/50d01c16/devel/bin/travis-test.sh
--
diff --git a/devel/bin/travis-test.sh b/devel/bin/travis-test.sh
index dbced44..733fbb6 100755
--- a/devel/bin/travis-test.sh
+++ b/devel/bin/travis-test.sh
@@ -39,7 +39,9 @@ test_c() {
 }
 
 test_perl() {
+source ~/perl5/perlbrew/etc/bashrc
 perlbrew switch $PERL_VERSION
+perlbrew list
 export PERL5LIB="$install_dir/lib/perl5"
 
 # Install Clownfish.



[4/4] lucy git commit: Dereference token_re on older Perls

2016-04-05 Thread nwellnhof
Dereference token_re on older Perls

Broken in commit 633c4d3.

Fixes LUCY-297.


Project: http://git-wip-us.apache.org/repos/asf/lucy/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy/commit/4ad771ce
Tree: http://git-wip-us.apache.org/repos/asf/lucy/tree/4ad771ce
Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/4ad771ce

Branch: refs/heads/0.5
Commit: 4ad771cebc12dbaf794ebb81be5628386e0b96ce
Parents: 50d01c1
Author: Nick Wellnhofer 
Authored: Mon Apr 4 17:59:56 2016 +0200
Committer: Nick Wellnhofer 
Committed: Tue Apr 5 11:53:49 2016 +0200

--
 perl/xs/Lucy/Analysis/RegexTokenizer.c | 8 ++--
 1 file changed, 6 insertions(+), 2 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/lucy/blob/4ad771ce/perl/xs/Lucy/Analysis/RegexTokenizer.c
--
diff --git a/perl/xs/Lucy/Analysis/RegexTokenizer.c 
b/perl/xs/Lucy/Analysis/RegexTokenizer.c
index f8e5e36..667015e 100644
--- a/perl/xs/Lucy/Analysis/RegexTokenizer.c
+++ b/perl/xs/Lucy/Analysis/RegexTokenizer.c
@@ -58,9 +58,13 @@ lucy_RegexTokenizer_init(lucy_RegexTokenizer *self,
 #if (PERL_VERSION > 10)
 REGEXP *rx = SvRX((SV*)token_re);
 #else
+if (!SvROK(token_re)) {
+THROW(CFISH_ERR, "token_re is not a qr// entity");
+}
+SV *inner = SvRV(token_re);
 MAGIC *magic = NULL;
-if (SvMAGICAL((SV*)token_re)) {
-magic = mg_find((SV*)token_re, PERL_MAGIC_qr);
+if (SvMAGICAL((SV*)inner)) {
+magic = mg_find((SV*)inner, PERL_MAGIC_qr);
 }
 if (!magic) {
 THROW(CFISH_ERR, "token_re is not a qr// entity");



[2/2] lucy git commit: Dereference token_re on older Perls

2016-04-05 Thread nwellnhof
Dereference token_re on older Perls

Broken in commit 633c4d3.

Fixes LUCY-297.


Project: http://git-wip-us.apache.org/repos/asf/lucy/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy/commit/632a46b8
Tree: http://git-wip-us.apache.org/repos/asf/lucy/tree/632a46b8
Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/632a46b8

Branch: refs/heads/master
Commit: 632a46b8b8df694d320cda2bcec72d5248e9a49f
Parents: 97d51f7
Author: Nick Wellnhofer 
Authored: Mon Apr 4 17:59:56 2016 +0200
Committer: Nick Wellnhofer 
Committed: Tue Apr 5 11:48:11 2016 +0200

--
 perl/xs/Lucy/Analysis/RegexTokenizer.c | 8 ++--
 1 file changed, 6 insertions(+), 2 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/lucy/blob/632a46b8/perl/xs/Lucy/Analysis/RegexTokenizer.c
--
diff --git a/perl/xs/Lucy/Analysis/RegexTokenizer.c 
b/perl/xs/Lucy/Analysis/RegexTokenizer.c
index b558875..9a3fcc6 100644
--- a/perl/xs/Lucy/Analysis/RegexTokenizer.c
+++ b/perl/xs/Lucy/Analysis/RegexTokenizer.c
@@ -58,9 +58,13 @@ lucy_RegexTokenizer_init(lucy_RegexTokenizer *self,
 #if (PERL_VERSION > 10)
 REGEXP *rx = SvRX((SV*)token_re);
 #else
+if (!SvROK(token_re)) {
+THROW(CFISH_ERR, "token_re is not a qr// entity");
+}
+SV *inner = SvRV(token_re);
 MAGIC *magic = NULL;
-if (SvMAGICAL((SV*)token_re)) {
-magic = mg_find((SV*)token_re, PERL_MAGIC_qr);
+if (SvMAGICAL((SV*)inner)) {
+magic = mg_find((SV*)inner, PERL_MAGIC_qr);
 }
 if (!magic) {
 THROW(CFISH_ERR, "token_re is not a qr// entity");



[1/2] lucy git commit: Fix switching Perl versions under Travis

2016-04-05 Thread nwellnhof
Repository: lucy
Updated Branches:
  refs/heads/master 8804cba6f -> 632a46b8b


Fix switching Perl versions under Travis


Project: http://git-wip-us.apache.org/repos/asf/lucy/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy/commit/97d51f7d
Tree: http://git-wip-us.apache.org/repos/asf/lucy/tree/97d51f7d
Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/97d51f7d

Branch: refs/heads/master
Commit: 97d51f7d0b0f1f37cba1434e66e1af9ad6a45366
Parents: 8804cba
Author: Nick Wellnhofer 
Authored: Tue Apr 5 11:33:02 2016 +0200
Committer: Nick Wellnhofer 
Committed: Tue Apr 5 11:48:10 2016 +0200

--
 devel/bin/travis-test.sh | 2 ++
 1 file changed, 2 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/lucy/blob/97d51f7d/devel/bin/travis-test.sh
--
diff --git a/devel/bin/travis-test.sh b/devel/bin/travis-test.sh
index 69bc4e2..6e9c494 100755
--- a/devel/bin/travis-test.sh
+++ b/devel/bin/travis-test.sh
@@ -39,7 +39,9 @@ test_c() {
 }
 
 test_perl() {
+source ~/perl5/perlbrew/etc/bashrc
 perlbrew switch $PERL_VERSION
+perlbrew list
 export PERL5LIB="$install_dir/lib/perl5"
 
 # Install Clownfish.



lucy-clownfish git commit: Fix switching Perl versions under Travis

2016-04-05 Thread nwellnhof
Repository: lucy-clownfish
Updated Branches:
  refs/heads/0.5 788087e7e -> f30e0281c


Fix switching Perl versions under Travis

It seems that we only tested with Perl 5.14 lately.

Fixes CLOWNFISH-88.


Project: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/commit/f30e0281
Tree: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/tree/f30e0281
Diff: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/diff/f30e0281

Branch: refs/heads/0.5
Commit: f30e0281cb092219b21308e095dbbb5cf755a1f4
Parents: 788087e
Author: Nick Wellnhofer 
Authored: Tue Apr 5 10:49:52 2016 +0200
Committer: Nick Wellnhofer 
Committed: Tue Apr 5 11:44:05 2016 +0200

--
 devel/bin/travis-test.sh | 2 ++
 1 file changed, 2 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/f30e0281/devel/bin/travis-test.sh
--
diff --git a/devel/bin/travis-test.sh b/devel/bin/travis-test.sh
index 9f7adb5..8251caf 100755
--- a/devel/bin/travis-test.sh
+++ b/devel/bin/travis-test.sh
@@ -31,7 +31,9 @@ test_c() {
 }
 
 test_perl() {
+source ~/perl5/perlbrew/etc/bashrc
 perlbrew switch $PERL_VERSION
+perlbrew list
 cd compiler/perl
 cpanm --quiet --installdeps --notest .
 perl Build.PL



lucy-clownfish git commit: Fix switching Perl versions under Travis

2016-04-05 Thread nwellnhof
Repository: lucy-clownfish
Updated Branches:
  refs/heads/master 4c7a29ab7 -> 658d11806


Fix switching Perl versions under Travis

It seems that we only tested with Perl 5.14 lately.

Fixes CLOWNFISH-88.


Project: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/commit/658d1180
Tree: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/tree/658d1180
Diff: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/diff/658d1180

Branch: refs/heads/master
Commit: 658d118066a42ba2e1c07bd5f7d82c499f09a03d
Parents: 4c7a29a
Author: Nick Wellnhofer 
Authored: Tue Apr 5 10:49:52 2016 +0200
Committer: Nick Wellnhofer 
Committed: Tue Apr 5 11:30:42 2016 +0200

--
 devel/bin/travis-test.sh | 2 ++
 1 file changed, 2 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/658d1180/devel/bin/travis-test.sh
--
diff --git a/devel/bin/travis-test.sh b/devel/bin/travis-test.sh
index 9f7adb5..8251caf 100755
--- a/devel/bin/travis-test.sh
+++ b/devel/bin/travis-test.sh
@@ -31,7 +31,9 @@ test_c() {
 }
 
 test_perl() {
+source ~/perl5/perlbrew/etc/bashrc
 perlbrew switch $PERL_VERSION
+perlbrew list
 cd compiler/perl
 cpanm --quiet --installdeps --notest .
 perl Build.PL