Artix Linux Forum

Artix Linux => Package management => Topic started by: dreieck on 15 March 2023, 14:47:25

Title: libreoffice-still: Depends on wrong version of liborcus, fails to start.
Post by: dreieck on 15 March 2023, 14:47:25
omniverse/libreoffice-still depends on wrong version of world/liborcus:

Preparation to make sure things are up to date and from the correct repositories:

Code: [Select]
pacman -Syu
pacman -S --asdeps world/liborcus
pacman -S omniverse/libreoffice-still

Running libreoffice
Code: [Select]
/usr/lib/libreoffice/program/soffice.bin: error while loading shared libraries: liborcus-0.17.so.0: cannot open shared object file: No such file or directory


Current package versions:


Doing the unsupported thing and installing extra/liborcus (version 0.17.2-4) from the Arch repositories makes libreoffice-still happy.

Regards!
Title: Re: libreoffice-still: Depends on wrong version of liborcus, fails to start.
Post by: TheExplorer on 15 March 2023, 22:42:15
Oh, nice find. Though I installed libreoffice-fresh from Artix repos (I don't mix with Arch at all) today and it also doesn't work. It segfaults/crashes. Here's my message (https://forum.artixlinux.org/index.php/topic,5157.msg33266.html#msg33266) on this forum. Don't know how to fix it :-/
Title: Re: libreoffice-still: Depends on wrong version of liborcus, fails to start.
Post by: Artist on 15 March 2023, 23:04:36
What happens if you run:
sudo pacman -U https://archive.artixlinux.org/packages/l/liborcus/liborcus-0.17.2-4-x86_64.pkg.tar.zst
and start LO again?

artist
Title: Re: libreoffice-still: Depends on wrong version of liborcus, fails to start.
Post by: dreieck on 16 March 2023, 09:20:14
omniverse/libreoffice-still depends on wrong version of world/liborcus:
[...]
Running libreoffice: 
Code: [Select]
/usr/lib/libreoffice/program/soffice.bin: error while loading shared libraries: liborcus-0.17.so.0: cannot open shared object file: No such file or directory

Current package versions:
  • liborcus 0.18.1-1
  • libreoffice-still 7.4.6-1

Doing the unsupported thing and installing extra/liborcus (version 0.17.2-4) from the Arch repositories makes libreoffice-still happy.

I now see that a quick workaround has appeared in the omniverse repository:


With omniverse/liborcus 0.17.2-4, omniverse/libreoffice-still 7.4.6-1.1 works.

But there is also a world/liborcus 0.18.1-1.

Looks like a quick and dirty workaround, since now there are two different liborcus versions in the Artix repositories.

It requires manual intervention at every update (to ignore liborcus), and might break other things, if other packages are linked agaonst world/liborcus 0.18.1-1.

I highly recommend that omniverse/libreoffice-still gets linked against up to date world/liborcus.

Regards!
Title: Re: libreoffice-still: Depends on wrong version of liborcus, fails to start.
Post by: Artist on 16 March 2023, 12:30:58
liborcus 0.18.1-1, and also mdds 2.1.0, were probably not yet supposed to be available.
Also, libreoffice does not build with it.
So it's best to keep liborcus 0.18.1-1 on 0.17.2 and mdds on 2.0.3 using ignorepkg in pacman.conf, and downgrade using https://archive.artixlinux.org/ if needed.
The only packages that depend on liborcus should be LO-fresh and -still.

artist
Title: Re: libreoffice-still: Depends on wrong version of liborcus, fails to start.
Post by: TheExplorer on 16 March 2023, 13:01:45
What happens if you run:
sudo pacman -U https://archive.artixlinux.org/packages/l/liborcus/liborcus-0.17.2-4-x86_64.pkg.tar.zst
and start LO again?

artist

Yes. It solves the issue. Thank you very much!
Title: Downgrade, and increment $epoch?
Post by: dreieck on 16 March 2023, 14:27:58
liborcus 0.18.1-1, and also mdds 2.1.0, were probably not yet supposed to be available.

Thanks for the explanation.

I am courious: Why then did they get available?

So it's best to keep liborcus 0.18.1-1 on 0.17.2 and mdds on 2.0.3 using ignorepkg in pacman.conf, and downgrade using https://archive.artixlinux.org/ if needed.

Would a clean solution to users then be to "downgrade" them to the older version, and increment $epoch, so that automatic update calculation solves the issue? If they should not be available, they should be replaced by the versions that should be available.

It would also break fresh installations, where people do not search the forum to find this discussion here (which cannot be assumed).

Regards!
Title: Now fixed, but now /usr/bin/libreoffice is missing.
Post by: dreieck on 18 March 2023, 12:07:35
omniverse/libreoffice-still depends on wrong version of world/liborcus

Now I see that omniverse/libreoffice-still is updated to not depend anymore on liborcus at all.

But now it breaks usability because /usr/bin/libreoffice is missing (https://forum.artixlinux.org/index.php/topic,5222.html).

Regards!