[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#28283] Status: [PATCH 1/1] gnu: services: version-control: Add cgit

From: Oleg Pykhalov
Subject: [bug#28283] Status: [PATCH 1/1] gnu: services: version-control: Add cgit.
Date: Tue, 03 Oct 2017 09:22:08 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.60 (gnu/linux)

Hello Ludovic,

address@hidden (Ludovic Courtès) writes:


> I changed this part like this so that things work as expected if we pass
> items that live in the store (along with other changes):


Thanks.  But we need to add newline character.  Otherwise cgitrc config
will be in one line.

diff --git a/gnu/services/version-control.scm b/gnu/services/version-control.scm
index 208351447..8666648c0 100644
--- a/gnu/services/version-control.scm
+++ b/gnu/services/version-control.scm
@@ -194,7 +194,7 @@ access to exported repositories under @file{/srv/git}."
             (letrec-syntax ((option (syntax-rules ()
                                       ((_ key value)
                                        (if value
-                                           `(,key "=" ,value)
+                                           `(,key "=" ,value "\n")
                             (key/value (syntax-rules ()
                                          ((_ (key value) rest ...)
> $ guix gc -R  /gnu/store/i71plcn5y8b29nc59s5d7m2cx810ki6n-cgit-test.drv |grep 
> run-vm
> /gnu/store/
> /gnu/store/
> $ guix build /gnu/store/
> /gnu/store/
> $ /gnu/store/ -serial stdio

Awesome, this is what I'm searching for.

> Then I experimented with w3m inside the VM.
> Apparently some URLs are being rewritten, with
> /cgit.cgi/cgit.cgi/cgit.cgi/… and so on, which looks weird.
> Could you investigate more in a VM (you can simply use ‘guix system vm’
> with a config similar to that of the test) to see what’s going on?
> Looks like we’re almost there, but I’d feel more confident if we could
> get a test running.  :-)

I think this was because of one line cgitrc config.  I have some issues
with testing in VM again.

$ /gnu/store/ -net 
user,hostfwd=tcp::10080-:19418 -serial stdio

will freeze most of time without `sudo'.  If I use `sudo' then I could
open site in Icecat, but after several seconds only “The connection was

$ curl http://localhost:10080
curl: (52) Empty reply from server

Also `marionette' service is too much respawning and then dies according
to `herd status'

reply via email to

[Prev in Thread] Current Thread [Next in Thread]