Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 595850 - app-crypt/gkeys-0.2: gkeys-gpg does not work with git
Summary: app-crypt/gkeys-0.2: gkeys-gpg does not work with git
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: gentoo-keys (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Deadline: 2020-05-19
Assignee: Gentoo-keys project
URL:
Whiteboard:
Keywords: PMASKED
Depends on:
Blocks:
 
Reported: 2016-10-02 05:24 UTC by Martin Väth
Modified: 2020-05-23 09:31 UTC (History)
1 user (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 Martin Väth 2016-10-02 05:24:08 UTC
I have installed app-crypt/gkeys-0.2 (but the same occured with -9999).
In my /etc/gitconfig I have the entry:

[gpg]
	program = gkeys-gpg

When doing in the gentoo repository
git log --show-signature
I see instead of verified signatures:

Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.4/gkeys-gpg", line 62, in <module>
    returncode = main()
  File "/usr/lib64/python3.4/site-packages/gkeysgpg/cli.py", line 65, in __call__
    args = self.parse_args(sys.argv[1:])
  File "/usr/lib64/python3.4/site-packages/gkeys/base.py", line 248, in parse_args
    self._add_options(parser, self.cli_config['Base_Options'])
  File "/usr/lib64/python3.4/site-packages/gkeys/base.py", line 283, in _add_options
    getattr(self, '_option_%s' % opt)(parser)
  File "/usr/lib64/python3.4/site-packages/gkeys/base.py", line 223, in _option_uid
    help='The user ID, gpg key uid')
  File "/usr/lib64/python3.4/argparse.py", line 1349, in add_argument
    return self._add_action(action)
  File "/usr/lib64/python3.4/argparse.py", line 1709, in _add_action
    self._optionals._add_action(action)
  File "/usr/lib64/python3.4/argparse.py", line 1553, in _add_action
    action = super(_ArgumentGroup, self)._add_action(action)
  File "/usr/lib64/python3.4/argparse.py", line 1363, in _add_action
    self._check_conflict(action)
  File "/usr/lib64/python3.4/argparse.py", line 1502, in _check_conflict
    conflict_handler(action, confl_optionals)
  File "/usr/lib64/python3.4/argparse.py", line 1511, in _handle_conflict_error
    raise ArgumentError(action, message % conflict_string)
argparse.ArgumentError: argument -u/--uid: conflicting option string: -u
Comment 1 Martin Väth 2017-03-24 07:21:28 UTC
Still no news on this, even on the live version.

The problem seems to be rather clear:
The same option -u is used twice for different purposes

$ grep -- "'-u'" /usr/lib64/python3.5/site-packages/gkeys*/*.py

/usr/lib64/python3.5/site-packages/gkeys/base.py:        parser.add_argument('-u', '--uid', dest='uid', nargs='+', default=None,

/usr/lib64/python3.5/site-packages/gkeysgpg/cli.py:        parser.add_argument('-u', '--local-user', dest='user', default=None,

However, changing -u to -U in either of the 2 occurrences leads to other error messages. My guess is that internally -u is actually used in the two colliding ways somehow.
Comment 2 Kristian Fiskerstrand (RETIRED) gentoo-dev 2017-06-10 16:57:09 UTC
This error still persists in latest master
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2020-04-19 12:12:25 UTC
app-crypt/gkeys is last rited now.
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2020-05-23 09:31:24 UTC
Removing.