Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ANN: emasked
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
MonkeeSage
n00b
n00b


Joined: 23 Jan 2007
Posts: 10

PostPosted: Sat Nov 24, 2007 6:49 am    Post subject: ANN: emasked Reply with quote

I wrote a small python script (and Haskell source + binary) for seaching /usr/portage/profiles/package.mask for data about masked packages. It shows the masked package(s), who masked them, and the reason for the mask.

Example output of "emasked ghc":

Code:
Package(s):
  dev-lang/ghc-bin

Masked by:
  Duncan Coutts <dcoutts@gentoo.otg> (05 Nov 2007)

Reason:
  dev-lang/ghc-bin is going away, use dev-lang/ghc instead.
  You can USE=binary with dev-lang/ghc to get the effect of ghc-bin.


The usage is: "emasked ATOM" where ATOM is a POSIX regex matching some porition of the package atom.

There may already be a utility like this, I didn't check too much; if there is, this isn't meant to be "better" or anything. I just had a need and thought others might as well.

Get it here: http://monkeesage.prohosts.org/emasked

Regards,
Jordan
Back to top
View user's profile Send private message
mark_alec
Bodhisattva
Bodhisattva


Joined: 11 Sep 2004
Posts: 6066
Location: Melbourne, Australia

PostPosted: Sat Nov 24, 2007 8:57 am    Post subject: Reply with quote

Moved from Portage & Programming to Documentation, Tips & Tricks.
_________________
www.gentoo.org.au || #gentoo-au
Back to top
View user's profile Send private message
MonkeeSage
n00b
n00b


Joined: 23 Jan 2007
Posts: 10

PostPosted: Sat Jan 12, 2008 4:17 pm    Post subject: Re: ANN: emasked Reply with quote

MonkeeSage wrote:
I wrote a small python script (and Haskell source + binary) for seaching /usr/portage/profiles/package.mask for data about masked packages. It shows the masked package(s), who masked them, and the reason for the mask.

Example output of "emasked ghc":

Code:
Package(s):
  dev-lang/ghc-bin

Masked by:
  Duncan Coutts <dcoutts@gentoo.otg> (05 Nov 2007)

Reason:
  dev-lang/ghc-bin is going away, use dev-lang/ghc instead.
  You can USE=binary with dev-lang/ghc to get the effect of ghc-bin.


The usage is: "emasked ATOM" where ATOM is a POSIX regex matching some porition of the package atom.

There may already be a utility like this, I didn't check too much; if there is, this isn't meant to be "better" or anything. I just had a need and thought others might as well.

Get it here: http://monkeesage.prohosts.org/emasked

Regards,
Jordan


Bump...I can't be the only one who finds this functionality useful?!
Back to top
View user's profile Send private message
ppurka
Advocate
Advocate


Joined: 26 Dec 2004
Posts: 3182

PostPosted: Sun Jan 13, 2008 6:40 am    Post subject: Reply with quote

One of the reasons might be that the following is a viable approximation of the above script :P
Code:
grep -B 10 <package-name> /usr/portage/profiles/package.mask

_________________
emerge --quiet redefined | E17 vids: I, II
Back to top
View user's profile Send private message
MonkeeSage
n00b
n00b


Joined: 23 Jan 2007
Posts: 10

PostPosted: Sun Jan 13, 2008 11:48 pm    Post subject: Reply with quote

ppurka wrote:
One of the reasons might be that the following is a viable approximation of the above script :P
Code:
grep -B 10 <package-name> /usr/portage/profiles/package.mask

Well...yeah. :P But mine gives color output and actually groks sections rather than guessing at what line-count would be useful (as well as searching only for package atoms and not matching in the comment section). But yeah, I used something like your example prior to writing this, I just thought somebody (besides me, heh) might find it useful. Guess not. ;)

Regards,
Jordan
Back to top
View user's profile Send private message
ilm
Guru
Guru


Joined: 29 Jun 2006
Posts: 310
Location: Brisbane, Australia

PostPosted: Wed Jan 16, 2008 1:33 pm    Post subject: Reply with quote

Looks nice... now, if only you could write an ebuild for it (or at the very least a .cabal file... :wink: )...
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