Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
never upgrading a 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
BigRedDot
n00b
n00b


Joined: 29 Oct 2002
Posts: 67
Location: Austin

PostPosted: Tue Feb 04, 2003 6:02 am    Post subject: never upgrading a package Reply with quote

I am wondering how I can let portage know that I never want to upgrade a certain package. I positively can't stand the interface to emacs 21.2, no matter what build options and widget sets I try setting in the ebuild. I hacked together an ebuild for emacs 20.7 and I would like portage to stop telling me I need to upgrade it, since I never will.
_________________
Even if you are one-in-a-million, there are still 6000 people just like you.
Back to top
View user's profile Send private message
phong
Bodhisattva
Bodhisattva


Joined: 16 Jul 2002
Posts: 778
Location: Michigan - 15 & Ryan

PostPosted: Tue Feb 04, 2003 6:11 am    Post subject: Reply with quote

You could add a line to /usr/portage/profiles/package.mask. It gets tossed with emerge rsync, but I have a little perl script that I run after each rsync to make some changes for packages that I unmask manually. The script for your situation would be a simple shell script (not tested):
Code:
#!/bin/sh
echo ">app-editors/emacs-20.7" >> /usr/portage/profiles/package.mask

_________________
"An empty head is not really empty; it is stuffed with rubbish. Hence the difficulty of forcing anything into an empty head."
-- Eric Hoffer
Back to top
View user's profile Send private message
BigRedDot
n00b
n00b


Joined: 29 Oct 2002
Posts: 67
Location: Austin

PostPosted: Tue Feb 04, 2003 4:43 pm    Post subject: Reply with quote

Updating packages.mask every single time there's and emerge rsync is really the best solution? I guess I just assumed there had to be a simple way to specify packages that portage is not to touch. Oh well.
_________________
Even if you are one-in-a-million, there are still 6000 people just like you.
Back to top
View user's profile Send private message
choenig
Tux's lil' helper
Tux's lil' helper


Joined: 04 Nov 2002
Posts: 83
Location: EDDK, Germany

PostPosted: Tue Feb 04, 2003 9:58 pm    Post subject: Reply with quote

How about using the --oneshot option of emerge?

Code:

--oneshot
Emerge as normal, but don't add packages to the world profile for later updating. This prevents consideration of this package unless this package is depended upon by another package.


Or did I miss your question?
take care, have fun
/christian
Back to top
View user's profile Send private message
tecknojunky
Veteran
Veteran


Joined: 19 Oct 2002
Posts: 1937
Location: Montréal

PostPosted: Tue Feb 04, 2003 10:22 pm    Post subject: Reply with quote

nevertheless wrote:
How about using the --oneshot option of emerge?

Code:

--oneshot
Emerge as normal, but don't add packages to the world profile for later updating. This prevents consideration of this package unless this package is depended upon by another package.


Or did I miss your question?
take care, have fun
/christian

That should go in the tips and tricks.
_________________
(7 of 9) Installing star-trek/species-8.4.7.2::talax.
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