Mock Version: 1.4.16 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/golang-github-sendgrid-rest.spec'], chrootPath='/var/lib/mock/917989-custom-1-x86_64-1559239976.336430/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': 'en_US.UTF-8'}shell=Falselogger=timeout=0uid=1001gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.1u18udmo:/etc/resolv.conf']unshare_net=TrueprintOutput=True) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.1u18udmo:/etc/resolv.conf'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '548a4b9de2da42cbb5d128b3f1eaedfb', '-D', '/var/lib/mock/917989-custom-1-x86_64-1559239976.336430/root', '-a', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.1u18udmo:/etc/resolv.conf', '--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=en_US.UTF-8', '-u', 'mockbuild', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/golang-github-sendgrid-rest.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': 'en_US.UTF-8'} and shell False Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/golang-github-sendgrid-rest-2.4.1-1.20190530git8f995de.fc31.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/golang-github-sendgrid-rest.spec'], chrootPath='/var/lib/mock/917989-custom-1-x86_64-1559239976.336430/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': 'en_US.UTF-8'}shell=Falselogger=timeout=0uid=1001gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.1u18udmo:/etc/resolv.conf']unshare_net=TrueprintOutput=True) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.1u18udmo:/etc/resolv.conf'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '6708ccb294fa41369c31b49473840c3c', '-D', '/var/lib/mock/917989-custom-1-x86_64-1559239976.336430/root', '-a', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.1u18udmo:/etc/resolv.conf', '--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=en_US.UTF-8', '-u', 'mockbuild', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/golang-github-sendgrid-rest.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': 'en_US.UTF-8'} and shell False Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.hZY48v + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf rest-8f995deebcbbba440a60746115fdb5524e7cf3fc + /usr/bin/gzip -dc /builddir/build/SOURCES/rest-8f995deebcbbba440a60746115fdb5524e7cf3fc.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd rest-8f995deebcbbba440a60746115fdb5524e7cf3fc + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + rm -fr /builddir/build/BUILD/rest-8f995deebcbbba440a60746115fdb5524e7cf3fc/vendor + [[ ! -e /builddir/build/BUILD/rest-8f995deebcbbba440a60746115fdb5524e7cf3fc/_build/bin ]] + install -m 0755 -vd /builddir/build/BUILD/rest-8f995deebcbbba440a60746115fdb5524e7cf3fc/_build/bin install: creating directory '/builddir/build/BUILD/rest-8f995deebcbbba440a60746115fdb5524e7cf3fc/_build' install: creating directory '/builddir/build/BUILD/rest-8f995deebcbbba440a60746115fdb5524e7cf3fc/_build/bin' + export GOPATH=/builddir/build/BUILD/rest-8f995deebcbbba440a60746115fdb5524e7cf3fc/_build:/usr/share/gocode + GOPATH=/builddir/build/BUILD/rest-8f995deebcbbba440a60746115fdb5524e7cf3fc/_build:/usr/share/gocode + [[ ! -e /builddir/build/BUILD/rest-8f995deebcbbba440a60746115fdb5524e7cf3fc/_build/src/github.com/sendgrid/rest ]] BUILDSTDERR: ++ dirname /builddir/build/BUILD/rest-8f995deebcbbba440a60746115fdb5524e7cf3fc/_build/src/github.com/sendgrid/rest + install -m 0755 -vd /builddir/build/BUILD/rest-8f995deebcbbba440a60746115fdb5524e7cf3fc/_build/src/github.com/sendgrid install: creating directory '/builddir/build/BUILD/rest-8f995deebcbbba440a60746115fdb5524e7cf3fc/_build/src' install: creating directory '/builddir/build/BUILD/rest-8f995deebcbbba440a60746115fdb5524e7cf3fc/_build/src/github.com' install: creating directory '/builddir/build/BUILD/rest-8f995deebcbbba440a60746115fdb5524e7cf3fc/_build/src/github.com/sendgrid' + ln -fs /builddir/build/BUILD/rest-8f995deebcbbba440a60746115fdb5524e7cf3fc /builddir/build/BUILD/rest-8f995deebcbbba440a60746115fdb5524e7cf3fc/_build/src/github.com/sendgrid/rest + cd /builddir/build/BUILD/rest-8f995deebcbbba440a60746115fdb5524e7cf3fc/_build/src/github.com/sendgrid/rest + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.kJfFzw + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/golang-github-sendgrid-rest-2.4.1-1.20190530git8f995de.fc31.x86_64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/golang-github-sendgrid-rest-2.4.1-1.20190530git8f995de.fc31.x86_64 BUILDSTDERR: ++ dirname /builddir/build/BUILDROOT/golang-github-sendgrid-rest-2.4.1-1.20190530git8f995de.fc31.x86_64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/golang-github-sendgrid-rest-2.4.1-1.20190530git8f995de.fc31.x86_64 + cd rest-8f995deebcbbba440a60746115fdb5524e7cf3fc + cd /builddir/build/BUILD/rest-8f995deebcbbba440a60746115fdb5524e7cf3fc/_build/src/github.com/sendgrid/rest + IFS= BUILDSTDERR: +++ realpath -e --relative-base=. BUILDSTDERR: +++ sort -u BUILDSTDERR: realpath: missing operand BUILDSTDERR: Try 'realpath --help' for more information. BUILDSTDERR: ++ IFS= BUILDSTDERR: ++ read -r finc BUILDSTDERR: ++ sort -u BUILDSTDERR: ++ grep -q '' BUILDSTDERR: ++ realpath -qe --relative-base=. '' BUILDSTDERR: ++ echo '' BUILDSTDERR: ++ IFS= BUILDSTDERR: ++ read -r finc + gosupfiles= + mapfile -t gosupfilesA + go-rpm-integration install -i github.com/sendgrid/rest -b /builddir/build/BUILD/rest-8f995deebcbbba440a60746115fdb5524e7cf3fc/_build/bin -s /builddir/build/BUILD/rest-8f995deebcbbba440a60746115fdb5524e7cf3fc/_build -o golang-github-sendgrid-rest-devel.file-list -O /builddir/build/BUILD/rest-8f995deebcbbba440a60746115fdb5524e7cf3fc -V 2.4.1-1.20190530git8f995de.fc31 -C 8f995deebcbbba440a60746115fdb5524e7cf3fc -p /builddir/build/BUILDROOT/golang-github-sendgrid-rest-2.4.1-1.20190530git8f995de.fc31.x86_64 -g /usr/share/gocode -r '.*example.*' '' Installing: github.com/sendgrid/rest BUILDSTDERR: realpath: '': No such file or directory BUILDSTDERR: realpath: go.mod: No such file or directory + IFS= BUILDSTDERR: +++ realpath -e --relative-base=. examples CHANGELOG.md CODE_OF_CONDUCT.md CONTRIBUTING.md FIRST-TIMERS.md README.md TROUBLESHOOTING.md USAGE.md BUILDSTDERR: +++ sort -u BUILDSTDERR: ++ IFS= BUILDSTDERR: ++ read -r finc BUILDSTDERR: ++ realpath -qe --relative-base=. '' BUILDSTDERR: ++ grep -q CHANGELOG.md BUILDSTDERR: ++ sort -u BUILDSTDERR: ++ echo CHANGELOG.md BUILDSTDERR: ++ IFS= BUILDSTDERR: ++ read -r finc BUILDSTDERR: ++ sort -u BUILDSTDERR: ++ realpath -qe --relative-base=. '' BUILDSTDERR: ++ grep -q CODE_OF_CONDUCT.md BUILDSTDERR: ++ echo CODE_OF_CONDUCT.md BUILDSTDERR: ++ IFS= BUILDSTDERR: ++ read -r finc BUILDSTDERR: ++ realpath -qe --relative-base=. '' BUILDSTDERR: ++ grep -q CONTRIBUTING.md BUILDSTDERR: ++ sort -u BUILDSTDERR: ++ echo CONTRIBUTING.md BUILDSTDERR: ++ IFS= BUILDSTDERR: ++ read -r finc BUILDSTDERR: ++ sort -u BUILDSTDERR: ++ grep -q FIRST-TIMERS.md BUILDSTDERR: ++ realpath -qe --relative-base=. '' BUILDSTDERR: ++ echo FIRST-TIMERS.md BUILDSTDERR: ++ IFS= BUILDSTDERR: ++ read -r finc BUILDSTDERR: ++ sort -u BUILDSTDERR: ++ realpath -qe --relative-base=. '' BUILDSTDERR: ++ grep -q README.md BUILDSTDERR: ++ echo README.md BUILDSTDERR: ++ IFS= BUILDSTDERR: ++ read -r finc BUILDSTDERR: ++ realpath -qe --relative-base=. '' BUILDSTDERR: ++ sort -u BUILDSTDERR: ++ grep -q TROUBLESHOOTING.md BUILDSTDERR: ++ echo TROUBLESHOOTING.md BUILDSTDERR: ++ IFS= BUILDSTDERR: ++ read -r finc BUILDSTDERR: ++ sort -u BUILDSTDERR: ++ realpath -qe --relative-base=. '' BUILDSTDERR: ++ grep -q USAGE.md BUILDSTDERR: ++ echo USAGE.md BUILDSTDERR: ++ IFS= BUILDSTDERR: ++ read -r finc BUILDSTDERR: ++ realpath -qe --relative-base=. '' BUILDSTDERR: ++ sort -u BUILDSTDERR: ++ grep -q examples BUILDSTDERR: ++ echo examples BUILDSTDERR: ++ IFS= BUILDSTDERR: ++ read -r finc + godocs='CHANGELOG.md BUILDSTDERR: CODE_OF_CONDUCT.md BUILDSTDERR: CONTRIBUTING.md BUILDSTDERR: FIRST-TIMERS.md BUILDSTDERR: README.md BUILDSTDERR: TROUBLESHOOTING.md BUILDSTDERR: USAGE.md BUILDSTDERR: examples' + [[ -n CHANGELOG.md BUILDSTDERR: CODE_OF_CONDUCT.md BUILDSTDERR: CONTRIBUTING.md BUILDSTDERR: FIRST-TIMERS.md BUILDSTDERR: README.md BUILDSTDERR: TROUBLESHOOTING.md BUILDSTDERR: USAGE.md BUILDSTDERR: examples ]] + IFS= + read -r f + echo %doc '"CHANGELOG.md"' + IFS= + read -r f + echo %doc '"CODE_OF_CONDUCT.md"' + IFS= + read -r f + echo %doc '"CONTRIBUTING.md"' + IFS= + read -r f + echo %doc '"FIRST-TIMERS.md"' + IFS= + read -r f + echo %doc '"README.md"' + IFS= + read -r f + echo %doc '"TROUBLESHOOTING.md"' + IFS= + read -r f + echo %doc '"USAGE.md"' + IFS= + read -r f + echo %doc '"examples"' + IFS= + read -r f + IFS= BUILDSTDERR: +++ realpath -e --relative-base=. LICENSE.txt BUILDSTDERR: +++ sort -u BUILDSTDERR: ++ IFS= BUILDSTDERR: ++ read -r finc BUILDSTDERR: ++ sort -u BUILDSTDERR: ++ grep -q LICENSE.txt BUILDSTDERR: ++ realpath -qe --relative-base=. '' BUILDSTDERR: ++ echo LICENSE.txt BUILDSTDERR: ++ IFS= BUILDSTDERR: ++ read -r finc + golicenses=LICENSE.txt + [[ -n LICENSE.txt ]] + IFS= + read -r f + echo %license '"LICENSE.txt"' + IFS= + read -r f + /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/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 0 + /usr/lib/rpm/brp-python-hardlink + /usr/lib/rpm/redhat/brp-mangle-shebangs Processing files: golang-github-sendgrid-rest-devel-2.4.1-1.20190530git8f995de.fc31.noarch Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.ktOZcv + umask 022 + cd /builddir/build/BUILD + cd rest-8f995deebcbbba440a60746115fdb5524e7cf3fc + DOCDIR=/builddir/build/BUILDROOT/golang-github-sendgrid-rest-2.4.1-1.20190530git8f995de.fc31.x86_64/usr/share/doc/golang-github-sendgrid-rest-devel + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/golang-github-sendgrid-rest-2.4.1-1.20190530git8f995de.fc31.x86_64/usr/share/doc/golang-github-sendgrid-rest-devel + cp -pr CHANGELOG.md /builddir/build/BUILDROOT/golang-github-sendgrid-rest-2.4.1-1.20190530git8f995de.fc31.x86_64/usr/share/doc/golang-github-sendgrid-rest-devel + cp -pr CODE_OF_CONDUCT.md /builddir/build/BUILDROOT/golang-github-sendgrid-rest-2.4.1-1.20190530git8f995de.fc31.x86_64/usr/share/doc/golang-github-sendgrid-rest-devel + cp -pr CONTRIBUTING.md /builddir/build/BUILDROOT/golang-github-sendgrid-rest-2.4.1-1.20190530git8f995de.fc31.x86_64/usr/share/doc/golang-github-sendgrid-rest-devel + cp -pr FIRST-TIMERS.md /builddir/build/BUILDROOT/golang-github-sendgrid-rest-2.4.1-1.20190530git8f995de.fc31.x86_64/usr/share/doc/golang-github-sendgrid-rest-devel + cp -pr README.md /builddir/build/BUILDROOT/golang-github-sendgrid-rest-2.4.1-1.20190530git8f995de.fc31.x86_64/usr/share/doc/golang-github-sendgrid-rest-devel + cp -pr TROUBLESHOOTING.md /builddir/build/BUILDROOT/golang-github-sendgrid-rest-2.4.1-1.20190530git8f995de.fc31.x86_64/usr/share/doc/golang-github-sendgrid-rest-devel + cp -pr USAGE.md /builddir/build/BUILDROOT/golang-github-sendgrid-rest-2.4.1-1.20190530git8f995de.fc31.x86_64/usr/share/doc/golang-github-sendgrid-rest-devel + cp -pr examples /builddir/build/BUILDROOT/golang-github-sendgrid-rest-2.4.1-1.20190530git8f995de.fc31.x86_64/usr/share/doc/golang-github-sendgrid-rest-devel + exit 0 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.2BcJuw + umask 022 + cd /builddir/build/BUILD + cd rest-8f995deebcbbba440a60746115fdb5524e7cf3fc + LICENSEDIR=/builddir/build/BUILDROOT/golang-github-sendgrid-rest-2.4.1-1.20190530git8f995de.fc31.x86_64/usr/share/licenses/golang-github-sendgrid-rest-devel + export LC_ALL=C + LC_ALL=C + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/golang-github-sendgrid-rest-2.4.1-1.20190530git8f995de.fc31.x86_64/usr/share/licenses/golang-github-sendgrid-rest-devel + cp -pr LICENSE.txt /builddir/build/BUILDROOT/golang-github-sendgrid-rest-2.4.1-1.20190530git8f995de.fc31.x86_64/usr/share/licenses/golang-github-sendgrid-rest-devel + exit 0 Provides: golang(github.com/sendgrid/rest) = 2.4.1-1.20190530git8f995de.fc31 golang(github.com/sendgrid/rest)(commit=8f995deebcbbba440a60746115fdb5524e7cf3fc) = 2.4.1-1.20190530git8f995de.fc31 golang-github-sendgrid-rest-devel = 2.4.1-1.20190530git8f995de.fc31 golang-ipath(github.com/sendgrid/rest) = 2.4.1-1.20190530git8f995de.fc31 golang-ipath(github.com/sendgrid/rest)(commit=8f995deebcbbba440a60746115fdb5524e7cf3fc) = 2.4.1-1.20190530git8f995de.fc31 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: go-filesystem Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/golang-github-sendgrid-rest-2.4.1-1.20190530git8f995de.fc31.x86_64 Wrote: /builddir/build/RPMS/golang-github-sendgrid-rest-devel-2.4.1-1.20190530git8f995de.fc31.noarch.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.a3iACt + umask 022 + cd /builddir/build/BUILD + cd rest-8f995deebcbbba440a60746115fdb5524e7cf3fc + /usr/bin/rm -rf /builddir/build/BUILDROOT/golang-github-sendgrid-rest-2.4.1-1.20190530git8f995de.fc31.x86_64 + exit 0 Child return code was: 0