Mock Version: 5.2 Mock Version: 5.2 Mock Version: 5.2 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target noarch --nodeps /builddir/build/SPECS/velocity.spec'], chrootPath='/var/lib/mock/f40-build-2483425-61638/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=864000uid=997gid=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=1709251200 Wrote: /builddir/build/SRPMS/velocity-2.3-4.fc40.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/f40-build-2483425-61638/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=864000uid=997gid=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=1709251200 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.eDYewx + 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 + rm -rf /builddir/build/BUILD/velocity-engine-2.3-SPECPARTS + /usr/bin/mkdir -p /builddir/build/BUILD/velocity-engine-2.3-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (0001-Template-is-a-reserved-keyword-in-javacc.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 Patch #0 (0001-Template-is-a-reserved-keyword-in-javacc.patch): 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.qlhn7H + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-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 + /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] from pom.xml [INFO] --------------------------------[ pom ]--------------------------------- [INFO] [INFO] --- enforcer:3.0.0:enforce (enforce-bytecode-version) @ velocity-engine-parent --- [INFO] Adding ignore: module-info [INFO] [INFO] --- enforcer:3.0.0: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] from velocity-engine-core/pom.xml [INFO] --------------------------------[ jar ]--------------------------------- [WARNING] Parameter 'showWarning' is unknown for plugin 'maven-compiler-plugin:3.10.1:compile (default-compile)' [WARNING] Parameter 'showWarning' is unknown for plugin 'maven-compiler-plugin:3.10.1:testCompile (default-testCompile)' [INFO] [INFO] --- enforcer:3.0.0:enforce (enforce-bytecode-version) @ velocity-engine-core --- [INFO] Adding ignore: module-info [INFO] [INFO] --- enforcer:3.0.0:enforce (ban-known-bad-maven-versions) @ velocity-engine-core --- [INFO] [INFO] --- resources:3.2.0:copy-resources (generate-parser-grammar) @ velocity-engine-core --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Using 'UTF-8' encoding to copy filtered properties files. [INFO] Copying 1 resource [INFO] [INFO] --- javacc:3.0.1:jjtree-javacc (jjtree-javacc) @ velocity-engine-core --- Java Compiler Compiler Version 7.0.13 (Tree Builder) (type "jjtree" with no arguments for help) Reading from file /builddir/build/BUILD/velocity-engine-2.3/velocity-engine-core/target/parser/Parser.jjt . . . Warning: Command line setting of "VISITOR" modifies option value in file. opt:java File "Node.java" does not exist. Will create one. File "StandardParserTreeConstants.java" does not exist. Will create one. File "JJTStandardParserState.java" does not exist. Will create one. Annotated grammar generated successfully in /builddir/build/BUILD/velocity-engine-2.3/velocity-engine-core/target/javacc-1709327361863/node/Parser.jj Java Compiler Compiler Version 7.0.13 (Parser Generator) (type "javacc" with no arguments for help) Reading from file /builddir/build/BUILD/velocity-engine-2.3/velocity-engine-core/target/javacc-1709327361863/node/Parser.jj . . . Note: UNICODE_INPUT option is specified. Please make sure you create the parser/lexer using a Reader with the correct character encoding. Warning: Choice conflict in [...] construct at line 1576, column 51. Expansion nested within construct and expansion following construct have common prefixes, one of which is: Consider using a lookahead of 2 or more for nested expansion. Warning: Choice conflict in (...)* construct at line 2113, column 5. Expansion nested within construct and expansion following construct have common prefixes, one of which is: Consider using a lookahead of 2 or more for nested expansion. Warning: Choice conflict in (...)* construct at line 2493, column 5. Expansion nested within construct and expansion following construct have common prefixes, one of which is: Consider using a lookahead of 2 or more for nested expansion. Warning: Choice conflict in (...)* construct at line 2516, column 5. Expansion nested within construct and expansion following construct have common prefixes, one of which is: Consider using a lookahead of 2 or more for nested expansion. File "TokenMgrError.java" does not exist. Will create one. File "ParseException.java" does not exist. Will create one. File "Token.java" does not exist. Will create one. File "CharStream.java" does not exist. Will create one. Parser generated with 0 errors and 4 warnings. [INFO] Processed 1 grammar [INFO] [INFO] --- resources:3.2.0:resources (default-resources) @ velocity-engine-core --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Using 'UTF-8' encoding to copy filtered properties files. [INFO] Copying 2 resources [INFO] [INFO] --- resources:3.2.0:copy-resources (expose-parser-grammar) @ velocity-engine-core --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Using 'UTF-8' encoding to copy filtered properties files. [INFO] Copying 1 resource [INFO] [INFO] --- compiler:3.10.1:compile (default-compile) @ velocity-engine-core --- [WARNING] Error injecting: org.apache.maven.plugin.compiler.CompilerMojo com.google.inject.ProvisionException: Unable to provision, see the following errors: 1) No implementation for CompilerManager was bound. while locating CompilerMojo 1 error ====================== Full classname legend: ====================== CompilerManager: "org.codehaus.plexus.compiler.manager.CompilerManager" CompilerMojo: "org.apache.maven.plugin.compiler.CompilerMojo" ======================== End of classname legend: ======================== at com.google.inject.internal.InternalProvisionException.toProvisionException (InternalProvisionException.java:251) at com.google.inject.internal.InjectorImpl$1.get (InjectorImpl.java:1104) at com.google.inject.internal.InjectorImpl.getInstance (InjectorImpl.java:1139) at org.eclipse.sisu.space.AbstractDeferredClass.get (AbstractDeferredClass.java:48) at com.google.inject.internal.ProviderInternalFactory.provision (ProviderInternalFactory.java:86) at com.google.inject.internal.InternalFactoryToInitializableAdapter.provision (InternalFactoryToInitializableAdapter.java:57) at com.google.inject.internal.ProviderInternalFactory$1.call (ProviderInternalFactory.java:67) at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision (ProvisionListenerStackCallback.java:109) at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision (ProvisionListenerStackCallback.java:124) at com.google.inject.internal.ProvisionListenerStackCallback.provision (ProvisionListenerStackCallback.java:66) at com.google.inject.internal.ProviderInternalFactory.circularGet (ProviderInternalFactory.java:62) at com.google.inject.internal.InternalFactoryToInitializableAdapter.get (InternalFactoryToInitializableAdapter.java:47) at com.google.inject.internal.InjectorImpl$1.get (InjectorImpl.java:1101) at org.eclipse.sisu.inject.Guice4$1.get (Guice4.java:162) at org.eclipse.sisu.inject.LazyBeanEntry.getValue (LazyBeanEntry.java:81) at org.eclipse.sisu.plexus.LazyPlexusBean.getValue (LazyPlexusBean.java:51) at org.codehaus.plexus.DefaultPlexusContainer.lookup (DefaultPlexusContainer.java:263) at org.codehaus.plexus.DefaultPlexusContainer.lookup (DefaultPlexusContainer.java:255) at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getConfiguredMojo (DefaultMavenPluginManager.java:486) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:77) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:568) at org.fedoraproject.xmvn.connector.maven.XMvnMojoExecutionListener.dispatchBuildPluginManagerMethodCall (XMvnMojoExecutionListener.java:112) at jdk.proxy2.$Proxy27.getConfiguredMojo (Unknown Source) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:114) at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:342) at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:330) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:213) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:175) at org.apache.maven.lifecycle.internal.MojoExecutor.access$000 (MojoExecutor.java:76) at org.apache.maven.lifecycle.internal.MojoExecutor$1.run (MojoExecutor.java:163) at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute (DefaultMojosExecutionStrategy.java:39) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:160) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:105) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:73) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:53) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:118) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:827) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:272) at org.apache.maven.cli.MavenCli.main (MavenCli.java:195) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:77) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:568) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:283) at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:226) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:407) at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:348) [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 [ 2.848 s] [INFO] Apache Velocity - Engine ........................... FAILURE [ 10.303 s] [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 15.665 s [INFO] Finished at: 2024-03-01T21:09:27Z [INFO] ------------------------------------------------------------------------ [ERROR] Cannot invoke "Object.getClass()" because "bean" is null [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.qlhn7H (%build) %patchN is deprecated (1 usages found), use %patch N (or %patch -P N) Bad exit status from /var/tmp/rpm-tmp.qlhn7H (%build) RPM build warnings: RPM build errors: 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.12/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) ^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/site-packages/mockbuild/util.py", line 597, 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 noarch --nodeps /builddir/build/SPECS/velocity.spec'