Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to list packages that depend on a certan package?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
hanzotutu
Apprentice
Apprentice


Joined: 10 Apr 2003
Posts: 170

PostPosted: Sat May 03, 2003 4:52 am    Post subject: How to list packages that depend on a certan package? Reply with quote

I have qt installed in my gentoo. Now I wanna know which packages depend
on qt. Is there anyway I can check?
Thanks.
Back to top
View user's profile Send private message
dma
Guru
Guru


Joined: 31 Jan 2003
Posts: 437
Location: Charlotte, NC, USA

PostPosted: Sat May 03, 2003 5:03 am    Post subject: Reply with quote

Which packages depend on qt depends on whether or not "qt" is set in USE.

(The same system is used for kde, gnome, and lots of other packages.)

Recompiling existing packages to add "qt" support is a little more complicated, although it need not be hard.
Back to top
View user's profile Send private message
hanzotutu
Apprentice
Apprentice


Joined: 10 Apr 2003
Posts: 170

PostPosted: Sat May 03, 2003 5:09 am    Post subject: Reply with quote

Actually, I wanna delete qt. I have only gnome installed, and the USE flag
is set with "-qt -kde gnome gtk gtk2".
Back to top
View user's profile Send private message
puddpunk
l33t
l33t


Joined: 20 Jul 2002
Posts: 681
Location: New Zealand

PostPosted: Sat May 03, 2003 5:13 am    Post subject: Reply with quote

Not that I know of, there were a few hacks around the forums at one stage, but I think you may have to wait until portage 2.1 and reverse dependancies come along.

Saying that, dep-clean may be worth a look!
Back to top
View user's profile Send private message
dma
Guru
Guru


Joined: 31 Jan 2003
Posts: 437
Location: Charlotte, NC, USA

PostPosted: Sat May 03, 2003 5:38 am    Post subject: Reply with quote

"qpkg --query-deps qt" is the best way I know of to find the packages that CURRENTLY require qt. Some of them can be recompiled to work without qt, others can't.

To find the ones that can be recompiled, my stupid script above can at least give output like this:
Code:
root@laureate:~# usechange
dev-php/mod_php-4.3.1-r1: (/var/db/pkg/dev-php/mod_php-4.3.1-r1/mod_php-4.3.1-r1.ebuild)
     Added flags:
   Removed flags: qt
dev-php/php-4.3.1-r1: (/var/db/pkg/dev-php/php-4.3.1-r1/php-4.3.1-r1.ebuild)
     Added flags:
   Removed flags: qt
media-video/avifile-0.7.32.20030219: (/var/db/pkg/media-video/avifile-0.7.32.20030219/avifile-0.7.32.20030219.ebuild)
     Added flags: dvd
   Removed flags: qt


And if you REALLY want qt to be gone, you can do this:
Code:
find `echo $PATH | tr ':' ' '` -type f | xargs ldd  | grep -E ':|/qt/'


and search for "/qt/" in it. You'll find all binaries in your path that link to the qt libs or something.

Code:

/usr/bin/php:
        libqt-mt.so.3 => /usr/qt/3/lib/libqt-mt.so.3 (0x4852b000)
/usr/bin/avicap:
        libqt-mt.so.3 => /usr/qt/3/lib/libqt-mt.so.3 (0x41e0f000)
/usr/bin/aviplay:
        libqt-mt.so.3 => /usr/qt/3/lib/libqt-mt.so.3 (0x4f267000)


You get the idea.

You can use qpgk to find out who owns these files.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum