Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Dont want to reset your package.mask every time you sync?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
color
n00b
n00b


Joined: 02 Jul 2003
Posts: 3
Location: Internet

PostPosted: Sat Jul 19, 2003 8:15 pm    Post subject: Dont want to reset your package.mask every time you sync? Reply with quote

Do you want to keep your package.mask so you dont need to remodify it every time you sync the portage-tree? Well, here's how you do it:

1. Change line 1516 in /usr/bin/emerge.
Currently it should look like this:
Code:
mycommand="/usr/bin/rsync -rlptDvz --progress --stats --delete --delete-after --timeout="+str(mytimeout)+" --exclude='distfiles/*' --exclude='packages/*'"

So you go and change that into this:
Code:
mycommand="/usr/bin/rsync -rlptDvz --progress --stats --delete --delete-after --timeout="+str(mytimeout)+" --exclude='distfiles/*' --exclude='packages/*' --exclude='profiles/package.mask'"

REMEMBER to keep the above on _one_ single line.

2. Save.
3. Have a coke and feel happy. 8)
Back to top
View user's profile Send private message
jonaswhale
n00b
n00b


Joined: 17 Jul 2003
Posts: 38
Location: Maryland

PostPosted: Sat Jul 19, 2003 8:21 pm    Post subject: more than one line Reply with quote

it should work on more than one line if you insert a /

as in

Code:
mycommand="/usr/bin/rsync -rlptDvz --progress --stats --delete --delete-after \ --timeout="+str(mytimeout)+" --exclude='distfiles/*' --exclude='packages/*'  \
--exclude='profiles/package.mask'"

_________________
Technology should be indistinguishable from magic.
Back to top
View user's profile Send private message
color
n00b
n00b


Joined: 02 Jul 2003
Posts: 3
Location: Internet

PostPosted: Sat Jul 19, 2003 8:25 pm    Post subject: Reply with quote

Yeah, i know, just wanted it to be as simple as possible. :D
Back to top
View user's profile Send private message
TGL
Bodhisattva
Bodhisattva


Joined: 02 Jun 2002
Posts: 1978
Location: Rennes, France

PostPosted: Sat Jul 19, 2003 11:53 pm    Post subject: Reply with quote

This is a bad idea. The mask is here for some good reasons, and it may be dangerous to keep it out of sync.

If you want to overload it, you can:
- unmask things using /etc/portage/package.unmask
- mask things using /etc/portage/profiles/package.mask (or /etc/portage/package.mask with portage-2.0.49_pre*)

(Oh, and to exclude files of the rsync without editing portage code, you can do it the way explained in /etc/make.conf. Look at the comments about the RSYNC_EXCLUDEFROM variable.)
Back to top
View user's profile Send private message
smouge
n00b
n00b


Joined: 22 Jan 2003
Posts: 66
Location: Oosterhout, the Netherlands

PostPosted: Tue Jul 22, 2003 6:25 am    Post subject: Reply with quote

look here:

https://forums.gentoo.org/viewtopic.php?t=13964

for a way to prevent installing a particular package
Back to top
View user's profile Send private message
color
n00b
n00b


Joined: 02 Jul 2003
Posts: 3
Location: Internet

PostPosted: Tue Jul 22, 2003 12:31 pm    Post subject: Reply with quote

It would be a good thing if there was two files, package.mask and package.include.mask. The package.mask is updated during sync and the package.include.mask is not. However, when emerging, the emerge-program will check both these files to check if the program is masked or not. Or, we can do it the other way, make a shellscript that does emerge sync and then copies the text inside package.include.mask into package.mask, which one is your choice.
Back to top
View user's profile Send private message
TGL
Bodhisattva
Bodhisattva


Joined: 02 Jun 2002
Posts: 1978
Location: Rennes, France

PostPosted: Tue Jul 22, 2003 1:56 pm    Post subject: Reply with quote

As explained in my above post...

@smouge: There is no need for any mask merging script for a few months, portage does now support overloading the standard mask with user mask/unmask files.

@color: your "portage.include.mask" already exists and is called /etc/portage(/profiles)/package.mask (with or without /profiles depends on your portage version). The dir and file doesn't exists if you don't create it, but if you do, portage will read it.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks 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