From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id wLE9Mg2XJV9cbAAA0tVLHw (envelope-from ) for ; Sat, 01 Aug 2020 16:23:41 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 6GnVLQ2XJV8IDwAAbx9fmQ (envelope-from ) for ; Sat, 01 Aug 2020 16:23:41 +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 277CA940719 for ; Sat, 1 Aug 2020 16:23:41 +0000 (UTC) Received: from localhost ([::1]:48714 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k1uIM-0004o0-QJ for larch@yhetil.org; Sat, 01 Aug 2020 12:23:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46760) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k1uIF-0004nc-PK for help-guix@gnu.org; Sat, 01 Aug 2020 12:23:31 -0400 Received: from relay6-d.mail.gandi.net ([217.70.183.198]:51447) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k1uID-00026w-9k for help-guix@gnu.org; Sat, 01 Aug 2020 12:23:31 -0400 X-Originating-IP: 86.194.80.144 Received: from gnou.home (lfbn-lyo-1-1004-144.w86-194.abo.wanadoo.fr [86.194.80.144]) (Authenticated sender: d@divoplade.fr) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id AA28BC0002; Sat, 1 Aug 2020 16:23:24 +0000 (UTC) Message-ID: Subject: Re: Newbie tries to add a snippet to an origin From: divoplade To: John Soo , Julien Lepiller Date: Sat, 01 Aug 2020 18:23:23 +0200 In-Reply-To: <938CF7BF-54A6-4816-A1DE-05D64E599174@asu.edu> References: <3ED58746-B570-4AE0-B387-606A10300EA3@lepiller.eu> <938CF7BF-54A6-4816-A1DE-05D64E599174@asu.edu> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.30.5-1.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=217.70.183.198; envelope-from=d@divoplade.fr; helo=relay6-d.mail.gandi.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/08/01 11:17:37 X-ACL-Warn: Detected OS = Linux 3.11 and newer X-Spam_score_int: -35 X-Spam_score: -3.6 X-Spam_bar: --- X-Spam_report: (-3.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=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-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; 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-Spam-Score: -1.01 X-TUID: be9UKvlnXRzL Thank you so much for your help, now I can build both packages without hassle. The filled-in module template is dynamically computed [1], so I do not need to care about passing the version number around. https://framagit.org/divoplade/pomdappi/-/jobs/1068726/artifacts/raw/public/divoplade/packages/pomdappi.scm Le samedi 01 août 2020 à 09:00 -0700, John Soo a écrit : > Since you are using the gnu build system, I suggest making your > version number a variable in the makefile. The good part of using a > make variable is that you can use $(shell git describe ...) normally > and override it when building with guix. You can use the make or > configure flags arguments to override the version number with the > guix package version number. I don't think it is wise to let the user update the version number with a simple configure switch or make variable; it could make things very confusing for debugging. Updating the version number is more of a maintainer task, so it makes sense to write it in stone during the maintainer phase (bootstrap / autoreconf). divoplade