Gentoo Archives: gentoo-user

From: Alan McKinnon <alan.mckinnon@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] equery shows lyx didn't depend on qt, and emerge shows the opposite
Date: Thu, 13 Mar 2008 07:52:00
Message-Id: 200803130945.51015.alan.mckinnon@gmail.com
In Reply to: [gentoo-user] equery shows lyx didn't depend on qt, and emerge shows the opposite by Zhang Weiwu
1 On Thursday 13 March 2008, Zhang Weiwu wrote:
2 > Hello.
3 >
4 > I wishes to emerge lyx and surprisingly found it depends on qt:
5 >
6 > root@esmeralda:/home/zhangweiwu# emerge -pv lyx
7 >
8 > These are the packages that would be merged, in order:
9 >
10 > Calculating dependencies... done!
11 > [ebuild N ] app-text/opensp-1.5.2-r1 USE="nls -doc" 1,486 kB
12 > [ebuild N ] app-text/docbook-dsssl-stylesheets-1.79 272 kB
13 > [ebuild N ] app-text/docbook-sgml-dtd-3.1-r3 55 kB
14 > [ebuild N ] media-gfx/imagemagick-6.3.7.9 USE="X gs jbig jpeg
15 > lcms png svg tiff zlib -bzip2 -djvu -doc -fontconfig -fpx -graphviz
16 > -hdri -jpeg2k -nocxx -openexr -perl -q32 -q8 -truetype -wmf -xml" 0
17 > kB [ebuild N ] x11-libs/qt-4.3.2-r1 USE="cups jpeg opengl png
18 > ssl tiff xinerama zlib -accessibility -dbus -debug -doc -examples
19 > (-firebird) -gif -glib -mng -mysql -nas -nis -odbc -pch -postgres
20 > -qt3support -sqlite -sqlite3" INPUT_DEVICES="-wacom" 42,445 kB
21 > [ebuild N ] app-text/aiksaurus-1.2.1 USE="-gtk" 908 kB
22 > [ebuild N ] app-text/openjade-1.3.2-r1 874 kB
23 > [ebuild N ] app-text/sgmltools-lite-3.0.3-r10 USE="-tetex" 69 kB
24 > [ebuild N ] app-office/lyx-1.5.4 USE="X cups nls -debug -latex"
25 > LINGUAS="-he" 8,923 kB
26 >
27 > Total: 9 packages (9 new), Size of downloads: 55,028 kB
28 >
29 >
30 > I thought it must not be true, because I used lyx on Ubuntu and it
31 > doesn't look like a qt application at all.
32
33 Ubuntu is a gnome-centric distro. I'm not surprised they built it with
34 gtk+ support as opposed to qt support
35
36 > Then I run equery depgraph
37 > to see which package required qt. again a surprise, according to
38 > equery, lyx did not depend on qt, nor indirectly.
39 >
40 > I attached output of 'equery depgraph =lyx-1.5.4' to this message. Do
41 > a grep and 'qt' is not found in the output.
42 >
43 > So my question is:
44 >
45 > 1. Is it true lyx really depends on qt? How do I find out?
46
47 Read the ebuild:
48
49 less $PORTDIR/app-office/lyx/lyx-1.5.4.ebuild
50
51 and you will see:
52
53 RDEPEND="$(qt4_min_version 4.1.1)
54 x11-libs/libXrandr
55 x11-libs/libXcursor
56 x11-libs/libXrender
57 ...
58
59 The call to qt_min_version is upsetting equery, which just reads the
60 literal strings and doesn't know to execute that call to find the real
61 dep
62
63 > 2. If lyx doesn't have to depend on qt, how can I install lyx and
64 > avoid qt being emerged?
65
66 emerge lyx version 1.4.* which supports optional qt, gtk+ and even
67 xforms as fallback
68
69
70 --
71 Alan McKinnon
72 alan dot mckinnon at gmail dot com
73
74 --
75 gentoo-user@l.g.o mailing list