From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id yLDkFfQIXmd7ngAA62LTzQ:P1 (envelope-from ) for ; Sat, 14 Dec 2024 22:38:44 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id yLDkFfQIXmd7ngAA62LTzQ (envelope-from ) for ; Sat, 14 Dec 2024 23:38:44 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=DMub6s1w; 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"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1734215924; 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:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=o+fYF4rN0o8h/KKcPqSL6uUydla2o6PFxqtNx2UZQOo=; b=PWmBdP7F9/zwVHol7d/qHqVlJNPjHOeqcSaX4HD9V+0TS/TR5ZZLx3VtWkpE1owPxijuHS 6z2RrxzFvIvGpvpoDUycZTPxNJcv7p0JsPbGD+EZmP9GR7EOTKbgrlTsNwinwpWQO0faTP AVmOvqCPNGf6XrGKmlfcjLd9tDUHqTBX3ZTPqUC3fbGn9fflv6R+HRqw6CRHK/jEh69p3Q aN4l0QgncbsVN6SsCBKdPUlgvRSW+AmdID13Kklw7svvsU8vK8acMkKODF0vZedCArfyaD n8muIstlGOTMIfMyuA+mhFVR0Qz8evJLUNafsX+kCGIrHFEYeRYJb7EEujGtVg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1734215924; a=rsa-sha256; cv=none; b=QzQcXx4gH+fs1t71+F+JoH2QL9IhQZzCwYwfYQ6kRemt1aJPbHM6xRWgo+AFFja8AXavRj CKAVyLe8/Q+uGIQ3n9kRE2AOvv1IBLYmQiGvmHa9UfEHBLwkE+XAcGzZnwW2Sp+ohi/8iM KLXIE0ohgztSiS7GdM72/OAWAdD7otU904J9PKkNtRjRi3n8Zw3FDv698YUn5zBcPo/+M4 l5iaddYvKyRBCwQc6jqmCrudmJbSkUCGtJldY66ChKkCGDVSGHv45MDDswBLLL6AUKxONP Vc89ZhZcBsaCl7kxeNRL9ImJyXJmscPTMjufaY+NRbgrWs5+YdDFiSIxDXQT/w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=DMub6s1w; 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"; dmarc=pass (policy=none) header.from=gnu.org 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 1CCEA85E5E for ; Sat, 14 Dec 2024 23:38:43 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMalt-0002n3-NO; Sat, 14 Dec 2024 17:38:01 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tMalr-0002mZ-DU for guix-devel@gnu.org; Sat, 14 Dec 2024 17:38:00 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tMalq-0007C0-G2; Sat, 14 Dec 2024 17:37:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:Subject:To:From:in-reply-to: references; bh=o+fYF4rN0o8h/KKcPqSL6uUydla2o6PFxqtNx2UZQOo=; b=DMub6s1wuEmNlj G4RCnhia7M2Cq7i2hjCM2OqS3qAUlRzIRxU8nNztS5PExSy9Ctm7AE7CKHNcJOkQ1vwVub/437OLx Y6Vj+Pr0hbBKoNb7UsrlEsAXVkE0FR7LgJDc8ElbkpvjRzMurPdfg8L/vSi1fa1mVG0JC4IEepp5g ygldq26J40W/5L4MRHXEBFjCZfDamXwoiz68/Ejj+EZbq6r0R3pX2IJIZltSESlvFuSxP91ZBXnzw mWrSy5GjYjfv9E+vBNWMLEK/rWDm1BQI2QVeze9uEAuK7JG3c54X818aXW0A8o56qiVMZDLLzxg29 ynTg1thF66KcQL3wf8Ew==; From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Subject: Use and abuse of =?utf-8?Q?=E2=80=98computed-origin-method?= =?utf-8?Q?=E2=80=99=3A?= the =?utf-8?B?4oCYcnVzdC1yaW5n4oCZ?= case CC: Efraim Flashner X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Quartidi 24 Frimaire an 233 de la =?utf-8?Q?R=C3=A9v?= =?utf-8?Q?olution=2C?= jour de l'Oseille X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Sat, 14 Dec 2024 23:37:53 +0100 Message-ID: <87cyhtlwla.fsf@inria.fr> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -7.31 X-Spam-Score: -7.31 X-Migadu-Queue-Id: 1CCEA85E5E X-Migadu-Scanner: mx11.migadu.com X-TUID: Cr49TbS1koHK Hello Guix, =E2=80=98rust-ring-0.16-sources=E2=80=99 & co. are origins that use =E2=80=98computed-origin-method=E2=80=99 (the thing that=E2=80=99s internal= and undocumented) to generate object files from assembly source, things like that. An origin is supposed to represent source code, and clearly, the end result here is not source by any stretch. I believe it=E2=80=99s done this way simply because =E2=80=98cargo-build-sy= stem=E2=80=99 then embarks that =E2=80=9Csource=E2=80=9D to build leaf package(s) that use =E2= =80=98rust-ring=E2=80=99, directly or indirectly; this is where Rust compilation actually takes place and, IIUC, the reason why a build phase in =E2=80=98rust-ring=E2=80= =99 would be of no use. Anyway, the =E2=80=98computed-origin-method=E2=80=99 hack prevents input re= writing from working as expected because the inputs of that big gexp aren=E2=80=99t visi= ble by just traversing the package graph. That=E2=80=99s a problem. Ideas on how to fix that? An idea that comes to mind is to turn =E2=80=98rust-ring-0.16-sources=E2=80= =99 into a package using =E2=80=98trivial-build-system=E2=80=99, though I=E2=80=99m no= t sure it would work well with =E2=80=98cargo-build-system=E2=80=99. Ludo=E2=80=99.