Use fedora copr problems

I am trying to use Fedora copr to manage a package called Alacritty.

rpmbuild -ba SPECS/alacritty.spec

installing the binary rpm packages in my laptop did work well.

then I upload src.rpm source package file to fedora copr and build it. It got the following errors that I read in builder-live.log.gz log file

warning: spurious network error (2 tries remaining): failed to resolve address for github.com: Temporary failure in name resolution; class=Net (12)
warning: spurious network error (1 tries remaining): failed to resolve address for github.com: Temporary failure in name resolution; class=Net (12)
error: failed to get `bitflags` as a dependency of package `alacritty v0.8.0-rc3 (/builddir/build/BUILD/alacritty-0.8.0-rc3/alacritty)`

Caused by:
  failed to fetch `https://github.com/rust-lang/crates.io-index`

Caused by:
  network failure seems to have happened
  if a proxy or similar is necessary `net.git-fetch-with-cli` may help here
  https://doc.rust-lang.org/cargo/reference/config.html#netgit-fetch-with-cli

Caused by:
  failed to resolve address for github.com: Temporary failure in name resolution; class=Net (12)
error: Bad exit status from /var/tmp/rpm-tmp.zngwA6 (%build)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.zngwA6 (%build)
Finish: rpmbuild alacritty-0.8.0-1.fc34.src.rpm
Finish: build phase for alacritty-0.8.0-1.fc34.src.rpm
INFO: chroot_scan: 3 files copied to /var/lib/copr-rpmbuild/results/chroot_scan
INFO: /var/lib/mock/fedora-34-x86_64-1620540735.428232/root/var/log/dnf.rpm.log
/var/lib/mock/fedora-34-x86_64-1620540735.428232/root/var/log/dnf.librepo.log
/var/lib/mock/fedora-34-x86_64-1620540735.428232/root/var/log/dnf.log
ERROR: Exception(/var/lib/copr-rpmbuild/results/alacritty-0.8.0-1.fc34.src.rpm) Config(fedora-34-x86_64) 0 minutes 28 seconds
INFO: Results and/or logs in: /var/lib/copr-rpmbuild/results
INFO: Cleaning up build root ('cleanup_on_failure=True')
Start: clean chroot
INFO: unmounting tmpfs.
Finish: clean chroot
ERROR: Command failed: 
 # /usr/bin/systemd-nspawn -q -M 59210f2ba87e40d687e852f45e2c3af8 -D /var/lib/mock/fedora-34-x86_64-1620540735.428232/root -a -u mockbuild --capability=cap_ipc_lock --rlimit=RLIMIT_NOFILE=10240 --capability=cap_ipc_lock --bind=/tmp/mock-resolv.z08ji3z7:/etc/resolv.conf --bind=/dev/btrfs-control --bind=/dev/loop-control --bind=/dev/loop0 --bind=/dev/loop1 --bind=/dev/loop2 --bind=/dev/loop3 --bind=/dev/loop4 --bind=/dev/loop5 --bind=/dev/loop6 --bind=/dev/loop7 --bind=/dev/loop8 --bind=/dev/loop9 --bind=/dev/loop10 --bind=/dev/loop11 --console=pipe --setenv=TERM=vt100 --setenv=SHELL=/bin/bash --setenv=HOME=/builddir --setenv=HOSTNAME=mock --setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin --setenv=PROMPT_COMMAND=printf "\033]0;<mock-chroot>\007" --setenv=PS1=<mock-chroot> \s-\v\$  --setenv=LANG=C.UTF-8 --resolv-conf=off bash --login -c /usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/alacritty.spec

Copr build error: Build failed

spec file: https://download.copr.fedorainfracloud.org/results/topazus/topazus/fedora-34-x86_64/02174076-alacritty/alacritty.spec

1 Like

You need to select Enable internet access during this build checkbox at the bottom when submitting a build.

2 Likes

Thanks for your reply. It is built successfuly now.

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.