public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] package masking question
@ 2006-06-27 18:32 Roy Wright
  2006-06-27 18:49 ` Hani Duwaik
  2006-06-28  1:57 ` AJ Spagnoletti
  0 siblings, 2 replies; 6+ messages in thread
From: Roy Wright @ 2006-06-27 18:32 UTC (permalink / raw
  To: gentoo-user

Howdy,

I'm curious if there is a way to conditionally package mask.
Let me give todays example.

Running ~x86.

gimp-2.3.9 is installed.

gimp-perl-2.2_pre1 has this RDEPEND =media-gfx/gimp-2.2*

So naturally wants to downgrade gimp to 2.2.11-r1.

What would be nice is to be able to mask:

  >=gimp-2.3 if =gimp-perl-2.2_pre1

That would then downgrade gimp to 2.2 and leave it there
until the next version of gimp-perl is available.

As it is, all I can see to do to prevent upgrade/downgrade
cycling of gimp is to package mask >=gimp-2.3 and hopefully
remember to unmask it when the next release of gimp-perl
is available.

It just feels like there ought to be a better way...


Thank you,
Roy
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] package masking question
  2006-06-27 18:32 [gentoo-user] package masking question Roy Wright
@ 2006-06-27 18:49 ` Hani Duwaik
  2006-06-27 19:48   ` Roy Wright
  2006-06-28  1:57 ` AJ Spagnoletti
  1 sibling, 1 reply; 6+ messages in thread
From: Hani Duwaik @ 2006-06-27 18:49 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1551 bytes --]

On 6/27/06, Roy Wright <royw@cisco.com> wrote:
>
> Howdy,
>
> I'm curious if there is a way to conditionally package mask.
> Let me give todays example.
>
> Running ~x86.
>
> gimp-2.3.9 is installed.
>
> gimp-perl-2.2_pre1 has this RDEPEND =media-gfx/gimp-2.2*
>
> So naturally wants to downgrade gimp to 2.2.11-r1.
>
> What would be nice is to be able to mask:
>
>   >=gimp-2.3 if =gimp-perl-2.2_pre1
>
> That would then downgrade gimp to 2.2 and leave it there
> until the next version of gimp-perl is available.
>
> As it is, all I can see to do to prevent upgrade/downgrade
> cycling of gimp is to package mask >=gimp-2.3 and hopefully
> remember to unmask it when the next release of gimp-perl
> is available.
>
> It just feels like there ought to be a better way...
>
> Have you tried the suggestion outlined at:

http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=3&chap=3

=======================

The package.mask file

When you don't want Portage to take a certain package or a specific version
of a package into account you can mask it yourself by adding an appropriate
line to /etc/portage/package.mask.

For instance, if you don't want Portage to install newer kernel sources than
gentoo-sources-2.6.8.1, you add the following line to package.mask:

Code Listing 5: /etc/portage/package.mask example

>sys-kernel/gentoo-sources-2.6.8.1

============================================

Just wondering...

-Hani

-- 
"If, of the many truths, you select only one and follow it blindly, it will
become a falsehood, and you a fanatic."

[-- Attachment #2: Type: text/html, Size: 2388 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] package masking question
  2006-06-27 18:49 ` Hani Duwaik
@ 2006-06-27 19:48   ` Roy Wright
  2006-06-27 20:49     ` Benno Schulenberg
  0 siblings, 1 reply; 6+ messages in thread
From: Roy Wright @ 2006-06-27 19:48 UTC (permalink / raw
  To: gentoo-user

Hani Duwaik wrote:
>> Have you tried the suggestion outlined at:
>
> http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=3&chap=3
>

Yes, that is just normal package masking.  Maybe I should elaborate.
I like to update daily.  When the occasional blocker or cyclic dependency
hit, I'd like to simply mark it (generate bug report if necessary), and go
on.  Where I find myself failing with the package.mask approach is
remembering some time in the future to go back and remove these
temporary masks.

So I was querying if there is a better process.  Some way to tickle
that the ebuild that caused the problem has been upgraded and that
I should unmask the package.


Thank you,
Roy

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] package masking question
  2006-06-27 19:48   ` Roy Wright
@ 2006-06-27 20:49     ` Benno Schulenberg
  2006-06-27 21:31       ` Neil Bothwick
  0 siblings, 1 reply; 6+ messages in thread
From: Benno Schulenberg @ 2006-06-27 20:49 UTC (permalink / raw
  To: gentoo-user

Roy Wright wrote:
> Where I find myself failing
> with the package.mask approach is remembering some time in the
> future to go back and remove these temporary masks.

If you keep the temporary masks at the top of package.mask, you 
could make a wrapper for emerge that after every --sync prints say 
the top five lines of /etc/portage/package.mask, to remind you.

Benno
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] package masking question
  2006-06-27 20:49     ` Benno Schulenberg
@ 2006-06-27 21:31       ` Neil Bothwick
  0 siblings, 0 replies; 6+ messages in thread
From: Neil Bothwick @ 2006-06-27 21:31 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 502 bytes --]

On Tue, 27 Jun 2006 22:49:37 +0200, Benno Schulenberg wrote:

> If you keep the temporary masks at the top of package.mask, you 
> could make a wrapper for emerge that after every --sync prints say 
> the top five lines of /etc/portage/package.mask, to remind you.

Or add comments and grep for ^#

If you wanted to be really cute, you could use /etc/portage/bashrc to
email you when a specific package gets a new version.


-- 
Neil Bothwick

Trekkers work out in the `He's Dead Gym'.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] package masking question
  2006-06-27 18:32 [gentoo-user] package masking question Roy Wright
  2006-06-27 18:49 ` Hani Duwaik
@ 2006-06-28  1:57 ` AJ Spagnoletti
  1 sibling, 0 replies; 6+ messages in thread
From: AJ Spagnoletti @ 2006-06-28  1:57 UTC (permalink / raw
  To: gentoo-user

On 6/27/06, Roy Wright <royw@cisco.com> wrote:
> Howdy,
>
> I'm curious if there is a way to conditionally package mask.
> Let me give todays example.
>
> Running ~x86.
>
> gimp-2.3.9 is installed.
>
> gimp-perl-2.2_pre1 has this RDEPEND =media-gfx/gimp-2.2*
>
> So naturally wants to downgrade gimp to 2.2.11-r1.
>
> What would be nice is to be able to mask:
>
>   >=gimp-2.3 if =gimp-perl-2.2_pre1
>
> That would then downgrade gimp to 2.2 and leave it there
> until the next version of gimp-perl is available.
>

Just a thought here but would it be worthwhile to just modify the
ebuild? instead of
RDEPEND =media-gfx/gimp-2.2*
have this
RDEPEND >=media-gfx/gimp-2.2*

This would allow you to not have to downgrade gimp. Its a possibilty
without more research I wouldnt be able to tell you if its the best
solution or not though

AJ
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-06-28  2:10 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-27 18:32 [gentoo-user] package masking question Roy Wright
2006-06-27 18:49 ` Hani Duwaik
2006-06-27 19:48   ` Roy Wright
2006-06-27 20:49     ` Benno Schulenberg
2006-06-27 21:31       ` Neil Bothwick
2006-06-28  1:57 ` AJ Spagnoletti

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox