From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jack Hill Subject: Re: Problem with building service from my channel Date: Tue, 11 Jun 2019 09:38:07 -0400 (EDT) Message-ID: References: <87k1ds1khy.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8BIT Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:55326) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hagya-0004GU-UC for help-guix@gnu.org; Tue, 11 Jun 2019 09:38:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hagyZ-0007RV-UX for help-guix@gnu.org; Tue, 11 Jun 2019 09:38:12 -0400 In-Reply-To: <87k1ds1khy.fsf@gnu.org> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: =?ISO-8859-15?Q?Ludovic_Court=E8s?= Cc: help-guix@gnu.org On Tue, 11 Jun 2019, Ludovic Courtès wrote: > Jack Hill skribis: > >> ``` >> (repl-version 0 0) >> (exception misc-error (value #f) (value "Unbound variable: ~s") (value (mcron-service-type)) (value #f)) >> ``` > > The Guile exception possibly means that code in your channel refers to > ‘mcron-service-type’, but that this variable is unbound. It could be > because one of your modules lacks #:use-module (gnu services mcron). Ludo’, That makes sense, except, I don't see where I have used mcron-service-type, but not used the (gnu services mcron) module, and the same channel code was working as of 31775e400e05fb05fff0de4d3ffbf9549fe20994, so I think it that means it has to be something else. Here's where I define a service that extends mcron-service-type ``` (define-module (guix-at-duke services endpoint-management) #:use-module (gnu packages certs) #:use-module (gnu services mcron) #:use-module (gnu services) #:use-module (guix gexp) #:use-module (guix records) #:use-module (guix-at-duke packages endpoint-management) #:export (planisphere-report-configuration planisphere-report-configuration? planisphere-report-service-type)) …[snip]… (define planisphere-report-service-type (service-type (name 'planisphere-report) (extensions (list (service-extension mcron-service-type planisphere-report-jobs))) (default-value (planisphere-report-configuration)) (description "Periodically run @command{planisphere-report} to update the OIT endpoint database."))) ``` Best, Jack