public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Dependency missing for libreoffice-bin?
@ 2025-02-13 19:51 Grant Edwards
  2025-02-14 21:11 ` Michael
  2025-02-16  3:11 ` [gentoo-user] " Eli Schwartz
  0 siblings, 2 replies; 13+ messages in thread
From: Grant Edwards @ 2025-02-13 19:51 UTC (permalink / raw
  To: gentoo-user

Does this message from emerge --depclean mean that there's a
dependency on dev-qt/qtx11extras:5 missing from the libreoffice-bin
ebuild?

Or have I managed to break something?

    $ sudo emerge --depclean --ask
    Password: 
    
     * Always study the list of packages [...]
     
    Calculating dependencies... done!
    >>> Checking for lib consumers...
    >>> Assigning files to packages...
     * In order to avoid breakage of link level dependencies, one or more
     * packages will not be removed. This can be solved by rebuilding the
     * packages that pulled them in.
     * 
     *   dev-qt/qtx11extras-5.15.16 pulled in by:
     *     app-office/libreoffice-bin-24.2.7.2 needs libQt5X11Extras.so.5
     * 

I've also noticed that the output from equery --depends isn't
particularly useful when the dependancy is conditional:

    $ equery depends dev-qt/qtx11extras
     * These packages depend on dev-qt/qtx11extras:
    app-crypt/pinentry-1.3.1 (X ? dev-qt/qtx11extras:5)
                             (X ? dev-qt/qtx11extras:5)
    media-libs/suil-0.10.20 (qt5 ? dev-qt/qtx11extras:5)
                            (qt5 ? dev-qt/qtx11extras:5)

It _looks_ like pinentry should require qtx11extras, since pinentry is
installed with the X use flag:

    $ emerge -av --pretend app-crypt/pinentry
    [...]
    [ebuild   R    ] app-crypt/pinentry-1.3.1::gentoo  USE="X gtk ncurses -caps -efl -emacs -keyring -qt5 -qt6 -verify-sig -wayland" 0 KiB

However, the _actual_ dependency isn't just (X ? dev-qt/qtx11extras:5)
as shown by equery, it is

    (qt5 ? (X ? dev-qt/qtx11extras:5)

I guess I need to find someththing better than 'equery depends'.




^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [gentoo-user] Dependency missing for libreoffice-bin?
  2025-02-13 19:51 [gentoo-user] Dependency missing for libreoffice-bin? Grant Edwards
@ 2025-02-14 21:11 ` Michael
  2025-02-15  5:03   ` [gentoo-user] " Grant Edwards
  2025-02-16  3:11 ` [gentoo-user] " Eli Schwartz
  1 sibling, 1 reply; 13+ messages in thread
From: Michael @ 2025-02-14 21:11 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 7809 bytes --]

On Thursday 13 February 2025 19:51:57 Greenwich Mean Time Grant Edwards wrote:
> Does this message from emerge --depclean mean that there's a
> dependency on dev-qt/qtx11extras:5 missing from the libreoffice-bin
> ebuild?
> 
> Or have I managed to break something?
> 
>     $ sudo emerge --depclean --ask
>     Password:
> 
>      * Always study the list of packages [...]
> 
>     Calculating dependencies... done!
> 
>     >>> Checking for lib consumers...
>     >>> Assigning files to packages...
> 
>      * In order to avoid breakage of link level dependencies, one or more
>      * packages will not be removed. This can be solved by rebuilding the
>      * packages that pulled them in.
>      *
>      *   dev-qt/qtx11extras-5.15.16 pulled in by:
>      *     app-office/libreoffice-bin-24.2.7.2 needs libQt5X11Extras.so.5
>      *

Hmm, I have app-office/libreoffice-bin-24.2.7.2 installed on one PC, but do 
not have the same USE flags as you do and I do not get the same --depclean 
output complaining about dev-qt/qtx11extras::

~ $ emerge -av --pretend app-crypt/pinentry

These are the packages that would be merged, in order:

Calculating dependencies... done!
Dependency resolution took 7.10 s (backtrack: 0/20).

[ebuild   R    ] app-crypt/pinentry-1.3.1::gentoo  USE="X ncurses qt5 qt6 
wayland -caps -efl -emacs -gtk -keyring -verify-sig" 597 KiB

This is my profile:

~ $ eselect profile show
Current /etc/portage/make.profile symlink:
  default/linux/amd64/23.0/desktop/plasma


> I've also noticed that the output from equery --depends isn't
> particularly useful when the dependancy is conditional:
> 
>     $ equery depends dev-qt/qtx11extras
>      * These packages depend on dev-qt/qtx11extras:
>     app-crypt/pinentry-1.3.1 (X ? dev-qt/qtx11extras:5)
>                              (X ? dev-qt/qtx11extras:5)
>     media-libs/suil-0.10.20 (qt5 ? dev-qt/qtx11extras:5)
>                             (qt5 ? dev-qt/qtx11extras:5)

~ $ equery depends dev-qt/qtx11extras
 * These packages depend on dev-qt/qtx11extras:
app-crypt/pinentry-1.3.1 (X ? dev-qt/qtx11extras:5)
                         (X ? dev-qt/qtx11extras:5)
kde-frameworks/kcrash-5.116.0 (X ? >=dev-qt/qtx11extras-5.15.9:5)
                              (X ? >=dev-qt/qtx11extras-5.15.9:5)
kde-frameworks/kdbusaddons-5.116.0 (X ? >=dev-qt/qtx11extras-5.15.9:5)
                                   (X ? >=dev-qt/qtx11extras-5.15.9:5)
kde-frameworks/kglobalaccel-5.116.0-r1 (>=dev-qt/qtx11extras-5.15.9:5)
                                       (>=dev-qt/qtx11extras-5.15.9:5)
kde-frameworks/kguiaddons-5.116.0-r1 (X ? >=dev-qt/qtx11extras-5.15.9:5)
                                     (X ? >=dev-qt/qtx11extras-5.15.9:5)
kde-frameworks/kio-5.116.0-r3 (X ? >=dev-qt/qtx11extras-5.15.9:5)
                              (X ? >=dev-qt/qtx11extras-5.15.9:5)
kde-frameworks/kjobwidgets-5.116.0 (X ? >=dev-qt/qtx11extras-5.15.9:5)
                                   (X ? >=dev-qt/qtx11extras-5.15.9:5)
kde-frameworks/knotifications-5.116.0 (X ? >=dev-qt/qtx11extras-5.15.9:5)
                                      (X ? >=dev-qt/qtx11extras-5.15.9:5)
kde-frameworks/kwindowsystem-5.116.0 (X ? >=dev-qt/qtx11extras-5.15.9:5)
                                     (X ? >=dev-qt/qtx11extras-5.15.9:5)
kde-plasma/breeze-6.2.5 (qt5 ? >=dev-qt/qtx11extras-5.15.12:5)
                        (qt5 ? >=dev-qt/qtx11extras-5.15.12:5)
kde-plasma/oxygen-6.2.5 (X ? >=dev-qt/qtx11extras-5.15.12:5)
                        (X ? >=dev-qt/qtx11extras-5.15.12:5)
kde-plasma/plasma-integration-6.2.5 (qt5 ? >=dev-qt/qtx11extras-5.15.12:5)
                                    (qt5 ? >=dev-qt/qtx11extras-5.15.12:5)
media-video/vlc-3.0.21-r3 (X ? dev-qt/qtx11extras:5)
                          (X ? dev-qt/qtx11extras:5)


> It _looks_ like pinentry should require qtx11extras, since pinentry is
> installed with the X use flag:
> 
>     $ emerge -av --pretend app-crypt/pinentry
>     [...]
>     [ebuild   R    ] app-crypt/pinentry-1.3.1::gentoo  USE="X gtk ncurses
> -caps -efl -emacs -keyring -qt5 -qt6 -verify-sig -wayland" 0 KiB

~ $ emerge -av --pretend app-crypt/pinentry

These are the packages that would be merged, in order:

Calculating dependencies... done!
Dependency resolution took 7.10 s (backtrack: 0/20).

[ebuild   R    ] app-crypt/pinentry-1.3.1::gentoo  USE="X ncurses qt5 qt6 
wayland -caps -efl -emacs -gtk -keyring -verify-sig" 597 KiB

Total: 1 package (1 reinstall), Size of downloads: 597 KiB
michael@aspire ~ $ equery depends dev-qt/qtx11extras
 * These packages depend on dev-qt/qtx11extras:
app-crypt/pinentry-1.3.1 (X ? dev-qt/qtx11extras:5)
                         (X ? dev-qt/qtx11extras:5)
kde-frameworks/kcrash-5.116.0 (X ? >=dev-qt/qtx11extras-5.15.9:5)
                              (X ? >=dev-qt/qtx11extras-5.15.9:5)
kde-frameworks/kdbusaddons-5.116.0 (X ? >=dev-qt/qtx11extras-5.15.9:5)
                                   (X ? >=dev-qt/qtx11extras-5.15.9:5)
kde-frameworks/kglobalaccel-5.116.0-r1 (>=dev-qt/qtx11extras-5.15.9:5)
                                       (>=dev-qt/qtx11extras-5.15.9:5)
kde-frameworks/kguiaddons-5.116.0-r1 (X ? >=dev-qt/qtx11extras-5.15.9:5)
                                     (X ? >=dev-qt/qtx11extras-5.15.9:5)
kde-frameworks/kio-5.116.0-r3 (X ? >=dev-qt/qtx11extras-5.15.9:5)
                              (X ? >=dev-qt/qtx11extras-5.15.9:5)
kde-frameworks/kjobwidgets-5.116.0 (X ? >=dev-qt/qtx11extras-5.15.9:5)
                                   (X ? >=dev-qt/qtx11extras-5.15.9:5)
kde-frameworks/knotifications-5.116.0 (X ? >=dev-qt/qtx11extras-5.15.9:5)
                                      (X ? >=dev-qt/qtx11extras-5.15.9:5)
kde-frameworks/kwindowsystem-5.116.0 (X ? >=dev-qt/qtx11extras-5.15.9:5)
                                     (X ? >=dev-qt/qtx11extras-5.15.9:5)
kde-plasma/breeze-6.2.5 (qt5 ? >=dev-qt/qtx11extras-5.15.12:5)
                        (qt5 ? >=dev-qt/qtx11extras-5.15.12:5)
kde-plasma/oxygen-6.2.5 (X ? >=dev-qt/qtx11extras-5.15.12:5)
                        (X ? >=dev-qt/qtx11extras-5.15.12:5)
kde-plasma/plasma-integration-6.2.5 (qt5 ? >=dev-qt/qtx11extras-5.15.12:5)
                                    (qt5 ? >=dev-qt/qtx11extras-5.15.12:5)
media-video/vlc-3.0.21-r3 (X ? dev-qt/qtx11extras:5)
                          (X ? dev-qt/qtx11extras:5)

> However, the _actual_ dependency isn't just (X ? dev-qt/qtx11extras:5)
> as shown by equery, it is
> 
>     (qt5 ? (X ? dev-qt/qtx11extras:5)
> 
> I guess I need to find someththing better than 'equery depends'.

Here's the lot for your perusal via qdepends:

~ $ qdepends -v pinentry
app-crypt/pinentry-1.3.1:
DEPEND="
    >=dev-libs/libassuan-2.1:0/3.0=
    >=dev-libs/libgcrypt-1.6.3
    >=dev-libs/libgpg-error-1.17
    sys-libs/ncurses:0/6=
    dev-qt/qtcore:5
    dev-qt/qtgui:5
    dev-qt/qtwidgets:5
    kde-plasma/kwayland:5
    dev-qt/qtx11extras:5
    x11-libs/libX11
    dev-qt/qtbase:6[gui,widgets]
    kde-frameworks/kguiaddons:6
    kde-frameworks/kwindowsystem:6
"
RDEPEND="
    >=dev-libs/libassuan-2.1:0/3.0=
    >=dev-libs/libgcrypt-1.6.3
    >=dev-libs/libgpg-error-1.17
    sys-libs/ncurses:0/6=
    dev-qt/qtcore:5
    dev-qt/qtgui:5
    dev-qt/qtwidgets:5
    kde-plasma/kwayland:5
    dev-qt/qtx11extras:5
    x11-libs/libX11
    dev-qt/qtbase:6[gui,widgets]
    kde-frameworks/kguiaddons:6
    kde-frameworks/kwindowsystem:6
    >=sys-libs/glibc-2.39-r6
"
BDEPEND="
    sys-devel/gettext
    virtual/pkgconfig
    >=app-portage/elt-patches-20240116
    sys-devel/gnuconfig
    || (
        >=dev-build/automake-1.17-r1:1.17
        >=dev-build/automake-1.16.5:1.16
    )
    || (
        >=dev-build/autoconf-2.72-r1:2.72
        >=dev-build/autoconf-2.71-r6:2.71
    )
    >=dev-build/libtool-2.4.7-r3
"
IDEPEND="
    >=app-eselect/eselect-pinentry-0.7.4
"

HTH

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [gentoo-user] Re: Dependency missing for libreoffice-bin?
  2025-02-14 21:11 ` Michael
@ 2025-02-15  5:03   ` Grant Edwards
  2025-02-15 12:02     ` Michael
  0 siblings, 1 reply; 13+ messages in thread
From: Grant Edwards @ 2025-02-15  5:03 UTC (permalink / raw
  To: gentoo-user

On 2025-02-14, Michael <confabulate@kintzios.com> wrote:
>
> Hmm, I have app-office/libreoffice-bin-24.2.7.2 installed on one PC, but do 
> not have the same USE flags as you do and I do not get the same --depclean 
> output complaining about dev-qt/qtx11extras::
>
> ~ $ emerge -av --pretend app-crypt/pinentry
>
> These are the packages that would be merged, in order:
>
> Calculating dependencies... done!
> Dependency resolution took 7.10 s (backtrack: 0/20).
>
> [ebuild   R    ] app-crypt/pinentry-1.3.1::gentoo  USE="X ncurses qt5 qt6 
> wayland -caps -efl -emacs -gtk -keyring -verify-sig" 597 KiB
>
> This is my profile:
>
> ~ $ eselect profile show
> Current /etc/portage/make.profile symlink:
>   default/linux/amd64/23.0/desktop/plasma

Either that profile or something else you have in your world file
pulls in qtx11extras as a dependency, so depclean doesn't try to
remove it.

I use the plain 'default/linux/amd64/23.0' profile.  Nothing installed
on my system "depends" on qtx11extras, so depclean wants to remove it
(as it should).

But libreoffice-bin (which _is_ installed) _uses_ (links to)
qtx11extras, and depclean was smart enough to detect that and not
remove qtx11extras (even though nothing on my system "depends" on it).

Hence my question: am I correct in my conclusion is that the
libreoffice-bin ebuild should (but does not) list qtx11extras as a
dependency?

--
Grant




^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [gentoo-user] Re: Dependency missing for libreoffice-bin?
  2025-02-15  5:03   ` [gentoo-user] " Grant Edwards
@ 2025-02-15 12:02     ` Michael
  2025-02-16  7:10       ` Grant Edwards
  0 siblings, 1 reply; 13+ messages in thread
From: Michael @ 2025-02-15 12:02 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 3058 bytes --]

On Saturday 15 February 2025 05:03:14 Greenwich Mean Time Grant Edwards wrote:
> On 2025-02-14, Michael <confabulate@kintzios.com> wrote:

> > This is my profile:
> > 
> > ~ $ eselect profile show
> > 
> > Current /etc/portage/make.profile symlink:
> >   default/linux/amd64/23.0/desktop/plasma
> 
> Either that profile or something else you have in your world file
> pulls in qtx11extras as a dependency, so depclean doesn't try to
> remove it.

Yes, my profile specifies plasma and in addition I have installed the kde-
plasma/plasma-meta package which sets USE="qt5".  So in my case depclean will 
not ask to remove dev-qt/qtx11extras.


> I use the plain 'default/linux/amd64/23.0' profile.  Nothing installed
> on my system "depends" on qtx11extras, so depclean wants to remove it
> (as it should).
> 
> But libreoffice-bin (which _is_ installed) _uses_ (links to)
> qtx11extras, and depclean was smart enough to detect that and not
> remove qtx11extras (even though nothing on my system "depends" on it).

I don't think libreoffice-bin has a *direct* dependency on qtx11extras, but it 
does have a dependency on kde, or gnome.  These DEs would drag in their Qt, or 
GTK GUI libraries respectively.


> Hence my question: am I correct in my conclusion is that the
> libreoffice-bin ebuild should (but does not) list qtx11extras as a
> dependency?
> 
> --
> Grant

As I understand it from the contents of /var/db/repos/gentoo/app-office/
libreoffice-bin/libreoffice-bin-24.2.7.2.ebuild the binary 'flavor' being 
fetched and installed from the servers is either kde or gnome specific, with 
or without Java.  This depends on the kde/gnome/java USE flags set in your 
system.

Anyway, it shouldn't be too onerous to test unmerging dev-qt/qtx11extras, then 
run 'emerge -t -p -D -v @world' and see what is trying to pull it back in.  If 
it is libreoffice-bin which asks to rebuild qtx11extras and not some other Qt 
or kde package, then this would explain your depclean result and ... confuse 
me even more.  :-/

Some of the equery results are not 100% representative of the equild contents 
and in particular the relationship of conditional dependencies.  Regarding 
package app-crypt/pinentry graph of conditional dependencies, you can use 
qdepend -t -v, e.g.:

~ $ qdepends -t -v app-crypt/pinentry
app-crypt/pinentry-1.3.1:
DEPEND="
    >=dev-libs/libassuan-2.1:=
    >=dev-libs/libgcrypt-1.6.3
    >=dev-libs/libgpg-error-1.17
    efl? ( dev-libs/efl[X] )
    keyring? ( app-crypt/libsecret )
    ncurses? ( sys-libs/ncurses:= )
    qt5? (
        dev-qt/qtcore:5
        dev-qt/qtgui:5
        dev-qt/qtwidgets:5
        wayland? ( kde-plasma/kwayland:5 )
        X? (
            dev-qt/qtx11extras:5
            x11-libs/libX11
        )
    )
    qt6? (
        dev-qt/qtbase:6[gui,widgets]
        wayland? (
            kde-frameworks/kguiaddons:6
            kde-frameworks/kwindowsystem:6
        )
    )
"
[snip ...]

The above confirms USE="qt5" plus USE="X" is pulling in in dev-qt/qtx11extras 
as a dependency for the pinentry package.

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [gentoo-user] Dependency missing for libreoffice-bin?
  2025-02-13 19:51 [gentoo-user] Dependency missing for libreoffice-bin? Grant Edwards
  2025-02-14 21:11 ` Michael
@ 2025-02-16  3:11 ` Eli Schwartz
  2025-02-16  7:18   ` [gentoo-user] " Grant Edwards
  1 sibling, 1 reply; 13+ messages in thread
From: Eli Schwartz @ 2025-02-16  3:11 UTC (permalink / raw
  To: gentoo-user


[-- Attachment #1.1: Type: text/plain, Size: 2009 bytes --]

On 2/13/25 2:51 PM, Grant Edwards wrote:
> Does this message from emerge --depclean mean that there's a
> dependency on dev-qt/qtx11extras:5 missing from the libreoffice-bin
> ebuild?
> 
> Or have I managed to break something?
> 
>     $ sudo emerge --depclean --ask
>     Password: 
>     
>      * Always study the list of packages [...]
>      
>     Calculating dependencies... done!
>     >>> Checking for lib consumers...
>     >>> Assigning files to packages...
>      * In order to avoid breakage of link level dependencies, one or more
>      * packages will not be removed. This can be solved by rebuilding the
>      * packages that pulled them in.
>      * 
>      *   dev-qt/qtx11extras-5.15.16 pulled in by:
>      *     app-office/libreoffice-bin-24.2.7.2 needs libQt5X11Extras.so.5
>      * 


$ pkg-list-linked-libraries
/var/tmp/portage/app-office/libreoffice-bin-24.2.7.2/work/usr/ libQt

lib64/libreoffice/program/libvclplug_qt5lo.so
  NEEDED               libQt5Core.so.5
  NEEDED               libQt5Gui.so.5
  NEEDED               libQt5Widgets.so.5
  NEEDED               libQt5X11Extras.so.5
lib64/libreoffice/program/libvclplug_qt6lo.so
  NEEDED               libQt6Core.so.6
  NEEDED               libQt6Gui.so.6
  NEEDED               libQt6Widgets.so.6



Yup... the ebuild announces a dependency on Qt6 (with USE="gui widgets")
and doesn't announce any dependency at all on the qt5 version of this
plugin.


If you look at the regular libreoffice package:

COMMON_DEPEND="
[...]
        qt5? (
                dev-qt/qtcore:5
                dev-qt/qtgui:5
                dev-qt/qtwidgets:5
                dev-qt/qtx11extras:5
        )
        qt6? ( dev-qt/qtbase:6[gui,widgets] )
"

But the -bin package appears to provide this plugin without announcing
its dependencies at all. It's not a X11Extras specific thing.

One could argue that nothing forces this plugin to be used, I suppose...


-- 
Eli Schwartz

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 236 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [gentoo-user] Re: Dependency missing for libreoffice-bin?
  2025-02-15 12:02     ` Michael
@ 2025-02-16  7:10       ` Grant Edwards
  2025-02-16 10:20         ` Michael
  0 siblings, 1 reply; 13+ messages in thread
From: Grant Edwards @ 2025-02-16  7:10 UTC (permalink / raw
  To: gentoo-user

On 2025-02-15, Michael <confabulate@kintzios.com> wrote:
> On Saturday 15 February 2025 05:03:14 Greenwich Mean Time Grant Edwards wrote:
>
>> Either that profile or something else you have in your world file
>> pulls in qtx11extras as a dependency, so depclean doesn't try to
>> remove it.
>
> Yes, my profile specifies plasma and in addition I have installed the kde-
> plasma/plasma-meta package which sets USE="qt5".  So in my case depclean will 
> not ask to remove dev-qt/qtx11extras.

>> But libreoffice-bin (which _is_ installed) _uses_ (links to)
>> qtx11extras, and depclean was smart enough to detect that and not
>> remove qtx11extras (even though nothing on my system "depends" on it).
>
> I don't think libreoffice-bin has a *direct* dependency on qtx11extras, but it 
> does have a dependency on kde, or gnome.

No, it doesn't.

> These DEs would drag in their Qt, or GTK GUI libraries respectively.

I have libreoffice installed, and it did not pull in KDE or Gnome DEs.
It depends on specific libraries.  qtx11extras is not one of those
libraries, even though the libreoffice-bin executable requires it.

>> Hence my question: am I correct in my conclusion is that the
>> libreoffice-bin ebuild should (but does not) list qtx11extras as a
>> dependency?

> As I understand it from the contents of /var/db/repos/gentoo/app-office/
> libreoffice-bin/libreoffice-bin-24.2.7.2.ebuild the binary 'flavor' being 
> fetched and installed from the servers is either kde or gnome specific, with 
> or without Java.  This depends on the kde/gnome/java USE flags set in your 
> system.

I don't have any of those flags enabled:

    $ sudo emerge -av libreoffice-bin
    
    These are the packages that would be merged, in order:
    
    Calculating dependencies... done!
    Dependency resolution took 3.03 s (backtrack: 0/20).
    
    [ebuild   R    ] app-office/libreoffice-bin-24.2.7.2::gentoo  USE="-gnome -java -kde" PYTHON_SINGLE_TARGET="python3_12" 0 KiB
    
    Total: 1 package (1 reinstall), Size of downloads: 0 KiB
    
    Would you like to merge these packages? [Yes/No] 

> Anyway, it shouldn't be too onerous to test unmerging dev-qt/qtx11extras, then 
> run 'emerge -t -p -D -v @world' and see what is trying to pull it back in.

Once again: NOTHING IS PULLING IT IN.  That's why emerge --depclean wants
to remove it.

> If it is libreoffice-bin which asks to rebuild qtx11extras and not
> some other Qt or kde package, then this would explain your depclean
> result and ... confuse me even more.  :-/

I don't understand why you think something on my system has a
dependency on qtx11extras.

> [...]

> The above confirms USE="qt5" plus USE="X" is pulling in in dev-qt/qtx11extras 
> as a dependency for the pinentry package.

I don't have the qt5 USE flag enabled, so pinentry is not trying to
pull in qtx11extras.

Nothing on my system is has qtx11extras as a dependency.

However, something on my system (libreoffice-bin) requires
qtx11extras.

--
Grant





^ permalink raw reply	[flat|nested] 13+ messages in thread

* [gentoo-user] Re: Dependency missing for libreoffice-bin?
  2025-02-16  3:11 ` [gentoo-user] " Eli Schwartz
@ 2025-02-16  7:18   ` Grant Edwards
  2025-02-16 19:25     ` Jack
  0 siblings, 1 reply; 13+ messages in thread
From: Grant Edwards @ 2025-02-16  7:18 UTC (permalink / raw
  To: gentoo-user

On 2025-02-16, Eli Schwartz <eschwartz@gentoo.org> wrote:
> On 2/13/25 2:51 PM, Grant Edwards wrote:
>
>> Does this message from emerge --depclean mean that there's a
>> dependency on dev-qt/qtx11extras:5 missing from the libreoffice-bin
>> ebuild?
>> 
>> Or have I managed to break something?
>> 
>>     $ sudo emerge --depclean --ask
>>     Password: 
>>     
>>      * Always study the list of packages [...]
>>      
>>     Calculating dependencies... done!
>>     >>> Checking for lib consumers...
>>     >>> Assigning files to packages...
>>      * In order to avoid breakage of link level dependencies, one or more
>>      * packages will not be removed. This can be solved by rebuilding the
>>      * packages that pulled them in.
>>      * 
>>      *   dev-qt/qtx11extras-5.15.16 pulled in by:
>>      *     app-office/libreoffice-bin-24.2.7.2 needs libQt5X11Extras.so.5
>
>
> $ pkg-list-linked-libraries
> /var/tmp/portage/app-office/libreoffice-bin-24.2.7.2/work/usr/ libQt
>
> lib64/libreoffice/program/libvclplug_qt5lo.so
>   NEEDED               libQt5Core.so.5
>   NEEDED               libQt5Gui.so.5
>   NEEDED               libQt5Widgets.so.5
>   NEEDED               libQt5X11Extras.so.5
> lib64/libreoffice/program/libvclplug_qt6lo.so
>   NEEDED               libQt6Core.so.6
>   NEEDED               libQt6Gui.so.6
>   NEEDED               libQt6Widgets.so.6
>
>
>
> Yup... the ebuild announces a dependency on Qt6 (with USE="gui widgets")
> and doesn't announce any dependency at all on the qt5 version of this
> plugin.
>
>
> If you look at the regular libreoffice package:
>
> COMMON_DEPEND="
> [...]
>         qt5? (
>                 dev-qt/qtcore:5
>                 dev-qt/qtgui:5
>                 dev-qt/qtwidgets:5
>                 dev-qt/qtx11extras:5
>         )
>         qt6? ( dev-qt/qtbase:6[gui,widgets] )
> "

I don't have either qt5 or qt6 flags enabled.

> But the -bin package appears to provide this plugin without announcing
> its dependencies at all. It's not a X11Extras specific thing.
>
> One could argue that nothing forces this plugin to be used, I suppose...

I guess I could try removing qt11extras to see what breaks in
libreoffice.  I assumed it just wouldn't run, but if it's some sort of
plugin that uses it, and I don't use that plugin, then maybe I'd be OK.

--
Grant






^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [gentoo-user] Re: Dependency missing for libreoffice-bin?
  2025-02-16  7:10       ` Grant Edwards
@ 2025-02-16 10:20         ` Michael
  2025-02-17  0:25           ` Grant Edwards
  0 siblings, 1 reply; 13+ messages in thread
From: Michael @ 2025-02-16 10:20 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 2506 bytes --]

On Sunday 16 February 2025 07:10:17 Greenwich Mean Time Grant Edwards wrote:
> On 2025-02-15, Michael <confabulate@kintzios.com> wrote:

> > As I understand it from the contents of /var/db/repos/gentoo/app-office/
> > libreoffice-bin/libreoffice-bin-24.2.7.2.ebuild the binary 'flavor' being
> > fetched and installed from the servers is either kde or gnome specific,
> > with or without Java.  This depends on the kde/gnome/java USE flags set
> > in your system.
> 
> I don't have any of those flags enabled:
> 
>     $ sudo emerge -av libreoffice-bin
> 
>     These are the packages that would be merged, in order:
> 
>     Calculating dependencies... done!
>     Dependency resolution took 3.03 s (backtrack: 0/20).
> 
>     [ebuild   R    ] app-office/libreoffice-bin-24.2.7.2::gentoo 
> USE="-gnome -java -kde" PYTHON_SINGLE_TARGET="python3_12" 0 KiB

Oh! I see.  Then if qt5 is not set in your system libreoffice-bin should not 
try to pull in such a dependency, unless ... it is hardcoded in it.


> > Anyway, it shouldn't be too onerous to test unmerging dev-qt/qtx11extras,
> > then run 'emerge -t -p -D -v @world' and see what is trying to pull it
> > back in.
> 
> Once again: NOTHING IS PULLING IT IN.  That's why emerge --depclean wants
> to remove it.

Something has already pulled it in, if depclean is now trying to remove it and 
according to depclean the culprit looks like libreoffice-bin.  I assumed a USE 
flag was set for this to occur, but you clarified no such USE flag is set.


> > If it is libreoffice-bin which asks to rebuild qtx11extras and not
> > some other Qt or kde package, then this would explain your depclean
> > result and ... confuse me even more.  :-/
> 
> I don't understand why you think something on my system has a
> dependency on qtx11extras.

I accepted it as a corollary of qtx11extras having been installed in your 
system and now depclean wanting to remove it.  The cause of qtx11extras being 
present in your system escapes me.


> > [...]
> > 
> > The above confirms USE="qt5" plus USE="X" is pulling in in
> > dev-qt/qtx11extras as a dependency for the pinentry package.
> 
> I don't have the qt5 USE flag enabled, so pinentry is not trying to
> pull in qtx11extras.
> 
> Nothing on my system is has qtx11extras as a dependency.
> 
> However, something on my system (libreoffice-bin) requires
> qtx11extras.

Right, Eli's reply with his dive into the build shows libreoffice-bin has 
qtx11extras hardcoded as a dependency.  Which explains the conundrum.

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [gentoo-user] Re: Dependency missing for libreoffice-bin?
  2025-02-16  7:18   ` [gentoo-user] " Grant Edwards
@ 2025-02-16 19:25     ` Jack
  2025-02-17  0:38       ` Grant Edwards
  0 siblings, 1 reply; 13+ messages in thread
From: Jack @ 2025-02-16 19:25 UTC (permalink / raw
  To: gentoo-user

On 2025.02.16 02:18, Grant Edwards wrote:
[snip.....]

> I guess I could try removing qt11extras to see what breaks in  
> libreoffice.  I assumed it just wouldn't run, but if it's some sort  
> of plugin that uses it, and I don't use that plugin, then maybe I'd  
> be OK.

You can try "ldd path/to/soffice.bin" to confirm it's not linking  
directly to libQt5X11Extras.so.5, and then do ldd on all the .so files  
in that same folder and hope to identify which plugin owns any file  
that does link to it.  In my case it is  
/usr/lib64/libreoffice/program/libvclplug_qt5lo.so (although I DO have  
qt5 and qt6 use flags set.)  Without looking into the source, I would  
guess that is part of the plugin architecture, and not a particular  
plugin.


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [gentoo-user] Re: Dependency missing for libreoffice-bin?
  2025-02-16 10:20         ` Michael
@ 2025-02-17  0:25           ` Grant Edwards
  2025-02-17  0:42             ` Eli Schwartz
  0 siblings, 1 reply; 13+ messages in thread
From: Grant Edwards @ 2025-02-17  0:25 UTC (permalink / raw
  To: gentoo-user

On 2025-02-16, Michael <confabulate@kintzios.com> wrote:
>
>> Once again: NOTHING IS PULLING IT IN.  That's why emerge --depclean wants
>> to remove it.
>
> Something has already pulled it in, if depclean is now trying to
> remove it and according to depclean the culprit looks like
> libreoffice-bin.  I assumed a USE flag was set for this to occur,
> but you clarified no such USE flag is set.

Yes, at some point in in the past, an installed package had
qtx11extras as a dependency, so that's why it was instlled.  I assume
that app(s) was recently upgrade and no longer requires it.  Or
perhpas it got uninstalled, I haven't tried to figure out when/why
portage installed qtx11extras, and I don't really care. That's not
what I'm asking about.

>>> If it is libreoffice-bin which asks to rebuild qtx11extras and not
>>> some other Qt or kde package, then this would explain your
>>> depclean result and ... confuse me even more.  :-/
>> 
>> I don't understand why you think something on my system has a
>> dependency on qtx11extras.
>
> I accepted it as a corollary of qtx11extras having been installed in
> your system and now depclean wanting to remove it.

The fact that qtx11extras is installed and not in my world file
implies that there _was_ something on my system with qtx11extras as a
dependency.

If that were still the case, emerge --depclean would not want to
remove it.

> The cause of qtx11extras being present in your system escapes me.

It doens't matter /when it was installed or what had it as a
dependecy. That's not relevent to the question at hand: whether
libreoffice-bin _should_ have it as a dependency.

>> Nothing on my system is has qtx11extras as a dependency.
>> 
>> However, something on my system (libreoffice-bin) requires
>> qtx11extras.
>
> Right, Eli's reply with his dive into the build shows libreoffice-bin has 
> qtx11extras hardcoded as a dependency.

No, it doesn't.  He showed that libreoffce-bin LINKS IN qtx11extras.
We knew that.  The very first post in the this thread showed the
message from 'emerge --depclean' complaining that libreoffice-bin was
linking in qtx11extras, yet didn't have it as a dependency.

The ebuild for libreoffce-bin DOES NOT LIST QTX11EXTRAS AS A
DEPENDENCY.

> Which explains the conundrum.

I'm sorry, but I don't know what conundrum you're trying to explain.

The question I'm asking is:

 * Should the libreoffice-bin ebuild list qtx11extras as a dependency?

If yes, then I'll file a bug report.

My question is based on the following fact:

 * libreoffice-bin links in the qtx11extras library, but does not have
   it as a dependency.

--
Grant



^ permalink raw reply	[flat|nested] 13+ messages in thread

* [gentoo-user] Re: Dependency missing for libreoffice-bin?
  2025-02-16 19:25     ` Jack
@ 2025-02-17  0:38       ` Grant Edwards
  2025-02-17 18:33         ` Grant Edwards
  0 siblings, 1 reply; 13+ messages in thread
From: Grant Edwards @ 2025-02-17  0:38 UTC (permalink / raw
  To: gentoo-user

On 2025-02-16, Jack <ostroffjh@users.sourceforge.net> wrote:
> On 2025.02.16 02:18, Grant Edwards wrote:
> [snip.....]
>
>> I guess I could try removing qt11extras to see what breaks in  
>> libreoffice.  I assumed it just wouldn't run, but if it's some sort  
>> of plugin that uses it, and I don't use that plugin, then maybe I'd  
>> be OK.
>
> You can try "ldd path/to/soffice.bin" to confirm it's not linking  
> directly to libQt5X11Extras.so.5,

It is not.

> and then do ldd on all the .so files in that same folder and hope to
> identify which plugin owns any file that does link to it.  In my
> case it is /usr/lib64/libreoffice/program/libvclplug_qt5lo.so
> (although I DO have qt5 and qt6 use flags set.)  Without looking
> into the source, I would guess that is part of the plugin
> architecture, and not a particular plugin.

I just opened a write document, and libQt5X11Extras.so.5 is not open
at this point.

On my system, the only .so file that belonging to libreoffice-bin that
links in libQt5X11Extras.so.5 is program/libvclplug_qt5lo.so

It looks like on my system, the "gen" version of the vcl plugin is used:

$ lsof | grep libvcl
soffice.b  8834                     grante  mem       REG              259,2    540056 1315569 /usr/lib64/libreoffice/program/libvclplug_genlo.so
soffice.b  8834  8836 PipeIPC       grante  mem       REG              259,2    540056 1315569 /usr/lib64/libreoffice/program/libvclplug_genlo.so
soffice.b  8834  8838 Selection     grante  mem       REG              259,2    540056 1315569 /usr/lib64/libreoffice/program/libvclplug_genlo.so

So, I'm betting I can safely uninsgall libqtx11extras...

I think that also means that no, we would do _not_ want
libreoffice-bin to list libqtx11extras as a dependency, since it's not
actually needed, even though it is used by one of the installed .so
files.

--
Grant




^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [gentoo-user] Re: Dependency missing for libreoffice-bin?
  2025-02-17  0:25           ` Grant Edwards
@ 2025-02-17  0:42             ` Eli Schwartz
  0 siblings, 0 replies; 13+ messages in thread
From: Eli Schwartz @ 2025-02-17  0:42 UTC (permalink / raw
  To: gentoo-user


[-- Attachment #1.1: Type: text/plain, Size: 1171 bytes --]

On 2/16/25 7:25 PM, Grant Edwards wrote:
> The question I'm asking is:
> 
>  * Should the libreoffice-bin ebuild list qtx11extras as a dependency?
> 
> If yes, then I'll file a bug report.
> 
> My question is based on the following fact:
> 
>  * libreoffice-bin links in the qtx11extras library, but does not have
>    it as a dependency.


I asked Sam about this. He said that since libreoffice-bin was updated
in 24.8.4 and 25.2.0 (both currently limited to testing keywords, i.e.
~amd64 only) to use the upstream libreoffice.org binaries, they don't
include the Qt5 or Qt6 plugins at all, and at this point he isn't really
interested in messing with the "old" version that is currently stable.
So as soon as an updated libreoffice-bin is stabilized your problem
should disappear.

It does conceptually need "fixing", yes, it's just that since the entire
package has been redesigned to use upstream binaries it is no longer
considered worth investing time and effort into the old ebuild.

The new ebuild will be stabilized hopefully within the month anyway so I
would just wait for that and ignore qtx11extras for now.


-- 
Eli Schwartz

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 236 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [gentoo-user] Re: Dependency missing for libreoffice-bin?
  2025-02-17  0:38       ` Grant Edwards
@ 2025-02-17 18:33         ` Grant Edwards
  0 siblings, 0 replies; 13+ messages in thread
From: Grant Edwards @ 2025-02-17 18:33 UTC (permalink / raw
  To: gentoo-user

On 2025-02-17, Grant Edwards <grant.b.edwards@gmail.com> wrote:

> On my system, the only .so file that belonging to libreoffice-bin that
> links in libQt5X11Extras.so.5 is program/libvclplug_qt5lo.so
>
> It looks like on my system, the "gen" version of the vcl plugin is used:
>
> $ lsof | grep libvcl
> soffice.b  8834                     grante  mem       REG              259,2    540056 1315569 /usr/lib64/libreoffice/program/libvclplug_genlo.so
> soffice.b  8834  8836 PipeIPC       grante  mem       REG              259,2    540056 1315569 /usr/lib64/libreoffice/program/libvclplug_genlo.so
> soffice.b  8834  8838 Selection     grante  mem       REG              259,2    540056 1315569 /usr/lib64/libreoffice/program/libvclplug_genlo.so
>
> So, I'm betting I can safely uninsgall libqtx11extras...

FWIW, I uninstalled libqtx11extras yesterday (which made emerge
--depclean happy).  I've used libreoffice a couple times since then
without any problems.

--
Grant



^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2025-02-17 18:34 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-13 19:51 [gentoo-user] Dependency missing for libreoffice-bin? Grant Edwards
2025-02-14 21:11 ` Michael
2025-02-15  5:03   ` [gentoo-user] " Grant Edwards
2025-02-15 12:02     ` Michael
2025-02-16  7:10       ` Grant Edwards
2025-02-16 10:20         ` Michael
2025-02-17  0:25           ` Grant Edwards
2025-02-17  0:42             ` Eli Schwartz
2025-02-16  3:11 ` [gentoo-user] " Eli Schwartz
2025-02-16  7:18   ` [gentoo-user] " Grant Edwards
2025-02-16 19:25     ` Jack
2025-02-17  0:38       ` Grant Edwards
2025-02-17 18:33         ` Grant Edwards

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox