From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id APdnI7kt22a5JgAAe85BDQ:P1 (envelope-from ) for ; Fri, 06 Sep 2024 16:28:41 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id APdnI7kt22a5JgAAe85BDQ (envelope-from ) for ; Fri, 06 Sep 2024 18:28:41 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=marekpasnikowski.pl header.s=dkim header.b="mgz7I/DQ"; dmarc=pass (policy=reject) header.from=marekpasnikowski.pl; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1725640121; 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=YFYbGe3qkuxIviHuTITUz0nrvY3/a3Yjp0p2OBOupUA=; b=l5p02kh7A4+7H/uGfLRvXPvr0qFVcB+4VD10PMD97l3E7wIwsd5QOeAThf+ahTisXAdWc9 QU5e4qdgdczlznaWQlkWaQPuNY1LwzgOCSWjvfo4+yCBgAa5shoWVoMuLR7YkzNrdxOAbR g0woH+F78Alhs6sQBbkqBbw1xkv5JGNJLqBG5t/6ckiLZ4Ni1icGAUqbB+8bKGdiZsAkb9 UIH6YBTcSqGBj9WOBzI14hYoGyxH2QakMDMnIF60rDzn3+1daHvT0gT3BEwcnZ6mNcNMTy rAdpxgTZxmiCXVRHevGTM5b2cyrWsCsxWYYkj1P59YtIys9UfxhIt8K8h9lj3g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1725640121; a=rsa-sha256; cv=none; b=k0pCYy6FKc33fkKMxJwP/Pk42kBu2qo+/rrCryAiOOeR47GB4rs62L+e97nDEgEEQUqLpY tqOGEiIVBa5eIgyC+hQpEJmf6QIrOaPurvhs7jkKjlEnE09IXD7iUtxy9pPUhJK7e3tpM9 8+JuxJG7CBDCO91RDRbsWKMY7YjshQ1uEKSDOYZ9Iv59i2ZS1bl3Yy6+/hhAPfAZPVTvBm JlXU7xkHFKZtUl1+uS0+wW6s6SYtVkaofpiVLQfQUjPbWYbZY3AedB4l/10yIT3RF3CcJl TdaxGVupnxxaT74AYV3IeOZi8ek9226TKPffc6VoKWdXUzIn4TJHevukCewJ1g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=marekpasnikowski.pl header.s=dkim header.b="mgz7I/DQ"; dmarc=pass (policy=reject) header.from=marekpasnikowski.pl; 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" 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 581697BC94 for ; Fri, 6 Sep 2024 18:28:41 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1smboN-00042j-FM; Fri, 06 Sep 2024 12:27:51 -0400 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 1smboB-00040N-2j for guix-devel@gnu.org; Fri, 06 Sep 2024 12:27:42 -0400 Received: from [81.190.248.246] (helo=marekpasnikowski.pl) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1smbo9-0003yo-1k; Fri, 06 Sep 2024 12:27:38 -0400 Received: from localhost (localhost.local [127.0.0.1]) by localhost (OpenSMTPD) with ESMTP id bb722c4c; Fri, 6 Sep 2024 16:27:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=marekpasnikowski.pl; h= from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-type:content-transfer-encoding; s=dkim; bh=DD+XuOdMWo6cOFr1/LSLVtv5pQ+Y2U5gzWNnFqc3KcI=; b=mgz7I/DQnJqr lVphtwt+Fe5ORyMIpi14e+f+Ra4F/lGM6X1of4mo/n31qkSX1y8pc+vWwzrV/AD9 8FoFuA9xVg3piZUDrMRPQg3LLYNlNs5+v3mnK+8s9Qc9Yi+xdqBlX9oaKkoYeSA8 NQ5M30/w9GkeqIlfKtnCouK2R8Q2KKhJFQ+xAL27N4jnLBsI2hBIryJ8KzHFYW4d g00fIhBcH0v/IaohmHxyUq5tK0iAChsKiqPWePnV5Aw406HIbrJ61l2ebxfauw9n /s4ozORU9rU9YBQtc4+cnlHweorRI5XfnLiaxqY/BX85qoOlsAK7VYuJ/xLHg+V2 pH9ak7rErg== Received: by localhost (OpenSMTPD) with ESMTPSA id 75549f0a (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Fri, 6 Sep 2024 16:27:28 +0000 (UTC) From: =?utf-8?Q?Marek_Pa=C5=9Bnikowski?= To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel@gnu.org Subject: Re: Global modification of #:make-flags In-Reply-To: <8734mxpp5f.fsf@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?= =?utf-8?Q?s?= message of "Wed, 21 Aug 2024 23:00:28 +0200") References: <87jzgbo6hp.fsf@marekpasnikowski.pl> <8734mxpp5f.fsf@gnu.org> Date: Fri, 06 Sep 2024 18:27:27 +0200 Message-ID: <878qw4oihc.fsf@marekpasnikowski.pl> 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-Host-Lookup-Failed: Reverse DNS lookup failed for 81.190.248.246 (failed) Received-SPF: pass client-ip=81.190.248.246; envelope-from=marek@marekpasnikowski.pl; helo=marekpasnikowski.pl X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, RDNS_NONE=0.793, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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: , 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-Queue-Id: 581697BC94 X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -10.01 X-Spam-Score: -10.01 X-TUID: q3hzyu2E6bH9 Ludovic Court=C3=A8s writes: Good afternoon. I apologise for late reply =E2=80=94 I am still catching up with my digital= life backlog. > Hi, > > Marek Pa=C5=9Bnikowski skribis: > >> In order to prevent the XY problem, here is my goal: Rebuild the entire >> system with -Os optimization level. It is an experiment into viability >> of hardware-targeted optimizations. > > Instead of trying to override #:make-flags, which is likely fragile as > it depends on details of each package=E2=80=99s build system, I would use= a > strategy similar to that of =E2=80=98--tune=E2=80=99. > > For =E2=80=98--tune=E2=80=99, the =E2=80=98tuning-compiler=E2=80=99 proce= dure in (guix transformations) > produces a compiler wrapper that passes =E2=80=98-march=3Dwhatever=E2=80= =99, and > =E2=80=98tuned-package=E2=80=99 injects that wrapper in the package of in= terest. > > In fact you could reuse most of the code here to do what you want. And > we could create a package transformation for =E2=80=98-Os=E2=80=99. Coul= d be neat! I appreciate the pointers about transformations. Did you mean to suggest to implement a new transformation dedicated to the O levels? This is how I interpreted your response. Also, I am still failing to see how I could apply /any/ transformations to the operating-system records. I admit, I still know little about sub-surface features of Guix. In the adjacent message, Sergio Perez mentioned a map-derivation function. The documentation I found about it is /very/ cryptic. =E2=80=9CGiven MAPPING, a list of pairs of derivations, return a derivati= on based on DRV where all the 'car's of MAPPING have been replaced by its 'cdr's, recursively.=E2=80=9D Should I get more familiar with this function, if I want to transform operating-system?