Replies: 1 comment 1 reply
-
Mock install in the buildroot only the minimal set of packages. And go is not in the minimal set. So it has to be specified as build dependency.
The spec file of icingadb-1.1.0-1.fc37.src.rpm is missing it. You have to add to the spec file this line:
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Short description of the problem
I am trying to create CentOS Stream packages for Icinga2. I am using the src-rpm from [packages.icinga.com/fedora/](https://packages.icinga.com/fedora/37/release/src/
Almost every package can be created, mock is really great, your work is very much appreciated!!
But I am failing to create the icingadb package. I do believe, there is something missing - golang, as far I as understand the process , because the error message is "go: command not found". If someone could guide me in the right direction where to look ... maybe I need to change some setting in the src-file???
This is the output from mock:
Finish: build setup for icingadb-1.1.0-1.fc37.src.rpm
Start: Outputting list of installed packages
Finish: Outputting list of installed packages
Start: rpmbuild icingadb-1.1.0-1.fc37.src.rpm
Building target platforms: x86_64
Building for target x86_64
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.SjFnBJ
/var/tmp/rpm-tmp.SjFnBJ: line 48: go: command not found
error: Bad exit status from /var/tmp/rpm-tmp.SjFnBJ (%prep)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.SjFnBJ (%prep)
Finish: rpmbuild icingadb-1.1.0-1.fc37.src.rpm
Finish: build phase for icingadb-1.1.0-1.fc37.src.rpm
ERROR: Exception(/tmp/icingadb-1.1.0-1.fc37.src.rpm) Config(centos-stream+epel-8-x86_64) 0 minutes 37 seconds
INFO: Results and/or logs in: /var/lib/mock/centos-stream+epel-8-x86_64/result
ERROR: Command failed:
/usr/bin/systemd-nspawn -q -M 9d748204142b47638d1d714b14b3fab1 -D /var/lib/mock/centos-stream+epel-8-x86_64/root -a -u mockbuild --capability=cap_ipc_lock --bind=/tmp/mock-resolv.m6vikrrc:/etc/resolv.conf --bind=/dev/mapper/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 --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;\007" --setenv=PS1= \s-\v$ --setenv=LANG=C.UTF-8 --resolv-conf=off bash --login -c /usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/icingadb.spec
Output of
rpm -q mock
[root@SERVER ~]# rpm -q mock
mock-3.5-1.el8.noarch
Steps to reproduce issue
Do not forget to mention full commandline with the mock command you executed.
Beta Was this translation helpful? Give feedback.
All reactions