guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: substitute derivation: also substitute grafts?


From: Maxime Devos
Subject: Re: substitute derivation: also substitute grafts?
Date: Thu, 15 Sep 2022 19:51:28 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0



On 15-09-2022 19:43, Csepp wrote:
Could we store the offsets of references somewhere at build time?

I now remember that idea, I forgot about that one.

My answer: I don't see why not, maybe by adding a phase to %standard-phases (at the very end, to avoid it becoming invalid) that saves it in, say, OUTPUT/.graft-offsets?

That would avoid grafting files that don't even have any references, where a copy-file (maybe using copy_file_range or such when available)
would suffice.

Fallbacks might be necessary (not every store item is constructed from a package), but it all sounds doable and efficient. Also the union could needs to be modified to ignore the .graft-offsets of the union'ed things.

Greetings,
Maxime.

Attachment: OpenPGP_0x49E3EE22191725EE.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]