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 x86_64 --nodeps /builddir/build/SPECS/telegraf.spec'], chrootPath='/var/lib/mock/dist-an23-epao-build-294494-65307/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=86400uid=990gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/telegraf.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 warning: %patchN is deprecated (1 usages found), use %patch N (or %patch -P N) Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1650844800 Wrote: /builddir/build/SRPMS/telegraf-1.22.1-1.an23.src.rpm RPM build warnings: %patchN is deprecated (1 usages found), use %patch N (or %patch -P N) Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/telegraf.spec'], chrootPath='/var/lib/mock/dist-an23-epao-build-294494-65307/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=86400uid=990gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/telegraf.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 warning: %patchN is deprecated (1 usages found), use %patch N (or %patch -P N) Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1650844800 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.NW3PE4 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf telegraf-1.22.1 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/telegraf-1.22.1.tar.xz + STATUS=0 + '[' 0 -ne 0 ']' + cd telegraf-1.22.1 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + cd /builddir/build/BUILD + cd telegraf-1.22.1 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/vendor.tar.xz + STATUS=0 + '[' 0 -ne 0 ']' + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (harden_telegraf.service.patch):' Patch #0 (harden_telegraf.service.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file scripts/telegraf.service + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.uX9sAG + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd telegraf-1.22.1 + go build -mod=vendor -buildmode=pie ./cmd/telegraf + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.BEbV6Y + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/telegraf-1.22.1-1.an23.x86_64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/telegraf-1.22.1-1.an23.x86_64 ++ dirname /builddir/build/BUILDROOT/telegraf-1.22.1-1.an23.x86_64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/telegraf-1.22.1-1.an23.x86_64 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd telegraf-1.22.1 + install -D -m 0755 telegraf /builddir/build/BUILDROOT/telegraf-1.22.1-1.an23.x86_64//usr/bin/telegraf + mkdir -p /builddir/build/BUILDROOT/telegraf-1.22.1-1.an23.x86_64//etc/telegraf + mkdir -p /builddir/build/BUILDROOT/telegraf-1.22.1-1.an23.x86_64//etc/telegraf/telegraf.d + install -m644 etc/telegraf.conf /builddir/build/BUILDROOT/telegraf-1.22.1-1.an23.x86_64//etc/telegraf + install -D -m 644 scripts/telegraf.service /builddir/build/BUILDROOT/telegraf-1.22.1-1.an23.x86_64/usr/lib/systemd/system/telegraf.service + sed -i /User=/d /builddir/build/BUILDROOT/telegraf-1.22.1-1.an23.x86_64/usr/lib/systemd/system/telegraf.service + mkdir -p /builddir/build/BUILDROOT/telegraf-1.22.1-1.an23.x86_64/usr/sbin + ln -s /usr/sbin/service /builddir/build/BUILDROOT/telegraf-1.22.1-1.an23.x86_64/usr/sbin/rctelegraf + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/anolis/brp-ldconfig + COMPRESS='zstd -f --rm -19 -T0' + COMPRESS_EXT=.zst + /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/anolis/brp-strip-lto /usr/bin/strip + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/check-rpaths + /usr/lib/rpm/brp-remove-la-files + /usr/lib/rpm/anolis/clean_perl + /usr/lib/rpm/anolis/check_elf_files + /usr/lib/rpm/anolis/brp-mangle-shebangs + /usr/lib/rpm/anolis/remove-info-dir + /usr/lib/rpm/anolis/check-desktop-files + /usr/lib/rpm/anolis/brp-python-bytecompile '' 1 0 + /usr/lib/rpm/anolis/brp-python-hardlink Processing files: telegraf-1.22.1-1.an23.x86_64 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.eYR9Q5 + umask 022 + cd /builddir/build/BUILD + cd telegraf-1.22.1 + LICENSEDIR=/builddir/build/BUILDROOT/telegraf-1.22.1-1.an23.x86_64/usr/share/licenses/telegraf + export LC_ALL=C + LC_ALL=C + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/telegraf-1.22.1-1.an23.x86_64/usr/share/licenses/telegraf + cp -pr LICENSE /builddir/build/BUILDROOT/telegraf-1.22.1-1.an23.x86_64/usr/share/licenses/telegraf + RPM_EC=0 ++ jobs -p + exit 0 warning: Missing build-id in /builddir/build/BUILDROOT/telegraf-1.22.1-1.an23.x86_64/usr/bin/telegraf warning: absolute symlink: /usr/sbin/rctelegraf -> /usr/sbin/service Provides: config(telegraf) = 1.22.1-1.an23 telegraf = 1.22.1-1.an23 telegraf(x86-64) = 1.22.1-1.an23 Requires(interp): /bin/sh /bin/sh Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires(preun): /bin/sh Requires(postun): /bin/sh Requires: libc.so.6()(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.3.2)(64bit) libc.so.6(GLIBC_2.32)(64bit) libc.so.6(GLIBC_2.34)(64bit) libresolv.so.2()(64bit) OrderWithRequires: systemd systemd systemd Processing files: telegraf-doc-1.22.1-1.an23.noarch Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.Ep3bpN + umask 022 + cd /builddir/build/BUILD + cd telegraf-1.22.1 + DOCDIR=/builddir/build/BUILDROOT/telegraf-1.22.1-1.an23.x86_64/usr/share/doc/telegraf-doc + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/telegraf-1.22.1-1.an23.x86_64/usr/share/doc/telegraf-doc + cp -pr CHANGELOG.md /builddir/build/BUILDROOT/telegraf-1.22.1-1.an23.x86_64/usr/share/doc/telegraf-doc + cp -pr CONTRIBUTING.md /builddir/build/BUILDROOT/telegraf-1.22.1-1.an23.x86_64/usr/share/doc/telegraf-doc + cp -pr README.md /builddir/build/BUILDROOT/telegraf-1.22.1-1.an23.x86_64/usr/share/doc/telegraf-doc + RPM_EC=0 ++ jobs -p + exit 0 Provides: telegraf-doc = 1.22.1-1.an23 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/telegraf-1.22.1-1.an23.x86_64 Wrote: /builddir/build/RPMS/telegraf-doc-1.22.1-1.an23.noarch.rpm Wrote: /builddir/build/RPMS/telegraf-1.22.1-1.an23.x86_64.rpm RPM build warnings: %patchN is deprecated (1 usages found), use %patch N (or %patch -P N) Missing build-id in /builddir/build/BUILDROOT/telegraf-1.22.1-1.an23.x86_64/usr/bin/telegraf absolute symlink: /usr/sbin/rctelegraf -> /usr/sbin/service Child return code was: 0