unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#56597] [PATCH] gnu: xscreensaver: Update to 6.04.
@ 2022-07-16  9:16 r0man
  2022-08-03 10:19 ` bug#56597: " Ludovic Courtès
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: r0man @ 2022-07-16  9:16 UTC (permalink / raw)
  To: 56597


[-- Attachment #1.1: Type: text/plain, Size: 257 bytes --]


Hello Guix,

this patch updates xscreensaver to version 6.04. I had to replace the
configure phase, because xscreensaver uses an autoconf script that does
not understand the --enable-fast-install flag.

Could you please review this patch?

Thanks, Roman.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: 0001-gnu-xscreensaver-Update-to-6.04.patch --]
[-- Type: text/x-patch, Size: 3093 bytes --]

From 9fb6c5eb00d6446baf92ebbe88018d4d4a1d081c Mon Sep 17 00:00:00 2001
Message-Id: <9fb6c5eb00d6446baf92ebbe88018d4d4a1d081c.1657962947.git.roman@burningswell.com>
From: r0man <roman@burningswell.com>
Date: Sat, 16 Jul 2022 11:13:54 +0200
Subject: [PATCH] gnu: xscreensaver: Update to 6.04.

* gnu/packages/xdisorg.scm (xscreensaver): Update to 6.04.
---
 gnu/packages/xdisorg.scm | 26 +++++++++++++++++++++-----
 1 file changed, 21 insertions(+), 5 deletions(-)

diff --git a/gnu/packages/xdisorg.scm b/gnu/packages/xdisorg.scm
index d345bc461d..730b19b51a 100644
--- a/gnu/packages/xdisorg.scm
+++ b/gnu/packages/xdisorg.scm
@@ -1585,7 +1585,7 @@ (define-public gammastep
 (define-public xscreensaver
   (package
     (name "xscreensaver")
-    (version "5.45")
+    (version "6.04")
     (source
      (origin
        (method url-fetch)
@@ -1593,7 +1593,7 @@ (define-public xscreensaver
         (string-append "https://www.jwz.org/xscreensaver/xscreensaver-"
                        version ".tar.gz"))
        (sha256
-        (base32 "03fmyjlwjinzv7mih6n07glmys8s877snd8zijk2c0ds6rkxy5kh"))))
+        (base32 "0lmiyvp3qs2gngd53f191jmlizs9l04i2gnrqbn96mqckyr18w3q"))))
     (build-system gnu-build-system)
     (arguments
      `(#:tests? #f                      ; no check target
@@ -1604,9 +1604,24 @@ (define-public xscreensaver
              (substitute* '("driver/Makefile.in" "po/Makefile.in.in")
                (("@GTK_DATADIR@") "@datadir@")
                (("@PO_DATADIR@") "@datadir@"))
-             #t)))
-       #:configure-flags '("--with-pam" "--with-proc-interrupts"
-                           "--without-readdisplay")
+             #t))
+         (replace 'configure
+           (lambda* (#:key outputs #:allow-other-keys)
+             ;; The tarball uses a very old version of autconf. It does not
+             ;; understand extra flags like `--enable-fast-install', so
+             ;; we need to invoke it with just what it understands.
+             (let ((out (assoc-ref outputs "out")))
+               ;; 'configure' doesn't understand '--host'.
+               ,@(if (%current-target-system)
+                     `((setenv "CHOST" ,(%current-target-system)))
+                     '())
+               (setenv "CONFIG_SHELL" (which "bash"))
+               (setenv "SHELL" (which "bash"))
+               (invoke "./configure"
+                       (string-append "--prefix=" out)
+                       "--with-pam"
+                       "--with-proc-interrupts"
+                       "--without-readdisplay")))))
        #:make-flags (list (string-append "AD_DIR="
                                          (assoc-ref %outputs "out")
                                          "/lib/X11/app-defaults"))))
@@ -1626,6 +1641,7 @@ (define-public xscreensaver
        ("libjpeg" ,libjpeg-turbo)
        ("linux-pam" ,linux-pam)
        ("pango" ,pango)
+       ("gdk-pixbuf-xlib", gdk-pixbuf-xlib)
        ("gtk+" ,gtk+)
        ("perl" ,perl)
        ("cairo" ,cairo)
-- 
2.36.1


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 528 bytes --]

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* bug#56597: [PATCH] gnu: xscreensaver: Update to 6.04.
  2022-07-16  9:16 [bug#56597] [PATCH] gnu: xscreensaver: Update to 6.04 r0man
@ 2022-08-03 10:19 ` Ludovic Courtès
  2022-08-03 15:58 ` [bug#56597] " Ludovic Courtès
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Ludovic Courtès @ 2022-08-03 10:19 UTC (permalink / raw)
  To: r0man; +Cc: 56597-done

Hi,

r0man <roman.scherer@burningswell.com> skribis:

> From 9fb6c5eb00d6446baf92ebbe88018d4d4a1d081c Mon Sep 17 00:00:00 2001
> Message-Id: <9fb6c5eb00d6446baf92ebbe88018d4d4a1d081c.1657962947.git.roman@burningswell.com>
> From: r0man <roman@burningswell.com>
> Date: Sat, 16 Jul 2022 11:13:54 +0200
> Subject: [PATCH] gnu: xscreensaver: Update to 6.04.
>
> * gnu/packages/xdisorg.scm (xscreensaver): Update to 6.04.

Applied, thanks!

Ludo’.




^ permalink raw reply	[flat|nested] 5+ messages in thread

* [bug#56597] [PATCH] gnu: xscreensaver: Update to 6.04.
  2022-07-16  9:16 [bug#56597] [PATCH] gnu: xscreensaver: Update to 6.04 r0man
  2022-08-03 10:19 ` bug#56597: " Ludovic Courtès
@ 2022-08-03 15:58 ` Ludovic Courtès
  2022-08-09  7:29 ` Rick Huyzer
  2022-08-21 10:27 ` Reza Alizadeh Majd
  3 siblings, 0 replies; 5+ messages in thread
From: Ludovic Courtès @ 2022-08-03 15:58 UTC (permalink / raw)
  To: r0man; +Cc: 56597

Hi again!

Actually I followed up with a couple of commits:

  e8ed95ddf8 * gnu: xscreensaver: Don't read /proc/interrupts at configure time.
  f2d86db81d * gnu: xscreensaver: Remove custom 'configure' phase.

The /proc/interrupts was prompted by build failures observed on some
machines, such as this one:

  https://ci.guix.gnu.org/build/1150669/details

Ludo’.




^ permalink raw reply	[flat|nested] 5+ messages in thread

* [bug#56597] [PATCH] gnu: xscreensaver: Update to 6.04.
  2022-07-16  9:16 [bug#56597] [PATCH] gnu: xscreensaver: Update to 6.04 r0man
  2022-08-03 10:19 ` bug#56597: " Ludovic Courtès
  2022-08-03 15:58 ` [bug#56597] " Ludovic Courtès
@ 2022-08-09  7:29 ` Rick Huyzer
  2022-08-21 10:27 ` Reza Alizadeh Majd
  3 siblings, 0 replies; 5+ messages in thread
From: Rick Huyzer @ 2022-08-09  7:29 UTC (permalink / raw)
  To: 56597

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

Did anyone actually test this patch? I cannot unlock my systems anymore and
xscreensaver only shows the message 'dont login as root', even though I
invoke it as a non-root user.

When I remove the (screen-locker-service xscreensaver) service I run into
all kinds of setuid problems so that's not a solution either.

-- 
Thanks,

Rick Huijzer

[-- Attachment #2: Type: text/html, Size: 602 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [bug#56597] [PATCH] gnu: xscreensaver: Update to 6.04.
  2022-07-16  9:16 [bug#56597] [PATCH] gnu: xscreensaver: Update to 6.04 r0man
                   ` (2 preceding siblings ...)
  2022-08-09  7:29 ` Rick Huyzer
@ 2022-08-21 10:27 ` Reza Alizadeh Majd
  3 siblings, 0 replies; 5+ messages in thread
From: Reza Alizadeh Majd @ 2022-08-21 10:27 UTC (permalink / raw)
  To: 56597

I'm also getting the same `XScreenSaver: Don't log in as root` message
after the update. and I found the following logs in the /var/log/secure
during the unlock.

--8<---------------cut here---------------start------------->8---
Aug 21 14:47:48 localhost unix_chkpwd[8188]: check pass; user unknown
Aug 21 14:47:48 localhost unix_chkpwd[8188]: password check failed for user (panther)
Aug 21 10:17:48 localhost xscreensaver-auth: pam_unix(xscreensaver:auth): authentication failure; logname= uid=1000 euid=1000 tty=:0 ruser= rhost=  user=panther
Aug 21 10:17:49 localhost xscreensaver-auth[8181]: Failed login on display ":0" for "panther"
--8<---------------cut here---------------end--------------->8---

the configuration that I'm using:

--8<---------------cut here---------------start------------->8---

(services (cons* ...
                 (screen-locker-service xscreensaver)
                 ;; also tried the following alternative
                 ; (screen-locker-service xscreensaver "xscreensaver-command")
                 ...))

--8<---------------cut here---------------end--------------->8---

-- 
Reza Alizadeh Majd
PantherX Team
https://pantherx.org




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-08-21 10:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-16  9:16 [bug#56597] [PATCH] gnu: xscreensaver: Update to 6.04 r0man
2022-08-03 10:19 ` bug#56597: " Ludovic Courtès
2022-08-03 15:58 ` [bug#56597] " Ludovic Courtès
2022-08-09  7:29 ` Rick Huyzer
2022-08-21 10:27 ` Reza Alizadeh Majd

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).