Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Listing dependencies of a package.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  
Author Message
mpagano
Developer
Developer


Joined: 27 Apr 2004
Posts: 197
Location: USA

PostPosted: Sun Aug 21, 2005 2:34 am    Post subject: Listing dependencies of a package. Reply with quote

I was looking for an emerge command to list packages for mc as I was reading another thread.

Here what happened on machine 1.

Code:
# emerge -uDtp mc

These are the packages that I would merge, in reverse order:

Calculating dependencies ...done!
[ebuild  N    ] app-misc/mc-4.6.0-r14
[nomerge      ] sys-apps/man-1.6-r1
[nomerge      ]  sys-process/cronbase-0.3.2
[nomerge      ]      sys-libs/db-4.2.52_p2
[nomerge      ]       dev-java/sun-jdk-1.4.2.08-r1
[ebuild  N F  ]        dev-java/java-sdk-docs-1.4.2
[nomerge      ]        sys-libs/lib-compat-1.4
[nomerge      ]         media-libs/libsdl-1.2.8-r1
[nomerge      ]          media-sound/esound-0.2.34
[nomerge      ]           media-libs/alsa-lib-1.0.9
[nomerge      ]            media-sound/alsa-driver-1.0.9b
[nomerge      ]             sys-kernel/gentoo-sources-2.6.12-r9
[ebuild  N    ]              app-text/docbook-sgml-utils-0.6.14
[ebuild  N    ]               app-text/docbook-xml-simple-dtd-1.0-r1
[ebuild  N    ]               app-text/docbook-xml-simple-dtd-4.1.2.4-r2
[ebuild  N    ]               app-text/docbook-sgml-dtd-3.1-r3
[ebuild  N    ]               dev-perl/SGMLSpm-1.03-r5
[ebuild  N    ]               app-text/docbook-sgml-dtd-4.0-r3
[ebuild  N    ]               app-text/docbook-sgml-dtd-4.1-r3
[ebuild  N    ]              app-text/xmlto-0.0.18
[ebuild  N    ]               app-text/docbook-xml-dtd-4.2-r1
[ebuild  N    ]            app-doc/doxygen-1.4.2
[nomerge      ]             app-text/ghostscript-7.07.1-r8
[nomerge      ]              x11-libs/gtk+-2.6.7
[nomerge      ]               dev-libs/glib-2.6.4
[ebuild  N    ]                dev-util/gtk-doc-1.3-r1
[ebuild  N    ]                 app-text/docbook-xml-dtd-4.1.2-r5
[ebuild  N    ]                  app-text/docbook-xsl-stylesheets-1.68.1-r1
[ebuild  N    ]                   app-text/build-docbook-catalog-1.2
[ebuild  N    ]                 app-text/docbook-dsssl-stylesheets-1.79
[ebuild  N    ]                 app-text/docbook-sgml-dtd-3.0-r3
[ebuild  N    ]             media-gfx/graphviz-1.16
[ebuild  N    ]              media-libs/gd-2.0.32
[nomerge      ] x11-terms/xterm-200-r3
[nomerge      ]  sys-apps/utempter-0.5.5.6
[nomerge      ]   app-arch/rpm2targz-9.0-r3
[nomerge      ]    sys-apps/which-2.16
[nomerge      ]               x11-base/xorg-x11-6.8.2-r2
[nomerge      ]                sys-apps/util-linux-2.12i-r1
[nomerge      ]                 sys-apps/pam-login-3.17
[nomerge      ]                  sys-apps/shadow-4.0.7-r3
[nomerge      ]                   sys-apps/portage-2.0.51.22-r2
[nomerge      ]                    dev-lang/python-2.3.5
[ebuild  N    ]                     dev-python/python-docs-2.3.5



And here the output for machine 2.

Code:
 # emerge -uDtp mc

These are the packages that I would merge, in reverse order:

Calculating dependencies ...done!
[ebuild  N    ] app-misc/mc-4.6.0-r14


Can someone tell me how the outputs can be different?
Both are running portage version 2.0.51.22-r2

Mike
Back to top
View user's profile Send private message
steveb
Advocate
Advocate


Joined: 18 Sep 2002
Posts: 4564

PostPosted: Sun Aug 21, 2005 3:21 am    Post subject: Reply with quote

Diffrend use flags?
Back to top
View user's profile Send private message
Cinder6
l33t
l33t


Joined: 05 Aug 2004
Posts: 767
Location: California

PostPosted: Sun Aug 21, 2005 5:02 am    Post subject: Reply with quote

Machine 2 has the dependencies installed already?
_________________
Knowledge is power.
Power corrupts.
Study hard.
Be evil.

Ugly Overload
Back to top
View user's profile Send private message
Taladar
Guru
Guru


Joined: 09 Oct 2004
Posts: 458
Location: Bielefeld, Germany

PostPosted: Sun Aug 21, 2005 12:20 pm    Post subject: Reply with quote

Try adding a "-v" to the emerge command to see the USE-flags of each package.
Back to top
View user's profile Send private message
mpagano
Developer
Developer


Joined: 27 Apr 2004
Posts: 197
Location: USA

PostPosted: Sun Aug 21, 2005 1:09 pm    Post subject: Reply with quote

I put the -v in with the other options and I get the same output.

Both system do not have app-misc/mc installed. Weird.

Use flags for system that displays the dependency tree:

Code:
USE="-gnome cdparanoia doc dts dvd dvdread nptl nptlonly win32codecs"


Use flags for the system that does not display the dependency tree:

Code:
USE="nptl nptlonly cdparanoia kdeenablefinal browserplugin win32codecs doc"


Fairly benign use flags, I think.
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Sun Aug 21, 2005 1:14 pm    Post subject: Reply with quote

Most of the dependencies seem to be pulled in by the doc use flag. I'd say you've added that recently on one machine so they are new for that machine while on the other machine those packages are already installed.
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
mpagano
Developer
Developer


Joined: 27 Apr 2004
Posts: 197
Location: USA

PostPosted: Sun Aug 21, 2005 3:09 pm    Post subject: Reply with quote

Quote:
I'd say you've added that recently on one machine so they are new for that machine while on the other machine those packages are already installed.


You are correct, sir!


Now, is there a way regardless of use flags to say:

Please show me all dependencies of package A whether or not they are installed?

Mike
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Sun Aug 21, 2005 3:16 pm    Post subject: Reply with quote

--tree --deep
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
mpagano
Developer
Developer


Joined: 27 Apr 2004
Posts: 197
Location: USA

PostPosted: Sun Aug 21, 2005 3:24 pm    Post subject: Reply with quote

Code:
emerge --tree --deep --pretend mc

These are the packages that I would merge, in reverse order:

Calculating dependencies ...done!
[ebuild  N    ] app-misc/mc-4.6.0-r14



mc-4.6.0-r14.ebuild

Code:
...
RDEPEND=">=sys-fs/e2fsprogs-1.19
    ncurses? ( >=sys-libs/ncurses-5.2-r5 )
    =dev-libs/glib-2*
    pam? ( >=sys-libs/pam-0.72 )
    gpm? ( >=sys-libs/gpm-1.19.3 )
    slang? ( >=sys-libs/slang-1.4.9-r1 )
    samba? ( >=net-fs/samba-3.0.0 )
    unicode? ( >=sys-libs/slang-1.4.9-r1 )
    X? ( virtual/x11 )
    x86? ( 7zip? ( >=app-arch/p7zip-4.16 ) )
    ppc? ( 7zip? ( >=app-arch/p7zip-4.16 ) )
    amd64? ( 7zip? ( >=app-arch/p7zip-4.16 ) )"

DEPEND="${RDEPEND}
    dev-util/pkgconfig"
...


I'm looking for something that will show dependencies.
Back to top
View user's profile Send private message
Genone
Retired Dev
Retired Dev


Joined: 14 Mar 2003
Posts: 9555
Location: beyond the rim

PostPosted: Mon Aug 22, 2005 2:59 pm    Post subject: Reply with quote

"--tree --emptytree" will show all dependencies (likely more than you want).
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat 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