From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id aNeDKBOUhWDAGQEAgWs5BA (envelope-from ) for ; Sun, 25 Apr 2021 18:08:51 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id UEwhJBOUhWDdIgAAB5/wlQ (envelope-from ) for ; Sun, 25 Apr 2021 16:08:51 +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 E311116C8B for ; Sun, 25 Apr 2021 18:08:50 +0200 (CEST) Received: from localhost ([::1]:42190 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lahJS-0002U0-1g for larch@yhetil.org; Sun, 25 Apr 2021 12:08:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51584) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lahIw-0002R2-No for help-guix@gnu.org; Sun, 25 Apr 2021 12:08:18 -0400 Received: from andre.telenet-ops.be ([2a02:1800:120:4::f00:15]:50622) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lahIu-0007bi-2e for help-guix@gnu.org; Sun, 25 Apr 2021 12:08:18 -0400 Received: from ptr-bvsjgyjmffd7q9timvx.18120a2.ip6.access.telenet.be ([IPv6:2a02:1811:8c09:9d00:aaf1:9810:a0b8:a55d]) by andre.telenet-ops.be with bizsmtp id x48B2400F0mfAB40148B1S; Sun, 25 Apr 2021 18:08:12 +0200 Message-ID: Subject: Re: How to reference a module defined in another package? From: Maxime Devos To: mbcladwell@stihie.net, help-guix@gnu.org Date: Sun, 25 Apr 2021 18:08:06 +0200 In-Reply-To: <20210423145700.Horde.eqD2H-89KhXCmJyIaPtzwGz@www.stihie.net> References: <20210423145700.Horde.eqD2H-89KhXCmJyIaPtzwGz@www.stihie.net> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-5SVBcBZAfstDEBK8UywV" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r21; t=1619366892; bh=TOFLNtfoyGLoAf8cuomk1kB2NShDN30IfZgxpzr23EA=; h=Subject:From:To:Date:In-Reply-To:References; b=Pr9TCM/eB0y4g5izt/0OvgUqwFZxb9UNzVZ3LKWESECs3G9QoUWIFEuoVfpadDDwp 60KdUBZYHsTJDW/rRd3upWCQuumXk0XLISb4LDYvCyLZSNQNELUWSE9P1mCcYbK83p ePZndC/fOktaDIqj0wAq4r590irgh/0likUygfwJZhMsHBxxPSkmyYO+QhHB+ai3lP K6B/j3MM+trPq97BRmgSQqZhVolFq/v7JfFwHj2Unw+OF9JIPUWaoJh2sZT7xt100d He+GXlej2vgPLMm8srItI/Q6mqkMwN1hB6XpuazRzTKQt7WhP4j/G8t0Rt/duSgNym lb2dRBnEFzBLw== Received-SPF: pass client-ip=2a02:1800:120:4::f00:15; envelope-from=maximedevos@telenet.be; helo=andre.telenet-ops.be X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham 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=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1619366931; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=TOFLNtfoyGLoAf8cuomk1kB2NShDN30IfZgxpzr23EA=; b=II/IN6mkGL8DL9OdQQ5bdtNkckUzUmKMV837PwKN9kRmPLeXPRvQDIVQ9aFVJGeAX7AIFr uCcJ+S8AWcPnx0sslDv/4AA8eVtsGCTZ7DBri+g0WlXHxd7HA0KjoXLMx33TOHKqEa9CUI 1jflUNY4woAI2h5q8IijpDBdlNLP9DNl8BluRw5izuy6sjSXpO3SDIHhdo6oslUQUs+VBb qo2tqTO/vD3vgf1MHGLc+A6fBP6uKeB3Ak1QTUtb7J9VHVRLh+VJygxNnIqexXSb34Dlbr WKURGerGtDnf221URXcbbtHQHXWwXgR6WncPh2evyfYBSWylEzXlUudBDlrhTQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1619366931; a=rsa-sha256; cv=none; b=S4kUZAwna5zE6tqA1aewhSh4IzZ+JI3AG6Z4JBSvqYP5bKZ3EvLp12K7aYCwJlqmO/i+bH S3pUuoX2FNfoKIgNuYL8bYJ2QJqAJvg6IZMY1OZhniE7EgHYSOERW+j3+rh7bT6KLOKDKT hPs6IUlW2DwT7+8beKmnvHakTX3qog7QiEkgcQlosiRgJO5uPZfsXXxRnWqsbRkMykn9xc 3P4qFsQ4dE3qd0QosjTUOTyAsI5YHYErbCGOruxCA+ktMZZsT/E+I7YmMsOk5VkKphj8iD rZEtEXpxX5/gGzyjyL5+3xolzmgBf/UoUdIvNpjhoYM1oEWlR6k1uj5tIHWGVQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=telenet.be header.s=r21 header.b="Pr9TCM/e"; 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: -4.25 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=telenet.be header.s=r21 header.b="Pr9TCM/e"; dmarc=pass (policy=none) header.from=telenet.be; 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: E311116C8B X-Spam-Score: -4.25 X-Migadu-Scanner: scn0.migadu.com X-TUID: OfoYiWbVFyIi --=-5SVBcBZAfstDEBK8UywV Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable mbcladwell@stihie.net schreef op vr 23-04-2021 om 14:57 [-0500]: > Hi, > I am trying to package an application, my guix.scm is below. The =20 > build starts OK but fails with the error: >=20 > ice-9/boot-9.scm:1669:16: In procedure raise-exception: > no code for module (artanis utils) > make: *** [Makefile:1878: limsn/app/controllers/target.go] Error 1 > command "make" "-j" "4" failed with status 2 When I do "guix edit artanis", I see the "artanis" package currently uses guile-2.2. You should: (a) change artanis to use guile-3.0 instead, or (b) change your package to use guile-2.2 instead of guile-3.0. > artanis/utils.scm is a file within artanis. I use-module (artanis =20 > utils) to no effect. Within artanis, utils is defined as a module: >=20 > (define-module (artanis artanis) > #:use-module (artanis utils) > #:use-module (artanis config) > #:use-module (artanis env)..... >=20 > I tried ("artanis:utils" ,artanis "utils") but that doesn't work. > How do I specify artanis/utils.scm as an input module? Just use ("artanis" ,artanis). The ("package:x" ,x "output") construction is only needed for very few package, that split the documentation or binari= es out in a separate output, for space reasons. > Do I need to package artanis/utils.scm separately? No, all artanis stuff is packaged in the artanis package. (Maybe the documentation is separate, I dunno, but you're not looking for documentation.) > >[...] > (native-inputs > `(("autoconf" ,autoconf) > ("automake" ,automake) > ("pkg-config" ,pkg-config) > ("texinfo" ,texinfo) > ("artanis" ,artanis) artanis must most likely be placed in 'propagated-inputs', and not 'inputs'= . It's a bit complicated to explain why though, particularily if you're from a =E2=80=98classical distro=E2=80=99 (e.g. Debian). python and guile libra= ries usually need to go into 'propagated-inputs' instead of 'inputs'. It will build just fine if you put it in 'inputs' instead, but at run-time = in a pure profile, your package won't find artanis, as your package most likel= y refers to artanis by module name (artanis utils) instead of by absolute fil= e name "/gnu/store/...-artanis-.../SOME-DIR-WITH-GUILE-STUFF". Maybe when cross-compiling, it should _also_ be placed in native-inputs, not sure though. (If you don't know what cross-compiling is, you're most likely not doing it.) Greetings, Maxime. --=-5SVBcBZAfstDEBK8UywV Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYIWT5xccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7uSfAQCCnDXkfW9o2AVC2QFmUmLsDjZd 4KOf4661jqQn5o2Z1gEAwAoxNKS1SY9fJYhBzgNra9HhX+Qv12i9JYuZSMRzawU= =0/go -----END PGP SIGNATURE----- --=-5SVBcBZAfstDEBK8UywV--