Mock Version: 3.5 Mock Version: 3.5 Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target riscv64 --nodeps /builddir/build/SPECS/golang-github-quay-clair-3.spec'], chrootPath='/var/lib/mock/f38-build-side-42-init-devel-1019647-29619/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=864000uid=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target riscv64 --nodeps /builddir/build/SPECS/golang-github-quay-clair-3.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1690675200 Wrote: /builddir/build/SRPMS/golang-github-quay-clair-3-3.0.0~pre1-1.fc38.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target riscv64 --nodeps /builddir/build/SPECS/golang-github-quay-clair-3.spec'], chrootPath='/var/lib/mock/f38-build-side-42-init-devel-1019647-29619/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=864000uid=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target riscv64 --nodeps /builddir/build/SPECS/golang-github-quay-clair-3.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1690675200 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.BZk6qy + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf clair-3.0.0-pre1 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/clair-3.0.0-pre1.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd clair-3.0.0-pre1 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + rm -fr /builddir/build/BUILD/clair-3.0.0-pre1/vendor + [[ ! -e /builddir/build/BUILD/clair-3.0.0-pre1/_build/bin ]] + install -m 0755 -vd /builddir/build/BUILD/clair-3.0.0-pre1/_build/bin install: creating directory '/builddir/build/BUILD/clair-3.0.0-pre1/_build' install: creating directory '/builddir/build/BUILD/clair-3.0.0-pre1/_build/bin' + export GOPATH=/builddir/build/BUILD/clair-3.0.0-pre1/_build:/usr/share/gocode + GOPATH=/builddir/build/BUILD/clair-3.0.0-pre1/_build:/usr/share/gocode + [[ ! -e /builddir/build/BUILD/clair-3.0.0-pre1/_build/src/github.com/quay/clair/v3 ]] ++ dirname /builddir/build/BUILD/clair-3.0.0-pre1/_build/src/github.com/quay/clair/v3 + install -m 0755 -vd /builddir/build/BUILD/clair-3.0.0-pre1/_build/src/github.com/quay/clair install: creating directory '/builddir/build/BUILD/clair-3.0.0-pre1/_build/src' install: creating directory '/builddir/build/BUILD/clair-3.0.0-pre1/_build/src/github.com' install: creating directory '/builddir/build/BUILD/clair-3.0.0-pre1/_build/src/github.com/quay' install: creating directory '/builddir/build/BUILD/clair-3.0.0-pre1/_build/src/github.com/quay/clair' + ln -fs /builddir/build/BUILD/clair-3.0.0-pre1 /builddir/build/BUILD/clair-3.0.0-pre1/_build/src/github.com/quay/clair/v3 + cd /builddir/build/BUILD/clair-3.0.0-pre1/_build/src/github.com/quay/clair/v3 + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.5w3MsM + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/golang-github-quay-clair-3-3.0.0~pre1-1.fc38.riscv64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/golang-github-quay-clair-3-3.0.0~pre1-1.fc38.riscv64 ++ dirname /builddir/build/BUILDROOT/golang-github-quay-clair-3-3.0.0~pre1-1.fc38.riscv64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/golang-github-quay-clair-3-3.0.0~pre1-1.fc38.riscv64 + cd clair-3.0.0-pre1 + cd /builddir/build/BUILD/clair-3.0.0-pre1/_build/src/github.com/quay/clair/v3 + IFS= + gosupfiles= + mapfile -t gosupfilesA + go-rpm-integration install -i github.com/quay/clair/v3 -b /builddir/build/BUILD/clair-3.0.0-pre1/_build/bin -s /builddir/build/BUILD/clair-3.0.0-pre1/_build -o golang-github-quay-clair-3-devel.file-list -O /builddir/build/BUILD/clair-3.0.0-pre1 -V 3.0.0~pre1-1.fc38 -p /builddir/build/BUILDROOT/golang-github-quay-clair-3-3.0.0~pre1-1.fc38.riscv64 -g /usr/share/gocode -r '.*example.*' Installing: github.com/quay/clair/v3 + IFS= +++ realpath -e --relative-base=. ROADMAP.md code-of-conduct.md README.md Documentation +++ sort -u ++ listfiles_include='Documentation README.md ROADMAP.md code-of-conduct.md' ++ echo 'Documentation README.md ROADMAP.md code-of-conduct.md' + godocs='Documentation README.md ROADMAP.md code-of-conduct.md' + [[ -n Documentation README.md ROADMAP.md code-of-conduct.md ]] + IFS= + read -r f + echo %doc '"Documentation"' + IFS= + read -r f + echo %doc '"README.md"' + IFS= + read -r f + echo %doc '"ROADMAP.md"' + IFS= + read -r f + echo %doc '"code-of-conduct.md"' + IFS= + read -r f + IFS= +++ realpath -e --relative-base=. LICENSE NOTICE +++ sort -u ++ listfiles_include='LICENSE NOTICE' ++ echo 'LICENSE NOTICE' + golicenses='LICENSE NOTICE' + [[ -n LICENSE NOTICE ]] + IFS= + read -r f + echo %license '"LICENSE"' + IFS= + read -r f + echo %license '"NOTICE"' + IFS= + read -r f + install -m 0755 -d /builddir/build/BUILDROOT/golang-github-quay-clair-3-3.0.0~pre1-1.fc38.riscv64/usr/share/gocode/src/github.com/coreos + ln -rs /builddir/build/BUILDROOT/golang-github-quay-clair-3-3.0.0~pre1-1.fc38.riscv64/usr/share/gocode/src/github.com/quay/clair/v3 /builddir/build/BUILDROOT/golang-github-quay-clair-3-3.0.0~pre1-1.fc38.riscv64/usr/share/gocode/src/github.com/coreos/clair + echo /usr/share/gocode/src/github.com/coreos/clair + echo '%dir "/usr/share/gocode/src/github.com/coreos"' + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip /usr/bin/strip + /usr/lib/rpm/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump + /usr/lib/rpm/redhat/brp-strip-lto /usr/bin/strip + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/check-rpaths + /usr/lib/rpm/redhat/brp-mangle-shebangs + /usr/lib/rpm/brp-remove-la-files + env /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 -j8 + /usr/lib/rpm/redhat/brp-python-hardlink Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.vu628h + umask 022 + cd /builddir/build/BUILD + cd clair-3.0.0-pre1 + LDFLAGS=' -X github.com/quay/clair/v3/version=3.0.0~pre1' + GO_TEST_FLAGS='-buildmode pie -compiler gc' + GO_TEST_EXT_LD_FLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + go-rpm-integration check -i github.com/quay/clair/v3 -b /builddir/build/BUILD/clair-3.0.0-pre1/_build/bin -s /builddir/build/BUILD/clair-3.0.0-pre1/_build -V 3.0.0~pre1-1.fc38 -p /builddir/build/BUILDROOT/golang-github-quay-clair-3-3.0.0~pre1-1.fc38.riscv64 -g /usr/share/gocode -r '.*example.*' -t database -d pkg/gitutil Testing in: /builddir/build/BUILD/clair-3.0.0-pre1/_build/src PATH: /builddir/build/BUILD/clair-3.0.0-pre1/_build/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin GOPATH: /builddir/build/BUILD/clair-3.0.0-pre1/_build:/usr/share/gocode GO111MODULE: off command: go test -buildmode pie -compiler gc -ldflags " -X github.com/quay/clair/v3/version=3.0.0~pre1 -extldflags '-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes '" testing: github.com/quay/clair/v3 github.com/quay/clair/v3 time="2023-07-30T02:09:47-04:00" level=warning msg="generated ancestry name since it's not specified" ancestry.Name=e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 time="2023-07-30T02:09:47-04:00" level=warning msg="generated ancestry name since it's not specified" ancestry.Name=5feceb66ffc86f38d952786c6d696c79c2dbc239dd4e91b46729d73a27fb57e9 time="2023-07-30T02:09:47-04:00" level=warning msg="generated ancestry name since it's not specified" ancestry.Name=83b97b859aa5f81b2f0f86ba2a675efaf515ad2d5e2b8652cf2de7e1c2267350 time="2023-07-30T02:09:47-04:00" level=warning msg="generated ancestry name since it's not specified" ancestry.Name=c0be322c1ad6af50f418b96232d98fe25a36d5d0a557291833f8248f2084b8ef time="2023-07-30T02:09:47-04:00" level=warning msg="generated ancestry name since it's not specified" ancestry.Name=84deff01f1994516ca1e83d3a07d9ef1a8499dea8dbb783f2a17f56cefa330cf time="2023-07-30T02:09:47-04:00" level=warning msg="generated ancestry name since it's not specified" ancestry.Name=6484c68c0c85987f9beb3db42175c46955a8abe05170239580fcd1ff8b514452 time="2023-07-30T02:09:47-04:00" level=warning msg="generated ancestry name since it's not specified" ancestry.Name=d008f104b61f771ce8edf31ce2fa56119ae701fee4fb824d93f6157b4cb1bac6 time="2023-07-30T02:09:47-04:00" level=warning msg="generated ancestry name since it's not specified" ancestry.Name=594a7c1b42ceaed6f882eee1f0d362e8b307fb3627533e4dd314ce3cf6ad94d6 time="2023-07-30T02:09:47-04:00" level=warning msg="generated ancestry name since it's not specified" ancestry.Name=1eacc8c10d0cdd8e4fef3d60fc25e5f32b3e29675e63ec3cbe4d9f244d1bfb40 time="2023-07-30T02:09:47-04:00" level=warning msg="generated ancestry name since it's not specified" ancestry.Name=5feceb66ffc86f38d952786c6d696c79c2dbc239dd4e91b46729d73a27fb57e9 time="2023-07-30T02:09:47-04:00" level=warning msg="generated ancestry name since it's not specified" ancestry.Name=5feceb66ffc86f38d952786c6d696c79c2dbc239dd4e91b46729d73a27fb57e9 time="2023-07-30T02:09:47-04:00" level=warning msg="skip features with no matching namespace" ancestryBuilder.namespaces="[]" feature.Name=sed feature.VersionFormat=dpkg time="2023-07-30T02:09:47-04:00" level=warning msg="generated ancestry name since it's not specified" ancestry.Name=5feceb66ffc86f38d952786c6d696c79c2dbc239dd4e91b46729d73a27fb57e9 time="2023-07-30T02:09:47-04:00" level=warning msg="skip features with ambiguous namespaces" ancestryBuilder.namespaces="[{\"namespace\":{\"namespace\":{\"name\":\"ubuntu:14.04\",\"versionFormat\":\"dpkg\"},\"by\":{\"name\":\"apt-sources\",\"version\":\"1.0\",\"dtype\":\"namespace\"}},\"introducedIn\":0},{\"namespace\":{\"namespace\":{\"name\":\"debian:7\",\"versionFormat\":\"dpkg\"},\"by\":{\"name\":\"os-release\",\"version\":\"1.0\",\"dtype\":\"namespace\"}},\"introducedIn\":0}]" feature.Name=sed feature.VersionFormat=dpkg time="2023-07-30T02:09:47-04:00" level=warning msg="generated ancestry name since it's not specified" ancestry.Name=5feceb66ffc86f38d952786c6d696c79c2dbc239dd4e91b46729d73a27fb57e9 time="2023-07-30T02:09:47-04:00" level=warning msg="skip features with no matching namespace" ancestryBuilder.namespaces="[]" feature.Name=sed feature.VersionFormat=rpm time="2023-07-30T02:09:47-04:00" level=warning msg="generated ancestry name since it's not specified" ancestry.Name=5feceb66ffc86f38d952786c6d696c79c2dbc239dd4e91b46729d73a27fb57e9 time="2023-07-30T02:09:47-04:00" level=warning msg="generated ancestry name since it's not specified" ancestry.Name=5feceb66ffc86f38d952786c6d696c79c2dbc239dd4e91b46729d73a27fb57e9 time="2023-07-30T02:09:47-04:00" level=warning msg="Mal-formated affected feature (skipped)" Affected Version=0.1 Name=Feature1 Namespace="Namespace1:" time="2023-07-30T02:09:47-04:00" level=warning msg="Mal-formated affected feature (skipped)" Affected Version=0.2 Name=Feature1 Namespace="Namespace2:" time="2023-07-30T02:09:47-04:00" level=warning msg="Mal-formated affected feature (skipped)" Affected Version=0.3 Name=Feature2 Namespace="Namespace2:" PASS ok github.com/quay/clair/v3 1.095s github.com/quay/clair/v3 time="2023-07-30T02:10:17-04:00" level=warning msg="generated ancestry name since it's not specified" ancestry.Name=e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 time="2023-07-30T02:10:17-04:00" level=warning msg="generated ancestry name since it's not specified" ancestry.Name=5feceb66ffc86f38d952786c6d696c79c2dbc239dd4e91b46729d73a27fb57e9 time="2023-07-30T02:10:17-04:00" level=warning msg="generated ancestry name since it's not specified" ancestry.Name=83b97b859aa5f81b2f0f86ba2a675efaf515ad2d5e2b8652cf2de7e1c2267350 time="2023-07-30T02:10:17-04:00" level=warning msg="generated ancestry name since it's not specified" ancestry.Name=c0be322c1ad6af50f418b96232d98fe25a36d5d0a557291833f8248f2084b8ef time="2023-07-30T02:10:17-04:00" level=warning msg="generated ancestry name since it's not specified" ancestry.Name=84deff01f1994516ca1e83d3a07d9ef1a8499dea8dbb783f2a17f56cefa330cf time="2023-07-30T02:10:17-04:00" level=warning msg="generated ancestry name since it's not specified" ancestry.Name=6484c68c0c85987f9beb3db42175c46955a8abe05170239580fcd1ff8b514452 time="2023-07-30T02:10:17-04:00" level=warning msg="generated ancestry name since it's not specified" ancestry.Name=d008f104b61f771ce8edf31ce2fa56119ae701fee4fb824d93f6157b4cb1bac6 time="2023-07-30T02:10:17-04:00" level=warning msg="generated ancestry name since it's not specified" ancestry.Name=594a7c1b42ceaed6f882eee1f0d362e8b307fb3627533e4dd314ce3cf6ad94d6 time="2023-07-30T02:10:17-04:00" level=warning msg="generated ancestry name since it's not specified" ancestry.Name=1eacc8c10d0cdd8e4fef3d60fc25e5f32b3e29675e63ec3cbe4d9f244d1bfb40 time="2023-07-30T02:10:17-04:00" level=warning msg="generated ancestry name since it's not specified" ancestry.Name=5feceb66ffc86f38d952786c6d696c79c2dbc239dd4e91b46729d73a27fb57e9 time="2023-07-30T02:10:17-04:00" level=warning msg="generated ancestry name since it's not specified" ancestry.Name=5feceb66ffc86f38d952786c6d696c79c2dbc239dd4e91b46729d73a27fb57e9 time="2023-07-30T02:10:17-04:00" level=warning msg="skip features with no matching namespace" ancestryBuilder.namespaces="[]" feature.Name=sed feature.VersionFormat=dpkg time="2023-07-30T02:10:17-04:00" level=warning msg="generated ancestry name since it's not specified" ancestry.Name=5feceb66ffc86f38d952786c6d696c79c2dbc239dd4e91b46729d73a27fb57e9 time="2023-07-30T02:10:17-04:00" level=warning msg="skip features with ambiguous namespaces" ancestryBuilder.namespaces="[{\"namespace\":{\"namespace\":{\"name\":\"ubuntu:14.04\",\"versionFormat\":\"dpkg\"},\"by\":{\"name\":\"apt-sources\",\"version\":\"1.0\",\"dtype\":\"namespace\"}},\"introducedIn\":0},{\"namespace\":{\"namespace\":{\"name\":\"debian:7\",\"versionFormat\":\"dpkg\"},\"by\":{\"name\":\"os-release\",\"version\":\"1.0\",\"dtype\":\"namespace\"}},\"introducedIn\":0}]" feature.Name=sed feature.VersionFormat=dpkg time="2023-07-30T02:10:17-04:00" level=warning msg="generated ancestry name since it's not specified" ancestry.Name=5feceb66ffc86f38d952786c6d696c79c2dbc239dd4e91b46729d73a27fb57e9 time="2023-07-30T02:10:17-04:00" level=warning msg="skip features with no matching namespace" ancestryBuilder.namespaces="[]" feature.Name=sed feature.VersionFormat=rpm time="2023-07-30T02:10:17-04:00" level=warning msg="generated ancestry name since it's not specified" ancestry.Name=5feceb66ffc86f38d952786c6d696c79c2dbc239dd4e91b46729d73a27fb57e9 time="2023-07-30T02:10:17-04:00" level=warning msg="generated ancestry name since it's not specified" ancestry.Name=5feceb66ffc86f38d952786c6d696c79c2dbc239dd4e91b46729d73a27fb57e9 time="2023-07-30T02:10:17-04:00" level=warning msg="Mal-formated affected feature (skipped)" Affected Version=0.1 Name=Feature1 Namespace="Namespace1:" time="2023-07-30T02:10:17-04:00" level=warning msg="Mal-formated affected feature (skipped)" Affected Version=0.2 Name=Feature1 Namespace="Namespace2:" time="2023-07-30T02:10:17-04:00" level=warning msg="Mal-formated affected feature (skipped)" Affected Version=0.3 Name=Feature2 Namespace="Namespace2:" PASS ok github.com/quay/clair/v3 1.143s github.com/quay/clair/v3/api # github.com/quay/clair/v3/api/v3 v3/server.go:46:36: undefined: prometheus.Handler error: Bad exit status from /var/tmp/rpm-tmp.vu628h (%check) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.vu628h (%check) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target riscv64 --nodeps /builddir/build/SPECS/golang-github-quay-clair-3.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) ^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/mockbuild/util.py", line 598, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --noclean --target riscv64 --nodeps /builddir/build/SPECS/golang-github-quay-clair-3.spec