masking packages so emerge don't update

Request new features that might make using Gentoox better.
Post Reply
Schultz
Novice
Posts: 40
Joined: Wed Mar 31, 2004 1:58 am

masking packages so emerge don't update

Post by Schultz »

I have been reading the Portage manual and i thought it was a good idea to create a /etc/portage/package.mask file for the Xbox which would prevent portage from updating certain software that needs special patchs to work with the xbox ala alsa, xfree, kernel
If i could get the software and versions needed i would be more then willing to build this file so shallex could put it into gentoox and it would save people doing emerge updates to not accidently overwrite software.. Again just an idea.

also i was looking and it looks like emerge --inject is depreciated in latest versions of portage and they suggest using the package.mask file which is why i am suggesting this.
nobspangle
Gentoox Guru!
Posts: 1681
Joined: Sun Sep 28, 2003 11:59 am
Location: Manchester, UK

Post by nobspangle »

I don't see how you can replace inject with package.mask
inject makes portage think a package is installed,
If I wanted to install a media package on the xbox that depends on alsa, portage would try to install alsa as it is not installed with portage. To stop this happening I would inject alsa. Putting alsa into the package.mask file would just make the ebuild fail saying it couldn't satisfy the dependencies.

Also you don't have to worry about xfree being updated as it's no longer in portage and the kernel isn't installed using portage so that doesn't get updated
If you keep an open mind, will your brain fall out?
nobspangle
Gentoox Guru!
Posts: 1681
Joined: Sun Sep 28, 2003 11:59 am
Location: Manchester, UK

Post by nobspangle »

I've had a bit of a poke around, it seems that --inject is to be replaced by package.mask and package.provided depending on the reason for using --inject

In this situation you would use package.provided because you are providing alsa yourself. You would use package.mask to stop xfree from being updated (but you don't need to do this anymore)
If you keep an open mind, will your brain fall out?
Schultz
Novice
Posts: 40
Joined: Wed Mar 31, 2004 1:58 am

Post by Schultz »

thanks for the responses.
But isn't it if you use package.provided it will still try to upgrade to latest version of alsa if there is as currently there is 1.0.7 sitting in portage. From what i understand useing the provided it just wouldn't reinstall 1.0.4 or deal anything with that.
ShALLaX
Site Admin
Posts: 1973
Joined: Sun Aug 10, 2003 9:25 pm
Location: England
Contact:

Post by ShALLaX »

Well, the good news is... ALSA have included an Xbox patch... so when that makes it as stable in Portage the alsa patch can be removed.
The original Xbox adaptation of Gentoo
Schultz
Novice
Posts: 40
Joined: Wed Mar 31, 2004 1:58 am

Post by Schultz »

what version of that included it?
ShALLaX
Site Admin
Posts: 1973
Joined: Sun Aug 10, 2003 9:25 pm
Location: England
Contact:

Post by ShALLaX »

Not sure.
The original Xbox adaptation of Gentoo
Schultz
Novice
Posts: 40
Joined: Wed Mar 31, 2004 1:58 am

Post by Schultz »

Ok thanks for the info.. i guess will look forward to it when ever it gets added and stable into portage.
nobspangle
Gentoox Guru!
Posts: 1681
Joined: Sun Sep 28, 2003 11:59 am
Location: Manchester, UK

Post by nobspangle »

Schultz wrote:thanks for the responses.
But isn't it if you use package.provided it will still try to upgrade to latest version of alsa if there is as currently there is 1.0.7 sitting in portage. From what i understand useing the provided it just wouldn't reinstall 1.0.4 or deal anything with that.
Good point, you probablly need to use both files, i.e provide the alsa you have installed and mask anything above that
If you keep an open mind, will your brain fall out?
ShALLaX
Site Admin
Posts: 1973
Joined: Sun Aug 10, 2003 9:25 pm
Location: England
Contact:

Post by ShALLaX »

Funny you should bring all this stuff up.. I've had to do something similar just this minute to stop xorg from deprecating xfree.
The original Xbox adaptation of Gentoo
Post Reply