Artix Linux Forum

Artix Linux => Applications & Software => Topic started by: melleus on 29 June 2023, 09:52:13

Title: libreoffice-still is completely broken again
Post by: melleus on 29 June 2023, 09:52:13
After the last update libreoffice applications trow the "error while loading shared libraries: libicuuc.so.72: cannot open shared object file: No such file or directory" error. The file  libicuuc.so.72 is missing in the system. So upset with such poor maintenance of the "still" branch. And I cannot just downgrade icu package. So sad.
Title: Re: libreoffice-still is completely broken again
Post by: Andy on 29 June 2023, 10:46:09
I agree the libicu updates are handled poor from the Artix team.
It is every time the same drama.
Some programs are using the newer version of icu some the older.
And than a lot of packages break.
I think a transition package that keep the old icu libs until all is sorted out would be a temporary solution until someone competent leads the libicu development and fixes this libicu version disaster.

Step-by-step instructions for the older icu lib hotfix:
* Get the old icu libs
  wget https://archive.artixlinux.org/repos/month/system/os/x86_64/icu-72.1-2-x86_64.pkg.tar.zst
* Install the old icu libs
   tar -xv -C /tmp --wildcards --zstd -f icu-72.1-2-x86_64.pkg.tar.zst usr/lib/libicu*
   sudo mv -f /tmp/usr/lib/libicu* /usr/local/lib/
* Activate the old libs
  sudo echo "/usr/local/lib" >>/etc/ld.so.conf.d/local.conf
  sudo ldconfig

Check:
  ldd /usr/lib/libreoffice/program/soffice.bin | grep /usr/local/lib
Title: Re: libreoffice-still is completely broken again
Post by: Artist on 29 June 2023, 11:41:12
libreoffice-fresh had already been rebuild and replaced.
The build of libroffice-still just completed, so should be fixed now.

artist
Title: Re: libreoffice-still is completely broken again
Post by: melleus on 29 June 2023, 12:36:31
Yes, now it's working (after reinstalling). Thanks to all.
Title: Re: libreoffice-still is completely broken again
Post by: gripped on 29 June 2023, 13:11:01

Step-by-step instructions for the older icu lib hotfix:
* Get the old icu libs
  wget https://archive.artixlinux.org/repos/month/system/os/x86_64/icu-72.1-2-x86_64.pkg.tar.zst
* Install the old icu libs
   tar -xv -C /tmp --wildcards --zstd -f icu-72.1-2-x86_64.pkg.tar.zst usr/lib/libicu*
   sudo mv -f /tmp/usr/lib/libicu* /usr/local/lib/
* Activate the old libs
  sudo echo "/usr/local/lib" >>/etc/ld.so.conf.d/local.conf
  sudo ldconfig

Check:
  ldd /usr/lib/libreoffice/program/soffice.bin | grep /usr/local/lib

Or just create one symlink from the new .so named as the .so the non updated and broken package is expecting.
Your solution means that all packages depending on icu will be using the older libs.
Title: Re: libreoffice-still is completely broken again
Post by: Andy on 29 June 2023, 13:28:11
Hi,

>  Your solution means that all packages depending on icu will be using the older libs.

No it will not because at the moment programs asking for a specific version i.e. libicuuc.so.72 and so
libicuuc.so.72 will be loaded from /usr/local/lib/ and libicuuc.so.73 will be loaded from /usr/lib/

See:
 strace /usr/lib/libreoffice/program/soffice.bin 2>&1 | grep libicu
Title: Re: libreoffice-still is completely broken again
Post by: Artist on 29 June 2023, 15:55:04
Hi,

>  Your solution means that all packages depending on icu will be using the older libs.

No it will not because at the moment programs asking for a specific version i.e. libicuuc.so.72 and so
libicuuc.so.72 will be loaded from /usr/local/lib/ and libicuuc.so.73 will be loaded from /usr/lib/

See:
 strace /usr/lib/libreoffice/program/soffice.bin 2>&1 | grep libicu


According to a pacman check, no program owns - so installs - /usr/local/lib/libicuuc.so.72

Code: [Select]
$ sudo pacman -Fy /usr/local/lib/libicuuc.so.*
$ sudo pacman -F /usr/lib/libicuuc.so.*
/usr/lib/libicuuc.so.73 is owned by system/icu 73.2-1
/usr/lib/libicuuc.so.73.2 is owned by system/icu 73.2-1

So it seems this file should not be on any system currently.

artist