Mock Version: 2.8 Mock Version: 2.8 Mock Version: 2.8 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/realmd.spec'], chrootPath='/var/lib/mock/dist-an23-build-95727-45500/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=989gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/realmd.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: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1606262400 Wrote: /builddir/build/SRPMS/realmd-0.16.1-12.an23.1.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/realmd.spec'], chrootPath='/var/lib/mock/dist-an23-build-95727-45500/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=989gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/realmd.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: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1606262400 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.E0TzTe + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf realmd-0.16.1 + /usr/bin/gzip -dc /builddir/build/SOURCES/realmd-0.16.1.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd realmd-0.16.1 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (ipa-packages.patch):' Patch #0 (ipa-packages.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file service/realmd-redhat.conf Patch #2 (remove-spurious-print.patch): + echo 'Patch #2 (remove-spurious-print.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file tools/realm-join.c Patch #3 (increase-packagekit-timeout.patch): + echo 'Patch #3 (increase-packagekit-timeout.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file service/realm-packages.c Patch #4 (dns-domain-name-liberal.patch): + echo 'Patch #4 (dns-domain-name-liberal.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file service/realm-disco-mscldap.c patching file service/realm-disco-rootdse.c patching file service/realm-options.c patching file service/realm-options.h Patch #11 (install-diagnostic.patch): + echo 'Patch #11 (install-diagnostic.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file service/realm-packages.c Patch #12 (computer-ou.patch): + echo 'Patch #12 (computer-ou.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file service/Makefile.am patching file service/realm-adcli-enroll.c patching file service/realm-dn-util.c patching file service/realm-dn-util.h patching file service/realm-samba-enroll.c patching file service/realm-samba-util.c patching file service/realm-samba-util.h patching file tests/Makefile.am patching file tests/test-dn-util.c patching file tests/test-samba-ou-format.c Patch #13 (duplicate-test-path.patch): + echo 'Patch #13 (duplicate-test-path.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file tests/test-safe-format.c Patch #20 (samba-by-default.patch): + echo 'Patch #20 (samba-by-default.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file service/realm-sssd-ad.c Patch #21 (Fix-invalid-unrefs-on-realm_invocation_get_cancellab.patch): + echo 'Patch #21 (Fix-invalid-unrefs-on-realm_invocation_get_cancellab.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file service/realm-packages.c Patch #22 (0001-Support-manually-setting-computer-name.patch): + echo 'Patch #22 (0001-Support-manually-setting-computer-name.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file dbus/realm-dbus-constants.h patching file service/realm-adcli-enroll.c patching file service/realm-options.c patching file service/realm-options.h patching file service/realm-samba-enroll.c patching file service/realm-samba.c patching file service/realm-sssd-ad.c Patch #23 (0002-Add-computer-name-support-to-realm-join-CLI.patch): + echo 'Patch #23 (0002-Add-computer-name-support-to-realm-join-CLI.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file tools/realm-join.c Patch #24 (0003-Add-documentation-for-computer-name-setting.patch): + echo 'Patch #24 (0003-Add-documentation-for-computer-name-setting.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file doc/manual/realmd-guide-active-directory.xml patching file doc/manual/realmd.conf.xml Patch #25 (0001-Make-DBus-aware-of-systemd.patch): + echo 'Patch #25 (0001-Make-DBus-aware-of-systemd.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file Makefile.am patching file configure.ac patching file dbus/org.freedesktop.realmd.service.in Patch #26 (0001-Add-os-name-and-os-version-command-line-options.patch): + echo 'Patch #26 (0001-Add-os-name-and-os-version-command-line-options.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file dbus/realm-dbus-constants.h patching file doc/manual/realm.xml patching file doc/manual/realmd.conf.xml patching file service/realm-adcli-enroll.c patching file service/realm-options.c patching file service/realm-options.h patching file service/realm-samba-enroll.c patching file tools/realm-join.c Patch #27 (0001-doc-add-computer-name-to-realm-man-page.patch): + echo 'Patch #27 (0001-doc-add-computer-name-to-realm-man-page.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file doc/manual/realm.xml Patch #28 (0001-Fix-man-page-reference-in-systemd-service-file.patch): + echo 'Patch #28 (0001-Fix-man-page-reference-in-systemd-service-file.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file dbus/realmd.service.in + echo 'Patch #29 (0001-Use-current-idmap-options-for-smb.conf.patch):' Patch #29 (0001-Use-current-idmap-options-for-smb.conf.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file dbus/realm-dbus-constants.h patching file doc/manual/realmd.conf.xml patching file service/realm-samba-enroll.c patching file service/realm-samba-enroll.h patching file service/realm-samba-winbind.c Patch #30 (0001-Find-NetBIOS-name-in-keytab-while-leaving.patch): + echo 'Patch #30 (0001-Find-NetBIOS-name-in-keytab-while-leaving.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file service/realm-kerberos.c patching file service/realm-kerberos.h patching file service/realm-samba-enroll.c Patch #31 (0001-Fix-issues-found-by-Coverity.patch): + echo 'Patch #31 (0001-Fix-issues-found-by-Coverity.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file service/realm-kerberos.c patching file service/realm-packages.c Patch #32 (0001-doc-fix-discover-name-only.patch): + echo 'Patch #32 (0001-doc-fix-discover-name-only.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file doc/manual/realmd.conf.xml Patch #33 (0002-doc-add-see-also-to-man-pages.patch): + echo 'Patch #33 (0002-doc-add-see-also-to-man-pages.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file doc/manual/realm.xml Hunk #1 succeeded at 432 (offset -8 lines). patching file doc/manual/realmd.conf.xml Hunk #1 succeeded at 466 (offset -5 lines). Patch #34 (0001-doc-extend-description-of-config-handling.patch): + echo 'Patch #34 (0001-doc-extend-description-of-config-handling.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file doc/manual/Makefile.am Hunk #2 succeeded at 46 (offset -1 lines). Hunk #3 succeeded at 56 (offset -1 lines). patching file doc/manual/realmd.conf.xml patching file doc/privatedir.xml.in Patch #35 (0001-configure-do-not-inherit-DISTRO-from-the-environment.patch): + echo 'Patch #35 (0001-configure-do-not-inherit-DISTRO-from-the-environment.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file configure.ac Patch #36 (0001-Change-qualified-names-default-for-IPA.patch): + echo 'Patch #36 (0001-Change-qualified-names-default-for-IPA.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file service/realm-options.c patching file service/realm-options.h patching file service/realm-samba-winbind.c patching file service/realm-sssd-ad.c Hunk #1 succeeded at 171 (offset -1 lines). patching file service/realm-sssd-ipa.c Hunk #1 succeeded at 200 (offset -1 lines). Patch #37 (0001-service-use-kerberos-method-secrets-and-keytab.patch): + echo 'Patch #37 (0001-service-use-kerberos-method-secrets-and-keytab.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file service/realm-samba.c Hunk #1 succeeded at 201 (offset 1 line). + echo 'Patch #38 (0001-service-use-additional-dns-hostnames-with-net-ads-jo.patch):' Patch #38 (0001-service-use-additional-dns-hostnames-with-net-ads-jo.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file service/realm-disco.c patching file service/realm-disco.h patching file service/realm-samba-enroll.c patching file service/realm-samba.c Hunk #1 succeeded at 205 (offset 1 line). Hunk #2 succeeded at 372 (offset 3 lines). + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.ZrOGav + 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 -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 -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-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 -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 realmd-0.16.1 + aclocal + automake --add-missing + autoconf configure.ac:57: warning: The macro `AC_GNU_SOURCE' is obsolete. configure.ac:57: You should run autoupdate. ./lib/autoconf/specific.m4:312: AC_GNU_SOURCE is expanded from... configure.ac:57: the top level configure.ac:58: warning: The macro `AC_ISC_POSIX' is obsolete. configure.ac:58: You should run autoupdate. ./lib/autoconf/specific.m4:550: AC_ISC_POSIX is expanded from... configure.ac:58: the top level configure.ac:72: warning: The macro `GLIB_GNU_GETTEXT' is obsolete. configure.ac:72: You should run autoupdate. aclocal.m4:388: GLIB_GNU_GETTEXT is expanded from... aclocal.m4:488: AM_GLIB_GNU_GETTEXT is expanded from... configure.ac:72: the top level configure.ac:72: warning: The macro `AC_TRY_LINK' is obsolete. configure.ac:72: You should run autoupdate. ./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from... lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from... lib/m4sugar/m4sh.m4:699: AS_IF is expanded from... ./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from... ./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from... aclocal.m4:73: GLIB_LC_MESSAGES is expanded from... aclocal.m4:388: GLIB_GNU_GETTEXT is expanded from... aclocal.m4:488: AM_GLIB_GNU_GETTEXT is expanded from... configure.ac:72: the top level configure.ac:72: warning: The macro `AC_TRY_LINK' is obsolete. configure.ac:72: You should run autoupdate. ./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from... lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from... lib/m4sugar/m4sh.m4:699: AS_IF is expanded from... ./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from... ./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from... lib/m4sugar/m4sh.m4:699: AS_IF is expanded from... ./lib/autoconf/headers.m4:89: _AC_CHECK_HEADER_COMPILE is expanded from... ./lib/autoconf/headers.m4:56: AC_CHECK_HEADER is expanded from... aclocal.m4:172: GLIB_WITH_NLS is expanded from... aclocal.m4:388: GLIB_GNU_GETTEXT is expanded from... aclocal.m4:488: AM_GLIB_GNU_GETTEXT is expanded from... configure.ac:72: the top level configure.ac:72: warning: The macro `AC_TRY_LINK' is obsolete. configure.ac:72: You should run autoupdate. ./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from... lib/m4sugar/m4sh.m4:699: AS_IF is expanded from... ./lib/autoconf/headers.m4:89: _AC_CHECK_HEADER_COMPILE is expanded from... ./lib/autoconf/headers.m4:56: AC_CHECK_HEADER is expanded from... aclocal.m4:172: GLIB_WITH_NLS is expanded from... aclocal.m4:388: GLIB_GNU_GETTEXT is expanded from... aclocal.m4:488: AM_GLIB_GNU_GETTEXT is expanded from... configure.ac:72: the top level configure.ac:72: warning: The macro `AC_OUTPUT_COMMANDS' is obsolete. configure.ac:72: You should run autoupdate. ./lib/autoconf/status.m4:1025: AC_OUTPUT_COMMANDS is expanded from... aclocal.m4:172: GLIB_WITH_NLS is expanded from... aclocal.m4:388: GLIB_GNU_GETTEXT is expanded from... aclocal.m4:488: AM_GLIB_GNU_GETTEXT is expanded from... configure.ac:72: the top level configure.ac:97: warning: The macro `AC_HELP_STRING' is obsolete. configure.ac:97: You should run autoupdate. ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from... configure.ac:97: the top level configure.ac:124: warning: The macro `AC_HELP_STRING' is obsolete. configure.ac:124: You should run autoupdate. ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from... configure.ac:124: the top level configure.ac:233: warning: The macro `AC_HELP_STRING' is obsolete. configure.ac:233: You should run autoupdate. ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from... configure.ac:233: the top level configure.ac:302: warning: The macro `AC_HELP_STRING' is obsolete. configure.ac:302: You should run autoupdate. ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from... configure.ac:302: the top level + 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 -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 -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-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 -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 + '[' '-flto=auto -ffat-lto-objectsx' '!=' x ']' ++ find . -type f -name configure -print + for file in $(find . -type f -name configure -print) + /usr/bin/sed -r --in-place=.backup 's/^char \(\*f\) \(\) = /__attribute__ ((used)) char (*f) () = /g' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + /usr/bin/sed -r --in-place=.backup 's/^char \(\*f\) \(\);/__attribute__ ((used)) char (*f) ();/g' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + /usr/bin/sed -r --in-place=.backup 's/^char \$2 \(\);/__attribute__ ((used)) char \$2 ();/g' ./configure + diff -u ./configure.backup ./configure --- ./configure.backup 2022-07-11 14:35:11.214712532 +0800 +++ ./configure 2022-07-11 14:35:11.229713120 +0800 @@ -1807,7 +1807,7 @@ #ifdef __cplusplus extern "C" #endif -char $2 (); +__attribute__ ((used)) char $2 (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ + /usr/bin/sed --in-place=.backup '1{$!N;$!N};$!N;s/int x = 1;\nint y = 0;\nint z;\nint nan;/volatile int x = 1; volatile int y = 0; volatile int z, nan;/;P;D' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + /usr/bin/sed --in-place=.backup 's#^lt_cv_sys_global_symbol_to_cdecl=.*#lt_cv_sys_global_symbol_to_cdecl="sed -n -e '\''s/^T .* \\(.*\\)$/extern int \\1();/p'\'' -e '\''s/^$symcode* .* \\(.*\\)$/extern char \\1;/p'\''"#' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + '[' 1 = 1 ']' +++ dirname ./configure ++ find . -name config.guess -o -name config.sub + '[' 1 = 1 ']' + '[' x '!=' 'x-Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld' ']' ++ find . -name ltmain.sh + ./configure --build=x86_64-Anolis-linux --host=x86_64-Anolis-linux --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --disable-silent-rules checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a race-free mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether UID '989' is supported by ustar format... yes checking whether GID '135' is supported by ustar format... yes checking how to create a ustar tar archive... gnutar checking whether build environment is sane... yes checking whether make supports nested variables... (cached) yes checking whether to enable maintainer-specific portions of Makefiles... yes checking for /etc/redhat-release... no checking for /etc/debian_version... no checking for /etc/SuSE-release... no configure: error: Couldn't detect the distro to configure for. Specify one with --with-distro error: Bad exit status from /var/tmp/rpm-tmp.ZrOGav (%build) Bad exit status from /var/tmp/rpm-tmp.ZrOGav (%build) RPM build errors: Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 600, 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 --target x86_64 --nodeps /builddir/build/SPECS/realmd.spec