[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
20/34: gnu: libfaketime: Use absolute 'date' reference.
From: |
guix-commits |
Subject: |
20/34: gnu: libfaketime: Use absolute 'date' reference. |
Date: |
Sat, 22 May 2021 11:16:32 -0400 (EDT) |
mbakke pushed a commit to branch core-updates
in repository guix.
commit 46f2d25b0907bb7f9e898686508fdee02f4a4753
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Sun May 16 11:44:36 2021 +0200
gnu: libfaketime: Use absolute 'date' reference.
* gnu/packages/check.scm (libfaketime)[inputs]: Add COREUTILS.
[arguments]: Add phase to substitute the absolute 'date' file name.
---
gnu/packages/check.scm | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm
index 30a1b2e..8c16ce1 100644
--- a/gnu/packages/check.scm
+++ b/gnu/packages/check.scm
@@ -25,7 +25,7 @@
;;; Copyright © 2017, 2019 Kei Kebreau <kkebreau@posteo.net>
;;; Copyright © 2017 Nikita <nikita@n0.is>
;;; Copyright © 2015, 2017, 2018, 2020, 2021 Ricardo Wurmus
<rekado@elephly.net>
-;;; Copyright © 2016, 2017, 2018, 2019, 2020 Marius Bakke <mbakke@fastmail.com>
+;;; Copyright © 2016, 2017, 2018, 2019, 2020, 2021 Marius Bakke
<marius@gnu.org>
;;; Copyright © 2017, 2018, 2020 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2018 Fis Trivial <ybbs.daans@hotmail.com>
;;; Copyright © 2019, 2021 Pierre Langlois <pierre.langlois@gmx.com>
@@ -2668,6 +2668,12 @@ portable to just about any platform.")
(build-system gnu-build-system)
(arguments
`(#:phases (modify-phases %standard-phases
+ (add-after 'unpack 'embed-date-reference
+ (lambda* (#:key inputs #:allow-other-keys)
+ (let ((coreutils (assoc-ref inputs "coreutils")))
+ (substitute* "src/faketime.c"
+ (("\"date\"")
+ (string-append "\"" coreutils "/bin/date\""))))))
(replace 'configure
(lambda* (#:key outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out")))
@@ -2684,6 +2690,8 @@ portable to just about any platform.")
#:test-target "test"))
(native-inputs
`(("perl" ,perl))) ;for tests
+ (inputs
+ `(("coreutils" ,coreutils)))
(synopsis "Fake the system time for single applications")
(description
"The libfaketime library allows users to modify the system time that an
- 03/34: gnu: python-sphinx: Update to 4.0.1., (continued)
- 03/34: gnu: python-sphinx: Update to 4.0.1., guix-commits, 2021/05/22
- 04/34: gnu: cairomm: Do not propagate fontconfig., guix-commits, 2021/05/22
- 06/34: gnu: ATLAS: Fix build with GCC 10., guix-commits, 2021/05/22
- 11/34: gnu: meson: Update to 0.58.0., guix-commits, 2021/05/22
- 15/34: gnu: util-linux: Disable setarch test on all architectures., guix-commits, 2021/05/22
- 16/34: gnu: boost: Update to 1.76.0., guix-commits, 2021/05/22
- 17/34: gnu: autoconf: Remove unnecessary conditional., guix-commits, 2021/05/22
- 19/34: gnu: help2man: Update to 1.48.3., guix-commits, 2021/05/22
- 21/34: gnu: libuv: Update to 1.41.0., guix-commits, 2021/05/22
- 22/34: gnu: Tcl/Tk: Update to 8.6.11., guix-commits, 2021/05/22
- 20/34: gnu: libfaketime: Use absolute 'date' reference.,
guix-commits <=
- 23/34: gnu: SWIG: Update to 4.0.2., guix-commits, 2021/05/22
- 26/34: gnu: xorgproto: Update to 2021.4., guix-commits, 2021/05/22
- 28/34: gnu: libxfixes: Update to 6.0.0., guix-commits, 2021/05/22
- 18/34: gnu: automake: Remove unnecessary conditional., guix-commits, 2021/05/22
- 08/34: gnu: pangomm@2.42: Update to 2.46.0., guix-commits, 2021/05/22
- 12/34: gnu: ninja: Update to 1.10.2., guix-commits, 2021/05/22
- 13/34: gnu: zstd: Update to 1.5.0., guix-commits, 2021/05/22
- 14/34: gnu: gfortran: Remove obsolete workaround., guix-commits, 2021/05/22
- 24/34: gnu: doxygen: Update to 1.9.1., guix-commits, 2021/05/22
- 25/34: gnu: util-macros: Update to 1.19.3., guix-commits, 2021/05/22