From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id kKo9KJrw8V/UVQAA0tVLHw (envelope-from ) for ; Sun, 03 Jan 2021 16:28:10 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id AH/4I5rw8V+SOgAAbx9fmQ (envelope-from ) for ; Sun, 03 Jan 2021 16:28:10 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id F08239403C9 for ; Sun, 3 Jan 2021 16:28:09 +0000 (UTC) Received: from localhost ([::1]:52150 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kw6Ei-0006nz-VT for larch@yhetil.org; Sun, 03 Jan 2021 11:28:08 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:37592) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kw6Ec-0006nh-D1 for guix-patches@gnu.org; Sun, 03 Jan 2021 11:28:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:55154) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kw6Ec-0004bV-5t for guix-patches@gnu.org; Sun, 03 Jan 2021 11:28:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kw6Ec-00062D-2H for guix-patches@gnu.org; Sun, 03 Jan 2021 11:28:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#45629] [PATCH] gnu: Export xorg variables for startx. Resent-From: John Soo Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 03 Jan 2021 16:28:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 45629 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 45629@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.160969127123175 (code B ref -1); Sun, 03 Jan 2021 16:28:01 +0000 Received: (at submit) by debbugs.gnu.org; 3 Jan 2021 16:27:51 +0000 Received: from localhost ([127.0.0.1]:38467 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kw6EQ-00061j-Kx for submit@debbugs.gnu.org; Sun, 03 Jan 2021 11:27:51 -0500 Received: from lists.gnu.org ([209.51.188.17]:46262) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kw6EK-00061X-LC for submit@debbugs.gnu.org; Sun, 03 Jan 2021 11:27:49 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:37532) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kw6EJ-0006lv-78 for guix-patches@gnu.org; Sun, 03 Jan 2021 11:27:44 -0500 Received: from mail-pg1-x533.google.com ([2607:f8b0:4864:20::533]:46833) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kw6EG-0004Ty-Nl for guix-patches@gnu.org; Sun, 03 Jan 2021 11:27:42 -0500 Received: by mail-pg1-x533.google.com with SMTP id c22so17155143pgg.13 for ; Sun, 03 Jan 2021 08:27:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=asu-edu.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:mime-version; bh=PaexkPHpfS3zMmbSrKosQDhiHPOEFwZvlTrnry8jG7g=; b=ln0R4P/gfQZn3brtibztz+3Q6sP3lwFZ+f+Jy9FWbSUPKA2IqFuA+3GClsjOVyKsux 70OL1d0n9caQJiU4HCk+hOspFACr1Zu7K2A2VIxQfySfBjH5Hu3NhEJrfxQpTTrw66Yy QhO3XIfskbFWatBNBGFDftFsTOUZXFonDbL0Qkb/Ips9EfxAOVJwduqMlGWQ3Nw7Vt8L u2Tn+Sg2kYyljvugLDzgAGSyP1wdruMMtVp2pF0KkEDoNQurrBbc6j8dtWwOlStHJXV8 p5lHLUeq+NTCI06HuXsdqJYu/TMrxl1KIm+/1BVZURDzQjlRBhJVKzA6rUV0IWJoXH4t zu0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=PaexkPHpfS3zMmbSrKosQDhiHPOEFwZvlTrnry8jG7g=; b=S85hz5o7e9wtx/ElWkERstGQiU4CisSGfgztO+3HD8TBAO32PngMc8tPR3opNi4gIR zYa//W82YiwRuPsCgQPW+dddwxP8tIGXTP1stNYphQs2ALpIGLrHy57HXP3e4mRrwHg4 Ry/sJFl9hkSEiSxNJ8rhUrBCShISDOjGJ/rsHtvZD+urdFfGO6e8xuur+X1megK2Mv3i JbgMr8+pTkpkSZYDKpSNBD3Rw6iJt/qd9Z9W5WiXOfVremZn66n/jPZVf9OlCV5dhZG3 BCEn/sG3GaWrL5ClGd5PMDJ41ADRcynNXz7puKparw6F2brtLkE98bq163Q9Av7RD6F6 XUnw== X-Gm-Message-State: AOAM533CWsoQPIfeEOEa/adVIV308JkQGxx93JiQcI7S7flINXEtpe++ dT2aDPC8D7sY7YFUJOo9lG1USqOFcY9/oA== X-Google-Smtp-Source: ABdhPJx1+J0Ex48aGVAXsXwiLqamvCMji003IiFCnh/Phu7eCNqxohlrgYmbHOYj5ftn/daL5yHrUw== X-Received: by 2002:a63:1863:: with SMTP id 35mr28089904pgy.191.1609691258342; Sun, 03 Jan 2021 08:27:38 -0800 (PST) Received: from ecenter ([2600:1700:83b0:8bd0::7a8]) by smtp.gmail.com with ESMTPSA id x18sm53527035pfr.158.2021.01.03.08.27.37 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 03 Jan 2021 08:27:37 -0800 (PST) From: John Soo Date: Sun, 03 Jan 2021 08:27:36 -0800 Message-ID: <878s9a2dfr.fsf@asu.edu> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=2607:f8b0:4864:20::533; envelope-from=jsoo1@asu.edu; helo=mail-pg1-x533.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -1.23 Authentication-Results: aspmx1.migadu.com; dkim=fail (headers rsa verify failed) header.d=asu-edu.20150623.gappssmtp.com header.s=20150623 header.b=ln0R4P/g; dmarc=fail reason="SPF not aligned (relaxed)" header.from=asu.edu (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: F08239403C9 X-Spam-Score: -1.23 X-Migadu-Scanner: scn0.migadu.com X-TUID: Jgr6bNXGSbQm --=-=-= Content-Type: text/plain 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 --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-gnu-xinit-Specify-xinputs-in-configure-flags.patch >From 8ab08a2ca7e29c53468d72577e0b3b8286d652b5 Mon Sep 17 00:00:00 2001 From: John Soo 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 --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0002-gnu-xorg-configuration-directory-Expose-the-function.patch >From fe434e4d4c53d9d8c27fcd8ab882aa4b027f4e17 Mon Sep 17 00:00:00 2001 From: John Soo 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 --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0003-gnu-xorg-configuration-file-Expose-the-function.patch >From dc7da1094047ebd47c0491f2a3ec0739362e2637 Mon Sep 17 00:00:00 2001 From: John Soo 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 --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0004-gnu-default-xorg-server-arguments-Expose-variable.patch >From c217dcdb5a40f6b921541ebda19e78fe400ae27f Mon Sep 17 00:00:00 2001 From: John Soo 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 --=-=-=--