| View previous topic :: View next topic |
| Author |
Message |
color n00b

Joined: 02 Jul 2003 Posts: 3 Location: Internet
|
Posted: Sat Jul 19, 2003 8:15 pm Post subject: Dont want to reset your package.mask every time you sync? |
|
|
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.  |
|
| Back to top |
|
 |
jonaswhale n00b

Joined: 17 Jul 2003 Posts: 38 Location: Maryland
|
Posted: Sat Jul 19, 2003 8:21 pm Post subject: more than one line |
|
|
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 |
|
 |
color n00b

Joined: 02 Jul 2003 Posts: 3 Location: Internet
|
Posted: Sat Jul 19, 2003 8:25 pm Post subject: |
|
|
Yeah, i know, just wanted it to be as simple as possible.  |
|
| Back to top |
|
 |
TGL Bodhisattva

Joined: 02 Jun 2002 Posts: 1978 Location: Rennes, France
|
Posted: Sat Jul 19, 2003 11:53 pm Post subject: |
|
|
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 |
|
 |
smouge n00b


Joined: 22 Jan 2003 Posts: 66 Location: Oosterhout, the Netherlands
|
|
| Back to top |
|
 |
color n00b

Joined: 02 Jul 2003 Posts: 3 Location: Internet
|
Posted: Tue Jul 22, 2003 12:31 pm Post subject: |
|
|
| 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 |
|
 |
TGL Bodhisattva

Joined: 02 Jun 2002 Posts: 1978 Location: Rennes, France
|
Posted: Tue Jul 22, 2003 1:56 pm Post subject: |
|
|
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 |
|
 |
|