Re: F40 Change Proposal: Optimized Binaries for the AMD64 Architecture (System-Wide)

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

 



Il 28/12/23 18:25, Robert Marcano via devel ha scritto:
> On 12/28/23 12:58 PM, Chris Adams wrote:
>> Once upon a time, Aoife Moloney <amoloney@xxxxxxxxxx> said:
>>> Systemd will be modified to insert the additional directories into the
>>> `$PATH` environment variable (affecting all programs on the system)
>> Anything that depends on PATH entries is IMHO doomed to failure.  There
>> are way too many things that explicitly set PATH to "known" values (for
>> good and bad reasons) to be able to depend on extending it.  Heck, it
>> took a long time to get sudo just to include /usr/local/{bin,sbin}.
>>
> Maybe replacing the /usr/bin related entries with a generic wrapper that
> launch the best binary from the per architecture directories.
>
> Note: This may affect a few programs that use argv[0] for something
> meaningful.
> --

I've got not much knowledge on this matter, anyway here's my 2c:

Since we're talking about a few packages that will gain from this change 
and that they're must be manually "enabled" to build with this feature, 
I'd prefer this kind of wrapper approach instead of changing the PATH 
globally.

Maybe a RPM macro could be provided for using in specfile where we want 
optimized binaries. Those binaries will be created like 'xz-x86-64-v2', 
'xz-x86-64-v3' and so on and all installed in /usr/bin. Then a 'xz' 
wrapper will call the appropriate executable based on what supported 
instruction set is detected available. And maybe in future we could have 
dnf to install the appropriate optimized subpackage binaries.

It may be much more complex than just injecting new PATHs, but I think 
it's more elegant and could be a shared mechanism with other linux 
distributions.

Mattia

--
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux