Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 518374 - git-r3.eclass checks for dev-vcs/git[curl] in the wrong ROOT
Summary: git-r3.eclass checks for dev-vcs/git[curl] in the wrong ROOT
Status: VERIFIED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Michał Górny
URL:
Whiteboard:
Keywords: NeedPatch
Depends on:
Blocks:
 
Reported: 2014-07-28 10:31 UTC by Alexey Edelev
Modified: 2014-07-28 20:05 UTC (History)
1 user (show)

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


Attachments
set ROOT=/ when checking for buildtime-tool using has_version (518374.diff,721 bytes, patch)
2014-07-28 13:16 UTC, Michael Haubenwallner (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Edelev 2014-07-28 10:31:16 UTC
In crossdev environment emerge looking for dev-vcs/git[curl] inside virtual sysroot and doesn't found it.
On host system dev-vcs/git already built with curl support.


Reproducible: Always

Steps to Reproduce:
1.crossdev -t <any arm target>
2.emerge any package containing git cloning of https:// repository
For example: https://git.semlanik.org/semlanik/openautomotive-gentoo-overlay/blob/master/sys-libs/libump/libump-3.0.ebuild
Actual Results:  
1. Target build sysroot and tools installed succesfully  
2. Error occured:
git-r3: fetching from https:// requested. In order to support https,
dev-vcs/git needs to be built with USE=curl. Example solution:
        echo dev-vcs/git curl >> /etc/portage/package.use
        emerge -1v dev-vcs/git

Expected Results:  
2. git-r3 checks host system git installation instead of crossdev.
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-07-28 13:02:26 UTC
@Prefix, do you happen to understand the issue better than I do? :P
Comment 2 Michael Haubenwallner (RETIRED) gentoo-dev 2014-07-28 13:16:33 UTC
Created attachment 381704 [details, diff]
set ROOT=/ when checking for buildtime-tool using has_version

Feels like it should be done similar to what autotools.eclass does for automake:
ROOT=/ has_version '<atom>'
Comment 3 Alexey Edelev 2014-07-28 14:06:59 UTC
ROOT=/ helps, thanks.
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-07-28 14:12:31 UTC
+  28 Jul 2014; Michał Górny <mgorny@gentoo.org> git-r3.eclass:
+  Use ROOT=/ when checking for git features, bug #518374. Patch provided by
+  Michael Haubenwallner.
Comment 5 Alexey Edelev 2014-07-28 20:05:10 UTC
Fixed in main tree