unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Everytime I install a package a symlink to ld.so.cache is created in $GUIX_PROFILE/etc, why?
       [not found] <1435246653.1704093.1645802216880.ref@mail.yahoo.com>
@ 2022-02-25 15:16 ` vapnik spaknik
  2022-02-25 15:36   ` Maxime Devos
  0 siblings, 1 reply; 3+ messages in thread
From: vapnik spaknik @ 2022-02-25 15:16 UTC (permalink / raw)
  To: guix-devel

I've noticed that whenever I install a new package guix symlinks the ld.so.cache file in that package to the etc subdir of my guix profile directory (on a foreign distro). I was a bit suspicious when I first noticed this, but then I discovered that it does this for every new package. Why?

Joe


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Everytime I install a package a symlink to ld.so.cache is created in $GUIX_PROFILE/etc, why?
  2022-02-25 15:16 ` Everytime I install a package a symlink to ld.so.cache is created in $GUIX_PROFILE/etc, why? vapnik spaknik
@ 2022-02-25 15:36   ` Maxime Devos
  2022-02-25 16:04     ` vapnik spaknik
  0 siblings, 1 reply; 3+ messages in thread
From: Maxime Devos @ 2022-02-25 15:36 UTC (permalink / raw)
  To: vapnik spaknik, guix-devel

[-- Attachment #1: Type: text/plain, Size: 916 bytes --]

vapnik spaknik schreef op vr 25-02-2022 om 15:16 [+0000]:
> I've noticed that whenever I install a new package guix symlinks
> the ld.so.cache file in that package to the etc subdir of my
> guix profile directory (on a foreign distro). I was a bit suspicious
> when I first noticed this, but then I discovered that it does this
> for every new package. Why?

See <https://guix.gnu.org/en/blog/2021/taming-the-stat-storm-with-a-loader-cache/>.

Also, unless there's a bug, guix does not replace the etc/ld.so.cache
in the store item of the installed package by a symlink -- store items
can (normally) not be modified after the fact.

However, ~/.guix-profile/etc/ld.so.cache _is_ a symlink to some ld.so.cache
of some arbitrary package in the profile.  This seems harmles to me, though
pointless, perhaps the profile building code should be modified to ignore
etc/ld.so.cache?

Greetings,
Maxime.

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 260 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Everytime I install a package a symlink to ld.so.cache is created in $GUIX_PROFILE/etc, why?
  2022-02-25 15:36   ` Maxime Devos
@ 2022-02-25 16:04     ` vapnik spaknik
  0 siblings, 0 replies; 3+ messages in thread
From: vapnik spaknik @ 2022-02-25 16:04 UTC (permalink / raw)
  To: guix-devel, Maxime Devos





> On Friday, February 25, 2022, 03:36:32 PM GMT, Maxime Devos <maximedevos@telenet.be> wrote: 

> vapnik spaknik schreef op vr 25-02-2022 om 15:16 [+0000]:

>> I've noticed that whenever I install a new package guix symlinks
>> the ld.so.cache file in that package to the etc subdir of my
>> guix profile directory (on a foreign distro). I was a bit suspicious
>> when I first noticed this, but then I discovered that it does this
>> for every new package. Why?
>
>See <https://guix.gnu.org/en/blog/2021/taming-the-stat-storm-with-a-loader-cache/>.
>
>Also, unless there's a bug, guix does not replace the etc/ld.so.cache
>in the store item of the installed package by a symlink -- store items
>can (normally) not be modified after the fact.
>
>However, ~/.guix-profile/etc/ld.so.cache _is_ a symlink to some ld.so.cache
>of some arbitrary package in the profile.  This seems harmles to me, though
>pointless, perhaps the profile building code should be modified to ignore
>etc/ld.so.cache?
>
>Greetings,
>Maxime.

Yes, I meant ~/.guix-profile/etc/ld.so.cache 
It links to the ld.so.cache in the package dir of the last installed package. If that package, say X, is uninstalled, then it seems that ~/.guix-profile/etc/ld.so.cache links to the package that was installed before X. 


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-02-25 16:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1435246653.1704093.1645802216880.ref@mail.yahoo.com>
2022-02-25 15:16 ` Everytime I install a package a symlink to ld.so.cache is created in $GUIX_PROFILE/etc, why? vapnik spaknik
2022-02-25 15:36   ` Maxime Devos
2022-02-25 16:04     ` vapnik spaknik

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).