From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: adriano Newsgroups: gmane.lisp.guile.user Subject: Re: Scripting for installing a module Date: Sat, 02 Jul 2022 09:11:39 +0200 Message-ID: References: <20220701171539.uuwwdnvtkvsfetc4@jamescrake-meraniarch> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11916"; mail-complaints-to="usenet@ciao.gmane.io" To: James Crake-Merani , guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Sat Jul 02 09:12:15 2022 Return-path: Envelope-to: guile-user@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o7XIa-0002rd-Pg for guile-user@m.gmane-mx.org; Sat, 02 Jul 2022 09:12:13 +0200 Original-Received: from localhost ([::1]:48324 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o7XIZ-0005sD-I4 for guile-user@m.gmane-mx.org; Sat, 02 Jul 2022 03:12:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43930) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o7XHr-0005s3-2i for guile-user@gnu.org; Sat, 02 Jul 2022 03:11:27 -0400 Original-Received: from mx0.riseup.net ([198.252.153.6]:49976) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o7XHo-00056w-Qm for guile-user@gnu.org; Sat, 02 Jul 2022 03:11:26 -0400 Original-Received: from fews2.riseup.net (fews2-pn.riseup.net [10.0.1.84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.riseup.net", Issuer "R3" (not verified)) by mx0.riseup.net (Postfix) with ESMTPS id 4LZjsj3QpJz9t49; Sat, 2 Jul 2022 07:11:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1656745881; bh=1Xk3s3jVZJTS0isOU1IP7PbOdPlSBBuhGV4jtUwrOwY=; h=Subject:From:To:Date:In-Reply-To:References:From; b=nz23jxRcMPwnPz52eomhWHjF/8l204t+LOiz6Ze4CCMqENW4UY5QJ+Ho0IWzk1fUC IAhBldTM1gGaV3BJabNnIAovtNtm8qhzirxnTJns0h3crIGvG7bVVGCOTD29WcFT3z w19XjWvsugAm51/rR67kce7mI1g39394ioCWhLbw= X-Riseup-User-ID: CB9F8F65BE0295A5A442A56B8E297BBE0BF34F2401EC8E055EC3C0D0E744DCD2 Original-Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews2.riseup.net (Postfix) with ESMTPSA id 4LZjsh2cXGz1y9N; Sat, 2 Jul 2022 07:11:19 +0000 (UTC) In-Reply-To: <20220701171539.uuwwdnvtkvsfetc4@jamescrake-meraniarch> Received-SPF: pass client-ip=198.252.153.6; envelope-from=randomlooser@riseup.net; helo=mx0.riseup.net 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, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-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: guile-user@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.io gmane.lisp.guile.user:18380 Archived-At: Il giorno ven, 01/07/2022 alle 18.15 +0100, James Crake-Merani ha scritto: > Hello, > > I was just wondering what approach people tend to take when writing a > script which installs a module onto the load-path. I understand this > path might be different on different machines so how do you make sure > the module is installed in the right path? Would you use something > like a Makefile? not only a Makefile The whole Autotools chain There are 2 options: 1) you write the config.am and Makefile.am (or however they're called) by hand and you deal with the Autotools directly, by hand 2) You use guile-hall and it will wrap the Autotools making the experience a bit less frustrating BUT I wonder: why you want to install your module ? You might want to distribute it as a simple handful of source files Guile will compile it automagically at need If your module has no dependencies, that could be an easy option If it _has_ dependencies, then the Autotools might be of help Did you think about this ? I hate to second guess your question I understand it might be perceived as rude and I'm sorry for that I just think these distinctions in use cases are not clear at all, in the manual and in general So this could be an easy pitfall