From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.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 eHNvCR9wxGZTgwAAqHPOHw:P1 (envelope-from ) for ; Tue, 20 Aug 2024 10:29:51 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id eHNvCR9wxGZTgwAAqHPOHw (envelope-from ) for ; Tue, 20 Aug 2024 12:29:51 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=I0QRU0oa; 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=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1724149790; 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=RbifvcE+XJA7h19BYyjXqwWNFxqEy6y49z1Ha+HSFmw=; b=OKQ9gBI1Nre4baOc09D6fGwYcynaoGEmhKC7akcKW8CuSz2i6jWHZnBQ8SZzvV7S3f6V9v UDMd3lUUCW4wyg+U5CJD1BGEwWRANYLP4R18m+yCV26eTCo6G3Llu1HFjY2KJFe28ICLC3 xsDhhi6MuP0KKT9IV6fLSFkYAZ1Er8gVP+3F5CFdLEbf2RhYBP4njNcv3tMInwIok76X6C 9GLb/GQsb0GM8wwOIAp5/uTTjz2c64l9YPIHF8mHJrLywv+DwvAQpjfW7DXg5MNl1AXpm5 1gkCBjDN2cO6o0/zs0vQ30vA0uVKtdsRrauJ6TIVfmf53hnPTX09Rxke8H8W2g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=I0QRU0oa; 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=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1724149790; a=rsa-sha256; cv=none; b=YzQH7iZWKzyFzuX0681FCs6a7A3fC3mo/XaeXAnPUwF+b/hGb9ybSl55JMVhAJAFPiWRfs JRnyv0aIPExPgyzyToXMoXngpAfATqkBXAiOhGeqLQx5JqNxPErWmmHNcNY/DyHSTuXapm r8NW9zZLOTzGoHAUX49fjzWm4c8WJScweK9mIsDy0OAZyaTPdaS1iKZyHnrkuJBtbUzumr SV3HydYnf6LmqAp97ue5C+0vQBZz06agfcSUT8nfZEazmLmiFQAonBgyPYw5B4VsSniUwh T6stB4eBtGuMAMCU/c5oSW3MLqfRXsVaQ24rvQU62XOWXSN1nQcclRvloAwLVQ== 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 C16256C91E for ; Tue, 20 Aug 2024 12:29:50 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sgM7I-0004Qq-Gx; Tue, 20 Aug 2024 06:29:32 -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 1sgM7G-0004Qa-C0 for guix-devel@gnu.org; Tue, 20 Aug 2024 06:29:30 -0400 Received: from mail-ej1-x62b.google.com ([2a00:1450:4864:20::62b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sgM7A-0004G2-OM for guix-devel@gnu.org; Tue, 20 Aug 2024 06:29:28 -0400 Received: by mail-ej1-x62b.google.com with SMTP id a640c23a62f3a-a86412d696cso122969966b.2 for ; Tue, 20 Aug 2024 03:29:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1724149763; x=1724754563; darn=gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=RbifvcE+XJA7h19BYyjXqwWNFxqEy6y49z1Ha+HSFmw=; b=I0QRU0oaD1I/bP4LDk6+lW/qN/FY/qTcivPBJFaoevdAdRgCGe4ld0wjwWCoWaP5R9 McVi7Y4pCfLb3y6G5+W+WjZHbPbrWT4dsTb0pBK4Hata6i2axIYSAVOCAgrFn0uQUmvc yYRJr2IuaaAd3Ku9uhGsGCubwZ+pVLaztlu5LMh2JDZbsJmVKxiO8LbAUhPmcASKh+ah jwloMReBUqlW7cp/z46JYXX608gSArCHrl4hTQmpnPn4EZ0uG9YvVLJDmAqobcF72eRA gF6L47EY7w2hkLiSl0RbFFFRvUI0zrgakVQBO1b02VoMz1F6kkCvhuKWpPMv7PqOh+mk 1FrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724149763; x=1724754563; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=RbifvcE+XJA7h19BYyjXqwWNFxqEy6y49z1Ha+HSFmw=; b=fwAGnT+UdtbmayOihzeBQQe3PNPvNi0A9rVZhSZLmn8bvboqVgQMGulhE3cPewhC5e WXX+G/eT58X5CMir1JIKZrMGSOQngWw7ZzXAbzg/C1pG0DvQvtdEM+cBy0XH7SIYwG20 lc7EiP3dYbf9FvtaCe+vGYiVi6hkcWg9dKMiOO5ydWqbMGVWK+/mejGNq+CiYGXUnFHP 4fKhOCRKPk9CTqw86D9agISp22E7tkdy0Lngh3bZ2EdFOhEnMihDuNXkJKMQxBnF0RHU EIjSRLyJK7MFiePmq5eYsxsED7PSUykQY02pl7D1qhlJYWCNOCGUDzuDh+ZPADkZqqyp IE5Q== X-Gm-Message-State: AOJu0YxLkAiLJBMu2fn2NYsNACic43c1fkwqdbxVhbG3Ss0gy7nNB+u+ 3TMVmDsNfcXl+JHYYuIqJkigKPtdfxYbjLQP7xEtrRopk9xa6fwWOnyRV1A+ou+aQE9Pb3yzw8d LEac2jqpBLmdaqcArVq8wJVOjeUw8IhWD X-Google-Smtp-Source: AGHT+IGSuPxHYLckevbuzB69i6wbBWsVgPcQeFUdacPaKgWn/qRkfPIQwJ0esYkEOetak8Keg1qtCOE0IeEM6kw2fKk= X-Received: by 2002:a17:907:2d25:b0:a7a:a46e:dc3c with SMTP id a640c23a62f3a-a83929300c8mr1003019466b.15.1724149762318; Tue, 20 Aug 2024 03:29:22 -0700 (PDT) MIME-Version: 1.0 References: <87jzgbo6hp.fsf@marekpasnikowski.pl> In-Reply-To: <87jzgbo6hp.fsf@marekpasnikowski.pl> From: Sarthak Shah Date: Tue, 20 Aug 2024 15:59:10 +0530 Message-ID: Subject: Re: Global modification of #:make-flags To: =?UTF-8?Q?Marek_Pa=C5=9Bnikowski?= Cc: Guix Devel Content-Type: multipart/alternative; boundary="0000000000001f699406201ae682" Received-SPF: pass client-ip=2a00:1450:4864:20::62b; envelope-from=shahsarthakw@gmail.com; helo=mail-ej1-x62b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, HTML_MESSAGE=0.001, 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: , 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: C16256C91E X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -9.79 X-Spam-Score: -9.79 X-TUID: IkTrxkamfRZh --0000000000001f699406201ae682 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hey Marek, You might find my work on Parameterized Packages interesting: https://blog.lispy.tech/parameterized-packages-the-project-completion-updat= e.html Unfortunately, it hasn't been merged into the main branch yet, however you should be able to make everything use -Os with the patch. Regards, Sarthak. On Tue, Aug 20, 2024, 15:35 Marek Pa=C5=9Bnikowski wrote: > Hello > > 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. > > The [2.1 Packaging Tutorial][1] of the Cookbook mentions that it is > possible to pass a #:make-flags argument to a list of packages. > Unfortunately, no explanation is given how to implement this > functionality, and which exactly lists of packages does it apply to. > > Does the Guix System have a facility similar to Gentoo's [make.conf][2], > where a default optimization set can be declared? A potential problem is > with packages that are dependencies of services, like %desktop-services. > I hope those also would inherit the changes. > > [1]: https://guix.gnu.org/cookbook/en/html_node/Packaging-Tutorial.html > [2]: > https://wiki.gentoo.org/wiki//etc/portage/make.conf#CFLAGS_and_CXXFLAGS > > --0000000000001f699406201ae682 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Hey Marek,
You might find my work on Parameterized Packages interesting:

https://blog.lispy.tech/parameterized= -packages-the-project-completion-update.html

Unfo= rtunately, it hasn't been merged into the main branch yet, however you = should be able to make everything use -Os with the patch.

Regards,

Sarthak.


On Tue, Aug 20, 2024, 15:35 Marek P= a=C5=9Bnikowski <marek@mare= kpasnikowski.pl> wrote:
Hell= o

In order to prevent the XY problem, here is my goal: Rebuild the entire
system with -Os optimization level.=C2=A0 It is an experiment into viabilit= y
of hardware-targeted optimizations.

The [2.1 Packaging Tutorial][1] of the Cookbook mentions that it is
possible to pass a #:make-flags argument to a list of packages.
Unfortunately, no explanation is given how to implement this
functionality, and which exactly lists of packages does it apply to.

Does the Guix System have a facility similar to Gentoo's [make.conf][2]= ,
where a default optimization set can be declared? A potential problem is with packages that are dependencies of services, like %desktop-services. I hope those also would inherit the changes.

[1]: https://guix.gnu.o= rg/cookbook/en/html_node/Packaging-Tutorial.html
[2]: https://wiki.= gentoo.org/wiki//etc/portage/make.conf#CFLAGS_and_CXXFLAGS

--0000000000001f699406201ae682--