emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#34306: closed ([PATCH] gnu: Add datefudge.)


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#34306: closed ([PATCH] gnu: Add datefudge.)
Date: Wed, 06 Feb 2019 22:05:02 +0000

Your message dated Wed, 06 Feb 2019 23:04:00 +0100
with message-id <address@hidden>
and subject line Re: [bug#34306] [PATCH] gnu: Add datefudge.
has caused the debbugs.gnu.org bug report #34306,
regarding [PATCH] gnu: Add datefudge.
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
34306: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=34306
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: [PATCH] gnu: Add datefudge. Date: Sun, 3 Feb 2019 23:00:52 -0500
* gnu/packages/time.scm (datefudge): New variable.
---
I wasn't quite sure which module to place this in.  Please let me know if
there's a more appropriate location.

 gnu/packages/time.scm | 41 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)

diff --git a/gnu/packages/time.scm b/gnu/packages/time.scm
index e491970300..948d2b995c 100644
--- a/gnu/packages/time.scm
+++ b/gnu/packages/time.scm
@@ -14,6 +14,7 @@
 ;;; Copyright © 2017 Nils Gillmann <address@hidden>
 ;;; Copyright © 2017 Julien Lepiller <address@hidden>
 ;;; Copyright © 2018 Alex Vong <address@hidden>
+;;; Copyright © 2019 Kyle Meyer <address@hidden>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -34,10 +35,12 @@ (define-module (gnu packages time)
   #:use-module (guix licenses)
   #:use-module (guix packages)
   #:use-module (guix download)
+  #:use-module (guix git-download)
   #:use-module (guix build-system gnu)
   #:use-module (guix build-system python)
   #:use-module (gnu packages check)
   #:use-module (gnu packages compression)
+  #:use-module (gnu packages perl)
   #:use-module (gnu packages python)
   #:use-module (gnu packages python-xyz))
 
@@ -377,3 +380,41 @@ (define-public python-aniso8601
 
 (define-public python2-aniso8601
   (package-with-python2 python-aniso8601))
+
+(define-public datefudge
+  (package
+    (name "datefudge")
+    (version "1.22")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://salsa.debian.org/debian/datefudge.git";)
+                    (commit (string-append "debian/" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "1fmd05r00wx4zc90lbi804jl7xwdl11jq2a1kp5lqimk3yyvfw4c"))))
+    (build-system gnu-build-system)
+    (arguments
+     `(#:test-target "test"
+       #:make-flags (list "CC=gcc"
+                          (string-append "prefix=" (assoc-ref %outputs "out")))
+       #:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'patch-makefile
+           (lambda _
+             (substitute* "Makefile"
+               ((" -o root -g root") "")
+               (("VERSION := \\$\\(shell dpkg-parsechangelog .*")
+                (string-append "VERSION = " ,version)))
+             #t))
+         (delete 'configure))))
+    (native-inputs
+     `(("perl" ,perl)))
+    (home-page "https://salsa.debian.org/debian/datefudge";)
+    (synopsis "Pretend the system date is different")
+    (description
+     "Utility that fakes the system time by pre-loading a small library that
+modifies the @code{time}, @code{gettimeofday} and @code{clock_gettime} system
+calls.")
+    (license gpl2)))
-- 
2.20.1




--- End Message ---
--- Begin Message --- Subject: Re: [bug#34306] [PATCH] gnu: Add datefudge. Date: Wed, 06 Feb 2019 23:04:00 +0100 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)
Hello Kyle,

Kyle Meyer <address@hidden> skribis:

> * gnu/packages/time.scm (datefudge): New variable.
> ---
> I wasn't quite sure which module to place this in.  Please let me know if
> there's a more appropriate location.

libfaketime, which does the same thing, lives in check.scm, but time.scm
is just as appropriate or maybe more.  :-)

Applied, thanks!

Ludo’.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]