Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] moving gnome (or gnome-light) out of "world file"
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
pvar
n00b
n00b


Joined: 18 Jan 2006
Posts: 10
Location: Athens, Greece

PostPosted: Wed May 23, 2007 7:49 am    Post subject: [SOLVED] moving gnome (or gnome-light) out of "world fi Reply with quote

I want to remove some of the packages that came along with GNOME.
I'm using gentoo for a long time now and I know that I could just do
something like this:
Code:

emerge -C "application_name"

Seems right, but it's not!!
You see, the next time I will upgrade world, portage will think that it must
install the application I removed (as being a part of the GNOME meta-package).

So, is there a permanent solution to this problem (removing a part of GNOME)??

I guess that I could "edit" the GNOME ebuild, but this is way too hardcore for me!
Apart from that. updating portage will restore the ebuild to the original form (I guess)!

I was thinking of manually removing the "gnome" entry from the world file...
and then (manually again) adding the appropriate entries (for the installed components)... 8O :?

Any ideas/suggestions?

Thanks in advance! :-)


Last edited by pvar on Fri May 25, 2007 5:17 pm; edited 1 time in total
Back to top
View user's profile Send private message
Kaste
Guru
Guru


Joined: 21 Dec 2005
Posts: 546
Location: /home Sweet /home

PostPosted: Wed May 23, 2007 10:31 am    Post subject: Reply with quote

Depending on what you want to get rid of i would recommend /etc/make.profile/package.provided or a gnome-light meta with whatever else you need to add on. I guess you considered the latter but still i would prefer that solution since only the really necessary stuff is installed then and those you need for sure. If youremove something in that meta you will probably run into trouble. Same holds for package.provided. You have to make really sure you don't get rid of something that some other package depends upon.
Following is an excerpt from man portage explaining. package.provided

Code:

 package.provided
                     A list of packages (one per line) that portage should assume have been provided.  Useful  for  porting  to
                     non-Linux  systems.  Portage will not attempt to update a package that is listed here unless another pack-
                     age explicitly requires a version that is newer than what has been listed.  Basically, it's  a  list  that
                     replaces the emerge --inject syntax.

                     For  example,  if  you  manage  your  own  copy  of a 2.6 kernel, then you can tell portage that 'sys-ker-
                     nel/development-sources-2.6.7' is already taken care of and it should get off your back about it.

                     Virtual packages (virtual/*) should not be specified in package.provided.  Depending on the type  of  vir-
                     tual,  it may be necessary to add an entry to the virtuals file and/or add a package that satisfies a vir-
                     tual to package.provided.

                     Format:
                     - comments begin with #
                     - one DEPEND atom per line
                     - relational operators are not allowed
                     - must include a version

                     Example:
                     # you take care of the kernel
                     sys-kernel/development-sources-2.6.7

                     # you installed your own special copy of QT
                     x11-libs/qt-3.3.0

                     # you have modular X but packages want monolithic
                     x11-base/xorg-x11-6.8

_________________
I'm a membar of Mesnar and me scull contains wakky secrets!
Back to top
View user's profile Send private message
red-wolf76
l33t
l33t


Joined: 13 Apr 2005
Posts: 714
Location: Rhein-Main Area

PostPosted: Wed May 23, 2007 12:05 pm    Post subject: Reply with quote

Code:
emerge -C gnome && emerge gnome-light && emerge -p --depclean

Then as above. Unmerge what you can live without and put it in package.provided to avoid re-emerging. Be sure not to discard any library dependencies.
Code:
emerge udept
and running dep -s may also help.

Another way would be to emerge -C gnome && emerge -p gnome-light, then merge all the packages listed manually (omitting gnome-light itself, of course) and then doing an emerge -p --depclean to see what portage wants to ditch.
_________________
0mFg, G3nt00 r0X0r$ T3h B1g!1111 ;)

Use sane CFLAGS! If for no other reason, do it for the lulz!
Back to top
View user's profile Send private message
pvar
n00b
n00b


Joined: 18 Jan 2006
Posts: 10
Location: Athens, Greece

PostPosted: Wed May 23, 2007 1:15 pm    Post subject: Reply with quote

Thanks a lot! :D

Both your answers were very useful!!
Back to top
View user's profile Send private message
red-wolf76
l33t
l33t


Joined: 13 Apr 2005
Posts: 714
Location: Rhein-Main Area

PostPosted: Wed May 23, 2007 2:04 pm    Post subject: Reply with quote

If you're not using Evolution or anything depending on its data-server, you can also add "-eds" to the USE variable in your make.conf file. Takes a bit of fiddling to really put down, but makes the world smaller! :P
_________________
0mFg, G3nt00 r0X0r$ T3h B1g!1111 ;)

Use sane CFLAGS! If for no other reason, do it for the lulz!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments 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