What does it mean by - Protocol "http" not supported or disabled in libcurl?

I was trying to build a package in copr. It seems like it cannot download sources.

cmd: ['git', 'checkout', 'master']
cwd: /var/lib/copr-rpmbuild/workspace/workdir-e3_ui4ja/gimp-2.99-fedora-spec
rc: 0
stdout: Your branch is up to date with 'origin/master'.
stderr: Already on 'master'

Generated rpkg config:
[rpkg]
preprocess_spec = True

[git]
anon_clone_url = https://github.com/%(repo_path)s

[lookaside]
download_url = https://${git_props:remote_netloc}/repo/pkgs/%(repo_path)s/%(filename)s/%(hashtype)s/%(hash)s/%(filename)s

Writing config into /var/lib/copr-rpmbuild/workspace/workdir-e3_ui4ja/.config/rpkg.conf
Running: rpkg srpm --outdir /var/lib/copr-rpmbuild/results --spec /var/lib/copr-rpmbuild/workspace/workdir-e3_ui4ja/gimp-2.99-fedora-spec/gegl04

cmd: ['rpkg', 'srpm', '--outdir', '/var/lib/copr-rpmbuild/results', '--spec', '/var/lib/copr-rpmbuild/workspace/workdir-e3_ui4ja/gimp-2.99-fedora-spec/gegl04']
cwd: /var/lib/copr-rpmbuild/workspace/workdir-e3_ui4ja/gimp-2.99-fedora-spec/gegl04
rc: 1
stdout: Wrote: /var/lib/copr-rpmbuild/results/gegl04.spec
stderr: warning: Downloading http://download.gimp.org/pub/gegl/0.4/gegl-0.4.36.tar.xz to /var/lib/copr-rpmbuild/results/gegl-0.4.36.tar.xz
curl: (1) Protocol "http" not supported or disabled in libcurl
error: Couldn't download http://download.gimp.org/pub/gegl/0.4/gegl-0.4.36.tar.xz

Copr build error: warning: Downloading http://download.gimp.org/pub/gegl/0.4/gegl-0.4.36.tar.xz to /var/lib/copr-rpmbuild/results/gegl-0.4.36.tar.xz
curl: (1) Protocol "http" not supported or disabled in libcurl
error: Couldn't download http://download.gimp.org/pub/gegl/0.4/gegl-0.4.36.tar.xz

Should I use only https link to download files?

When adding a new build on Copr, did you check Other options: ☑️ Enable internet access during this build at the bottom of the page?

2 Likes

This archive is available over https. Making sure internet access is enabled in the build and changing http to https here should fix it for you.

Yes. I have enabled it already.

In your rpm spec:

Change this: http://download.gimp.org/pub/gegl/0.4/gegl-0.4.36.tar.xz

To this: https://download.gimp.org/pub/gegl/0.4/gegl-0.4.36.tar.xz

1 Like