Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 26351 - Add a blank /etc/portage/package.mask in portage
Summary: Add a blank /etc/portage/package.mask in portage
Status: RESOLVED WONTFIX
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
: 57402 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-08-10 14:18 UTC by Mark Mealman
Modified: 2011-10-30 22:19 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Mealman 2003-08-10 14:18:39 UTC
With the recent apache-2 and mysql-4 stable ebuilds there's been a lot of
confusion on how to keep Gentoo from automatically upgrading those packages.
It's simply a matter of adding an entry or two to /etc/portage/package.mask but
since no /etc/portage directory exists by default on Gentoo, it's sort of a
hidden feature.

Shipping a blank /etc/portage/package.mask file(maybe with some comments in it
on what it does) would help with this, as I think it would make the feature a
little more obvious.
Comment 1 Jonathan Hitchcock 2003-09-16 03:42:59 UTC
It's taken me a while to find this, I've been trying to work out how to have my own local masks.

There's an einfo in the portage ebuild that says:
"/etc/portage/profiles/package.mask is now /etc/portage/package.mask
a hardlink has been created to the new location if it exists in profiles already."

But there is no /etc/portage and no package.mask, as Mark says.  This is a trivial bug to fix, you just need an insinto in the ebuild, and a file in /usr/portage/sys-apps/portage/files that says something along the lines of:

# $Id$
# Use this file to mask packages that you do not want installed or upgraded
#
# Examples:
#
# Don't emerge any versions of mozilla later than 1.2:
#>net-www/mozilla-1.2
#
# Don't emerge xmms-1.2.7 only:
#=media-sound/xmms-1.2.7
#

And so on.

Trivial fix, but necessary, I've wanted to do this for ages, as have others I know (who generally do it by adding their entries to /usr/portage/profiles/package.mask every time they emerge sync).
Comment 2 Marius Mauch (RETIRED) gentoo-dev 2003-09-25 12:48:11 UTC
Some commented example files would be nice, the upcoming files in /etc/portage
have no pendant in /usr/portage.
Comment 3 Nicholas Jones (RETIRED) gentoo-dev 2003-10-05 16:08:04 UTC
It was hidden on purpose. It's not intended to be a common method of
masking. It's a feature that shouldn't be used unless the user knows
what they are doing. If they don't figure it out, they probably won't
know how to deal with the outcome should it be unfriendly.
Comment 4 Marius Mauch (RETIRED) gentoo-dev 2003-10-05 16:23:23 UTC
Ok, then we can close this as well.
Comment 5 Marius Mauch (RETIRED) gentoo-dev 2004-07-17 11:05:01 UTC
*** Bug 57402 has been marked as a duplicate of this bug. ***
Comment 6 Stephen Bennett (RETIRED) gentoo-dev 2004-07-17 14:21:07 UTC
Now that /etc/portage is the recommended way to mix stable/unstable packages (package.keywords), is it worth taking another look at this? I can understand wanting to hide the package.mask functionality originally, but making package.keywords slightly more obvious seems a better idea IMO than leaving people to try and work out how to do it themselves, which would lead people to use emerge -U on a regular basis. Since the latter has been deprecated in favour of this option, I'd suggest making it a bit more obvious.