From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 8Mn8NN+TZ2CMKAEAgWs5BA (envelope-from ) for ; Fri, 02 Apr 2021 23:59:59 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id QHwPL9+TZ2CABQAAB5/wlQ (envelope-from ) for ; Fri, 02 Apr 2021 21:59:59 +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 41BD812188 for ; Fri, 2 Apr 2021 23:59:58 +0200 (CEST) Received: from localhost ([::1]:53802 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lSRpc-0003E7-FU for larch@yhetil.org; Fri, 02 Apr 2021 17:59:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37810) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lSRmY-0000Vq-J1 for help-guix@gnu.org; Fri, 02 Apr 2021 17:56:46 -0400 Received: from sender4-of-o51.zoho.com ([136.143.188.51]:21156) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lSRmT-0005kN-4I for help-guix@gnu.org; Fri, 02 Apr 2021 17:56:46 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1617400594; cv=none; d=zohomail.com; s=zohoarc; b=Z0Q5iHIT6g4hKVnpUz3Pc88HAryFcCblwv03BXOGp1pNP8Ycc9CK1VBuuE8IVVCHRHHGjCQMVlKCF5lQwlHZVM0ph0Vfd9CiMbbBlou6lmIsCAD/YxadYIEW2dXInAD0ruZyn2sPNRp+FMtwDioXhb2lAFbaXzRHbTwwxtE2StQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1617400594; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=I2hrMMS0ONZL0r1BB33AwD5TVnfFf4VYvcI9JeYuw70=; b=BeNbGRB+S6T5vhinCIP3EuHf7lFSTUpHxPXWOy/vDnAOS/ueZ/u2YDWZVp5uAvDTlIVd0YP1inQlsqtmj//xxvEDohMz3jU/7GFiem8puFi7cguoH0vSIdaidF3LENDNaSn3FP8fLtwpDEf1comWgMA98O+Bo676c+pZbFycSGY= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1617400594; s=zoho; d=elephly.net; i=rekado@elephly.net; h=References:From:To:Cc:Subject:In-reply-to:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=I2hrMMS0ONZL0r1BB33AwD5TVnfFf4VYvcI9JeYuw70=; b=V+2H4EANNuHPG8UfDaL2T4Bjr7svCTEx9aaNCvg9lZ2OkWs8StJIzFOwC9ryfqAo wjrDg579e0U9oNL2T5XojVDSEx+iKh18pWS4XPUM/ORmFboSKS9XVLzoJpSN4MCCXq+ A/Mnn+zuF6C6uP0f3fyH8e0xcmpjCB6oZWFwqIJg= Received: from localhost (p54ad4d14.dip0.t-ipconnect.de [84.173.77.20]) by mx.zohomail.com with SMTPS id 1617400591052664.4960137454702; Fri, 2 Apr 2021 14:56:31 -0700 (PDT) References: <87y2eomngw.fsf@elephly.net> <51eadb71-592c-d024-3163-85766a1a060c@posteo.de> <874khan4cn.fsf@elephly.net> User-agent: mu4e 1.4.15; emacs 27.2 From: Ricardo Wurmus To: Zelphir Kaltstahl Subject: Re: About packaging documentation In-reply-to: X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Date: Fri, 02 Apr 2021 23:56:27 +0200 Message-ID: <874kgo1hbo.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External Received-SPF: pass client-ip=136.143.188.51; envelope-from=rekado@elephly.net; helo=sender4-of-o51.zoho.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, 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: , Cc: help-guix@gnu.org Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1617400798; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=I2hrMMS0ONZL0r1BB33AwD5TVnfFf4VYvcI9JeYuw70=; b=RiW2QMJupM51xSKDPjKMELbiCqZ0TtxYvtC8DXlBkghIE8b8ZNDlAKihlpkGc2ccPpxkVf 5oS66p9y2S8YHmk4r+MWrzBH3MvE9MsWnswINx9m2Zdsr6GbtdT2RGf5n10rf2X3QHrR78 LwirKTOC1rEfE8NjHn3NM+V9NmmSVXKcgSzsO11W1uZHVuX17esboIFfOlrxdmNZ/stghZ GpQm4gv5qcxTnsrlesbHA2JPKUvDIbVJwCZIHyV3B5Nrxk0+wWVxbaa8ekzKHxuiMFtLFA 0BYIoLa3KkhB2hfO2Mrjs7rUxOZ2FZkosxDNCMphb8WIOKmFnQW5bQosUvhwFw== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1617400798; a=rsa-sha256; cv=pass; b=PCpSu9ClKQkIfbYbFj5T22lJdt6Og5Cd6w4W1oAnHr7+gU87M7XgoQjsYXxNaRJX57gMhK zv/EWwAUL76fXG9Tc8p5za4jv3IKvkuYifoGlqOOprx8b/lVqTDMvk6Vn644jqL/IkGz9M kl+2goFED/uRDfvVmS5pxdX8XyM++PG72VUsF3vbI/OD3NQJNohM+Fc8Dsz8iBr0zT7Chc 15wqBtpAdYinz5jdiDRUkUq5FEErUXrmNMuq3dU48nuOmS4oESKhG+23iJQtmFsCogv8LJ vL+sRe31xb1DUH2adXZIHyHlrX5uyxktQQD4jEkAZsHeu29FBTOZ5sMQcUPq5g== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=elephly.net header.s=zoho header.b=V+2H4EAN; arc=pass ("zohomail.com:s=zohoarc:i=1"); 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: -3.63 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=elephly.net header.s=zoho header.b=V+2H4EAN; arc=pass ("zohomail.com:s=zohoarc:i=1"); dmarc=none; 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: 41BD812188 X-Spam-Score: -3.63 X-Migadu-Scanner: scn0.migadu.com X-TUID: thyRarGqdhVN Hi Zelphir, > (1) The cookbook does not even mention the guile-build-system. [=E2=80=A6] > I guess this is, because the cookbook tries to be generic in a way, to ap= ply to > all languages, if only one uses autotools, as those are applicable to all > languages. No, you=E2=80=99re overthinking it :) The cookbook is pretty short. It st= arted because blog posts eventually go stale, so having some of these useful blog posts updated with Guix seemed like a good idea. The cookbook is supposed to include useful tutorials, recipes, extensive examples =E2=80=94 all stuff that would bloat up the reference manual or ma= ke it lose scope. The fact that the cookbook doesn=E2=80=99t mention the guile-build-system i= s due to two reasons: 1) it=E2=80=99s not a reference manual, but a collection of tutorials 2) nobody contributed a tutorial involving the guile-build-system. 1 is by design, but 2 is not. We would certainly add a tutorial for simple Guile packages if someone contributed it. > (2) The hello package example is using the gnu-build-system. I guess that= means, > that Guix will go through the usual autotools steps, after extracting a t= arball > or cloning a repository. However, then it would seem, that the success of= the > installation of the package largely hinges on what is defined in the auto= tools > related files, like Makefile and such, which are part of the downloaded t= ar. Correct. The GNU build system commonly consists of a bootstrap step, the execution of the configure script, followed by =E2=80=9Cmake=E2=80=9D a= nd =E2=80=9Cmake install=E2=80=9D. The gnu-build-system abstraction merely automates that a= nd assumes that these things exist and are in a functional state, so that it can call them with certain default arguments. > Those however, are not described in the cookbook. If one is to create a p= ackage, > which makes use of the gnu-build-system, then a description of how to get= this > done would be good to have. People have done it before, but documentation= does > not capture it. I can understand the desire for comprehensive documentation, but I think that=E2=80=99s too far out of scope for even the cookbook. The GNU build s= ystem is just very *very* common, which is why the tutorial uses the gnu-build-system abstraction. It something you are bound to encounter when packaging non-trivial C/C++ applications. Guix has abstractions for many other build systems, such as the r-build-system, or the cmake-build-system. But I think it would be excessive to add tutorials on how to write an R package according to specifications, or how to write CMakeList.txt for a cmake-using project. > Then there is another confusion: The definition you have written =E2=80= =93 Is that for > editing the `guile.scm` in the Guix source tree Not, for guile.scm but for gnu/packages/guile-xyz.scm or rather the (gnu package guile-xyz) module. It works in that context because that module already has all the necessary imports. --=20 Ricardo