Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 634726 - app-emulation/lxd-2.18 will not build: needs to clone a whole git repo
Summary: app-emulation/lxd-2.18 will not build: needs to clone a whole git repo
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Erik Mackdanz
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-19 02:23 UTC by deference
Modified: 2019-01-21 16:25 UTC (History)
3 users (show)

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


Attachments
build.log (build-lxd.txt,8.39 KB, text/plain)
2017-10-19 02:24 UTC, deference
Details
emerge --info (emergeinfo-lxd.txt,31.86 KB, text/plain)
2017-10-19 02:24 UTC, deference
Details

Note You need to log in before you can comment on or make changes to this bug.
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 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.