From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id gOljCp2oxWaaAwAA62LTzQ:P1 (envelope-from ) for ; Wed, 21 Aug 2024 08:43:09 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id gOljCp2oxWaaAwAA62LTzQ (envelope-from ) for ; Wed, 21 Aug 2024 10:43:09 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=marekpasnikowski.pl header.s=dkim header.b=TfzbyW1q; 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=reject) header.from=marekpasnikowski.pl ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1724229788; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=9nGNyNceRTcKSzwcWLfd5L+wRLn0Qoylfya0QdyUhgA=; b=CE/rJxiFaWmLI0op4u5yu1KbK3KTc+ndY3JI0Ww6E9IOtDGoHYQEVcm/11Znp9e0IP40dB +cu1kFKXypLfPzQTOxKfFg3s+EWSSrEkFQ+E1vsl+eQ2LSIzk84WtrrwQTFyWsA0mb5T0i qYWdigpekMGZ5hYjPhziBeSupvP26siKUfjVKahL+I7kr7iGSx/NbOOPLEuwjQtg7KXvR0 KtKI6Krh6fXJrtNCzTspI071bUxWLR1HIDAvATWSxu7Kw9Rypr0EnphkT/KLQBZfUP3RTl aNvuDKLD8nQg5v8N5DKON5VhhXaANvRmsTJ9gkL1YUUGa2VJL6WnxNbh92/aDA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=marekpasnikowski.pl header.s=dkim header.b=TfzbyW1q; 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=reject) header.from=marekpasnikowski.pl ARC-Seal: i=1; s=key1; d=yhetil.org; t=1724229788; a=rsa-sha256; cv=none; b=ITwH+X0phECMrOsTbOU8PsN4llz+grnmqRsBOWkeBapckfGNTw4tpWu8/CZag+gzKgyyC3 ijKcpmMO7S/pgyga7O2hRlGOdvvixn/LcGKSDpnNRBxfnMxPhE/VW3SLbZUwPJL9rZJYct ZY1XmTe5wy7cBd1oKHUqmMo0neANYGpy43ofvxulALzQJYfkMhNctLueRg1nfTFIP4hUkY hYOmmXmR8jE3e8HwNnEHwzJda2/5ANItyLf5BhNPuCKYJptEi5vZyM0X1jE3+qDV8VOcUz sGV0KEb8K+uFW50R2RQ5SQG+SMjPo1Blmt9qytjU3iAo4y0QofvtQ2Ur/i+mrw== 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 E733C69870 for ; Wed, 21 Aug 2024 10:43:08 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sggvK-0004MF-Hq; Wed, 21 Aug 2024 04:42:34 -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 1sggvF-00044X-Ig for guix-devel@gnu.org; Wed, 21 Aug 2024 04:42:29 -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 1sggvB-0006hf-Nx for guix-devel@gnu.org; Wed, 21 Aug 2024 04:42:29 -0400 Received: from localhost (localhost.local [127.0.0.1]) by localhost (OpenSMTPD) with ESMTP id 600f1f40 for ; Wed, 21 Aug 2024 08:42:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=marekpasnikowski.pl; h= from:to:subject:in-reply-to:references:date:message-id :mime-version:content-type:content-transfer-encoding; s=dkim; bh=6IiwhxMwVGVR9K0HF+Qp4b/DjqcGnXO+xwYLQxqJeCA=; b=TfzbyW1qHmw4 GqFnsc0gT5hGeg23d1SCqaB/Ty3i934nUzibYOgVjSeGRdJFaIrGwDmVa7XxlW/A ix4fjzOwU5BAOMx+81I2s/qZHK4GYdV7pXa0i+Xa+WasXbZPt2DRpBW0JH4o5ZFv pO0+QYyrXpz9rYihT6/jzGhqdVQXDJPJqPftQUrh7jfm+0zYNrPSCl67e1h90zvY +eDMVJ7zuTGkB+58ke7y+15Y2Dto0VTHoArzjwOZek7yiyHs0idjhBGfng+C7+PF E2Hop+cErDKkZkwtgHTwfuJmXHiUfb+/TZOqfRXd/T3DrTZnHVZM2Ly6tLCb7K9p Exo0Pdsedg== Received: by localhost (OpenSMTPD) with ESMTPSA id f49875b0 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for ; Wed, 21 Aug 2024 08:42:16 +0000 (UTC) From: =?utf-8?Q?Marek_Pa=C5=9Bnikowski?= To: guix-devel@gnu.org Subject: Re: Global modification of #:make-flags In-Reply-To: (Sarthak Shah's message of "Wed, 21 Aug 2024 13:15:53 +0530") References: <87jzgbo6hp.fsf@marekpasnikowski.pl> <87h6bel5d0.fsf@marekpasnikowski.pl> <878qwql473.fsf@marekpasnikowski.pl> Date: Wed, 21 Aug 2024 10:42:15 +0200 Message-ID: <874j7el120.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, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, 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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: E733C69870 X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -10.01 X-Spam-Score: -10.01 X-TUID: IQ9cZT3STybE Sarthak Shah writes: > Hey Marek, Yep, this is a patch for the repository. I haven't figured > out how to programmatically patch it yet either; the original idea was > to use time-machine, but it was causing some errors that I wasn't able > to debug. Perhaps it's time I give it another shot. > > As for -Os, check out the GCC optimization flags example in this post: > > https://blog.lispy.tech/parameterized-packages-the-second-update.html > > You'll have to then specify this parameter for the packages you want > to install, like so: > > guix install hello --with-parameter=3Dgcc-oflag=3D-Os > > Back when I was working on it, there were talks about setting up > global transforms for Guix, which is how this patch was supposed to be > used globally. I am not sure if this feature has been added to Guix > yet, but once it is you can then add this transform globally. I have > added features that will check if the build system and any other user > defined condition matches before applying parameterization. Otherwise, > you'll have to add this transform to the packages you need -Os with, > which is not very difficult, just a bit cumbersome... > Thank you for your patient and informative replies. Unfortunately, I am currently not interested in package-specific optimizations, that is not my goal. I will be the first to test the global transformations, but right now I will have better returns on my time investments in other projects including a router system and continuous integration of my channel updates. Or even learning how to work with the e-mail based bug and patch systems used here. Ah, the irony =E2=80=94 I do see a future where I help to implement the glo= bal transformations. But to realize this future I need to learn more and complete my development system. While having a life outside of computers... :-)