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 noarch --nodeps /builddir/build/SPECS/velocity.spec'], chrootPath='/var/lib/mock/dist-an23-build-327142-69055/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 noarch --nodeps /builddir/build/SPECS/velocity.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: noarch Building for target noarch setting SOURCE_DATE_EPOCH=1699920000 Wrote: /builddir/build/SRPMS/velocity-2.3-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 noarch --nodeps /builddir/build/SPECS/velocity.spec'], chrootPath='/var/lib/mock/dist-an23-build-327142-69055/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 noarch --nodeps /builddir/build/SPECS/velocity.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: noarch Building for target noarch setting SOURCE_DATE_EPOCH=1699920000 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.NzEovC + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf velocity-engine-2.3 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/velocity-2.3.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd velocity-engine-2.3 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (0001-Template-is-a-reserved-keyword-in-javacc.patch):' Patch #0 (0001-Template-is-a-reserved-keyword-in-javacc.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file velocity-engine-core/src/main/parser/Parser.jjt + /usr/bin/python3 /usr/share/java-utils/mvn_alias.py : velocity:velocity + /usr/bin/python3 /usr/share/java-utils/mvn_alias.py : org.apache.velocity:velocity + /usr/bin/python3 /usr/share/java-utils/pom_editor.py pom_remove_parent + /usr/bin/python3 /usr/share/java-utils/pom_editor.py pom_xpath_inject pom:project 'org.apache.velocity' + /usr/bin/python3 /usr/share/java-utils/pom_editor.py pom_disable_module spring-velocity-support + /usr/bin/python3 /usr/share/java-utils/pom_editor.py pom_disable_module velocity-custom-parser-example + /usr/bin/python3 /usr/share/java-utils/pom_editor.py pom_disable_module velocity-engine-examples + /usr/bin/python3 /usr/share/java-utils/pom_editor.py pom_disable_module velocity-engine-scripting + /usr/bin/python3 /usr/share/java-utils/pom_editor.py pom_remove_plugin :maven-javadoc-plugin + /usr/bin/python3 /usr/share/java-utils/pom_editor.py pom_remove_plugin :templating-maven-plugin velocity-engine-core + sed 's/${project.version}/2.3/' velocity-engine-core/src/main/java-templates/org/apache/velocity/runtime/VelocityEngineVersion.java + /usr/bin/python3 /usr/share/java-utils/pom_editor.py pom_remove_plugin com.google.code.maven-replacer-plugin:replacer velocity-engine-core + /usr/bin/python3 /usr/share/java-utils/pom_editor.py pom_remove_plugin :maven-shade-plugin velocity-engine-core + /usr/bin/python3 /usr/share/java-utils/pom_editor.py pom_xpath_remove 'pom:dependency[pom:scope='\''test'\'']' velocity-engine-core + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.oSAsW9 + 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/lib/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/lib/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/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd velocity-engine-2.3 + PATH=/usr/libexec/javapackages-bootstrap:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin + /usr/bin/python3 /usr/share/java-utils/mvn_build.py --xmvn-javadoc -f -- -Djavacc.visitor=false Executing: xmvn --batch-mode --offline -Dmaven.test.skip=true -Djavacc.visitor=false package org.fedoraproject.xmvn:xmvn-mojo:install org.fedoraproject.xmvn:xmvn-mojo:javadoc org.fedoraproject.xmvn:xmvn-mojo:builddep ['xmvn', '--batch-mode', '--offline', '-Dmaven.test.skip=true', '-Djavacc.visitor=false', 'package', 'org.fedoraproject.xmvn:xmvn-mojo:install', 'org.fedoraproject.xmvn:xmvn-mojo:javadoc', 'org.fedoraproject.xmvn:xmvn-mojo:builddep'] [INFO] Scanning for projects... [WARNING] [WARNING] Some problems were encountered while building the effective model for org.apache.velocity:velocity-engine-core:jar:2.3 [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ org.apache.velocity:velocity-engine-parent:2.3, /builddir/build/BUILD/velocity-engine-2.3/pom.xml, line 131, column 21 [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-enforcer-plugin is missing. @ org.apache.velocity:velocity-engine-parent:2.3, /builddir/build/BUILD/velocity-engine-2.3/pom.xml, line 141, column 21 [WARNING] [WARNING] Some problems were encountered while building the effective model for org.apache.velocity:velocity-engine-parent:pom:2.3 [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 131, column 21 [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-enforcer-plugin is missing. @ line 141, column 21 [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. [WARNING] [WARNING] For this reason, future Maven versions might no longer support building such malformed projects. [WARNING] [INFO] ------------------------------------------------------------------------ [INFO] Reactor Build Order: [INFO] [INFO] Apache Velocity [pom] [INFO] Apache Velocity - Engine [jar] [INFO] [INFO] -------------< org.apache.velocity:velocity-engine-parent >------------- [INFO] Building Apache Velocity 2.3 [1/2] [INFO] --------------------------------[ pom ]--------------------------------- [INFO] [INFO] --- maven-enforcer-plugin:3.0.0.MBI:enforce (enforce-bytecode-version) @ velocity-engine-parent --- [INFO] Adding ignore: module-info [INFO] [INFO] --- maven-enforcer-plugin:3.0.0.MBI:enforce (ban-known-bad-maven-versions) @ velocity-engine-parent --- [INFO] [INFO] --------------< org.apache.velocity:velocity-engine-core >-------------- [INFO] Building Apache Velocity - Engine 2.3 [2/2] [INFO] --------------------------------[ jar ]--------------------------------- [WARNING] The POM for org.codehaus.mojo:javacc-maven-plugin:jar:2.6 is missing, no dependency information available [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Skipping Apache Velocity [INFO] This project has been banned from the build due to previous failures. [INFO] ------------------------------------------------------------------------ [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary for Apache Velocity 2.3: [INFO] [INFO] Apache Velocity .................................... SUCCESS [ 0.181 s] [INFO] Apache Velocity - Engine ........................... FAILURE [ 0.019 s] [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 0.378 s [INFO] Finished at: 2023-11-17T17:45:50+08:00 [INFO] ------------------------------------------------------------------------ [ERROR] UndeclaredThrowableException: InvocationTargetException: Plugin org.codehaus.mojo:javacc-maven-plugin:2.6 or one of its dependencies could not be resolved: Cannot access central (https://repo.maven.apache.org/maven2) in offline mode and the artifact org.codehaus.mojo:javacc-maven-plugin:jar:2.6 has not been downloaded from it before. [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. error: Bad exit status from /var/tmp/rpm-tmp.oSAsW9 (%build) RPM build warnings: RPM build errors: %patchN is deprecated (1 usages found), use %patch N (or %patch -P N) Bad exit status from /var/tmp/rpm-tmp.oSAsW9 (%build) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target noarch --nodeps /builddir/build/SPECS/velocity.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 598, 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 --noclean --target noarch --nodeps /builddir/build/SPECS/velocity.spec