Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 886341

Summary: app-office/wps-office missing dependency on media-libs/tiff-compat
Product: Gentoo Linux Reporter: vowstar <vowstar>
Component: Current packagesAssignee: Pacho Ramos <pacho>
Status: RESOLVED FIXED    
Severity: normal CC: ionen, universebenzene
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=886345
Whiteboard:
Package list:
Runtime testing required: ---

Description vowstar 2022-12-16 14:49:02 UTC
Recently I upgraded from media-libs/tiff-4.4.0-r2 to media-libs/tiff-4.5.0, and found that some binary packages do not work,

The reason is that media-libs/tiff-4.4.0-r2 compiles to get

   /usr/lib/libtiffxx.so.5.8.0
   /usr/lib/libtiff.so.5.8.0
   /usr/lib64/libtiffxx.so.5.8.0
   /usr/lib64/libtiff.so.5.8.0

However 
media-libs/tiff-4.5.0 compiled to get
   /usr/lib/libtiffxx.so.6.0.0
   /usr/lib/libtiff.so.6.0.0
   /usr/lib64/libtiffxx.so.6.0.0
   /usr/lib64/libtiff.so.6.0.0

At this time, some binary packages, such as ::gentoo/app-office/wps-office, will crash because libtiff.so.5 cannot be found, and several binary packages are affected, such as ::guru/media-gfx/zw3d and
::gentoo-zh/net-im/wemeet etc.

Reproducible: Always

Steps to Reproduce:
1. install media-libs/tiff-4.4.0-r2:0 (libtiff.so.5)
2. install app-office/wps-office
3. wps works
4. remove app-office/wps-office
5. upgrade to media-libs/tiff-4.5.0:0 (libtiff.so.6)
6. install app-office/wps-office
7. wps crashed by not found libtiff.so.5
Actual Results:  
wps crashed

Expected Results:  
wps works

The so suffix of media-libs/tiff-4.5.0 has changed. Using slot 0 may cause many problems that prevent the binary package from finding the so library file. It may be better to use slot 6.
Comment 1 Ionen Wolkens gentoo-dev 2022-12-16 14:57:42 UTC
For binary packages, media-libs/tiff-compat exists and they should depend on it.

All ebuilds in ::gentoo with a dependency on tiff were updated already, although wps-office's ebuild currently doesn't depend on tiff at all? (would explain why it was missed)
Comment 2 vowstar 2022-12-16 15:09:19 UTC
(In reply to Ionen Wolkens from comment #1)
> For binary packages, media-libs/tiff-compat exists and they should depend on
> it.
> 
> All ebuilds in ::gentoo with a dependency on tiff were updated already,
> although wps-office's ebuild currently doesn't depend on tiff at all? (would
> explain why it was missed)


Thanks Reply,

The originally dependent media-libs/tiff-4.4:0 needs to be changed to media-libs/tiff-compat-4.4:4, I try to change the dependencies in my overlay.
Comment 3 Ionen Wolkens gentoo-dev 2022-12-16 15:46:53 UTC
Guess there's nothing to do in ::gentoo but fix wps-office for this bug (I'll go ahead and do it), for anything else please fill bugs against the specific overlay+packages.
Comment 4 Larry the Git Cow gentoo-dev 2022-12-16 15:48:50 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=966483b2cc8774657dab45c8bb08ca7f6261e7b6

commit 966483b2cc8774657dab45c8bb08ca7f6261e7b6
Author:     Ionen Wolkens <ionen@gentoo.org>
AuthorDate: 2022-12-16 15:18:25 +0000
Commit:     Ionen Wolkens <ionen@gentoo.org>
CommitDate: 2022-12-16 15:47:47 +0000

    app-office/wps-office: depend on tiff-compat
    
    Currently did not depend on tiff, but three libraries are
    linked with libtiff.so.5 (e.g. libqtiff.so) which may now
    more easily be missing.
    
    Also replaced atk/pulse deprecated deps while here.
    
    Closes: https://bugs.gentoo.org/886341
    Signed-off-by: Ionen Wolkens <ionen@gentoo.org>

 ...fice-11.1.0.11664-r2.ebuild => wps-office-11.1.0.11664-r3.ebuild} | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
Comment 5 vowstar 2022-12-16 16:00:54 UTC
Thank you very much!
Comment 6 Larry the Git Cow gentoo-dev 2022-12-16 16:39:26 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=14ef5761832736435903ff8e0ed3cac8a9b70503

commit 14ef5761832736435903ff8e0ed3cac8a9b70503
Author:     Huang Rui <vowstar@gmail.com>
AuthorDate: 2022-12-16 15:19:22 +0000
Commit:     Huang Rui <vowstar@gmail.com>
CommitDate: 2022-12-16 15:19:22 +0000

    media-gfx/zw3d: depend media-libs/tiff-compat:4
    
    Bug: https://bugs.gentoo.org/886341
    Signed-off-by: Huang Rui <vowstar@gmail.com>

 media-gfx/zw3d/zw3d-2022.0.3.1-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 7 Pacho Ramos gentoo-dev 2022-12-18 10:25:35 UTC
Thanks Ionen!