GNU bug report logs -
#39535
[PATCH] services: xorg: Filter modules based on system
Previous Next
Reported by: shtwzrd <shtwzrd <at> protonmail.com>
Date: Sun, 9 Feb 2020 21:32:01 UTC
Severity: normal
Tags: patch
Done: Jakub Kądziołka <kuba <at> kadziolka.net>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 39535 in the body.
You can then email your comments to 39535 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#39535
; Package
guix-patches
.
(Sun, 09 Feb 2020 21:32:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
shtwzrd <shtwzrd <at> protonmail.com>
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Sun, 09 Feb 2020 21:32:01 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Fixes <https://bugs.gnu.org/39402>.
Reported by shtwzrd <shtwzrd <at> protonmail.com>.
* gnu/services/xorg.scm (xorg-configuration):
Apply a filter over %default-xorg-modules packages, excluding
those for which the %current-system is not among the package's
supported-systems.
This patch makes it possible to use xorg-configuration on systems
other than x86_64 and i686, as without it, xf86-video-intel would
be pulled in on the unsupported architecture and fail.
---
gnu/services/xorg.scm | 19 ++++++++++++-------
1 file changed, 12 insertions(+), 7 deletions(-)
diff --git a/gnu/services/xorg.scm b/gnu/services/xorg.scm
index 9c84f7413f..edb421ada6 100644
--- a/gnu/services/xorg.scm
+++ b/gnu/services/xorg.scm
@@ -152,7 +152,12 @@
xorg-configuration make-xorg-configuration
xorg-configuration?
(modules xorg-configuration-modules ;list of packages
- (default %default-xorg-modules))
+ ; filter out modules not supported on current system
+ (default (filter
+ (lambda (p)
+ (member (%current-system)
+ (package-supported-systems p)))
+ %default-xorg-modules)))
(fonts xorg-configuration-fonts ;list of packges
(default %default-xorg-fonts))
(drivers xorg-configuration-drivers ;list of strings
@@ -356,7 +361,7 @@ in @var{config}, are available. The result should be used in place of
#~(apply execl #$X #$X ;; Second #$X is for argv[0].
"-logverbose" "-verbose" "-terminate"
#$@(xorg-configuration-server-arguments config)
- (cdr (command-line))))
+ (cdr (command-line))))
(program-file "startx" exp))
@@ -477,7 +482,7 @@ desktop session from the system or user profile will be used."
(auto-login? slim-configuration-auto-login?
(default #f))
(default-user slim-configuration-default-user
- (default ""))
+ (default ""))
(theme slim-configuration-theme
(default %default-slim-theme))
(theme-name slim-configuration-theme-name
@@ -870,10 +875,10 @@ the GNOME desktop environment.")
"Enable=" (if (gdm-configuration-debug? config)
"true"
"false") "\n"
- "\n"
- "[security]\n"
- "#DisallowTCP=true\n"
- "#AllowRemoteAutoLogin=false\n"))
+ "\n"
+ "[security]\n"
+ "#DisallowTCP=true\n"
+ "#AllowRemoteAutoLogin=false\n"))
(define (gdm-pam-service config)
"Return a PAM service for @command{gdm}."
--
2.11.0
Reply sent
to
Jakub Kądziołka <kuba <at> kadziolka.net>
:
You have taken responsibility.
(Sat, 15 Feb 2020 23:05:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
shtwzrd <shtwzrd <at> protonmail.com>
:
bug acknowledged by developer.
(Sat, 15 Feb 2020 23:05:02 GMT)
Full text and
rfc822 format available.
Message #10 received at 39535-done <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
On Sun, Feb 09, 2020 at 09:31:09PM +0000, shtwzrd wrote:
> @@ -356,7 +361,7 @@ in @var{config}, are available. The result should be used in place of
> #~(apply execl #$X #$X ;; Second #$X is for argv[0].
> "-logverbose" "-verbose" "-terminate"
> #$@(xorg-configuration-server-arguments config)
> - (cdr (command-line))))
> + (cdr (command-line))))
>
> (program-file "startx" exp))
>
> @@ -477,7 +482,7 @@ desktop session from the system or user profile will be used."
> (auto-login? slim-configuration-auto-login?
> (default #f))
> (default-user slim-configuration-default-user
> - (default ""))
> + (default ""))
> (theme slim-configuration-theme
> (default %default-slim-theme))
> (theme-name slim-configuration-theme-name
> @@ -870,10 +875,10 @@ the GNOME desktop environment.")
> "Enable=" (if (gdm-configuration-debug? config)
> "true"
> "false") "\n"
> - "\n"
> - "[security]\n"
> - "#DisallowTCP=true\n"
> - "#AllowRemoteAutoLogin=false\n"))
> + "\n"
> + "[security]\n"
> + "#DisallowTCP=true\n"
> + "#AllowRemoteAutoLogin=false\n"))
>
> (define (gdm-pam-service config)
> "Return a PAM service for @command{gdm}."
Looks like you reformatted the file by accident. Apart from that, LGTM,
so pushed as 779d96c9b0ee38cbaca9f8577e6cc7f907fb29cb after removing the
formatting mishap.
Thanks for the patch!
[signature.asc (application/pgp-signature, inline)]
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sun, 15 Mar 2020 11:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 5 years and 190 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.