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

Bug 918689

Summary: app-text/zotero-bin requires both gtk+:3 and gtk+:2, while is working fine with gtk+:3 only
Product: Gentoo Linux Reporter: Mantas <mantas>
Component: Current packagesAssignee: Nowa Ammerlaan <nowa>
Status: CONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Mantas 2023-11-28 10:09:55 UTC
zotero-bin ebuild has folowing in RDEPEND:
        x11-libs/gtk+:2
        x11-libs/gtk+:3

while zotero seems to work fine with only gtk+:3 installed in the system, old version dependency seems unneeded or optional

Reproducible: Always

Steps to Reproduce:
1. emerge zotero-bin on gtk-less system
2. both gtk2 and gtk3 are pulled in
3.
Comment 1 Alfred Wingate 2023-11-28 11:54:42 UTC
So zotero ships with libmozgtk.so and gtk2/libmozgtk.so. I don't know what uses the gtk2 version other than seeing that the gtk3 version is used.

[pid  1098] openat(AT_FDCWD, "/opt/zotero/libmozgtk.so", O_RDONLY) = 4
[pid  1098] openat(AT_FDCWD, "/opt/zotero/libmozgtk.so", O_RDONLY|O_CLOEXEC) = 4

So there may be some gtk2/gtk3 conditional paths or the gtk2 version is leftover.
Comment 2 Nowa Ammerlaan gentoo-dev 2023-11-28 12:29:22 UTC
I think (but I am not sure) that gtk2 (via gtk2/libmozgtk.so) might be required for some plugins.
Comment 3 Mantas 2023-12-15 09:57:01 UTC
Would it be suitable to put gtk2 dependency behind a useflag?
Comment 4 Adrian Bassett 2024-09-01 18:45:57 UTC
(In reply to Andrew Nowa Ammerlaan from comment #2)
> I think (but I am not sure) that gtk2 (via gtk2/libmozgtk.so) might be
> required for some plugins.
In a sense this discussion is somewhat redundant as 6.0.x is now superseded by the 7.0.x series, in what is a major upgrade.  See:

https://www.zotero.org/blog/zotero-7/

In this version there is now only libmmozgtk.so, so no gtk2.

It may be that some 6.0.x (and earlier) plugins did require gtk2 but, as all plugins for 7.0.x have had either to be re-written against the new infrasture (or else have been retired), I would be surprised if that were to be the case now. 

Hope this helps...
Comment 5 Adrian Bassett 2024-09-01 19:45:35 UTC
(In reply to Adrian Bassett from comment #4)
^infrasture^infrastructure