From: "Marek Paśnikowski" <marek@marekpasnikowski.pl>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: guix-devel@gnu.org
Subject: Re: Global modification of #:make-flags
Date: Fri, 06 Sep 2024 18:27:27 +0200 [thread overview]
Message-ID: <878qw4oihc.fsf@marekpasnikowski.pl> (raw)
In-Reply-To: <8734mxpp5f.fsf@gnu.org> ("Ludovic Courtès"'s message of "Wed, 21 Aug 2024 23:00:28 +0200")
Ludovic Courtès <ludo@gnu.org> writes:
Good afternoon.
I apologise for late reply — I am still catching up with my digital life
backlog.
> Hi,
>
> Marek Paśnikowski <marek@marekpasnikowski.pl> 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’s build system, I would use a
> strategy similar to that of ‘--tune’.
>
> For ‘--tune’, the ‘tuning-compiler’ procedure in (guix transformations)
> produces a compiler wrapper that passes ‘-march=whatever’, and
> ‘tuned-package’ injects that wrapper in the package of interest.
>
> In fact you could reuse most of the code here to do what you want. And
> we could create a package transformation for ‘-Os’. Could 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.
“Given MAPPING, a list of pairs of derivations, return a derivation
based on DRV where all the 'car's of MAPPING have been replaced by its
'cdr's, recursively.”
Should I get more familiar with this function, if I want to transform
operating-system?
next prev parent reply other threads:[~2024-09-06 16:28 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-20 10:04 Global modification of #:make-flags Marek Paśnikowski
2024-08-20 10:29 ` Sarthak Shah
2024-08-20 13:13 ` Suhail Singh
2024-08-20 23:42 ` Sarthak Shah
2024-08-21 6:54 ` Suhail Singh
2024-08-21 7:27 ` Sarthak Shah
2024-08-21 14:37 ` Suhail Singh
2024-08-22 16:14 ` Sergio Pastor Pérez
2024-08-23 9:01 ` Sarthak Shah
2024-08-21 7:09 ` Marek Paśnikowski
2024-08-21 7:21 ` Sarthak Shah
2024-08-21 7:34 ` Marek Paśnikowski
2024-08-21 7:45 ` Sarthak Shah
2024-08-21 8:42 ` Marek Paśnikowski
2024-08-21 21:00 ` Ludovic Courtès
2024-09-06 16:27 ` Marek Paśnikowski [this message]
2024-08-22 16:35 ` Sergio Pastor Pérez
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=878qw4oihc.fsf@marekpasnikowski.pl \
--to=marek@marekpasnikowski.pl \
--cc=guix-devel@gnu.org \
--cc=ludo@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.