From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id wBKkBo9mE2P8bAEAbAwnHQ (envelope-from ) for ; Sat, 03 Sep 2022 16:37:03 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id YLvPBY9mE2OzvgAAG6o9tA (envelope-from ) for ; Sat, 03 Sep 2022 16:37:03 +0200 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 A83A76BDC for ; Sat, 3 Sep 2022 16:37:02 +0200 (CEST) Received: from localhost ([::1]:42428 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oUUGb-0002SC-TA for larch@yhetil.org; Sat, 03 Sep 2022 10:37:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55118) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oUUGR-0002S2-5g for help-guix@gnu.org; Sat, 03 Sep 2022 10:36:51 -0400 Received: from mout02.posteo.de ([185.67.36.66]:47311) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oUUGP-000877-6G for help-guix@gnu.org; Sat, 03 Sep 2022 10:36:50 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id DE506240101 for ; Sat, 3 Sep 2022 16:36:45 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1662215805; bh=gv62Y9gr4bDjx4CdyPlj0pEr46GEbW95RD7El51/RIY=; h=From:To:Cc:Subject:Date:From; b=gU4XHLx7vgQ1i331lhYEl+6UotCaY2RAfbg5adWORPA6bnWwVA+33+YbuxdX6QTKC H90iNge8OW6iOnNWjL9f4+dK39Q7lfBIP0WKWc6CiO2UdvvTKpIKeHh/vY9gpygGK6 8qPOPimKYpcFInksUVl3cJQP8xc0UOi4RZG+w9cmOJmjsZ8WqCUTuoXSURYw6QH/FH zEFyegY79QhBx3BgDNa2zCpyAGzFx82Nsxvd4F3eO+MDR7W15c8M3eS5wE8eykce2S b4o3A9GJTVj1oh5aHbEse8OvhgwwAYEGzkOID+c33Flm8XSkOZoJ3Mr+jgD0PT+6GF uLKmjUoIw61/A== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4MKcmX6hyFz9rxR; Sat, 3 Sep 2022 16:36:43 +0200 (CEST) References: <20220903083938.GB22667@dismail.de> From: Guillaume Le Vaillant To: jgart Cc: Guix Help Subject: Re: what am I doing wrong with girc? Date: Sat, 03 Sep 2022 14:24:53 +0000 In-reply-to: <20220903083938.GB22667@dismail.de> Message-ID: <87sfl8le2s.fsf@kitej> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: pass client-ip=185.67.36.66; envelope-from=glv@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 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 X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1662215822; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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=HhrCAIHkFmLWB7pXc7QulvSWDRPHYjHcwX9IrQGd+Ng=; b=rkMNb0VOcxOIsdS4e3rRcIeLofJ6Qc3Adj043bV2fBs92L6pAmuSWmaIwKLlxkhQbWYJvx BEmZ6OVe2uMTFDkFDuwYYHKcBEl+WxCGjysYbctrcMOKd3hH8H20ZzZT5kzephj7NmsA7t z4lzKAdy42PV7C/rKN2V3Kq+eYQttWpLGRlAnEH2B+FNZTfI1Th4X0KmfIFZGJXnQon4JM F4W5ujX/ss78LhxTsozvze+YjqjfebpxaYhTPeqG0UBP14UUokh8D4RCiQvOLAu0dNkaVv ZIq28hyvBZc7d5arkU+A/BZk49h8VZ3/WBcVhWR6mTii/3UO0Ce6O+UStyqinQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1662215822; a=rsa-sha256; cv=none; b=blVAVCHOpDr52Pcr368Bqb7G3hlQ6l/+VexTp2SUTLF5jScPWTTHrTWH69jetS5aZcW9QH 78gkvqlPz7HA8ks4wWZ8JZ1DAvs/JjVx89q4cqYI6RJbWdK4PussTyEuR7yGuGKtnYJjLm gLhibgAPWstprhfQpavoIAAexH4saxpekk0YO208sFJP6T2WF6Op30gDKMzhxdwqb+dVZk u/7hJN7prl1HfuC4riTtkdDrsRKJF4lmQzT573L9QfQ/kZxNWN8FEskHhcTQAQhzpHsjWK YV3LeUTJoVSFY8iAevwRof7Sv//O58+9zQtui9UWfBecPGUBKxdWdiXTfRoxwA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=gU4XHLx7; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -6.37 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=gU4XHLx7; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: A83A76BDC X-Spam-Score: -6.37 X-Migadu-Scanner: scn0.migadu.com X-TUID: 7H50EmTYjRfQ --=-=-= Content-Type: text/plain jgart skribis: > Hi Guixers, > > I'm trying to package girc: > > https://github.com/McParen/girc/search?p=2&q=anvi > > Should I be referencing the asd-system explicitly? > > Does this asd system have some inconsistencies in how it was set up? > > I have to use build-program to package the binary executable. > > all best, > > jgart > > [...] > (arguments > (list > #:phases > #~(modify-phases %standard-phases > (add-after 'create-asdf-configuration 'build-program > (lambda* (#:key outputs #:allow-other-keys) > (build-program > (string-append (assoc-ref outputs "out") "/bin/girc") > outputs > #:entry-program '((girc:girc) 0) > #:dependencies '("split-sequence"))))))) > [...] I think the 'build-program' phase should be something like: --8<---------------cut here---------------start------------->8--- (add-after 'create-asdf-configuration 'build-program (lambda* (#:key outputs #:allow-other-keys) (build-program (string-append (assoc-ref outputs "out") "/bin/girc") outputs #:entry-program '((girc:run)) #:dependencies '("girc"))) --8<---------------cut here---------------end--------------->8--- Where 'dependencies' indicates what library to load, and 'entry-program' indicates which function of this library to call. If girc is meant to be used as a standalone program, maybe you could just call the package "girc" and put it in "irc.scm", and the "*cl-girc" library packages would not be necessary. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIUEAREKAC0WIQTLxZxm7Ce5cXlAaz5r6CCK3yH+PwUCYxNmew8cZ2x2QHBvc3Rl by5uZXQACgkQa+ggit8h/j+y8AD+Kq2Gt8PUqjYCQA4Zx7XT9lMQfOYDVlce32D7 J16iWboA/0OiDafL/9SSf2TTK1IbIF+vyvnQmK7VvV6RZ1QYTzpg =9YOA -----END PGP SIGNATURE----- --=-=-=--