Giving emerge wrong a action to process leads to a wrong error message. Observed behavior: # emerge --va gcc !!! '--va' is not a valid package atom. !!! Please check ebuild(5) for full details. Expected behavior: # emerge --va gcc !!! '--va' is not a valid emerge action. !!! Please check emerge(1) for full details.
Patch posted for review: https://archives.gentoo.org/gentoo-portage-dev/message/6bccd9b791bba94d994a9a29a89a6d3e https://github.com/gentoo/portage/pull/473
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/portage.git/commit/?id=6d519a589a9656a511b369c223e27e2f8d8437de commit 6d519a589a9656a511b369c223e27e2f8d8437de Author: Zac Medico <zmedico@gentoo.org> AuthorDate: 2019-10-27 18:58:37 +0000 Commit: Zac Medico <zmedico@gentoo.org> CommitDate: 2019-10-27 19:11:40 +0000 emerge: fix error message for unknown options (bug 673400) Do not use parse_known_args to parse positional arguments, since that causes unknown options to be handled like unknown positional arguments. Bug: https://bugs.gentoo.org/673400 Signed-off-by: Zac Medico <zmedico@gentoo.org> lib/_emerge/main.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-)
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a95264dd3d846c10045644d5385d96826fbbae78 commit a95264dd3d846c10045644d5385d96826fbbae78 Author: Zac Medico <zmedico@gentoo.org> AuthorDate: 2019-11-09 05:16:02 +0000 Commit: Zac Medico <zmedico@gentoo.org> CommitDate: 2019-11-09 05:22:38 +0000 sys-apps/portage: Bump to version 2.3.79 #673400 emerge: fix error message for unknown options #699392 emirrordist: _recycle_copier_exit UnboundLocalError #699400 emirrordist: clean up FileCopier exception logging #699548 install.py: ignore -Z / --context Bug: https://bugs.gentoo.org/697734 Bug: https://bugs.gentoo.org/673400 Bug: https://bugs.gentoo.org/699392 Bug: https://bugs.gentoo.org/699400 Bug: https://bugs.gentoo.org/699548 Package-Manager: Portage-2.3.78, Repoman-2.3.17 Signed-off-by: Zac Medico <zmedico@gentoo.org> sys-apps/portage/Manifest | 1 + sys-apps/portage/portage-2.3.79.ebuild | 261 +++++++++++++++++++++++++++++++++ 2 files changed, 262 insertions(+)
(In reply to Larry the Git Cow from comment #2) > The bug has been referenced in the following commit(s): > > https://gitweb.gentoo.org/proj/portage.git/commit/ > ?id=6d519a589a9656a511b369c223e27e2f8d8437de > > commit 6d519a589a9656a511b369c223e27e2f8d8437de > Author: Zac Medico <zmedico@gentoo.org> > AuthorDate: 2019-10-27 18:58:37 +0000 > Commit: Zac Medico <zmedico@gentoo.org> > CommitDate: 2019-10-27 19:11:40 +0000 > > emerge: fix error message for unknown options (bug 673400) > > Do not use parse_known_args to parse positional arguments, since that > causes unknown options to be handled like unknown positional arguments. > > Bug: https://bugs.gentoo.org/673400 > Signed-off-by: Zac Medico <zmedico@gentoo.org> > > lib/_emerge/main.py | 9 ++++----- > 1 file changed, 4 insertions(+), 5 deletions(-) A side-effect of this change is that positional arguments are now required to come after all optional arguments.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6cfec967ac5ad3894f6ce0e6c7289406bd10d480 commit 6cfec967ac5ad3894f6ce0e6c7289406bd10d480 Author: Zac Medico <zmedico@gentoo.org> AuthorDate: 2020-01-19 04:26:54 +0000 Commit: Zac Medico <zmedico@gentoo.org> CommitDate: 2020-01-19 04:38:13 +0000 scripts/bootstrap.sh: fix emerge --resume args Since the emerge argument parser change from bug 673400, positional arguments must come after all optional arguments. Reviewed-by: Michael Everitt <m.j.everitt@iee.org> Bug: https://bugs.gentoo.org/673400 Signed-off-by: Zac Medico <zmedico@gentoo.org> scripts/bootstrap.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)