Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: pkgdev manifest ignores proxy configuration in make.conf, shell/environment variables #156

Open
Kangie opened this issue Sep 5, 2023 · 1 comment

Comments

@Kangie
Copy link

Kangie commented Sep 5, 2023

I have a make.conf configured to use a proxy that does not allow access to github endpoints, and access to another (cntlm) proxy that does.

For reasons of 'I have a direct, paid for, 10gig connection to a Gentoo mirror', it's correct to use this proxy in make.conf, however I do sometimes need to override this for ebuild development purposes / the odd fetch.

I am able to use the cntlm proxy on localhost with ebuild ... manifest:

doas su -c 'https_proxy=localhost:3128 ebuild warewulf-4.4.1.ebuild manifest'

I am unable to do the same thing for with pkgdev - it insists on using the other proxy:

doas su -c 'https_proxy=localhost:3128 pkgdev manifest'
--2023-09-05 13:10:37--  https://github.com/hpcng/warewulf/archive/refs/tags/v4.4.1.tar.gz
Resolving github.com... 20.248.137.48
Connecting to github.com|20.248.137.48|:443... connected.
Unable to establish SSL connection.
 * failed fetching file: warewulf-4.4.1.tar.gz, uri: https://github.com/hpcng/warewulf/archive/refs/tags/v4.4.1.tar.gz
 * failed fetching files for package sys-cluster/warewulf::esphpc
pkgdev manifest: error: failed fetching required distfiles
@Kangie Kangie changed the title [Bug]: pkgdev manifest prefers proxy configuration in make.conf, ignoring shell/environment variables [Bug]: pkgdev manifest ignores proxy configuration in make.conf, and shell/environment variables Sep 5, 2023
@Kangie
Copy link
Author

Kangie commented Sep 5, 2023

Actually, further investigation reveals that....

Pkgdev seems to be ignoring all proxy settings!

ebuild ... manifest output looks like this:

doas su -c 'https_proxy=localhost:3128 ebuild warewulf-4.4.1.ebuild manifest'
>>> Downloading 'https://mirror.aarnet.edu.au/pub/gentoo/distfiles/layout.conf'
--2023-09-05 13:13:44--  https://mirror.aarnet.edu.au/pub/gentoo/distfiles/layout.conf
Resolving MY_WORK_PROXY... WORK_PROXY_IP
Connecting to MY_WORK_PROXY|WORK_PROXY_IP|:80... connected.
Proxy request sent, awaiting response... 200 OK

where MY_WORK_PROXY is the value set in make.conf.

@Kangie Kangie changed the title [Bug]: pkgdev manifest ignores proxy configuration in make.conf, and shell/environment variables [Bug]: pkgdev manifest ignores proxy configuration in make.conf, shell/environment variables Sep 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant