guix_mirror_bot pushed a commit to branch master
in repository guix.

commit 00266c58dc4f6f7a87039660353d7f256f69265a
Author: Efraim Flashner <[email protected]>
AuthorDate: Wed Sep 10 10:47:26 2025 +0300

    gnu: ntp: Set location of ntp driftfile.
    
    * ngu/packages/ntp.scm (ntp)[arguments]: Set the location of the
    driftfile to the location set in the ntp service.
    
    Change-Id: I33e023fe3ff050dddeb0f7b83f42e78a43454070
---
 gnu/packages/ntp.scm | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/ntp.scm b/gnu/packages/ntp.scm
index 872d57a363..d67fe7a4a3 100644
--- a/gnu/packages/ntp.scm
+++ b/gnu/packages/ntp.scm
@@ -204,8 +204,11 @@ time-stamping or reference clock, sub-microsecond accuracy 
is possible.")
                              "scripts/update-leap/update-leap.in")
                 (("https://www.ietf.org/timezones/data/leap-seconds.list";)
                  "https://data.iana.org/time-zones/data/leap-seconds.list";))))
-          (add-after 'install 'wrap-scripts
+          (add-after 'install 'adjust-scripts
             (lambda _
+              (substitute* (string-append #$output "/bin/calc_tickadj")
+                (("/etc/ntp/drift")
+                 "/var/run/ntpd/ntp.drift"))
               (wrap-script (string-append #$output "/bin/update-leap")
                 `("PERL5LIB" ":" prefix
                   (,(getenv "PERL5LIB")))))))))

Reply via email to