Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 681646 - app-portage/repoman-2.3.12 crashes if SRC_URI="( )"
Summary: app-portage/repoman-2.3.12 crashes if SRC_URI="( )"
Status: RESOLVED WONTFIX
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Repoman (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-03-24 12:15 UTC by Ulrich Müller
Modified: 2022-07-12 03:18 UTC (History)
0 users

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


Attachments
foo-1.ebuild (foo-1.ebuild,257 bytes, text/plain)
2019-03-24 12:16 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 2019-03-24 12:15:07 UTC
$ repoman

RepoMan scours the neighborhood...
[ERROR] Exception in callback portdbapi.async_fetch_map.<locals>.aux_get_done(<Future finis...=['7', '( )']>) at /usr/lib64/python3.6/site-packages/portage/dbapi/porttree.py:789
handle: <Handle portdbapi.async_fetch_map.<locals>.aux_get_done(<Future finis...=['7', '( )']>) at /usr/lib64/python3.6/site-packages/portage/dbapi/porttree.py:789>
Traceback (most recent call last):
  File "/usr/lib64/python3.6/asyncio/events.py", line 145, in _run
    self._callback(*self._args)
  File "/usr/lib64/python3.6/site-packages/portage/dbapi/porttree.py", line 814, in aux_get_done
    {'EAPI':eapi,'SRC_URI':myuris}, use=useflags))
  File "/usr/lib64/python3.6/site-packages/portage/dbapi/porttree.py", line 1531, in _parse_uri_map
    eapi=metadata['EAPI'])
  File "/usr/lib64/python3.6/site-packages/portage/dep/__init__.py", line 526, in use_reduce
    _("expected: dependency string, got: ')', token %s") % (pos+1,))
portage.exception.InvalidDependString: expected: dependency string, got: ')', token 1
--Return--
> /usr/lib64/python3.6/site-packages/portage/util/_eventloop/asyncio_event_loop.py(76)_internal_caller_exception_handler()->None
-> pdb.set_trace()
(Pdb)
Comment 1 Ulrich Müller gentoo-dev 2019-03-24 12:16:54 UTC
Created attachment 570588 [details]
foo-1.ebuild

Minimal example ebuild to reproduce the bug.
Comment 2 Ulrich Müller gentoo-dev 2019-03-24 18:40:08 UTC
To clarify, it is clear that SRC_URI="( )" is illegal syntax.

Still, repoman should not crash when it is presented such input.
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-07-12 03:18:34 UTC
repoman support has been removed per bug 835013.

Please file a new bug (or, I suppose, reopen this one) if you feel this check is still applicable to pkgcheck and doesn't already exist.