in v5.0 missing ld.so.cache

Non release banter
itrukrakso
Black ninja
Black ninja
Posts: 62
Joined: 23 Jul 2022, 07:42
Distribution: Porteus 5.01_x86_64 Xfce

in v5.0 missing ld.so.cache

Post#1 by itrukrakso » 29 Jul 2022, 23:20

HI all,

I noticed that porteus 5.0 does not create the file /etc/ld.so.cache on startup.
This leads to problems with some applications.
If I insert a module in the terminal with activate or install a package ldconfig is executed
and the said file is created.
In RC3 this problem did not exist and I think in 5.0 it should be the same.

burdi01
Shogun
Shogun
Posts: 206
Joined: 18 Aug 2013, 12:09
Distribution: Slackware PartedMagic Xubuntu
Location: The Netherlands

in v5.0 missing ld.so.cache

Post#2 by burdi01 » 30 Jul 2022, 09:42

With the Porteus-XFCE-v5.0-x86_64.iso the /etc/ld.so.cache file is not existing after boot nor after activating e.g. the netsurf xzm. Running ldconfig as root sometimes (!?!) gives a bus error.
With the Cinnamon iso the file seems to be pre-existing (dated Feb 14, 2020). Running ldconfig creates a much smaller file.
What version do you run and what problems with what applications do you see?
:D

burdi01
Shogun
Shogun
Posts: 206
Joined: 18 Aug 2013, 12:09
Distribution: Slackware PartedMagic Xubuntu
Location: The Netherlands

in v5.0 missing ld.so.cache

Post#3 by burdi01 » 30 Jul 2022, 11:42

<double post>
Last edited by burdi01 on 31 Jul 2022, 08:48, edited 1 time in total.

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3933
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

in v5.0 missing ld.so.cache

Post#4 by ncmprhnsbl » 30 Jul 2022, 22:34

yeah.. this is one those things that's been pushed to the side for a while .. i don't think it would have been much different in RC3 ...
ldconfig is called by activate, so activating a module should 'fix' the issue (superficially) ..

originally, the cache was generated as part of the build process of each 003-DE module (technically after build, booted,generated then added back to the tree and rebuilt)
but as brokenman hand responsibility for 003-DEs to others, this trick was not apparent in the build scripts..
..jssouza it seems had an awareness of this, hence cinnamon and kde at least retained the cache in their trees ... myself and fulalas, not so much..

i see two ways to go: put it more firmly into the cache update part of the build process(ie. in cache-module script) or put it(ldconfig) in the boot process..
my thinking now, is more toward that ldconfig should added somewhere in the boot process (rc.S or something) so that any extra modules loaded are covered too..
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

burdi01
Shogun
Shogun
Posts: 206
Joined: 18 Aug 2013, 12:09
Distribution: Slackware PartedMagic Xubuntu
Location: The Netherlands

in v5.0 missing ld.so.cache

Post#5 by burdi01 » 31 Jul 2022, 09:12

Liveslak and I run ldconfig during boot, PartedMagic does it during the build.
:D

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3933
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

in v5.0 missing ld.so.cache

Post#6 by ncmprhnsbl » 01 Aug 2022, 00:01

yeah, i'll add it to the init processes somewhere for the next update..
in the meantime, workarounds are:
activate a module :)
possibly: cheatcode: cliexec=ldconfig
or stick it in /etc/rc.d/rc.local
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

itrukrakso
Black ninja
Black ninja
Posts: 62
Joined: 23 Jul 2022, 07:42
Distribution: Porteus 5.01_x86_64 Xfce

in v5.0 missing ld.so.cache

Post#7 by itrukrakso » 01 Aug 2022, 19:45

@ncmprhnsbl
Thank you for the detailed answer.
I now know that a solution is being worked on.
ncmprhnsbl wrote:
...i don't think it would have been much different in RC3...
You are right, i checked again in my RC3.
The cache was included statically by me.

So i wait for the update and until then i use a modified rc.M
Thanks

Post Reply