From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id AH4TIx7qU2L5gwAAgWs5BA (envelope-from ) for ; Mon, 11 Apr 2022 10:43:10 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id WN/eGx7qU2LrIQEAG6o9tA (envelope-from ) for ; Mon, 11 Apr 2022 10:43:10 +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 1E9263E83D for ; Mon, 11 Apr 2022 10:43:10 +0200 (CEST) Received: from localhost ([::1]:59074 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ndpdc-0000rz-N5 for larch@yhetil.org; Mon, 11 Apr 2022 04:43:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34622) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ndpdC-0000rr-Ec for guix-devel@gnu.org; Mon, 11 Apr 2022 04:42:42 -0400 Received: from michel.telenet-ops.be ([2a02:1800:110:4::f00:18]:48616) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ndpd9-0006V0-T6 for guix-devel@gnu.org; Mon, 11 Apr 2022 04:42:42 -0400 Received: from ptr-bvsjgyhxw7psv60dyze.18120a2.ip6.access.telenet.be ([IPv6:2a02:1811:8c09:9d00:3c5f:2eff:feb0:ba5a]) by michel.telenet-ops.be with bizsmtp id HLic270014UW6Th06LicBF; Mon, 11 Apr 2022 10:42:36 +0200 Message-ID: <2d93cd88e2ff348cf2c47460c29ff62024c135f9.camel@telenet.be> Subject: Re: Guix wiki From: Maxime Devos To: Attila Lendvai , Ludovic =?ISO-8859-1?Q?Court=E8s?= Date: Mon, 11 Apr 2022 10:42:31 +0200 In-Reply-To: References: <17e40b111ce.bc05a4a071499.1598136714226569120@excalamus.com> <17e49565b21.1285153a6259042.8278566905195778367@excalamus.com> <87zgo16ebc.fsf@elephly.net> <17e4c5403ca.e72c7b19372548.5993925318643575057@excalamus.com> <87ee55glj6.fsf@gnu.org> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-2Ihy3ZrT1fW9mgjFYHxG" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1649666556; bh=fEBEUlyNY8vQ9u0nBRNMb6A0HQjgKeylX+joQDvNEDA=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=SVkeWElBwKvWmgLJVPFplTm4n0HAYu0UgmMzpTE+IUt20oDa6ekNuxaEsvzGL6Ecp P3w9ejFpZi8M9B8Z78uAwOb3jut1l+fjdbBm+fdfwz0Ln9p57+dsss6d+naUEtXqt3 GZKniLBfoZX/aYRMsQ1ZVTa0gC4/Fh0vRJIkh5nqmi8fhR/F1Qrs3TQAK/0GDlZnZl L7HxnRDsZX1d7IFkKeGAvMkJDw2VdsCMl9zhc+3txNLjD9p+jp9VOGByA0BDjenIGh qrDjCU/UdeCK2lYmhZrmBUzcoJ1+oLggK+s1Kzn1eAoH79657pB71XQLVXLDVMlbuX 875CdNnbWoZ3A== Received-SPF: pass client-ip=2a02:1800:110:4::f00:18; envelope-from=maximedevos@telenet.be; helo=michel.telenet-ops.be 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: guix-devel Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" 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=1649666590; 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=fEBEUlyNY8vQ9u0nBRNMb6A0HQjgKeylX+joQDvNEDA=; b=j8U0f5agiI7inYjLwvje8Fg8tg6VxxSk8ajcuz5w3MpNxPfhNu6h9D6yAX5vI6FYZ8QLoR BeIUjTQwiwoGDZv+1idPCncmAKTPfBe+6bDZwjlQGyJLeuzMVWVJH3jH9oXLEdzGkxaung ixudue3Vo2IMq/qLPqod+XSMm4A9Bo/h6D2iuHaEMWRjwD0fDepWxr5gHPW78u7XklsOM9 zVwz7z3A7mhwmOuXiflDlF2nIkXeJTlWtkxF2YfOm03NlGr9wpyxjcpPQIkWRlQ14gRrTp 5Z8XtlEmpz+pMnfLJtzav4wxEcd9xnKJfGYCbQH0ddY8ePvTf9I/vYAMZWiAUg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1649666590; a=rsa-sha256; cv=none; b=bnNqGwMTnVSeKDcWS+Y6Icctx1vCLKM9vXEai76nzjYuQWRwPtm1hSEzskpDThcFVYbdrL Gtlpf0gYtDs5kaBoOFiqjiATez896sl5Ijkz67fl7o+Zp2TdhJ7r60a+HZc++Aj7zCHaZm PpOJDK00kq6at51PQX2Ei2Clg4V0tcmFaAE6W5XzokHwaCWM8J62c+UESKwHtiHT4mZIMn kuV05OkTQKqn6wLGMLoxzelbrQmolR9MX7AqViT6RaqStPzdmMvjbM++K0DUSD/DnYi4KQ KuUTL9iXwEenC8fuP+SBs6ZYR20ZSdozAuGtH3SAyBJlJ2h/LH8PhvxCqcTRug== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=telenet.be header.s=r22 header.b=SVkeWElB; dmarc=pass (policy=none) header.from=telenet.be; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -6.27 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=telenet.be header.s=r22 header.b=SVkeWElB; dmarc=pass (policy=none) header.from=telenet.be; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 1E9263E83D X-Spam-Score: -6.27 X-Migadu-Scanner: scn1.migadu.com X-TUID: 1EvaiO+PJpq0 --=-2Ihy3ZrT1fW9mgjFYHxG Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attila Lendvai schreef op ma 11-04-2022 om 06:49 [+0000]: > if someone wants to use guix as a platform for reproducible builds > of go projects (independent of guix revisions), then a package > definitions is needed that refers to specific versions of its > dependencies. >=20 > currently it's not possible to open a new isolated scheme module, > and algorithmically define/import the entire transitive closure of > the dependencies of a go project, because they may clash in the > package-name namespace with projects already defined elsewhere in > guix. Suggestion:=C2=A0clashing names is not a problem, as long as the final package to build actually has an unambigious name. Also, it is not necessary to actually give these intermediate packages a variable name, maybe do something like (define-module (gnu packages ...)) (define-public foo [... a conventional guix package definition ...]) (define-module (my-reproducibility-test) #:use-module (gnu packages ...)) (define %version-pins ; <-- TODO: teach "guix import go --pin-versions" to = produce this kind of structure? ;; package name / version / hash '(("go-github-com-operatorfoundation-shapeshifter-transports" "0.1.2" "0f= 1hzhk3q2fgqdg14zlg3z0s0ib1y9xwj89qnjk95b37zbgqjgsb") [...])) (define pin-input (match-lambda ((label package . rest) (cons* label (pin package) rest)))) (define pin (mlambda (package) If the package name does not occur in %version-pins --> return package = unchanged. Otherwise, return (package (inherit package) (version the new version) (source (origin (inherit (package-source package)) an appropriately adjusted commit the new hash)) ;; TODO: other versions of dependencies might need extra dependencies (inputs (map pin-input package)) (native-inputs (map pin-input package)) (propagated-inputs (map pin-input package)))) (define-public my-reproducibility-test-foo (package (inherit (pin foo)) (name "foo-as-found-elsewhere"))) Does that suit your purposes? Greetings, Maxime. --=-2Ihy3ZrT1fW9mgjFYHxG Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYlPp9xccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7p6LAP4xvTGY1a/ZR3h8bTj5NN2YJ8KC o2YUG31wLKl3l2JAyAD/QhMerIkP7IqRco2ykACt3d7zq6BlXM+lwHQXQtbd1gs= =XdRw -----END PGP SIGNATURE----- --=-2Ihy3ZrT1fW9mgjFYHxG--