Mock Version: 6.2 Mock Version: 6.2 Mock Version: 6.2 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/deepin-pw-check.spec'], chrootPath='/var/lib/mock/dist-an23-dde-build-544874-86874/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'unshare_net=TrueprintOutput=Falsenspawn_args=['--capability=cap_ipc_lock']) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --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 (2 usages found), use %patch N (or %patch -P N) Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1773705600 Wrote: /builddir/build/SRPMS/deepin-pw-check-5.2.9.1-6.an23.src.rpm RPM build warnings: %patchN is deprecated (2 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/deepin-pw-check.spec'], chrootPath='/var/lib/mock/dist-an23-dde-build-544874-86874/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'unshare_net=TrueprintOutput=Falsenspawn_args=['--capability=cap_ipc_lock']) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target x86_64 --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 (2 usages found), use %patch N (or %patch -P N) Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1773705600 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.9zlxKc + 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 + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.NLzCKy + 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 deepin-pw-check-5.2.9.1 + export GO111MODULE=auto + GO111MODULE=auto ++ head -c20 /dev/urandom ++ od -An -tx1 ++ tr -d ' \n' + BUILDID=0x180a1bac5d5a2667f3a9e687e6269280c4ed65a1 + 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 0x180a1bac5d5a2667f3a9e687e6269280c4ed65a1"' 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/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:401:19: error: too few arguments to function 'Mangle' 401 | if (!(a = Mangle((char*)pw, r_destructors[i]))) | ^~~~~~ 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 make: *** Waiting for unfinished jobs.... 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/md5_crypt.c -c -fPIC -fstack-protector-all -z relro -z noexecstack -z now -pie -DIN_CRACKLIB -W -Wall -o lib/md5_crypt.o 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/passwd_compare.c -c -fPIC -fstack-protector-all -z relro -z noexecstack -z now -pie -DIN_CRACKLIB -W -Wall -o lib/passwd_compare.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 tool/*.c -liniparser -W -Wall -fPIC -fstack-protector-all -z relro -z noexecstack -z now -pie -o out/pwd-conf-update 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: In function 'get_default_options': lib/deepin_pw_check.c:154:48: warning: unused parameter 'level' [-Wunused-parameter] 154 | static struct Options *get_default_options(int level, const char *dict_path, const char *conf_file) { | ~~~~^~~~~ lib/deepin_pw_check.c: In function 'is_type_valid': lib/deepin_pw_check.c:344:31: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] 344 | for (int j = 0; j < strlen(p); j++) { | ^ lib/deepin_pw_check.c: In function 'deepin_pw_check_by_conf': lib/deepin_pw_check.c:606:94: warning: passing argument 1 of 'password_contains_part_of_username' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 606 | if (!options->enable_password_part_of_username && password_contains_part_of_username(user, pw)) { | ^~~~ lib/deepin_pw_check.c:491:47: note: expected 'char *' but argument is of type 'const char *' 491 | bool password_contains_part_of_username(char *username, char *password) { | ~~~~~~^~~~~~~~ lib/deepin_pw_check.c:606:100: warning: passing argument 2 of 'password_contains_part_of_username' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 606 | if (!options->enable_password_part_of_username && password_contains_part_of_username(user, pw)) { | ^~ lib/deepin_pw_check.c:491:63: note: expected 'char *' but argument is of type 'const char *' 491 | bool password_contains_part_of_username(char *username, char *password) { | ~~~~~~^~~~~~~~ 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: In function 'get_default_options': lib/deepin_pw_check.c:154:48: warning: unused parameter 'level' [-Wunused-parameter] 154 | static struct Options *get_default_options(int level, const char *dict_path, const char *conf_file) { | ~~~~^~~~~ lib/deepin_pw_check.c: In function 'is_type_valid': lib/deepin_pw_check.c:344:31: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] 344 | for (int j = 0; j < strlen(p); j++) { | ^ lib/deepin_pw_check.c: In function 'deepin_pw_check_by_conf': lib/deepin_pw_check.c:606:94: warning: passing argument 1 of 'password_contains_part_of_username' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 606 | if (!options->enable_password_part_of_username && password_contains_part_of_username(user, pw)) { | ^~~~ lib/deepin_pw_check.c:491:47: note: expected 'char *' but argument is of type 'const char *' 491 | bool password_contains_part_of_username(char *username, char *password) { | ~~~~~~^~~~~~~~ lib/deepin_pw_check.c:606:100: warning: passing argument 2 of 'password_contains_part_of_username' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 606 | if (!options->enable_password_part_of_username && password_contains_part_of_username(user, pw)) { | ^~ lib/deepin_pw_check.c:491:63: note: expected 'char *' but argument is of type 'const char *' 491 | bool password_contains_part_of_username(char *username, char *password) { | ~~~~~~^~~~~~~~ lib/word_check.c: In function 'word_check': lib/word_check.c:401:19: error: too few arguments to function 'Mangle' 401 | if (!(a = Mangle((char*)pw, r_destructors[i]))) | ^~~~~~ 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 0x180a1bac5d5a2667f3a9e687e6269280c4ed65a1" -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; } | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: Bad exit status from /var/tmp/rpm-tmp.NLzCKy (%build) RPM build warnings: RPM build errors: %patchN is deprecated (2 usages found), use %patch N (or %patch -P N) Bad exit status from /var/tmp/rpm-tmp.NLzCKy (%build) Child return code was: 1 EXCEPTION: [Error("Command failed: \n # bash --login -c '/usr/bin/rpmbuild -bb --noclean --target x86_64 --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 x86_64 --nodeps /builddir/build/SPECS/deepin-pw-check.spec'