Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 73306

Summary: When checking arguments ekeyword may not have the correct regular expression
Product: Gentoo/Alt Reporter: Charles Stockman <chuck-stockman>
Component: Mac OSXAssignee: Gentoo for Mac OS X <ppc-macos>
Status: RESOLVED LATER    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: PPC64   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---

Description Charles Stockman 2004-12-03 22:55:39 UTC
Here is what I did  

cd /usr/portage/kde-base
ekeyword ~pcc-maxos kdebase-3.3.1.ebuild
syntax: ekeyword { arch | ~[arch] | -[arch] } ebuild...

I believe that the fix should be the following.


my ($kw_re) = '^(?:([-~^]?)(\w+)|([-^]\*))$';

Change the \w+ to \S+.  This will allow you to get the - because \w only looks at the alpha-numeric and _ while \S+ would include the -

Thank you for looking at this problem

Reproducible: Always
Steps to Reproduce:
1.cd /usr/portage/kde-base
2.ekeyword ~pcc-maxos kdebase-3.3.1.ebuild
3.
Actual Results:  
syntax: ekeyword { arch | ~[arch] | -[arch] } ebuild...

Expected Results:  
I believe that ekeyword should have accpeted the arguemnts ( This is my first time running it so I 
reallly don't have a clue)
Comment 1 Mamoru KOMACHI (RETIRED) gentoo-dev 2004-12-03 23:15:17 UTC
It is already fixed in _pre4. AFAIK this is the
third bug report of ekeyword, and so I marked
_pre4 stable on ppc-macos (hope it's okay,
because <=_pre3 is broken wrt ekeyword on
ppc-macos). Please use _pre4 rather than <=_pre3.