From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51366) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dzGbj-0001fE-Et for guix-patches@gnu.org; Tue, 03 Oct 2017 02:23:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dzGbe-0000DJ-Fm for guix-patches@gnu.org; Tue, 03 Oct 2017 02:23:07 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:36304) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dzGbe-0000Cv-BD for guix-patches@gnu.org; Tue, 03 Oct 2017 02:23:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dzGbd-0003pj-Uf for guix-patches@gnu.org; Tue, 03 Oct 2017 02:23:02 -0400 Subject: [bug#28283] Status: [PATCH 1/1] gnu: services: version-control: Add cgit. Resent-Message-ID: From: Oleg Pykhalov References: <87h8wq2hxw.fsf@gmail.com> <87a82i2hur.fsf@gmail.com> <873787rh4a.fsf@gnu.org> <87d16mv0o3.fsf@gnu.org> <87efr19fms.fsf@gmail.com> <87ingasvfx.fsf@gnu.org> <87h8vuehv6.fsf@gmail.com> <87d16ibeif.fsf@gnu.org> <874lrlr46b.fsf@gmail.com> <871smmr0sb.fsf@gnu.org> Date: Tue, 03 Oct 2017 09:22:08 +0300 In-Reply-To: <871smmr0sb.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Sun, 01 Oct 2017 23:55:16 +0200") Message-ID: <87wp4cbvjj.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 28283@debbugs.gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello Ludovic, ludo@gnu.org (Ludovic Court=C3=A8s) 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. --=-=-= Content-Type: text/x-patch Content-Disposition: inline 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 ...) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable > $ guix gc -R /gnu/store/i71plcn5y8b29nc59s5d7m2cx810ki6n-cgit-test.drv |= grep run-vm > /gnu/store/v9s4ai0dvgvmga6lyj4z2733lavr3acl-run-vm.sh-builder > /gnu/store/6a2l7mcshdzc38zj8nkinjlzqmgjnx3b-run-vm.sh.drv > $ guix build /gnu/store/6a2l7mcshdzc38zj8nkinjlzqmgjnx3b-run-vm.sh.drv > /gnu/store/igjg0i4d3sj77jpgppn09r66jql6nliw-run-vm.sh > $ /gnu/store/igjg0i4d3sj77jpgppn09r66jql6nliw-run-vm.sh -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/=E2=80=A6 and so on, which looks weird. > > Could you investigate more in a VM (you can simply use =E2=80=98guix syst= em vm=E2=80=99 > with a config similar to that of the test) to see what=E2=80=99s going on? > Looks like we=E2=80=99re almost there, but I=E2=80=99d feel more confiden= t 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/igjg0i4d3sj77jpgppn09r66jql6nliw-run-vm.sh -net user,hostfwd= =3Dtcp::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 =E2=80=9CThe connection= was reset=E2=80=9D. $ curl http://localhost:10080 curl: (52) Empty reply from server Also `marionette' service is too much respawning and then dies according to `herd status' --=-=-=--