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-xorm-builder.spec'], chrootPath='/var/lib/mock/918990-custom-1-x86_64-1559318528.200654/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.057inbth:/etc/resolv.conf']unshare_net=TrueprintOutput=True) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.057inbth:/etc/resolv.conf'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '751a5e752290484fa2f178e976a0b67a', '-D', '/var/lib/mock/918990-custom-1-x86_64-1559318528.200654/root', '-a', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.057inbth:/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-xorm-builder.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-xorm-builder-0.3.4-1.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-xorm-builder.spec'], chrootPath='/var/lib/mock/918990-custom-1-x86_64-1559318528.200654/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.057inbth:/etc/resolv.conf']unshare_net=TrueprintOutput=True) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.057inbth:/etc/resolv.conf'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '2f9b345f83aa4b83a20da2b588272802', '-D', '/var/lib/mock/918990-custom-1-x86_64-1559318528.200654/root', '-a', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.057inbth:/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-xorm-builder.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.o5LX2s + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf builder-0.3.4 + /usr/bin/gzip -dc /builddir/build/SOURCES/builder-0.3.4.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd builder-0.3.4 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + rm -fr /builddir/build/BUILD/builder-0.3.4/vendor + [[ ! -e /builddir/build/BUILD/builder-0.3.4/_build/bin ]] + install -m 0755 -vd /builddir/build/BUILD/builder-0.3.4/_build/bin install: creating directory '/builddir/build/BUILD/builder-0.3.4/_build' install: creating directory '/builddir/build/BUILD/builder-0.3.4/_build/bin' + export GOPATH=/builddir/build/BUILD/builder-0.3.4/_build:/usr/share/gocode + GOPATH=/builddir/build/BUILD/builder-0.3.4/_build:/usr/share/gocode + [[ ! -e /builddir/build/BUILD/builder-0.3.4/_build/src/github.com/go-xorm/builder ]] BUILDSTDERR: ++ dirname /builddir/build/BUILD/builder-0.3.4/_build/src/github.com/go-xorm/builder + install -m 0755 -vd /builddir/build/BUILD/builder-0.3.4/_build/src/github.com/go-xorm install: creating directory '/builddir/build/BUILD/builder-0.3.4/_build/src' install: creating directory '/builddir/build/BUILD/builder-0.3.4/_build/src/github.com' install: creating directory '/builddir/build/BUILD/builder-0.3.4/_build/src/github.com/go-xorm' + ln -fs /builddir/build/BUILD/builder-0.3.4 /builddir/build/BUILD/builder-0.3.4/_build/src/github.com/go-xorm/builder + cd /builddir/build/BUILD/builder-0.3.4/_build/src/github.com/go-xorm/builder + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.A4bfBv + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/golang-github-xorm-builder-0.3.4-1.fc31.x86_64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/golang-github-xorm-builder-0.3.4-1.fc31.x86_64 BUILDSTDERR: ++ dirname /builddir/build/BUILDROOT/golang-github-xorm-builder-0.3.4-1.fc31.x86_64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/golang-github-xorm-builder-0.3.4-1.fc31.x86_64 + cd builder-0.3.4 + cd /builddir/build/BUILD/builder-0.3.4/_build/src/github.com/go-xorm/builder + 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: ++ realpath -qe --relative-base=. '' BUILDSTDERR: ++ grep -q '' BUILDSTDERR: ++ sort -u BUILDSTDERR: ++ echo '' BUILDSTDERR: ++ IFS= BUILDSTDERR: ++ read -r finc + gosupfiles= + mapfile -t gosupfilesA + go-rpm-integration install -i github.com/go-xorm/builder -b /builddir/build/BUILD/builder-0.3.4/_build/bin -s /builddir/build/BUILD/builder-0.3.4/_build -o golang-github-xorm-builder-devel.file-list -O /builddir/build/BUILD/builder-0.3.4 -V 0.3.4-1.fc31 -p /builddir/build/BUILDROOT/golang-github-xorm-builder-0.3.4-1.fc31.x86_64 -g /usr/share/gocode -r '.*example.*' '' Installing: github.com/go-xorm/builder BUILDSTDERR: realpath: '': No such file or directory + IFS= BUILDSTDERR: +++ realpath -e --relative-base=. README.md BUILDSTDERR: +++ sort -u BUILDSTDERR: ++ IFS= BUILDSTDERR: ++ read -r finc BUILDSTDERR: ++ realpath -qe --relative-base=. '' BUILDSTDERR: ++ grep -q README.md BUILDSTDERR: ++ sort -u BUILDSTDERR: ++ echo README.md BUILDSTDERR: ++ IFS= BUILDSTDERR: ++ read -r finc + godocs=README.md + [[ -n README.md ]] + IFS= + read -r f + echo %doc '"README.md"' + IFS= + read -r f + IFS= BUILDSTDERR: +++ realpath -e --relative-base=. LICENSE BUILDSTDERR: +++ sort -u BUILDSTDERR: ++ IFS= BUILDSTDERR: ++ read -r finc BUILDSTDERR: ++ realpath -qe --relative-base=. '' BUILDSTDERR: ++ grep -q LICENSE BUILDSTDERR: ++ sort -u BUILDSTDERR: ++ echo LICENSE BUILDSTDERR: ++ IFS= BUILDSTDERR: ++ read -r finc + golicenses=LICENSE + [[ -n LICENSE ]] + IFS= + read -r f + echo %license '"LICENSE"' + 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 Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.34YnNv + umask 022 + cd /builddir/build/BUILD + cd builder-0.3.4 + LDFLAGS='-X github.com/go-xorm/builder/version=0.3.4' + 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 ' + go-rpm-integration check -i github.com/go-xorm/builder -b /builddir/build/BUILD/builder-0.3.4/_build/bin -s /builddir/build/BUILD/builder-0.3.4/_build -V 0.3.4-1.fc31 -p /builddir/build/BUILDROOT/golang-github-xorm-builder-0.3.4-1.fc31.x86_64 -g /usr/share/gocode -r '.*example.*' Testing in: /builddir/build/BUILD/builder-0.3.4/_build/src PATH: /builddir/build/BUILD/builder-0.3.4/_build/bin:/builddir/.local/bin:/builddir/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin GOPATH: /builddir/build/BUILD/builder-0.3.4/_build:/usr/share/gocode GO111MODULE: off command: go test -buildmode pie -compiler gc -ldflags "-X github.com/go-xorm/builder/version=0.3.4 -extldflags '-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld '" testing: github.com/go-xorm/builder github.com/go-xorm/builder SELECT c FROM table1 GROUP BY c HAVING count(c)=1 [] SELECT c FROM table1 ORDER BY c DESC [] (SELECT * FROM t1 WHERE status=?) UNION ALL (SELECT * FROM t2 WHERE status=?) [1 2] DELETE FROM t2 WHERE status=? [1] INSERT INTO t2 (status) Values (?) [1] create table table1 ( id int primary key, a varchar(40), b varchar(40), c varchar(40) ); create table table2 ( id int primary key, ref_id int, d varchar(40) ); INSERT INTO table1 (id, a, b, c) VALUES (0, '0', '0', '0'); INSERT INTO table1 (id, a, b, c) VALUES (1, '1', '1', '1'); INSERT INTO table1 (id, a, b, c) VALUES (2, '2', '2', '2'); INSERT INTO table1 (id, a, b, c) VALUES (3, '3', '3', '3'); INSERT INTO table1 (id, a, b, c) VALUES (4, '4', '4', '4'); INSERT INTO table1 (id, a, b, c) VALUES (5, '5', '5', '5'); INSERT INTO table1 (id, a, b, c) VALUES (6, '6', '6', '6'); INSERT INTO table1 (id, a, b, c) VALUES (7, '7', '7', '7'); INSERT INTO table1 (id, a, b, c) VALUES (8, '8', '8', '8'); INSERT INTO table1 (id, a, b, c) VALUES (9, '9', '9', '9'); INSERT INTO table1 (id, a, b, c) VALUES (10, '10', '10', '10'); INSERT INTO table1 (id, a, b, c) VALUES (11, '11', '11', '11'); INSERT INTO table1 (id, a, b, c) VALUES (12, '12', '12', '12'); INSERT INTO table1 (id, a, b, c) VALUES (13, '13', '13', '13'); INSERT INTO table1 (id, a, b, c) VALUES (14, '14', '14', '14'); INSERT INTO table1 (id, a, b, c) VALUES (15, '15', '15', '15'); INSERT INTO table1 (id, a, b, c) VALUES (16, '16', '16', '16'); INSERT INTO table1 (id, a, b, c) VALUES (17, '17', '17', '17'); INSERT INTO table1 (id, a, b, c) VALUES (18, '18', '18', '18'); INSERT INTO table1 (id, a, b, c) VALUES (19, '19', '19', '19'); INSERT INTO table1 (id, a, b, c) VALUES (20, '20', '20', '20'); INSERT INTO table1 (id, a, b, c) VALUES (21, '21', '21', '21'); INSERT INTO table1 (id, a, b, c) VALUES (22, '22', '22', '22'); INSERT INTO table1 (id, a, b, c) VALUES (23, '23', '23', '23'); INSERT INTO table1 (id, a, b, c) VALUES (24, '24', '24', '24'); INSERT INTO table1 (id, a, b, c) VALUES (25, '25', '25', '25'); INSERT INTO table1 (id, a, b, c) VALUES (26, '26', '26', '26'); INSERT INTO table1 (id, a, b, c) VALUES (27, '27', '27', '27'); INSERT INTO table1 (id, a, b, c) VALUES (28, '28', '28', '28'); INSERT INTO table1 (id, a, b, c) VALUES (29, '29', '29', '29'); INSERT INTO table1 (id, a, b, c) VALUES (30, '30', '30', '30'); INSERT INTO table1 (id, a, b, c) VALUES (31, '31', '31', '31'); INSERT INTO table1 (id, a, b, c) VALUES (32, '32', '32', '32'); INSERT INTO table1 (id, a, b, c) VALUES (33, '33', '33', '33'); INSERT INTO table1 (id, a, b, c) VALUES (34, '34', '34', '34'); INSERT INTO table1 (id, a, b, c) VALUES (35, '35', '35', '35'); INSERT INTO table1 (id, a, b, c) VALUES (36, '36', '36', '36'); INSERT INTO table1 (id, a, b, c) VALUES (37, '37', '37', '37'); INSERT INTO table1 (id, a, b, c) VALUES (38, '38', '38', '38'); INSERT INTO table1 (id, a, b, c) VALUES (39, '39', '39', '39'); INSERT INTO table1 (id, a, b, c) VALUES (40, '40', '40', '40'); INSERT INTO table1 (id, a, b, c) VALUES (41, '41', '41', '41'); INSERT INTO table1 (id, a, b, c) VALUES (42, '42', '42', '42'); INSERT INTO table1 (id, a, b, c) VALUES (43, '43', '43', '43'); INSERT INTO table1 (id, a, b, c) VALUES (44, '44', '44', '44'); INSERT INTO table1 (id, a, b, c) VALUES (45, '45', '45', '45'); INSERT INTO table1 (id, a, b, c) VALUES (46, '46', '46', '46'); INSERT INTO table1 (id, a, b, c) VALUES (47, '47', '47', '47'); INSERT INTO table1 (id, a, b, c) VALUES (48, '48', '48', '48'); INSERT INTO table1 (id, a, b, c) VALUES (49, '49', '49', '49'); INSERT INTO table2 (id, ref_id, d) VALUES (0, '0', '0'); INSERT INTO table2 (id, ref_id, d) VALUES (1, '1', '1'); INSERT INTO table2 (id, ref_id, d) VALUES (2, '2', '2'); INSERT INTO table2 (id, ref_id, d) VALUES (3, '3', '3'); INSERT INTO table2 (id, ref_id, d) VALUES (4, '4', '4'); INSERT INTO table2 (id, ref_id, d) VALUES (5, '5', '5'); INSERT INTO table2 (id, ref_id, d) VALUES (6, '6', '6'); INSERT INTO table2 (id, ref_id, d) VALUES (7, '7', '7'); INSERT INTO table2 (id, ref_id, d) VALUES (8, '8', '8'); INSERT INTO table2 (id, ref_id, d) VALUES (9, '9', '9'); INSERT INTO table2 (id, ref_id, d) VALUES (10, '10', '10'); INSERT INTO table2 (id, ref_id, d) VALUES (11, '11', '11'); INSERT INTO table2 (id, ref_id, d) VALUES (12, '12', '12'); INSERT INTO table2 (id, ref_id, d) VALUES (13, '13', '13'); INSERT INTO table2 (id, ref_id, d) VALUES (14, '14', '14'); INSERT INTO table2 (id, ref_id, d) VALUES (15, '15', '15'); INSERT INTO table2 (id, ref_id, d) VALUES (16, '16', '16'); INSERT INTO table2 (id, ref_id, d) VALUES (17, '17', '17'); INSERT INTO table2 (id, ref_id, d) VALUES (18, '18', '18'); INSERT INTO table2 (id, ref_id, d) VALUES (19, '19', '19'); INSERT INTO table2 (id, ref_id, d) VALUES (20, '20', '20'); INSERT INTO table2 (id, ref_id, d) VALUES (21, '21', '21'); INSERT INTO table2 (id, ref_id, d) VALUES (22, '22', '22'); INSERT INTO table2 (id, ref_id, d) VALUES (23, '23', '23'); INSERT INTO table2 (id, ref_id, d) VALUES (24, '24', '24'); INSERT INTO table2 (id, ref_id, d) VALUES (25, '25', '25'); INSERT INTO table2 (id, ref_id, d) VALUES (26, '26', '26'); INSERT INTO table2 (id, ref_id, d) VALUES (27, '27', '27'); INSERT INTO table2 (id, ref_id, d) VALUES (28, '28', '28'); INSERT INTO table2 (id, ref_id, d) VALUES (29, '29', '29'); INSERT INTO table2 (id, ref_id, d) VALUES (30, '30', '30'); INSERT INTO table2 (id, ref_id, d) VALUES (31, '31', '31'); INSERT INTO table2 (id, ref_id, d) VALUES (32, '32', '32'); INSERT INTO table2 (id, ref_id, d) VALUES (33, '33', '33'); INSERT INTO table2 (id, ref_id, d) VALUES (34, '34', '34'); INSERT INTO table2 (id, ref_id, d) VALUES (35, '35', '35'); INSERT INTO table2 (id, ref_id, d) VALUES (36, '36', '36'); INSERT INTO table2 (id, ref_id, d) VALUES (37, '37', '37'); INSERT INTO table2 (id, ref_id, d) VALUES (38, '38', '38'); INSERT INTO table2 (id, ref_id, d) VALUES (39, '39', '39'); INSERT INTO table2 (id, ref_id, d) VALUES (40, '40', '40'); INSERT INTO table2 (id, ref_id, d) VALUES (41, '41', '41'); INSERT INTO table2 (id, ref_id, d) VALUES (42, '42', '42'); INSERT INTO table2 (id, ref_id, d) VALUES (43, '43', '43'); INSERT INTO table2 (id, ref_id, d) VALUES (44, '44', '44'); INSERT INTO table2 (id, ref_id, d) VALUES (45, '45', '45'); INSERT INTO table2 (id, ref_id, d) VALUES (46, '46', '46'); INSERT INTO table2 (id, ref_id, d) VALUES (47, '47', '47'); INSERT INTO table2 (id, ref_id, d) VALUES (48, '48', '48'); INSERT INTO table2 (id, ref_id, d) VALUES (49, '49', '49'); PASS ok github.com/go-xorm/builder 0.077s + exit 0 Processing files: golang-github-xorm-builder-devel-0.3.4-1.fc31.noarch Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.VMi6fw + umask 022 + cd /builddir/build/BUILD + cd builder-0.3.4 + DOCDIR=/builddir/build/BUILDROOT/golang-github-xorm-builder-0.3.4-1.fc31.x86_64/usr/share/doc/golang-github-xorm-builder-devel + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/golang-github-xorm-builder-0.3.4-1.fc31.x86_64/usr/share/doc/golang-github-xorm-builder-devel + cp -pr README.md /builddir/build/BUILDROOT/golang-github-xorm-builder-0.3.4-1.fc31.x86_64/usr/share/doc/golang-github-xorm-builder-devel + exit 0 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.BtK0zw + umask 022 + cd /builddir/build/BUILD + cd builder-0.3.4 + LICENSEDIR=/builddir/build/BUILDROOT/golang-github-xorm-builder-0.3.4-1.fc31.x86_64/usr/share/licenses/golang-github-xorm-builder-devel + export LC_ALL=C + LC_ALL=C + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/golang-github-xorm-builder-0.3.4-1.fc31.x86_64/usr/share/licenses/golang-github-xorm-builder-devel + cp -pr LICENSE /builddir/build/BUILDROOT/golang-github-xorm-builder-0.3.4-1.fc31.x86_64/usr/share/licenses/golang-github-xorm-builder-devel + exit 0 Provides: golang(github.com/go-xorm/builder) = 0.3.4-1.fc31 golang-github-xorm-builder-devel = 0.3.4-1.fc31 golang-ipath(github.com/go-xorm/builder) = 0.3.4-1.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-xorm-builder-0.3.4-1.fc31.x86_64 Wrote: /builddir/build/RPMS/golang-github-xorm-builder-devel-0.3.4-1.fc31.noarch.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.rcSP9s + umask 022 + cd /builddir/build/BUILD + cd builder-0.3.4 + /usr/bin/rm -rf /builddir/build/BUILDROOT/golang-github-xorm-builder-0.3.4-1.fc31.x86_64 + exit 0 Child return code was: 0