Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 594946 - app-portage/repoman: missing RDEPENDency on git
Summary: app-portage/repoman: missing RDEPENDency on git
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: 2016-09-23 19:22 UTC by .
Modified: 2022-07-12 03:18 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 . 2016-09-23 19:22:53 UTC
```
$ repoman full --xmlparse --verbose --without-mask

RepoMan scours the neighborhood...
Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.4/repoman", line 44, in <module>
    repoman_main(sys.argv[1:])
  File "/usr/lib64/python3.4/site-packages/repoman/main.py", line 116, in repoman_main
    vcs_settings, mydir, env)
  File "/usr/lib64/python3.4/site-packages/repoman/scanner.py", line 152, in __init__
    self.changed.scan()
  File "/usr/lib64/python3.4/site-packages/repoman/modules/vcs/changes.py", line 57, in scan
    self._scan()
  File "/usr/lib64/python3.4/site-packages/repoman/modules/vcs/git/changes.py", line 35, in _scan
    "git diff-index --name-only "
  File "/usr/lib64/python3.4/site-packages/repoman/_subprocess.py", line 69, in __init__
    proc = subprocess.Popen(args, stdout=subprocess.PIPE)
  File "/usr/lib64/python3.4/subprocess.py", line 859, in __init__
    restore_signals, start_new_session)
  File "/usr/lib64/python3.4/subprocess.py", line 1457, in _execute_child
    raise child_exception_type(errno_num, err_msg)
FileNotFoundError: [Errno 2] No such file or directory: b'git'
ERROR: Build failed: exit code 1
```

version: app-portage/repoman-2.3.0-r1
Comment 1 Brian Dolbec (RETIRED) gentoo-dev 2016-09-24 18:00:03 UTC
While the vcs's are plugin modules, yeah, it should at least dep on git.

I don't think I need to rev bump the existing release for this do I.
Comment 2 Brian Dolbec (RETIRED) gentoo-dev 2016-09-24 18:13:55 UTC
hmm, I've been looking over the code...

How is it you have a git checkout without git installed? 

Was dev-vcs/git uninstalled/depcleaned after getting the repo checkout?

Is there a .git directory at the root of the tree as indicated by it selecting git as the repo vcs?

If there are bugs in the repo vcs type detection, I'd like to know that to fix them.
Comment 3 . 2016-09-24 23:52:45 UTC
(In reply to Brian Dolbec from comment #2)
> hmm, I've been looking over the code...
> 
> How is it you have a git checkout without git installed? 
> 
> Was dev-vcs/git uninstalled/depcleaned after getting the repo checkout?
> 
> Is there a .git directory at the root of the tree as indicated by it
> selecting git as the repo vcs?
> 
> If there are bugs in the repo vcs type detection, I'd like to know that to
> fix them.

It happened on a docker-based CI server, which apparently checked-out the code and then run an image without git installed.
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-07-12 03:18:40 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.