Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Portage - Git - Cannot resolv hostname
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
ConiKost
Developer
Developer


Joined: 11 Jan 2005
Posts: 1365

PostPosted: Mon Aug 19, 2019 11:34 pm    Post subject: Portage - Git - Cannot resolv hostname Reply with quote

I am unsure, which is causing this, but basically, I am unable to install any -9999 ebuilds, as hostname resolution fails.

What I did test:
1) /etc/resolv.conf is readable by portage user
2) dig github.com works as portage user
3) running manually "git fetch https://github.com/max-moser/network-manager-wireguard +HEAD:refs/git-r3/HEAD" as portage user works
4) DNS server (8.8.8.8) is correct in /etc/resvolv.conf

Non 9999 ebuilds just work and wget downloads fine through portage..

Any ideas, why exactly this fails?

Code:

>>> Emerging (1 of 1) net-misc/networkmanager-wireguard-9999::gentoo
>>> Unpacking source...
 * Repository id: max-moser_network-manager-wireguard.git
 * To override fetched repository properties, use:
 *   EGIT_OVERRIDE_REPO_MAX_MOSER_NETWORK_MANAGER_WIREGUARD
 *   EGIT_OVERRIDE_BRANCH_MAX_MOSER_NETWORK_MANAGER_WIREGUARD
 *   EGIT_OVERRIDE_COMMIT_MAX_MOSER_NETWORK_MANAGER_WIREGUARD
 *   EGIT_OVERRIDE_COMMIT_DATE_MAX_MOSER_NETWORK_MANAGER_WIREGUARD
 *
 * Fetching https://github.com/max-moser/network-manager-wireguard ...
git fetch https://github.com/max-moser/network-manager-wireguard +HEAD:refs/git-r3/HEAD
fatal: unable to access 'https://github.com/max-moser/network-manager-wireguard/': Could not resolve host: github.com
 * ERROR: net-misc/networkmanager-wireguard-9999::gentoo failed (unpack phase):
 *   Unable to fetch from any of EGIT_REPO_URI
 *
 * Call stack:
 *     ebuild.sh, line  125:  Called src_unpack
 *   environment, line 4158:  Called git-r3_src_unpack
 *   environment, line 2935:  Called git-r3_src_fetch
 *   environment, line 2929:  Called git-r3_fetch
 *   environment, line 2851:  Called die
 * The specific snippet of code:
 *       [[ -n ${success} ]] || die "Unable to fetch from any of EGIT_REPO_URI";
 *
 * If you need support, post the output of `emerge --info '=net-misc/networkmanager-wireguard-9999::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=net-misc/networkmanager-wireguard-9999::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/net-misc/networkmanager-wireguard-9999/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-misc/networkmanager-wireguard-9999/temp/environment'.
 * Working directory: '/var/tmp/portage/net-misc/networkmanager-wireguard-9999/work'
 * S: '/var/tmp/portage/net-misc/networkmanager-wireguard-9999/work/networkmanager-wireguard-9999'
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22648

PostPosted: Tue Aug 20, 2019 2:18 am    Post subject: Re: Portage - Git - Cannot resolv hostname Reply with quote

ConiKost wrote:
Any ideas, why exactly this fails?
This looks like a network sandbox issue.
ConiKost wrote:
Code:
 * If you need support, post the output of `emerge --info '=net-misc/networkmanager-wireguard-9999::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=net-misc/networkmanager-wireguard-9999::gentoo'`.
Please follow these instructions.
Back to top
View user's profile Send private message
ConiKost
Developer
Developer


Joined: 11 Jan 2005
Posts: 1365

PostPosted: Tue Dec 03, 2019 6:05 am    Post subject: Reply with quote

My issue was related to https://bugs.gentoo.org/691472.
I can't recall, when I do set that option in /etc/sandbox.conf.

After disabling back to the default, live ebuilds are working now.

Fixed the clicky-automagic-URL to not include the dot.Chiitoo
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum