From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id aNjIGYH6S2DnQAAA0tVLHw (envelope-from ) for ; Fri, 12 Mar 2021 23:34:25 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id EBSUFYH6S2CtagAA1q6Kng (envelope-from ) for ; Fri, 12 Mar 2021 23:34:25 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id A3688FE9A for ; Sat, 13 Mar 2021 00:34:24 +0100 (CET) Received: from localhost ([::1]:58794 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lKrIU-0002Vz-Ev for larch@yhetil.org; Fri, 12 Mar 2021 18:34:22 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:37122) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lKrIH-0002VG-CE for help-guix@gnu.org; Fri, 12 Mar 2021 18:34:09 -0500 Received: from sender4-op-o11.zoho.com ([136.143.188.11]:17156) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lKrIF-0002xc-AL for help-guix@gnu.org; Fri, 12 Mar 2021 18:34:09 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1615592043; cv=none; d=zohomail.com; s=zohoarc; b=UnEpBMfKb2XAwV5KDjKZisU81Af3B2TmZx24AvcCAiuFkXp9wVb7NSN+J92u6PL74TpJjzIM2Du8+s8adGcpo6fpUkwS0AbCrTSZ8mwb2GBTuM4IJHgG/829P5cafs+aA0x0E5jBR2VSw73agGl0L0D+Yz130qAYgcMSf+MNgfc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1615592043; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=PolYfJbfrCRWRRJWbOydjemwslrJsHSZTbTDUgXzdcc=; b=BdfioiOICWVBKLKJX1B3rpJryvJVzEx4j0C7d0TOBW1JuCk86eBvc1UAkAX6vumXN2I7mT9c6puvCRxhCZDGcFGHEA1LF/6D+sm0VhCAa/tyAY1rqoFZiUjv3AD0OrzkW5Rrm6SAOqxr+Dvas44wwTgAfgI/qm2mcgRjzx33H3I= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=rdklein.fr; spf=pass smtp.mailfrom=edou@rdklein.fr; dmarc=pass header.from= header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1615592043; s=zoho; d=rdklein.fr; i=edou@rdklein.fr; h=References:From:To:Subject:In-reply-to:Message-ID:Date:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=PolYfJbfrCRWRRJWbOydjemwslrJsHSZTbTDUgXzdcc=; b=dK7erNKaTTGbT1R+Llr5J3/cu/t2Hnr71qr0vGb+8CxFp0m4o6gxPniF/YqfpjJY dPLG99spHRvsicBxwjx6YBDjLPAq5gOvDhim5TP9S4lOfUYQlExABIWCczAQTpgJqzx 9WM7+2PxS3c/Z9lMGa8133eaniriFwsocxpvnBH8= Received: from Rasoir (lfbn-idf3-1-808-29.w90-3.abo.wanadoo.fr [90.3.133.29]) by mx.zohomail.com with SMTPS id 1615592039917491.58269092090916; Fri, 12 Mar 2021 15:33:59 -0800 (PST) References: <87sg50nwjc.fsf@rdklein.fr> User-agent: mu4e 1.4.15; emacs 27.1 From: Edouard Klein To: help-guix@gnu.org Subject: Re: Error with guile function format In-reply-to: <87sg50nwjc.fsf@rdklein.fr> Message-ID: <87pn04ne0c.fsf@rdklein.fr> Date: Sat, 13 Mar 2021 00:33:39 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External Received-SPF: pass client-ip=136.143.188.11; envelope-from=edou@rdklein.fr; helo=sender4-op-o11.zoho.com X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1615592064; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=PolYfJbfrCRWRRJWbOydjemwslrJsHSZTbTDUgXzdcc=; b=Ao7Ujyviylx8ctToUjRvFhLxw3FSYBiLhQy/y+QF0QjhVNsUYkO5JcpYq50HkCrR6thVG4 geeTGndpRCviPfK/kSuAgaEWdoJ6tfvH87KssrTY12Ent/pmfoBX9BcbIutGItuVCV05Zr hVp8s0YS96rS4XEAwz0Lv9zokraD0bZW+7wuO1Jz5BcT1h7u8CxdYoAdD+QxNs8taQeae+ 04/F6waqnjMOi4V2iCA3k8eOySC8yy3JPOPkfF8jEu2/bcTnhmIE1H5fNyWht9rB00L86g BcNe/O4CjTMr3toHeeSdyMrNLRMo1IOOqC1jSM7Ao/FC4dsFImrGAPxkCfYQuw== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1615592064; a=rsa-sha256; cv=pass; b=m8kAP2gPsjYjfZVq1I+2h6V7nNjptn5D9/UsAOWwej6Dyp2pQrgDPtm1SFokk5kL5Si3ED 2n4LcV8pFulaWL+KUIp8aHiD3riZLLt5QxCSA4krWRG059c8GSOGG8LHn3ClfAx8I7CW43 OukenDswwd1fY5ZMep1Z0GXpdbIny9xh6MRXzPs4opmNKg+HwGrjHmfldvJClzWbBKdLcx +aDMwt5SfKJrVS8KZDbKYZP7JLALfnqiPdVc1ET3uwl8AJeo+43/kX7jDZVQ2Cc7BJQpsp VL9edjL3HBsOXeRgLye8NQ02QeWrtsJJJf+z0gMBO0unV3kxLnPCZbGLgL09YA== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=none ("invalid DKIM record") header.d=rdklein.fr header.s=zoho header.b=dK7erNKa; arc=pass ("zohomail.com:s=zohoarc:i=1"); dmarc=none; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Spam-Score: -3.39 Authentication-Results: aspmx1.migadu.com; dkim=none ("invalid DKIM record") header.d=rdklein.fr header.s=zoho header.b=dK7erNKa; arc=pass ("zohomail.com:s=zohoarc:i=1"); dmarc=none; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: A3688FE9A X-Spam-Score: -3.39 X-Migadu-Scanner: scn0.migadu.com X-TUID: UUhY/Eo4sao9 Dear Fran=C3=A7ois, Ricardo and divoplade, This was indeed the issue, and the correct fix. Thank you for your explanations. I'm not familiar with the notion of ports, coming from languages that don't have them, but I see now how useful they are ! They're like the standard input/output of the shell, with redirections, but for any function inside the program. Awesome :) Thank you very much ! I've submitted a patch upstream (and also played quake 3 for the first time in ~15 years :) oh the memories) Cheers, Edouard. edk@beaver-labs.com writes: > Dear Guixers, > > In a channel-that-should-not-be-named, there is the following snippet > > (apply invoke "7z" "e" (assoc-ref %build-inputs "patch-data") > (map (cut format "quake3-latest-pk3s/baseq3/pak~a.pk3" = <>) > (iota 8 1))) > > Which, as far as my limited knowledge of Guile goes, is correct. > > Yet the build fail with the following error message: > > In ice-9/format.scm: > 43:8 0 (format "quake3-latest-pk3s/baseq3/pak~a.pk3" 1) > > ice-9/format.scm:43:8: In procedure format: > format: expected a string for format string 1 > > > The first argument to format is a string, so I don't understand the > fuss. > > Any idea would be welcome :) > > Thanks ! > > Edouard.