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

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

[debbugs-tracker] bug#30300: closed ([PATCH] gnu: mcron2: Use Guile 2.2


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#30300: closed ([PATCH] gnu: mcron2: Use Guile 2.2 instead of 2.0.)
Date: Wed, 31 Jan 2018 22:54:01 +0000

Your message dated Wed, 31 Jan 2018 23:53:32 +0100
with message-id <address@hidden>
and subject line Re: [bug#30300] [PATCH] gnu: mcron2: Use Guile 2.2 instead of 
2.0.
has caused the debbugs.gnu.org bug report #30300,
regarding [PATCH] gnu: mcron2: Use Guile 2.2 instead of 2.0.
to be marked as done.

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


-- 
30300: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=30300
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: [PATCH] gnu: mcron2: Use Guile 2.2 instead of 2.0. Date: Wed, 31 Jan 2018 00:05:02 -0500 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux)
Hello,

This updates our mcron2 packages (used by default in our mcron service)
to Guile 2.2, so that we can use new goodies in our job scripts.

Here's an example that didn't work before with Guile 2.0, because its
http-get method lacked HTTPS support:

--8<---------------cut here---------------start------------->8---
(define duckdns-job
  ;; Update personal domain IP every 5 minutes.
  #~(job '(next-minute (range 0 60 5))
         (lambda ()
           (use-modules (web client))
           (http-get
            (string-append
             "https://www.duckdns.org/update?domains=apteryx&token=";
             #$sec-dyndns-token "&ip=")))))
--8<---------------cut here---------------end--------------->8---

I've also fixed the manual page which was failing to be generated for mcron2.

Thank you,

Maxim

Attachment: 0001-gnu-mcron2-Use-Guile-2.2-instead-of-2.0.patch
Description: Text Data


--- End Message ---
--- Begin Message --- Subject: Re: [bug#30300] [PATCH] gnu: mcron2: Use Guile 2.2 instead of 2.0. Date: Wed, 31 Jan 2018 23:53:32 +0100 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux)
Maxim Cournoyer <address@hidden> skribis:

>>From 2525c59459b7a66fbe6b5f093bdceb97d66c82eb Mon Sep 17 00:00:00 2001
> From: Maxim Cournoyer <address@hidden>
> Date: Tue, 30 Jan 2018 22:38:10 -0500
> Subject: [PATCH] gnu: mcron2: Use Guile 2.2 instead of 2.0.
>
> Motivation: Using Guile 2.2 instead of Guile 2.0 gives us the scripting
> abilities of Guile 2.2 when writing mcron jobs, such as HTTPS support.
>
> * gnu/packages/guile.scm (gnu): Use the srfi-1 module for the alist-delete
> function.
> (mcron2)[inputs]: Replace guile-2.0 with guile-2.2.
> [parallel-build?]: Disable to fix manual page generation.
> [phases]: Add a "use-guile-2.2" phase so the build system uses Guile 2.2.
> Replace `system*' with `invoke' in the "bootstrap" phase.

Awesome, applied!

If you find other packages stuck on 2.0 for no reason, don’t hesitate.
:-)

Thanks,
Ludo’.


--- End Message ---

reply via email to

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