From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Zelphir Kaltstahl Newsgroups: gmane.lisp.guile.user Subject: Re: build system for pure Guile library (was Re: Help making a GNU Guix package for pure GNU Guile library) Date: Sun, 31 Jan 2021 15:16:52 +0100 Message-ID: References: <87y2gagm8n.fsf@elephly.net> <20210131002501.szumrlgssp6thhge@pelzflorian.localdomain> <87mtwphb63.fsf@elephly.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35496"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 Cc: guile-user@gnu.org To: Ricardo Wurmus , "pelzflorian (Florian Pelz)" Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Sun Jan 31 15:17:14 2021 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 1l6DXO-00097V-SX for guile-user@m.gmane-mx.org; Sun, 31 Jan 2021 15:17:14 +0100 Original-Received: from localhost ([::1]:58950 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l6DXN-0000Ow-NR for guile-user@m.gmane-mx.org; Sun, 31 Jan 2021 09:17:13 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48942) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l6DX9-0000KW-OR for guile-user@gnu.org; Sun, 31 Jan 2021 09:17:00 -0500 Original-Received: from mout02.posteo.de ([185.67.36.66]:50809) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l6DX7-00074z-89 for guile-user@gnu.org; Sun, 31 Jan 2021 09:16:59 -0500 Original-Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id B8FF32400FF for ; Sun, 31 Jan 2021 15:16:54 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1612102614; bh=4CRwB2jaBT9TilugmOl1BkG0XP/G8Phl7Wm3fM/yIUk=; h=Subject:To:Cc:From:Date:From; b=WEuIQxRwfi2Tya5mDLOrtLR8r3HlVvqC54rnMljahIAEFDDBCEzQIcA9ayU6VNq1D 6lMr+zUdIfviERG5F7l1rjAToj0gAEV+rLQXK4kMbMreUZibaR76Vm46dAyj6e+CNQ GSYyLUqo9ASg0UCSRGroBkKcRDkbzHs2eklN/nNoDeh9OA9aK9fN65dpB++p3rRCt4 Dz94kwcpBeQ5McVAim3PjWUkKrcclI5vRPrMBCWvEz+2uDXY6fw0Wjp5uoh8UIspkG 91HbD7GTERlIwfOoDKK1B7lEy8oUvllDf5Bz2XDdq1enSYjkm1GPoo2k/HWNiftd0A RT5e2ch4fNgdQ== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4DTCnK3kLnz6tmB; Sun, 31 Jan 2021 15:16:53 +0100 (CET) X-Tagtoolbar-Keys: D20210131151652818 In-Reply-To: <87mtwphb63.fsf@elephly.net> Content-Language: en-US Received-SPF: pass client-ip=185.67.36.66; envelope-from=zelphirkaltstahl@posteo.de; helo=mout02.posteo.de X-Spam_score_int: -44 X-Spam_score: -4.5 X-Spam_bar: ---- X-Spam_report: (-4.5 / 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, NICE_REPLY_A=-0.079, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.23 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:17218 Archived-At: This may be short sighted or uninformed, but generally I don't know, why I would build anything, except for running it. If I am not confused about the terminology, then I would say a pure Guile library is built, when I run the Guile program that makes use of the library. Perhaps also before that, so that the program starts up quickly, when run the first time. That is, if it is still only in source code form and has not been compiled before. Perhaps that is a reason for "building"? I did not really distinguish building and packaging before asking the original questions on the mailing list, because I assumed, that I would have to go through the whole autotools stuff, to actually make a Guix package, just like it is done in the guile-haunt repository. Apparently it is not the case, that I need to go through the autotools stuff for a pure Guile library, if I can get the approach from the Guix cookbook working, which I however, have not yet managed to do. I don't know what other use-cases there are for building, except for running the code. Perhaps distributing with something like Debian packages? I've never packaged a software in a Debian package either. The whole packaging is still sort of new territory and I would like to keep it very simple. If I had my library as a Guix package, it would also simplify my own repositories, because I could simply write the name in the manifest for the environment and would not need to clone it as a git submodule to get my code working, which relies on the library. However, if anyone told me a good reason to also use autotools to manage a build process of my code, and I can get it working and understand how to do it, then why not. On 1/31/21 7:29 AM, Ricardo Wurmus wrote: > pelzflorian (Florian Pelz) writes: > >> Hi Ricardo, >> >> On Sat, Jan 30, 2021 at 10:15:20PM +0100, Ricardo Wurmus wrote: >>> If all you have are Guile modules and all you want is to package it for >>> Guix then you really don’t need to bother with Autotools. Use the >>> “guile-build-system”. It can be as simple as the “guile-srfi-89” >>> package in (gnu packages guile-xyz). >> But using Guix instead of a Makefile for building means *all* .scm >> files would need to be recompiled with each change. > If this is only about *packaging for Guix* it makes no difference because > Guix builds everything from source anyway. > > The goal here is not to replace a build system with Guix. > -- repositories: https://notabug.org/ZelphirKaltstahl