all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: John Soo <jsoo1@asu.edu>
To: 45629@debbugs.gnu.org
Subject: [bug#45629] [PATCH] gnu: Export xorg variables for startx.
Date: Sun, 03 Jan 2021 08:27:36 -0800	[thread overview]
Message-ID: <878s9a2dfr.fsf@asu.edu> (raw)

[-- Attachment #1: Type: text/plain, Size: 393 bytes --]

Hi Guix,

I wanted to try using startx instead of a display manager.  I finally
got it to work, but it required at very least these patches.  I also had
to create a new service type but I think that it needs more work to be
put in upstream.

Is startx something we want to support?  It seems like the user should
be able to construct a system as the they see fit.

What do you think?

- John


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-xinit-Specify-xinputs-in-configure-flags.patch --]
[-- Type: text/x-patch, Size: 1806 bytes --]

From 8ab08a2ca7e29c53468d72577e0b3b8286d652b5 Mon Sep 17 00:00:00 2001
From: John Soo <jsoo1@asu.edu>
Date: Mon, 30 Mar 2020 03:33:08 -0700
Subject: [PATCH 1/4] gnu: xinit: Specify xinputs in configure flags.

* gnu/packages/xorg.scm (xinit):[arguments] Specify twm, xauth, xclock,
  xorg-server, xrdb, xorg-server, and xterm in configure flags and propagate
  them.
---
 gnu/packages/xorg.scm | 28 +++++++++++++++++++++++++++-
 1 file changed, 27 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/xorg.scm b/gnu/packages/xorg.scm
index 42596aa0f1..d7f55394ab 100644
--- a/gnu/packages/xorg.scm
+++ b/gnu/packages/xorg.scm
@@ -5922,7 +5922,33 @@ The XCB util-wm module provides the following libraries:
     (native-inputs
      `(("pkg-config" ,pkg-config)))
     (propagated-inputs
-     `(("xauth" ,xauth)))
+     `(("twm" ,twm)
+       ("xauth" ,xauth)
+       ("xclock" ,xclock)
+       ("xorg-server" ,xorg-server)
+       ("xrdb" ,xrdb)
+       ("xterm" ,xterm)))
+    (arguments
+     `(#:configure-flags
+       (list
+        (string-append
+         "--with-twm="
+         (assoc-ref %build-inputs "twm") "/bin/twm")
+        (string-append
+         "--with-xauth="
+         (assoc-ref %build-inputs "xauth") "/bin/xauth")
+        (string-append
+         "--with-xclock="
+         (assoc-ref %build-inputs "xclock") "/bin/xclock")
+        (string-append
+         "--with-xrdb="
+         (assoc-ref %build-inputs "xrdb") "/bin/xrdb")
+        (string-append
+         "--with-xserver="
+         (assoc-ref %build-inputs "xorg-server") "/bin/X")
+        (string-append
+         "--with-xterm="
+         (assoc-ref %build-inputs "xterm") "/bin/xterm"))))
     (home-page "https://www.x.org/")
     (synopsis "Commands to start the X Window server")
     (description
-- 
2.29.2


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #3: 0002-gnu-xorg-configuration-directory-Expose-the-function.patch --]
[-- Type: text/x-patch, Size: 757 bytes --]

From fe434e4d4c53d9d8c27fcd8ab882aa4b027f4e17 Mon Sep 17 00:00:00 2001
From: John Soo <jsoo1@asu.edu>
Date: Wed, 1 Apr 2020 08:23:37 -0700
Subject: [PATCH 2/4] gnu: xorg-configuration-directory: Expose the function.

* gnu/services/xorg.scm (xorg-configuration-directory): Expose it.
---
 gnu/services/xorg.scm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gnu/services/xorg.scm b/gnu/services/xorg.scm
index 4590709187..1c76049d23 100644
--- a/gnu/services/xorg.scm
+++ b/gnu/services/xorg.scm
@@ -65,6 +65,7 @@
             xorg-configuration-server
             xorg-configuration-server-arguments
 
+            xorg-configuration-directory
             %default-xorg-modules
             %default-xorg-fonts
             xorg-wrapper
-- 
2.29.2


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #4: 0003-gnu-xorg-configuration-file-Expose-the-function.patch --]
[-- Type: text/x-patch, Size: 752 bytes --]

From dc7da1094047ebd47c0491f2a3ec0739362e2637 Mon Sep 17 00:00:00 2001
From: John Soo <jsoo1@asu.edu>
Date: Wed, 1 Apr 2020 08:34:20 -0700
Subject: [PATCH 3/4] gnu: xorg-configuration->file: Expose the function.

* gnu/services/xorg.scm (xorg-configuration->file): Expose it.
---
 gnu/services/xorg.scm | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gnu/services/xorg.scm b/gnu/services/xorg.scm
index 1c76049d23..fcd9b4d4f1 100644
--- a/gnu/services/xorg.scm
+++ b/gnu/services/xorg.scm
@@ -66,6 +66,8 @@
             xorg-configuration-server-arguments
 
             xorg-configuration-directory
+            xorg-configuration->file
+
             %default-xorg-modules
             %default-xorg-fonts
             xorg-wrapper
-- 
2.29.2


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #5: 0004-gnu-default-xorg-server-arguments-Expose-variable.patch --]
[-- Type: text/x-patch, Size: 751 bytes --]

From c217dcdb5a40f6b921541ebda19e78fe400ae27f Mon Sep 17 00:00:00 2001
From: John Soo <jsoo1@asu.edu>
Date: Thu, 2 Apr 2020 03:58:07 -0700
Subject: [PATCH 4/4] gnu: %default-xorg-server-arguments: Expose variable.

* gnu/services/xorg.scm (%default-xorg-server-arguments): Expose it.
---
 gnu/services/xorg.scm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gnu/services/xorg.scm b/gnu/services/xorg.scm
index fcd9b4d4f1..6a1d9e07b6 100644
--- a/gnu/services/xorg.scm
+++ b/gnu/services/xorg.scm
@@ -68,6 +68,7 @@
             xorg-configuration-directory
             xorg-configuration->file
 
+            %default-xorg-server-arguments
             %default-xorg-modules
             %default-xorg-fonts
             xorg-wrapper
-- 
2.29.2


             reply	other threads:[~2021-01-03 16:28 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-03 16:27 John Soo [this message]
2021-02-11  9:36 ` [bug#45629] [PATCH] gnu: Export xorg variables for startx 宋文武
2021-02-22  3:39   ` John Soo
2021-02-27  6:43     ` 宋文武
2021-03-03 20:00       ` John Soo
2023-05-07 18:31         ` Maxim Cournoyer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878s9a2dfr.fsf@asu.edu \
    --to=jsoo1@asu.edu \
    --cc=45629@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.