Mock Version: 3.0 Mock Version: 3.0 Mock Version: 3.0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target noarch --nodeps /builddir/build/SPECS/velocity.spec'], chrootPath='/var/lib/mock/module-javapackages-tools-201902-8050020220619040035-a78e116a-build-8196-1238/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=991gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --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 Building target platforms: noarch Building for target noarch Wrote: /builddir/build/SRPMS/velocity-1.7-26.module+oc8.5.0+71+a3bc5605.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target noarch --nodeps /builddir/build/SPECS/velocity.spec'], chrootPath='/var/lib/mock/module-javapackages-tools-201902-8050020220619040035-a78e116a-build-8196-1238/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=991gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --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 Building target platforms: noarch Building for target noarch Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.Y53pFf + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf velocity-1.7 + /usr/bin/tar -xof /builddir/build/SOURCES/velocity-1.7.tar.gz + cd velocity-1.7 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + find . -name '*.jar' '!' -name 'test*.jar' -print -delete + find . -name '*.class' '!' -name Foo.class -print -delete + rm -f src/java/org/apache/velocity/runtime/log/AvalonLogChute.java + rm -f src/java/org/apache/velocity/runtime/log/AvalonLogSystem.java + rm -f src/java/org/apache/velocity/runtime/log/VelocityFormatter.java + rm src/test/org/apache/velocity/test/VelocityServletTestCase.java + rm src/test/org/apache/velocity/test/sql/DataSourceResourceLoaderTestCase.java + cp /builddir/build/SOURCES/velocity-1.7.pom ./pom.xml Patch #0 (0001-Remove-avalon-logkit.patch): + echo 'Patch #0 (0001-Remove-avalon-logkit.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file pom.xml patching file src/java/org/apache/velocity/runtime/defaults/velocity.properties patching file src/java/org/apache/velocity/runtime/log/LogManager.java Patch #1 (0004-Use-log4j-1.2.17.patch): + echo 'Patch #1 (0004-Use-log4j-1.2.17.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file pom.xml Patch #2 (0003-Use-system-jars.patch): + echo 'Patch #2 (0003-Use-system-jars.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file build/build.xml patching file build/testcases.xml Patch #3 (0004-JDBC-41-compat.patch): + echo 'Patch #3 (0004-JDBC-41-compat.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file src/test/org/apache/velocity/test/sql/HsqlDataSource.java Patch #4 (0001-Don-t-use-Werken-XPath.patch): + echo 'Patch #4 (0001-Don-t-use-Werken-XPath.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file src/java/org/apache/velocity/anakia/AnakiaElement.java patching file src/java/org/apache/velocity/anakia/NodeList.java patching file src/java/org/apache/velocity/anakia/XPathCache.java patching file src/java/org/apache/velocity/anakia/XPathTool.java + /usr/libexec/platform-python /usr/share/java-utils/pom_editor.py pom_remove_dep werken-xpath: Patch #5 (0006-Skip-Java-8-incompatible-test.patch): + echo 'Patch #5 (0006-Skip-Java-8-incompatible-test.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file src/test/org/apache/velocity/test/issues/VelTools66TestCase.java Patch #6 (velocity-1.7-doclint.patch): + echo 'Patch #6 (velocity-1.7-doclint.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file build/build.xml Patch #7 (velocity-1.7-osgi.patch): + echo 'Patch #7 (velocity-1.7-osgi.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file build/build.properties Patch #8 (0001-Port-to-apache-commons-lang3.patch): + echo 'Patch #8 (0001-Port-to-apache-commons-lang3.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file pom.xml patching file src/java/org/apache/velocity/app/event/implement/EscapeHtmlReference.java patching file src/java/org/apache/velocity/app/event/implement/EscapeJavaScriptReference.java patching file src/java/org/apache/velocity/app/event/implement/EscapeSqlReference.java patching file src/java/org/apache/velocity/app/event/implement/EscapeXmlReference.java patching file src/java/org/apache/velocity/runtime/RuntimeInstance.java patching file src/java/org/apache/velocity/runtime/VelocimacroFactory.java patching file src/java/org/apache/velocity/runtime/directive/Block.java patching file src/java/org/apache/velocity/runtime/directive/RuntimeMacro.java patching file src/java/org/apache/velocity/runtime/parser/Parser.java patching file src/java/org/apache/velocity/runtime/parser/ParserTokenManager.java patching file src/java/org/apache/velocity/runtime/parser/node/ASTDirective.java patching file src/java/org/apache/velocity/runtime/parser/node/ASTMethod.java patching file src/java/org/apache/velocity/runtime/parser/node/ASTStringLiteral.java patching file src/java/org/apache/velocity/runtime/parser/node/NodeUtils.java patching file src/java/org/apache/velocity/runtime/parser/node/PropertyExecutor.java patching file src/java/org/apache/velocity/runtime/parser/node/SetPropertyExecutor.java patching file src/java/org/apache/velocity/runtime/parser/node/SimpleNode.java patching file src/java/org/apache/velocity/runtime/resource/ResourceManagerImpl.java patching file src/java/org/apache/velocity/runtime/resource/loader/ClasspathResourceLoader.java patching file src/java/org/apache/velocity/runtime/resource/loader/DataSourceResourceLoader.java patching file src/java/org/apache/velocity/runtime/resource/loader/FileResourceLoader.java patching file src/java/org/apache/velocity/runtime/resource/loader/JarResourceLoader.java patching file src/java/org/apache/velocity/runtime/resource/loader/StringResourceLoader.java patching file src/java/org/apache/velocity/runtime/resource/loader/URLResourceLoader.java patching file src/java/org/apache/velocity/util/introspection/ClassMap.java patching file src/test/org/apache/velocity/io/UnicodeInputStreamTestCase.java patching file src/test/org/apache/velocity/test/BaseTestCase.java patching file src/test/org/apache/velocity/test/MethodCacheKeyTestCase.java Patch #9 (0002-Port-to-OpenJDK-11.patch): + echo 'Patch #9 (0002-Port-to-OpenJDK-11.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file src/test/org/apache/velocity/test/BuiltInEventHandlerTestCase.java + rm -r src/test/org/apache/velocity/test/sql + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.SdnQrf + umask 022 + cd /builddir/build/BUILD + cd velocity-1.7 ++ build-classpath antlr apache-commons-collections commons-lang3 commons-logging glassfish-servlet-api junit jakarta-oro log4j:log4j:1.2.17 jaxen jdom bcel hsqldb junit /usr/bin/build-classpath: Could not find hsqldb Java extension for this JVM /usr/bin/build-classpath: error: Some specified jars were not found + export CLASSPATH=/usr/share/java/antlr.jar:/usr/share/java/apache-commons-collections.jar:/usr/share/java/commons-lang3.jar:/usr/share/java/commons-logging.jar:/usr/share/java/glassfish-servlet-api.jar:/usr/share/java/junit.jar:/usr/share/java/jakarta-oro.jar:/usr/share/java/log4j-1.2.17.jar:/usr/share/java/jaxen.jar:/usr/share/java/jdom.jar:/usr/share/java/bcel.jar:/usr/share/java/junit.jar + CLASSPATH=/usr/share/java/antlr.jar:/usr/share/java/apache-commons-collections.jar:/usr/share/java/commons-lang3.jar:/usr/share/java/commons-logging.jar:/usr/share/java/glassfish-servlet-api.jar:/usr/share/java/junit.jar:/usr/share/java/jakarta-oro.jar:/usr/share/java/log4j-1.2.17.jar:/usr/share/java/jaxen.jar:/usr/share/java/jdom.jar:/usr/share/java/bcel.jar:/usr/share/java/junit.jar + ant -buildfile build/build.xml -Dbuild.sysclasspath=first -Djavac.target=1.6 -Djavac.source=1.6 jar javadocs test Buildfile: /builddir/build/BUILD/velocity-1.7/build/build.xml basic-prepare: [mkdir] Created dir: /builddir/build/BUILD/velocity-1.7/bin [mkdir] Created dir: /builddir/build/BUILD/velocity-1.7/bin/classes [mkdir] Created dir: /builddir/build/BUILD/velocity-1.7/bin/src [mkdir] Created dir: /builddir/build/BUILD/velocity-1.7/bin/test-src [mkdir] Created dir: /builddir/build/BUILD/velocity-1.7/bin/test-classes [copy] Copying 231 files to /builddir/build/BUILD/velocity-1.7/bin/src [copy] Copying 135 files to /builddir/build/BUILD/velocity-1.7/bin/test-src check-jdbc: check-jdbc-true: [copy] Copying 1 file to /builddir/build/BUILD/velocity-1.7/bin/src check-jdbc-false: prepare-jdbc: check-jdk14: check-jdk14-true: [copy] Copying 1 file to /builddir/build/BUILD/velocity-1.7/bin/src [copy] Copying 1 file to /builddir/build/BUILD/velocity-1.7/bin/test-src check-jdk14-false: prepare-jdk14: prepare: compile-src: [javac] Compiling 233 source files to /builddir/build/BUILD/velocity-1.7/bin/classes [javac] /builddir/build/BUILD/velocity-1.7/bin/src/org/apache/velocity/util/introspection/UberspectImpl.java:152: warning: non-varargs call of varargs method with inexact argument type for last parameter; [javac] Method iter = type.getMethod("iterator", null); [javac] ^ [javac] cast to Class for a varargs call [javac] cast to Class[] for a non-varargs call and to suppress this warning [javac] /builddir/build/BUILD/velocity-1.7/bin/src/org/apache/velocity/util/introspection/UberspectImpl.java:158: warning: non-varargs call of varargs method with inexact argument type for last parameter; [javac] return (Iterator)iter.invoke(obj, null); [javac] ^ [javac] cast to Object for a varargs call [javac] cast to Object[] for a non-varargs call and to suppress this warning [javac] Note: Some input files use or override a deprecated API. [javac] Note: Recompile with -Xlint:deprecation for details. [javac] Note: Some input files use unchecked or unsafe operations. [javac] Note: Recompile with -Xlint:unchecked for details. [javac] 2 warnings [copy] Copying 3 files to /builddir/build/BUILD/velocity-1.7/bin/classes clean-dependency-classes: [mkdir] Created dir: /builddir/build/BUILD/velocity-1.7/bin/deps jar: build-jar: [jar] Building jar: /builddir/build/BUILD/velocity-1.7/bin/velocity-1.7.jar bundlor: basic-prepare: check-jdbc: check-jdbc-true: check-jdbc-false: prepare-jdbc: check-jdk14: check-jdk14-true: check-jdk14-false: prepare-jdk14: prepare: javadocs: [mkdir] Created dir: /builddir/build/BUILD/velocity-1.7/bin/apidocs [javadoc] Generating Javadoc [javadoc] Javadoc execution [javadoc] Loading source files for package org.apache.velocity... [javadoc] Loading source files for package org.apache.velocity.anakia... [javadoc] Loading source files for package org.apache.velocity.app... [javadoc] Loading source files for package org.apache.velocity.app.event... [javadoc] Loading source files for package org.apache.velocity.app.event.implement... [javadoc] Loading source files for package org.apache.velocity.app.tools... [javadoc] Loading source files for package org.apache.velocity.context... [javadoc] Loading source files for package org.apache.velocity.convert... [javadoc] Loading source files for package org.apache.velocity.exception... [javadoc] Loading source files for package org.apache.velocity.io... [javadoc] Loading source files for package org.apache.velocity.runtime... [javadoc] Loading source files for package org.apache.velocity.runtime.directive... [javadoc] Loading source files for package org.apache.velocity.runtime.log... [javadoc] Loading source files for package org.apache.velocity.runtime.parser... [javadoc] Loading source files for package org.apache.velocity.runtime.parser.node... [javadoc] Loading source files for package org.apache.velocity.runtime.resource... [javadoc] Loading source files for package org.apache.velocity.runtime.resource.loader... [javadoc] Loading source files for package org.apache.velocity.runtime.resource.util... [javadoc] Loading source files for package org.apache.velocity.runtime.visitor... [javadoc] Loading source files for package org.apache.velocity.servlet... [javadoc] Loading source files for package org.apache.velocity.texen... [javadoc] Loading source files for package org.apache.velocity.texen.ant... [javadoc] Loading source files for package org.apache.velocity.texen.util... [javadoc] Loading source files for package org.apache.velocity.util... [javadoc] Loading source files for package org.apache.velocity.util.introspection... [javadoc] Constructing Javadoc information... [javadoc] javadoc: warning - Error fetching URL: http://java.sun.com/j2se/1.4.2/docs/api/ [javadoc] javadoc: warning - Error fetching URL: http://www.jdom.org/docs/apidocs/ [javadoc] javadoc: warning - Error fetching URL: http://logging.apache.org/log4j/docs/api/ [javadoc] javadoc: warning - Error fetching URL: http://excalibur.apache.org/apidocs/ [javadoc] javadoc: warning - Error fetching URL: http://tomcat.apache.org/tomcat-4.1-doc/servletapi/ [javadoc] javadoc: warning - Error fetching URL: http://jakarta.apache.org/oro/api/ [javadoc] javadoc: warning - Error fetching URL: http://jakarta.apache.org/commons/lang/api-release/ [javadoc] javadoc: warning - Error fetching URL: http://jakarta.apache.org/commons/collections/api-release/ [javadoc] Standard Doclet version 1.8.0_312 [javadoc] Building tree for all the packages and classes... [javadoc] /builddir/build/BUILD/velocity-1.7/bin/src/org/apache/velocity/runtime/directive/Directive.java:121: warning - @returns is an unknown tag. [javadoc] Building index for all the packages and classes... [javadoc] Building index for all classes... [javadoc] Generating /builddir/build/BUILD/velocity-1.7/bin/apidocs/help-doc.html... [javadoc] 9 warnings [jar] Building jar: /builddir/build/BUILD/velocity-1.7/bin/velocity-1.7-javadoc.jar basic-prepare: check-jdbc: check-jdbc-true: check-jdbc-false: prepare-jdbc: check-jdk14: check-jdk14-true: check-jdk14-false: prepare-jdk14: prepare: compile-src: compile-test: [javac] Compiling 136 source files to /builddir/build/BUILD/velocity-1.7/bin/test-classes [javac] Note: Some input files use or override a deprecated API. [javac] Note: Recompile with -Xlint:deprecation for details. [javac] Note: Some input files use unchecked or unsafe operations. [javac] Note: Recompile with -Xlint:unchecked for details. test-main: [mkdir] Created dir: /builddir/build/BUILD/velocity-1.7/bin/test-reports [junit] WARNING: multiple versions of ant detected in path for junit [junit] jar:file:/usr/share/java/ant.jar!/org/apache/tools/ant/Project.class [junit] and jar:file:/usr/share/ant/lib/ant.jar!/org/apache/tools/ant/Project.class [junit] Running org.apache.velocity.io.UnicodeInputStreamTestCase [junit] Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.018 sec [junit] Running org.apache.velocity.test.AbsoluteFileResourceLoaderTestCase [junit] Retrieving template at absolute path: /builddir/build/BUILD/velocity-1.7/test/absolute/absolute.vm [junit] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.015 sec [junit] Running org.apache.velocity.test.ArithmeticTestCase [junit] Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.014 sec [junit] Running org.apache.velocity.test.ArrayMethodsTestCase [junit] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.098 sec [junit] Running org.apache.velocity.test.BlockMacroTestCase [junit] Tests run: 13, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.118 sec [junit] Running org.apache.velocity.test.BreakDirectiveTestCase [junit] Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.117 sec [junit] Running org.apache.velocity.test.BuiltInEventHandlerTestCase [junit] Tests run: 5, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.152 sec BUILD FAILED /builddir/build/BUILD/velocity-1.7/build/build.xml:1234: Test org.apache.velocity.test.BuiltInEventHandlerTestCase failed Total time: 9 seconds error: Bad exit status from /var/tmp/rpm-tmp.SdnQrf (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.SdnQrf (%build) 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 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 --target noarch --nodeps /builddir/build/SPECS/velocity.spec