[gentoo-user] equery shows lyx didn't depend on qt, and emerge shows the opposite

2008-03-13 Thread Zhang Weiwu
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. 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?
   2. If lyx doesn't have to depend on qt, how can I install lyx and
  avoid qt being emerged?

Thanks in advance!
Best regards
Zhang Weiwu

-- 
Real Softservice

Huateng Tower, Unit 1788
Jia 302 3rd area of Jinsong, Chao Yang

Tel: +86 (10) 8773 0650 ext 603
Mobile: 135 9950 2413
http://www.realss.com

app-office/lyx-1.5.4:
`-- app-office/lyx-1.5.4
 `-- x11-libs/libXrandr-1.2.2
  `-- x11-libs/libX11-1.1.3
   `-- x11-libs/xtrans-1.0.4
`-- sys-devel/automake-1.10
 `-- dev-lang/perl-5.8.8-r4
  `-- sys-devel/libperl-5.8.8-r1
   `-- sys-libs/db-4.5.20_p2 [ berkdb ]
`-- dev-lang/tcl-8.4.15 [ tcl ]
 `-- sys-devel/autoconf-2.61-r1
  `-- sys-apps/texinfo-4.8-r5
   `-- sys-libs/ncurses-5.6-r2 [ !build ]
`-- sys-libs/gpm-1.20.1-r6 [ gpm ]
   `-- virtual/libintl-0 (virtual/libintl) [ !build nls ]
`-- sys-devel/gettext-0.17 [ elibc_Darwin ]
 `-- virtual/libiconv-0 (virtual/libiconv)
 `-- dev-libs/libxml2-2.6.30-r1
  `-- sys-libs/zlib-1.2.3-r1
  `-- dev-lang/python-2.4.4-r6 [ python ]
   `-- dev-lang/tk-8.4.15-r1 [ !build tk ]
`-- x11-libs/libXt-1.0.5
 `-- x11-libs/libSM-1.0.3
  `-- x11-libs/libICE-1.0.4
   `-- x11-proto/xproto-7.0.10
`-- sys-devel/libtool-1.5.24
 `-- sys-devel/gnuconfig-20070724
 `-- sys-apps/help2man-1.36.4
  `-- dev-perl/Locale-gettext-1.05 [ elibc_glibc nls ]
`-- dev-util/pkgconfig-0.22
`-- x11-misc/util-macros-1.1.5
`-- sys-devel/binutils-2.18-r1
 `-- sys-devel/binutils-config-1.9-r4
  `-- sys-apps/findutils-4.3.8-r1 [ userland_GNU ]
 `-- x11-proto/kbproto-1.0.3
   `-- sys-libs/readline-5.2_p7 [ !build ncurses readline ]
`-- app-shells/bash-3.2_p17-r1
   `-- sys-libs/gdbm-1.8.3-r3 [ !build gdbm ]
   `-- dev-libs/openssl-0.9.8g [ !build ssl ]
`-- dev-libs/gmp-4.2.2 [ gmp ]
`-- sys-apps/diffutils-2.8.7-r2
 `-- sys-apps/man-pages-2.75 [ userland_GNU ]
  `-- sys-apps/man-1.6e-r3 (virtual/man)
   `-- sys-apps/groff-1.19.2-r1
  `-- app-i18n/man-pages-zh_CN-1.5 [ nls linguas_zh_CN ]
`-- sys-devel/bc-1.06-r6 [ test ]
 `-- sys-devel/flex-2.5.33-r3
`-- app-misc/ca-certificates-20070303-r1
 `-- sys-apps/portage-2.1.3.19
  `-- sys-apps/sed-4.1.5 [ !build ]
  `-- sys-apps/sandbox-1.2.18.1-r2 [ elibc_glibc ]
  `-- app-misc/pax-utils-0.1.16
   `-- sys-libs/libcap-1.10-r9 [ caps ]
`-- sys-kernel/linux-headers-2.6.23-r3 (virtual/os-headers)
 `-- dev-util/unifdef-1.20
  `-- app-text/docbook-xml-dtd-4.4-r1 [ doc ]
   `-- app-arch/unzip-5.52-r1
   `-- app-text/docbook-xsl-stylesheets-1.70.1
`-- app-text/build-docbook-catalog-1.2
   `-- app-text/sgml-common-0.6.3-r5
`-- sys-devel/automake-1.5
 

Re: [gentoo-user] equery shows lyx didn't depend on qt, and emerge shows the opposite

2008-03-13 Thread Alan McKinnon
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