Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 227265 - portage rejects legitimate package names with version-like parts or consecutive hyphens
Summary: portage rejects legitimate package names with version-like parts or consecuti...
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
: 263787 (view as bug list)
Depends on:
Blocks: 261959
  Show dependency tree
 
Reported: 2008-06-15 17:32 UTC by Santiago M. Mola (RETIRED)
Modified: 2010-09-23 02:11 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 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.