From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Wielkiewicz Subject: Re: Packaging Jami progress Date: Mon, 9 Dec 2019 23:17:29 +0100 Message-ID: <20191209231729.7a253e9d@interia.pl> References: <20191104214754.793ec2ff@interia.pl> <20191125221517.1140d0c9@kompiuter> <874kyrlzmn.fsf@ambrevar.xyz> <20191126203259.0f4141ea@kompiuter> <20191130192121.11e0c968@kompiuter> <87fti52or5.fsf@ambrevar.xyz> <20191201173411.042e68f2@kompiuter> <878snw2bpn.fsf@ambrevar.xyz> <20191203164402.77a8c728@interia.pl> <87tv6hieeg.fsf@ambrevar.xyz> <20191203190235.53765cba@kompiuter> <87fti1mf1u.fsf@ambrevar.xyz> <87d0d5mez0.fsf@ambrevar.xyz> <20191204153631.509b9afb@interia.pl> <87immwt8kh.fsf@ambrevar.xyz> <20191204165038.7a5403f2@interia.pl> <87fti0t6rr.fsf@ambrevar.xyz> <20191204175614.29f663cd@kompiuter> <87a788t47g.fsf@ambrevar.xyz> <20191204182249.38fd0700@interia.pl> <87wobac07c.fsf@ambrevar.xyz> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:59180) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ieRLZ-0002P2-E7 for guix-devel@gnu.org; Mon, 09 Dec 2019 17:17:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ieRLY-0003ZQ-8h for guix-devel@gnu.org; Mon, 09 Dec 2019 17:17:41 -0500 Received: from smtpo.poczta.interia.pl ([217.74.65.236]:44425) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ieRLX-0003Xu-Ip for guix-devel@gnu.org; Mon, 09 Dec 2019 17:17:40 -0500 In-Reply-To: <87wobac07c.fsf@ambrevar.xyz> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Pierre Neidhardt Cc: Guix-devel Dnia 2019-12-05, o godz. 15:32:23 Pierre Neidhardt napisa=C5=82(a): > - To call a custom function from the builder, you need to include the > module that defines it for the build system, e.g. >=20 > (arguments > `(#:modules ((gnu packages telephony) > ,@%gnu-build-system-modules) > ...) >=20 Tried luck with the procedure, but it seems I can't provide the module I'm currently in to the "arguments" field - Guile said it couldn't find code for the module: "no code for module (gnu packages jami)". I mean in the jami.scm file, defining (gnu packages jami) module, I can't give this module as an argument. (arguments `(#:modules ((gnu packages jami) ,@%gnu-build-system-modules) ...) By the way, I decided to move all Jami packages, procedures and dependencies modified by the patches to a separate file - jami.scm. It'll be much easier to maintain in this way. The full error message: The following derivation will be built: /gnu/store/an28ny48d6iyfn79j2fhqk7mvd6jmahq-pjproject-jami-2.9.drv building /gnu/store/an28ny48d6iyfn79j2fhqk7mvd6jmahq-pjproject-jami-2.9.drv... Backtrace: 10 (primitive-load "/gnu/store/dj185gjiag94gk1clrj0158xcal?") In ice-9/eval.scm: 721:20 9 (primitive-eval (begin (use-modules (gnu # jami) # ?) ?)) In ice-9/psyntax.scm: 1262:36 8 (expand-top-sequence ((begin (use-modules (gnu ?) ?) ?)) ?) 1209:24 7 (parse _ (("placeholder" placeholder)) ((top) #(# # ?)) ?) 1209:24 6 (parse _ (("placeholder" placeholder)) ((top) #(# # ?)) ?) 285:10 5 (parse _ (("placeholder" placeholder)) (()) _ c&e (eval) ?) In ice-9/boot-9.scm: 3377:20 4 (process-use-modules _) 222:17 3 (map1 (((gnu packages jami)) ((guix build #)) ((# ?)) ?)) 3378:31 2 (_ ((gnu packages jami))) 2803:6 1 (resolve-interface _ #:select _ #:hide _ #:prefix _ # _ ?) In unknown file: 0 (scm-error misc-error #f "~A ~S" ("no code for modu?" ?) ?) ERROR: In procedure scm-error: no code for module (gnu packages jami) Is there some kind of "this" for the module in guile I could use in order to be able to invoke the jami-apply-dependency-patches procedure? I exported it correctly using #:export (jami-apply-dependency-patches). Jan Wielkiewicz