Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 634726

Summary: app-emulation/lxd-2.18 will not build: needs to clone a whole git repo
Product: Gentoo Linux Reporter: deference
Component: Current packagesAssignee: Erik Mackdanz <stasibear>
Status: RESOLVED DUPLICATE    
Severity: normal CC: deference, jstein, pavol.cupka
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
emerge --info

Description deference 2017-10-19 02:23:50 UTC
I can't connect all of my linux boxes to the internet. Even if I hook up to a 
hotspot, a whole git repo is too big. It also seems silly to download a whole git 
repo just to get a few deps to build one package.

[ebuild     U ] app-emulation/lxd-2.18 [2.16] USE="daemon dnsmasq%* ipv6%* -nls {-test}" 

git clone https://github.com/rogpeppe/godeps /var/tmp/portage/app-emulation/lxd-2.18/work/lxd-2.18/src/github.com/rogpeppe/godeps
# cd .; git clone https://github.com/rogpeppe/godeps /var/tmp/portage/app-emulation/lxd-2.18/work/lxd-2.18/src/github.com/rogpeppe/godeps
Cloning into '/var/tmp/portage/app-emulation/lxd-2.18/work/lxd-2.18/src/github.com/rogpeppe/godeps'...
fatal: unable to access 'https://github.com/rogpeppe/godeps/': Failed to connect to github.com port 443: No route to host
Comment 1 deference 2017-10-19 02:24:06 UTC
Created attachment 499214 [details]
build.log
Comment 2 deference 2017-10-19 02:24:25 UTC
Created attachment 499216 [details]
emerge --info
Comment 3 Virgil Dupras (RETIRED) gentoo-dev 2017-10-19 12:16:49 UTC
From what I see in your build logs, this git cloning happens during the test phase, not during the regular compile phase.

There's been a recent overhaul the package to properly document and pin dependencies to precisely avoid this git cloning problem, but this hasn't been done for testing dependencies yet.

If you disable tests, you won't have this problem. If you want to submit a patch to pin tests dependencies, you're more than welcome :)
Comment 4 deference 2017-10-27 20:16:11 UTC
> If you disable tests, you won't have this problem. If you want to submit a 
> patch to pin tests dependencies, you're more than welcome :)
I am trying to slowly rebuild my entire system with tests enabled so if there is a guide to doing this I'd like to try.
Comment 5 Pavol Cupka 2018-12-13 07:44:51 UTC
IMHO this can be closed as there are no 2.x ebuilds in portage now as of 13 Dec 2018.
Comment 6 Erik Mackdanz gentoo-dev 2019-01-21 16:25:10 UTC
I've left this open since the issue exists into 3.x.  I'll need to either get USE=test working or remove it.  The 3.9 release notes claim some fixes to tests so it may be worth revisiting soon.
Comment 7 Joonas Niilola gentoo-dev 2020-09-24 08:10:23 UTC

*** This bug has been marked as a duplicate of bug 641452 ***