From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.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 INOjMVhqxGYwEgEAqHPOHw:P1 (envelope-from ) for ; Tue, 20 Aug 2024 10:05:13 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id INOjMVhqxGYwEgEAqHPOHw (envelope-from ) for ; Tue, 20 Aug 2024 12:05:12 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=marekpasnikowski.pl header.s=dkim header.b="odjDf/P "; 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=1724148312; 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:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=gEVg//kXWFagEYmUlluF0EJTjtWWBvabsci12NsVY+0=; b=doPsV8CL+zuYN2FdHvJB2RYLRbO2w7LEoTMwsbBwVgHsNEtzR4sXuGYjUy1H3GNm7mTnhv P5AtIVZ1w/ScEzFmxzCuSvg+so4eWwgI7W5xOyfaEzU3dy4KtKtO9Yyc5AIk8NMwFCv/z3 G70DuOZzTZwCG0J9U4VHV80fi/TD24MlvTjVKsDInl3NzCpmNpq5iqJuVALonsTZCDyC2y KZOMGi4URbt2g29EHxnIZJchgHqjAn8JV0iIn63uPPahVBAQqp9SaYPekBenJMa98p5JVi e80C1DCzTZvYxXL/ytI2OzcLJmAX7g0qMexkhiKjnDLoZ3Cf9COdqnoB1xc6Fg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1724148312; a=rsa-sha256; cv=none; b=AAWaxe5IV2Wfpmq1jJvn0p+tMxG7nQVa0x8ij5rkGYHwosGsof45OXYaIVqZ2oeNg0ow/3 sTryrVv6sLwb+PsEdur9TL2dbs8dcnr9hvJ5G2/bVpxf0W6+mDazEv+15to5v9CmNkskei ojO6tA/79E3d2ZeVJYFYd213I5sp7Wf31Hs6Bfj1LPdsc3oPBlbBENRXSRp0PsEIS+IWxw ZNtEJWHODKK4F5CYxnkAyi1UAfBuD031RUEceHvUGC5H/995JueKvgv+z1T5j6mjfNzM2Y PkjE4RcUHW6nr4yraUu1NYaq1QSXERjFYFUO6bdqPzlSCKRzxFNAnPHeL+3Gew== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=marekpasnikowski.pl header.s=dkim header.b="odjDf/P "; 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 55F3513469 for ; Tue, 20 Aug 2024 12:05:11 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sgLj4-0005Vr-U7; Tue, 20 Aug 2024 06:04:30 -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 1sgLj2-0005Vd-QK for guix-devel@gnu.org; Tue, 20 Aug 2024 06:04:28 -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 1sgLiz-0000d8-1e for guix-devel@gnu.org; Tue, 20 Aug 2024 06:04:28 -0400 Received: from localhost (localhost.local [127.0.0.1]) by localhost (OpenSMTPD) with ESMTP id 0e918e9d for ; Tue, 20 Aug 2024 10:04:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=marekpasnikowski.pl; h= from:to:subject:date:message-id:mime-version:content-type; s= dkim; bh=oSCtz/0o3qE/EEtR2JCtHZYGhaujNSzgGf6sBsCEnj4=; b=odjDf/P 4ahEsSR12+7AgtQjRFeTgnpF7+BZl21CgdN8cgXm20ovXXEevWv1qrBVH0ki1JpR zqMz45e8JY3lk0CPKGFpTCOv/AKp/Pod21vS/jKxR3tDcJbodfzSeWM07pdCsu8p mA5nx2EnqR669mpy9AhgAjrMrPkBN79agNzZKpT1Ad4BrorMUiw42JtOsqvQ5A7h FXcCtGjPmUmHpPkUcc+WBNhc4X5RUVNOaTUNFFwyQLce2hgPhHDZnvByain8Qr1o 4VNpNWUEFybcl6xh7Ot4lD+lSs5w7guRd2lGywUfTipAIShz98KC6RT68kBkjpoe 21wx21eZpOkTSIA== Received: by localhost (OpenSMTPD) with ESMTPSA id 04d3e44a (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for ; Tue, 20 Aug 2024 10:04:19 +0000 (UTC) From: =?utf-8?Q?Marek_Pa=C5=9Bnikowski?= To: guix-devel@gnu.org Subject: Global modification of #:make-flags Date: Tue, 20 Aug 2024 12:04:18 +0200 Message-ID: <87jzgbo6hp.fsf@marekpasnikowski.pl> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain 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: 55F3513469 X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -7.67 X-Spam-Score: -7.67 X-TUID: mM/KMD9/T2pO 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