We have moved to a new Sailfish OS Forum. Please start new discussions there.
4

Please include /usr/local/lib in /etc/ld.so.conf.d/

asked 2019-07-13 12:05:39 +0300

mortenbo gravatar image

updated 2019-07-16 14:08:33 +0300

rozgwi gravatar image

/usr/local/lib is not included by default in /etc/ld.so.conf.d/ which means that some programs from e.g. openrepos will not work -- until you include it. One or two users might stumble on that, so including it would be a good thing.

edit retag flag offensive close delete

Comments

What device and version?

Giacomo Di Giacomo ( 2019-07-13 13:38:41 +0300 )edit

It is the latest version, 3.0.3.10 (Hossa). I should have mentioned that, but surely this would most probably apply to all versions? Device XA2.

mortenbo ( 2019-07-14 10:37:02 +0300 )edit

1 Answer

Sort by » oldest newest most voted
3

answered 2019-07-17 11:01:38 +0300

DrYak gravatar image

updated 2019-07-17 11:20:04 +0300

Maus gravatar image

Yes, /usr/local should normally be included, but...

That is actually a bug for the package on openrepos, too!

Standard practice for prefixes:

  • /usr/local is used for stuff that you yourself compile locally (as in, running ./configure && make && devel-su make install on your phone's shell). Maybe that's why Jolla forgot it? They didn't pre-install gcc etc. so perhaps they weren't expecting people to compile locally.
  • /usr is used by your system, i.e.: everything you install with a package manager. Either base system or extensions from 3rd party oackage repos. (and that's litteraly what openrepos and mer's OBS are). So it's an error by the packager, they've forgotten to put the prefix in the SPEC file for building the RPM.
  • /opt is used for 3rd party vendor software that usually isn't even packaged. (e.g.: install scripts of NVidia CUDA put system-wide installation there, and in the case of Sailfish, that's where Aliendalvik Android application compatibility layer resides).

you should kindly ask the packager to put their stuff in /usr prefix, it's an error to put it in /usr/local.

edit flag offensive delete publish link more

Comments

But I won't encounter the problem anymore as I have corrected it at my end - and therefore I'll have no way of knowing if a packager put the stuff in the "wrong place". At least on Debian, including /usr/local/lib is the default, so I hope the developers will consider this.

mortenbo ( 2019-07-17 20:41:58 +0300 )edit
Login/Signup to Answer

Question tools

Follow
2 followers

Stats

Asked: 2019-07-13 12:05:39 +0300

Seen: 323 times

Last updated: Jul 17 '19