On Thursday 13 March 2008, Zhang Weiwu wrote:
> Hello.
>
> I wishes to emerge lyx and surprisingly found it depends on qt:
>
> [EMAIL PROTECTED]:/home/zhangweiwu# emerge -pv lyx
>
> These are the packages that would be merged, in order:
>
> Calculating dependencies... done!
> [ebuild  N    ] app-text/opensp-1.5.2-r1  USE="nls -doc" 1,486 kB
> [ebuild  N    ] app-text/docbook-dsssl-stylesheets-1.79  272 kB
> [ebuild  N    ] app-text/docbook-sgml-dtd-3.1-r3  55 kB
> [ebuild  N    ] media-gfx/imagemagick-6.3.7.9  USE="X gs jbig jpeg
> lcms png svg tiff zlib -bzip2 -djvu -doc -fontconfig -fpx -graphviz
> -hdri -jpeg2k -nocxx -openexr -perl -q32 -q8 -truetype -wmf -xml" 0
> kB [ebuild  N    ] x11-libs/qt-4.3.2-r1  USE="cups jpeg opengl png
> ssl tiff xinerama zlib -accessibility -dbus -debug -doc -examples
> (-firebird) -gif -glib -mng -mysql -nas -nis -odbc -pch -postgres
> -qt3support -sqlite -sqlite3" INPUT_DEVICES="-wacom" 42,445 kB
> [ebuild  N    ] app-text/aiksaurus-1.2.1  USE="-gtk" 908 kB
> [ebuild  N    ] app-text/openjade-1.3.2-r1  874 kB
> [ebuild  N    ] app-text/sgmltools-lite-3.0.3-r10  USE="-tetex" 69 kB
> [ebuild  N    ] app-office/lyx-1.5.4  USE="X cups nls -debug -latex"
> LINGUAS="-he" 8,923 kB
>
> Total: 9 packages (9 new), Size of downloads: 55,028 kB
>
>
> I thought it must not be true, because I used lyx on Ubuntu and it
> doesn't look like a qt application at all. 

Ubuntu is a gnome-centric distro. I'm not surprised they built it with 
gtk+ support as opposed to qt support

> Then I run equery depgraph 
> to see which package required qt. again a surprise, according to
> equery, lyx did not depend on qt, nor indirectly.
>
> I attached output of 'equery depgraph =lyx-1.5.4' to this message. Do
> a grep and 'qt'  is not found in the output.
>
> So my question is:
>
>    1. Is it true lyx really depends on qt? How do I find out?

Read the ebuild:

less $PORTDIR/app-office/lyx/lyx-1.5.4.ebuild

and you will see:

RDEPEND="$(qt4_min_version 4.1.1)
        x11-libs/libXrandr
        x11-libs/libXcursor
        x11-libs/libXrender
...

The call to qt_min_version is upsetting equery, which just reads the 
literal strings and doesn't know to execute that call to find the real 
dep

>    2. If lyx doesn't have to depend on qt, how can I install lyx and
>       avoid qt being emerged?

emerge lyx version 1.4.* which supports optional qt, gtk+ and even 
xforms as fallback


-- 
Alan McKinnon
alan dot mckinnon at gmail dot com

-- 
gentoo-user@lists.gentoo.org mailing list

Reply via email to