Gentoo Archives: gentoo-user

From: Mick <michaelkintzios@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] [portage] rebuild dependencies of a package
Date: Thu, 25 Jul 2013 15:16:06
Message-Id: 201307251615.43159.michaelkintzios@gmail.com
In Reply to: [gentoo-user] [portage] rebuild dependencies of a package by "András Csányi"
1 On Thursday 25 Jul 2013 15:28:23 András Csányi wrote:
2 > Hi All,
3 >
4 > I would like to ask some help regarding hos to use portage.
5 >
6 > I have a few packages to rebuild on my system and sometimes I have to
7 > - or I think I have to - rebuild dependencies of a package to fix a
8 > compiling issue.
9 >
10 > I do it something like this:
11 >
12 > equery g nautilus
13 >
14 > * dependency graph for gnome-base/nautilus-3.6.3_p0_p16
15 > `-- gnome-base/nautilus-3.6.3_p0_p16 ~amd64
16 > `-- dev-libs/glib-2.37.3_p1_p02 (>=dev-libs/glib-2.35.9)
17 [snip ...]
18
19
20 > and I copy all of the package names and rebuild them.
21 >
22 > Is there a easier way to rebuild dependencies of a package? I mean a
23 > command or something?
24 >
25 > I have searched in the google and I do not find answer for my question.
26 >
27 > Thanks for any help in advance!
28
29 In your /etc/make.conf add:
30
31 preserve-libs
32
33 in the FEATURES section. Then run:
34
35 emerge @preserved-rebuild
36
37 In addition, you can finish it off with:
38
39 revdep-rebuild -v -- --ask
40
41
42 This will rebuild any dependencies that have been affected by whatever other
43 package you happened to have installed/updated recently. When you finish
44 emerging look into your elog messages, because portage often warns you that
45 you need to run either of these two commands and it is advisable to do so
46 after you have run 'emerge --depclean --ask'.
47 --
48 Regards,
49 Mick

Attachments

File name MIME type
signature.asc application/pgp-signature