pkgdev icon indicating copy to clipboard operation
pkgdev copied to clipboard

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

Open Kangie opened this issue 2 years ago • 1 comments

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 avatar Sep 05 '23 03:09 Kangie

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 avatar Sep 05 '23 03:09 Kangie