[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/17: gnu: xscreensaver: Remove custom 'configure' phase.
From: |
guix-commits |
Subject: |
01/17: gnu: xscreensaver: Remove custom 'configure' phase. |
Date: |
Wed, 3 Aug 2022 11:44:33 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit f2d86db81d028b751bb9742f0ab495f2b44543b0
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Wed Aug 3 14:56:38 2022 +0200
gnu: xscreensaver: Remove custom 'configure' phase.
This is a followup to 45456595ac4ba613c8a61ff4f51088efd4157e6e, which
was based on an incorrect diagnosis.
* gnu/packages/xdisorg.scm (xscreensaver)[source]: Add 'snippet'.
[arguments]: Remove custom 'configure' phase. Reintroduce
#:configure-flags.
---
gnu/packages/xdisorg.scm | 33 +++++++++++++--------------------
1 file changed, 13 insertions(+), 20 deletions(-)
diff --git a/gnu/packages/xdisorg.scm b/gnu/packages/xdisorg.scm
index 5635f45d4c..1ce0886c2f 100644
--- a/gnu/packages/xdisorg.scm
+++ b/gnu/packages/xdisorg.scm
@@ -3,7 +3,7 @@
;;; Copyright © 2014, 2015, 2016 Mark H Weaver <mhw@netris.org>
;;; Copyright © 2014 Eric Bavier <bavier@member.fsf.org>
;;; Copyright © 2014, 2015, 2016 Alex Kost <alezost@gmail.com>
-;;; Copyright © 2013, 2015, 2017, 2018, 2019, 2021 Ludovic Courtès
<ludo@gnu.org>
+;;; Copyright © 2013, 2015, 2017-2019, 2021-2022 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2015, 2016 Mathieu Lirzin <mthl@gnu.org>
;;; Copyright © 2015 Alexander I.Grafov <grafov@gmail.com>
;;; Copyright © 2015 Andy Wingo <wingo@igalia.com>
@@ -1635,7 +1635,15 @@ less if you are working in front of the screen at
night.")
(string-append "https://www.jwz.org/xscreensaver/xscreensaver-"
version ".tar.gz"))
(sha256
- (base32 "0lmiyvp3qs2gngd53f191jmlizs9l04i2gnrqbn96mqckyr18w3q"))))
+ (base32 "0lmiyvp3qs2gngd53f191jmlizs9l04i2gnrqbn96mqckyr18w3q"))
+ (modules '((guix build utils)))
+ (snippet
+ ;; 'configure.ac' checks for $ac_unrecognized_opts and exits if it's
+ ;; non-empty. Since the default 'configure' phases passes options
+ ;; that may or may not be recognized, such as '--enable-fast-install',
+ ;; these need to be tolerated, hence this snippet.
+ '(substitute* "configure"
+ (("exit 2") "true")))))
(build-system gnu-build-system)
(arguments
`(#:tests? #f ; no check target
@@ -1646,24 +1654,9 @@ less if you are working in front of the screen at
night.")
(substitute* '("driver/Makefile.in" "po/Makefile.in.in")
(("@GTK_DATADIR@") "@datadir@")
(("@PO_DATADIR@") "@datadir@"))
- #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")))))
+ #t)))
+ #:configure-flags '("--with-pam" "--with-proc-interrupts"
+ "--without-readdisplay")
#:make-flags (list (string-append "AD_DIR="
(assoc-ref %outputs "out")
"/lib/X11/app-defaults"))))
- branch master updated (18f1befba3 -> dd573ceea7), guix-commits, 2022/08/03
- 07/17: gnu: Add texlive-datetime2., guix-commits, 2022/08/03
- 08/17: gnu: Add texlive-tracklang., guix-commits, 2022/08/03
- 02/17: gnu: xscreensaver: Don't read /proc/interrupts at configure time., guix-commits, 2022/08/03
- 01/17: gnu: xscreensaver: Remove custom 'configure' phase.,
guix-commits <=
- 03/17: gnu: Add texlive-mdframed., guix-commits, 2022/08/03
- 04/17: gnu: Add texlive-setspace., guix-commits, 2022/08/03
- 11/17: gnu: Add texlive-everysel., guix-commits, 2022/08/03
- 12/17: gnu: Add texlive-everyshi., guix-commits, 2022/08/03
- 13/17: gnu: mingw: Update to 10.0.0., guix-commits, 2022/08/03
- 15/17: gnu: libunwind: Fix license., guix-commits, 2022/08/03
- 17/17: download: Do not wrap TLS port on GnuTLS >= 3.7.7., guix-commits, 2022/08/03
- 05/17: gnu: Add texlive-pgfgantt., guix-commits, 2022/08/03
- 06/17: gnu: Add texlive-pdflscape., guix-commits, 2022/08/03
- 09/17: gnu: Add texlive-ltablex., guix-commits, 2022/08/03