From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Wilms Subject: Re: XWayland, /tmp/.X11-unix Date: Thu, 29 Mar 2018 17:18:41 +0200 Message-ID: References: <87po3xava2.fsf@elephly.net> <0040efaf-92d4-cd6c-e844-1c9161dc7ffa@freenet.de> <87k1tzji57.fsf@fastmail.com> <9e72a608-299f-217a-6447-b9b843774d22@freenet.de> <87efk7jda5.fsf@fastmail.com> Reply-To: t_w_@freenet.de Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56194) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f1ZN9-0001fj-QL for guix-devel@gnu.org; Thu, 29 Mar 2018 11:21:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f1ZN6-00012C-JU for guix-devel@gnu.org; Thu, 29 Mar 2018 11:21:51 -0400 Received: from mout0.freenet.de ([2001:748:100:40::2:2]:39050) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f1ZN6-00010I-Bi for guix-devel@gnu.org; Thu, 29 Mar 2018 11:21:48 -0400 Received: from [195.4.92.142] (helo=mjail2.freenet.de) by mout0.freenet.de with esmtpa (ID t_w_@freenet.de) (port 25) (Exim 4.90_1 #2) id 1f1ZN1-0003L8-Q6 for guix-devel@gnu.org; Thu, 29 Mar 2018 17:21:44 +0200 Received: from [::1] (port=51264 helo=mjail2.freenet.de) by mjail2.freenet.de with esmtpa (ID t_w_@freenet.de) (Exim 4.90_1 #2) id 1f1ZN1-0006Gr-Ll for guix-devel@gnu.org; Thu, 29 Mar 2018 17:21:43 +0200 Received: from mx14.freenet.de ([195.4.92.24]:41338) by mjail2.freenet.de with esmtpa (ID t_w_@freenet.de) (Exim 4.90_1 #2) id 1f1ZK8-0003IP-H6 for guix-devel@gnu.org; Thu, 29 Mar 2018 17:18:44 +0200 Received: from p200300e4f3d2390002e029fffe32e625.dip0.t-ipconnect.de ([2003:e4:f3d2:3900:2e0:29ff:fe32:e625]:54636) by mx14.freenet.de with esmtpsa (ID t_w_@freenet.de) (TLSv1.2:ECDHE-RSA-CHACHA20-POLY1305:256) (port 465) (Exim 4.90_1 #2) id 1f1ZK6-0008DY-Hp for guix-devel@gnu.org; Thu, 29 Mar 2018 17:18:44 +0200 In-Reply-To: <87efk7jda5.fsf@fastmail.com> Content-Language: en-GB List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Guix-devel On 26.03.2018 13:18, Marius Bakke wrote: > In any case it should be safe to add an activation script that creates > /tmp/.X11-unix on GuixSD. I think it can be part of %desktop-services, > or maybe even %base-services. Would you like to try it? I would have like to send this (or similar) to the patch list: --- From 0af5028419db3adc8c7d8c4d51668c5077013ecc Mon Sep 17 00:00:00 2001 From: Thorsten Wilms Date: Wed, 28 Mar 2018 19:59:11 +0200 Subject: [PATCH] gnu: Add x11-socket-dir-service * gnu/services/desktop.scm (gnu): Export x11-socket-dir-service, define it, add it to %desktop-services list. --- gnu/services/desktop.scm | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/gnu/services/desktop.scm b/gnu/services/desktop.scm index 897252917..ef3a5457e 100644 --- a/gnu/services/desktop.scm +++ b/gnu/services/desktop.scm @@ -94,6 +94,8 @@ xfce-desktop-service xfce-desktop-service-type + x11-socket-dir-service + %desktop-services)) ;;; Commentary: @@ -882,6 +884,21 @@ with the administrator's password." ;;; +;;; X11 socket directory service +;;; + +(define x11-socket-dir-service + ;; Return a service that creates /tmp/.X11-unix. X11 servers, including + ;; XWayland, create their socket file there. + (simple-service 'x11-socket-dir + activation-service-type + #~(begin (use-modules (guix build utils)) + (let ((p "/tmp/.X11-unix")) + (mkdir-p p) + (chmod p #o776))))) ;; drwxrwxrwt + + +;;; ;;; The default set of desktop services. ;;; @@ -912,6 +929,8 @@ with the administrator's password." (ntp-service) + x11-socket-dir-service + %base-services)) ;;; desktop.scm ends here -- 2.11.0 --- I wanted to test it by using the changed guix and an operating-system that would include the x11-socket-dir-service. Things got messy, guix started to insist on building Python (and failing at it!). I cleaned up and started again: $ git clone https://git.savannah.gnu.org/git/guix.git $ cd guix $ guix environment guix $ ./bootstrap $ ./configure --localstatedir=/var $ make # ./pre-inst-env guix-daemon --build-users-group=guixbuild # ./pre-inst-env guix system reconfigure /etc/config.scm => since I had things to do away from the computer, I gave guix the chance to complete, but like 3 hours later it was still building and testing stuff, where prior to this mess, I would have expected none of that. Last package I recognised was Subversion. Prior attempts included sessions like: --- thorwil@charly ~/guix_env/guix$ sudo ./pre-inst-env guix-daemon --build-users-group=guixbuild ^Z [1]+ Stopped sudo ./pre-inst-env guix-daemon --build-users-group=guixbuild thorwil@charly ~/guix_env/guix$ bg [1]+ sudo ./pre-inst-env guix-daemon --build-users-group=guixbuild & thorwil@charly ~/guix_env/guix$ sudo ./pre-inst-env guix system reconfigure /etc/config.scm guix: system: command not found --- root@charly ~# cd /home/thorwil/guix_env/guix/ root@charly /home/thorwil/guix_env/guix# ./pre-inst-env guix system reconfigure /etc/config.scm substitute: guix substitute: warning: ACL for archive imports seems to be uninitialized, substitutes may be unavailable guix: offload: command not found Try `guix --help' for more information. guix system: error: build failed: unexpected EOF reading a line --- root@charly /home/thorwil/guix_env/guix# guix environment guix substitute: guix substitute: warning: ACL for archive imports seems to be uninitialized, substitutes may be unavailable guix: offload: command not found Try `guix --help' for more information. guix environment: error: build failed: unexpected EOF reading a line Reading that now, I guess "substitute: guix substitute: warning: ACL for archive imports seems to be uninitialized, substitutes may be unavailable" is the key? -- Thorsten Wilms thorwil's design for free software: http://thorwil.wordpress.com/