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

Bug 227265

Summary: portage rejects legitimate package names with version-like parts or consecutive hyphens
Product: Portage Development Reporter: Santiago M. Mola (RETIRED) <coldwind>
Component: CoreAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: normal CC: loki_val, pms
Priority: High Keywords: InVCS
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 261959    

Description Santiago M. Mola (RETIRED) gentoo-dev 2008-06-15 17:32:38 UTC
Portage rejects any package name which have a version-like "part", even if it's not at the end of the name.

'9p' or '9p-foo' are valid package names but rejected by portage.

While fixing pkgsplit(), it'd be worth to fix package names with consecutive hyphens too. Like 'i--' or 'i---weird'.
Comment 1 Santiago M. Mola (RETIRED) gentoo-dev 2009-03-25 22:42:24 UTC
*** Bug 263787 has been marked as a duplicate of this bug. ***
Comment 2 Zac Medico gentoo-dev 2009-03-25 23:51:35 UTC
Thanks, this is fixed in svn r13185.

(In reply to comment #0)
> While fixing pkgsplit(), it'd be worth to fix package names with consecutive
> hyphens too. Like 'i--' or 'i---weird'.

It seems to already check for that. I've added some test cases for that.
Comment 3 Zac Medico gentoo-dev 2009-03-26 00:09:06 UTC
> (In reply to comment #0)
> > While fixing pkgsplit(), it'd be worth to fix package names with consecutive
> > hyphens too. Like 'i--' or 'i---weird'.
> 
> It seems to already check for that. I've added some test cases for that.

Err, were you saying they should be allowed?
Comment 4 Ciaran McCreesh 2009-03-26 00:15:54 UTC
Multiple hyphens are legal. There're packages whose names contain ++, so -- is probably going to happen at some point too.
Comment 5 Zac Medico gentoo-dev 2009-03-26 01:41:55 UTC
Thanks, consecutive hyphens in or on the end of package names are allowed in svn r13187.
Comment 6 Zac Medico gentoo-dev 2009-03-27 20:38:31 UTC
This is fixed in 2.1.6.11 and 2.2_rc28.