Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 628466 - portage-2.3.8 fails on empty dependency group
Summary: portage-2.3.8 fails on empty dependency group
Status: RESOLVED DUPLICATE of bug 370565
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Ebuild Support (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-21 06:20 UTC by Ulrich Müller
Modified: 2017-08-22 13:16 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
foo-1.ebuild (foo-1.ebuild,285 bytes, text/plain)
2017-08-21 06:21 UTC, Ulrich Müller
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ulrich Müller gentoo-dev 2017-08-21 06:20:28 UTC
Portage fails when it encounters a dependency like "|| ( )" or "( )":

$ ebuild foo-1.ebuild unpack
Error(s) in metadata for 'app-misc/foo-1':
RDEPEND: expected: dependency string, got: ')', token 2

That behaviour is incorrect. PMS states in https://projects.gentoo.org/pms/6/pms.html#x1-810008.2.3:
"An empty any-of group counts as being matched."


Same problem with repoman-2.3.3:

RepoMan scours the neighborhood...
  dependency.syntax [fatal]     2
   app-misc/foo/foo-1.ebuild: RDEPEND: expected: dependency string, got: ')', token 2
   app-misc/foo/foo-1.ebuild: RDEPEND: expected: dependency string, got: ')', token 2
Please fix these important QA issues first.
RepoMan sez: "Make your QA payment on time and you'll never see the likes of me."
Comment 1 Ulrich Müller gentoo-dev 2017-08-21 06:21:48 UTC
Created attachment 489888 [details]
foo-1.ebuild

Minimal example ebuild to reproduce the problem.
Comment 2 Ulrich Müller gentoo-dev 2017-08-22 13:16:30 UTC

*** This bug has been marked as a duplicate of bug 370565 ***