Mock Version: 6.0 Mock Version: 6.0 Mock Version: 6.0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target aarch64 --nodeps /builddir/build/SPECS/deepin-pw-check.spec'], chrootPath='/var/lib/mock/dist-an23-dde-build-520816-76084/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=982gid=135user='mockbuild'unshare_net=TrueprintOutput=Falsenspawn_args=['--capability=cap_ipc_lock']) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target aarch64 --nodeps /builddir/build/SPECS/deepin-pw-check.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 (5 usages found), use %patch N (or %patch -P N) Building target platforms: aarch64 Building for target aarch64 setting SOURCE_DATE_EPOCH=1773705600 Wrote: /builddir/build/SRPMS/deepin-pw-check-5.2.9.1-4.an23.src.rpm RPM build warnings: %patchN is deprecated (5 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 aarch64 --nodeps /builddir/build/SPECS/deepin-pw-check.spec'], chrootPath='/var/lib/mock/dist-an23-dde-build-520816-76084/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=982gid=135user='mockbuild'unshare_net=TrueprintOutput=Falsenspawn_args=['--capability=cap_ipc_lock']) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target aarch64 --nodeps /builddir/build/SPECS/deepin-pw-check.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 (5 usages found), use %patch N (or %patch -P N) Building target platforms: aarch64 Building for target aarch64 setting SOURCE_DATE_EPOCH=1773705600 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.9n6onZ + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf deepin-pw-check-5.2.9.1 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/deepin-pw-check_5.2.9.1.orig.tar.xz + STATUS=0 + '[' 0 -ne 0 ']' + cd deepin-pw-check-5.2.9.1 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #1000 (0001-fix-for-UonioTech.patch):' Patch #1000 (0001-fix-for-UonioTech.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file Makefile Hunk #2 succeeded at 56 (offset 2 lines). Patch #1001 (0001-update-license.patch): + echo 'Patch #1001 (0001-update-license.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file rpm/deepin-pw-check.spec Patch #1002 (0002-chang-check-username-length.patch): + echo 'Patch #1002 (0002-chang-check-username-length.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file lib/deepin_pw_check.c patching file misc/po/zh_CN.po patching file misc/po/zh_TW.po + echo 'Patch #1003 (0003-add-check-fullname-length-greater-than-two.patch):' Patch #1003 (0003-add-check-fullname-length-greater-than-two.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file lib/deepin_pw_check.c + echo 'Patch #1004 (0004-add-check-for-capitalized-words.patch):' Patch #1004 (0004-add-check-for-capitalized-words.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file lib/word_check.c + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.r61bYt + 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 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-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 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-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 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-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 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-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 deepin-pw-check-5.2.9.1 + export GO111MODULE=auto + GO111MODULE=auto ++ head -c20 /dev/urandom ++ od -An -tx1 ++ tr -d ' \n' + BUILDID=0x3621e7d5d6721546a3e788425da82a63bf7c9123 + export GOPATH=/usr/share/gocode/: + GOPATH=/usr/share/gocode/: + /usr/bin/make -O -j80 V=1 VERBOSE=1 GO_BUILD_FLAGS=-trimpath 'GOBUILD=go build -compiler gc -ldflags "-B 0x3621e7d5d6721546a3e788425da82a63bf7c9123"' gcc lib/deepin_pw_check.c -c -fPIC -fstack-protector-all -z relro -z noexecstack -z now -pie -DIN_CRACKLIB -W -Wall -o lib/deepin_pw_check.o lib/deepin_pw_check.c:7:10: fatal error: iniparser/dictionary.h: No such file or directory 7 | #include | ^~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. make: *** [Makefile:38: lib/deepin_pw_check] Error 1 make: *** Waiting for unfinished jobs.... gcc tool/*.c -liniparser -W -Wall -fPIC -fstack-protector-all -z relro -z noexecstack -z now -pie -o out/pwd-conf-update tool/pwd_conf_update.c:9:10: fatal error: iniparser/iniparser.h: No such file or directory 9 | #include | ^~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. make: *** [Makefile:52: build_tool] Error 1 gcc lib/word_check.c -c -fPIC -fstack-protector-all -z relro -z noexecstack -z now -pie -DIN_CRACKLIB -W -Wall -o lib/word_check.o lib/word_check.c: In function 'word_check': lib/word_check.c:415:19: error: too few arguments to function 'Mangle' 415 | if (!(a = Mangle(lower_pw, r_destructors[i]))) // 关键修改:使用lower_pw替换pw | ^~~~~~ In file included from lib/word_check.c:7: /usr/include/packer.h:85:14: note: declared here 85 | extern char *Mangle(char *input, char *control, char *area); | ^~~~~~ make: *** [Makefile:38: lib/word_check] Error 1 gcc lib/debug.c -c -fPIC -fstack-protector-all -z relro -z noexecstack -z now -pie -DIN_CRACKLIB -W -Wall -o lib/debug.o gcc lib/bigcrypt.c -c -fPIC -fstack-protector-all -z relro -z noexecstack -z now -pie -DIN_CRACKLIB -W -Wall -o lib/bigcrypt.o gcc lib/passwd_compare.c -c -fPIC -fstack-protector-all -z relro -z noexecstack -z now -pie -DIN_CRACKLIB -W -Wall -o lib/passwd_compare.o gcc lib/md5_crypt.c -c -fPIC -fstack-protector-all -z relro -z noexecstack -z now -pie -DIN_CRACKLIB -W -Wall -o lib/md5_crypt.o deepin-policy-ts-convert ts2policy misc/polkit-action/com.deepin.daemon.passwdconf.policy.in misc/ts/com.deepin.daemon.passwdconf.policy misc/polkit-action/com.deepin.daemon.passwdconf.policy policyFile: misc/polkit-action/com.deepin.daemon.passwdconf.policy.in tsDir: misc/ts/com.deepin.daemon.passwdconf.policy outputPolicyFile: misc/polkit-action/com.deepin.daemon.passwdconf.policy gcc lib/md5.c -c -fPIC -fstack-protector-all -z relro -z noexecstack -z now -pie -DIN_CRACKLIB -W -Wall -o lib/md5.o gcc lib/*.c -fPIC -fstack-protector-all -z relro -z noexecstack -z now -pie -shared -DIN_CRACKLIB -W -Wall -Wl,-soname,libdeepin_pw_check.so.1 -o out/libdeepin_pw_check.so.1.1 -lcrypt -lcrack -liniparser lib/deepin_pw_check.c:7:10: fatal error: iniparser/dictionary.h: No such file or directory 7 | #include | ^~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. lib/word_check.c: In function 'word_check': lib/word_check.c:415:19: error: too few arguments to function 'Mangle' 415 | if (!(a = Mangle(lower_pw, r_destructors[i]))) // 关键修改:使用lower_pw替换pw | ^~~~~~ In file included from lib/word_check.c:7: /usr/include/packer.h:85:14: note: declared here 85 | extern char *Mangle(char *input, char *control, char *area); | ^~~~~~ make: *** [Makefile:34: out/libdeepin_pw_check.so.1.1] Error 1 env GOPATH="/usr/share/gocode/:" go build -compiler gc -ldflags "-B 0x3621e7d5d6721546a3e788425da82a63bf7c9123" -o out/bin/deepin-pw-check service/*.go # github.com/linuxdeepin/go-gir/gobject-2.0 fix_gobject.c: In function '_g_type_param_value_array': fix_gobject.c:74:13: warning: Deprecated pre-processor symbol 74 | GType _g_type_param_value_array() { return G_TYPE_PARAM_VALUE_ARRAY; } | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ RPM build warnings: RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.r61bYt (%build) %patchN is deprecated (5 usages found), use %patch N (or %patch -P N) Bad exit status from /var/tmp/rpm-tmp.r61bYt (%build) Child return code was: 1 EXCEPTION: [Error("Command failed: \n # bash --login -c '/usr/bin/rpmbuild -bb --noclean --target aarch64 --nodeps /builddir/build/SPECS/deepin-pw-check.spec'\n", 1)] 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 610, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (cmd_pretty(command, env), output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c '/usr/bin/rpmbuild -bb --noclean --target aarch64 --nodeps /builddir/build/SPECS/deepin-pw-check.spec'