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/easymock.spec'], chrootPath='/var/lib/mock/f40-build-2235444-53436/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/easymock.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 (4 usages found), use %patch N (or %patch -P N) Building target platforms: noarch Building for target noarch setting SOURCE_DATE_EPOCH=1693526400 Wrote: /builddir/build/SRPMS/easymock-4.3-4.fc40.src.rpm RPM build warnings: %patchN is deprecated (4 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/easymock.spec'], chrootPath='/var/lib/mock/f40-build-2235444-53436/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/easymock.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 (4 usages found), use %patch N (or %patch -P N) Building target platforms: noarch Building for target noarch setting SOURCE_DATE_EPOCH=1693526400 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.sAbiEe + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf easymock-easymock-4.3 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/easymock-4.3.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd easymock-easymock-4.3 + rm -rf /builddir/build/BUILD/easymock-easymock-4.3-SPECPARTS + /usr/bin/mkdir -p /builddir/build/BUILD/easymock-easymock-4.3-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #1 (0001-Disable-android-support.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 Patch #1 (0001-Disable-android-support.patch): patching file core/src/main/java/org/easymock/internal/MocksControl.java Hunk #1 succeeded at 150 (offset 3 lines). Patch #2 (0002-Unshade-cglib-and-asm.patch): + echo 'Patch #2 (0002-Unshade-cglib-and-asm.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file core/pom.xml Hunk #1 succeeded at 118 (offset 18 lines). Patch #3 (0003-Fix-OSGi-manifest.patch): + echo 'Patch #3 (0003-Fix-OSGi-manifest.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file core/pom.xml Hunk #1 succeeded at 118 (offset 18 lines). Patch #4 (0004-Port-to-hamcrest-2.1.patch): + echo 'Patch #4 (0004-Port-to-hamcrest-2.1.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file core/src/test/java/org/easymock/tests2/EasyMockSupportClassTest.java + /usr/bin/python3 /usr/share/java-utils/pom_editor.py pom_remove_plugin :license-maven-plugin + /usr/bin/python3 /usr/share/java-utils/pom_editor.py pom_remove_plugin :maven-enforcer-plugin + /usr/bin/python3 /usr/share/java-utils/pom_editor.py pom_remove_plugin :animal-sniffer-maven-plugin + /usr/bin/python3 /usr/share/java-utils/pom_editor.py pom_remove_plugin :animal-sniffer-maven-plugin core + /usr/bin/python3 /usr/share/java-utils/pom_editor.py pom_remove_plugin :maven-gpg-plugin test-testng + /usr/bin/python3 /usr/share/java-utils/pom_editor.py pom_remove_plugin :maven-gpg-plugin test-java8 + /usr/bin/python3 /usr/share/java-utils/pom_editor.py pom_remove_plugin :maven-gpg-plugin test-junit5 + rm core/src/main/java/org/easymock/internal/AndroidClassProxyFactory.java core/src/main/java/org/easymock/internal/AndroidSupport.java + rm core/src/test/java/org/easymock/tests2/ClassExtensionHelperTest.java + /usr/bin/python3 /usr/share/java-utils/pom_editor.py pom_disable_module test-android + /usr/bin/python3 /usr/share/java-utils/pom_editor.py pom_remove_dep :dexmaker core + /usr/bin/python3 /usr/share/java-utils/pom_editor.py pom_disable_module test-nodeps + /usr/bin/python3 /usr/share/java-utils/pom_editor.py pom_remove_plugin :maven-shade-plugin core + /usr/bin/python3 /usr/share/java-utils/pom_editor.py pom_disable_module test-integration + /usr/bin/python3 /usr/share/java-utils/pom_editor.py pom_disable_module test-osgi + /usr/bin/python3 /usr/share/java-utils/pom_editor.py pom_remove_plugin org.codehaus.mojo:versions-maven-plugin + /usr/bin/python3 /usr/share/java-utils/pom_editor.py pom_remove_plugin :maven-timestamp-plugin + /usr/bin/python3 /usr/share/java-utils/mvn_file.py ':easymock{*}' easymock@1 easymock3@1 + /usr/bin/python3 /usr/share/java-utils/pom_editor.py pom_xpath_remove pom:extensions + /usr/bin/python3 /usr/share/java-utils/pom_editor.py pom_xpath_inject 'pom:plugin[pom:artifactId='\''maven-surefire-plugin'\'']' 'none:none' core + /usr/bin/python3 /usr/share/java-utils/pom_editor.py pom_xpath_inject 'pom:plugin[pom:artifactId='\''maven-surefire-plugin'\'']/pom:configuration' '--add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED' core + /usr/bin/python3 /usr/share/java-utils/pom_editor.py pom_xpath_inject 'pom:plugin[pom:artifactId='\''maven-surefire-plugin'\'']/pom:configuration' '--add-opens=java.base/java.lang=ALL-UNNAMED' test-testng + /usr/bin/python3 /usr/share/java-utils/pom_editor.py pom_add_plugin :maven-surefire-plugin test-java8 ' --add-opens=java.base/java.lang=ALL-UNNAMED' + /usr/bin/python3 /usr/share/java-utils/pom_editor.py pom_add_plugin :maven-surefire-plugin test-junit5 ' --add-opens=java.base/java.lang=ALL-UNNAMED' + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.eGdqmz + 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 easymock-easymock-4.3 + /usr/bin/python3 /usr/share/java-utils/mvn_build.py --xmvn-javadoc Executing: xmvn --batch-mode --offline verify org.fedoraproject.xmvn:xmvn-mojo:install org.fedoraproject.xmvn:xmvn-mojo:javadoc org.fedoraproject.xmvn:xmvn-mojo:builddep ['xmvn', '--batch-mode', '--offline', 'verify', 'org.fedoraproject.xmvn:xmvn-mojo:install', 'org.fedoraproject.xmvn:xmvn-mojo:javadoc', 'org.fedoraproject.xmvn:xmvn-mojo:builddep'] --------------------------------------------------- constituent[0]: file:/usr/share/xmvn/conf/logging/ constituent[1]: file:/usr/share/xmvn/lib/ext/xmvn-api-4.2.0.jar constituent[2]: file:/usr/share/xmvn/lib/ext/xmvn-connector-4.2.0.jar constituent[3]: file:/usr/share/xmvn/lib/ext/xmvn-core-4.2.0.jar constituent[4]: file:/usr/share/xmvn/lib/javax.inject-1.jar constituent[5]: file:/usr/share/xmvn/lib/maven-resolver-named-locks-1.7.3.jar constituent[6]: file:/usr/share/xmvn/lib/maven-resolver-transport-wagon-1.6.3.jar constituent[7]: file:/usr/share/xmvn/lib/plexus-component-annotations-2.1.0.jar constituent[8]: file:/usr/share/xmvn/lib/org.eclipse.sisu.plexus-0.3.5.jar constituent[9]: file:/usr/share/xmvn/lib/cdi-api-1.1.jar constituent[10]: file:/usr/share/xmvn/lib/maven-embedder-3.8.6.jar constituent[11]: file:/usr/share/xmvn/lib/wagon-http-shared-3.5.1.jar constituent[12]: file:/usr/share/xmvn/lib/commons-lang3-3.8.1.jar constituent[13]: file:/usr/share/xmvn/lib/javax.annotation-api-1.2.jar constituent[14]: file:/usr/share/xmvn/lib/slf4j-api-1.7.36.jar constituent[15]: file:/usr/share/xmvn/lib/commons-io-2.6.jar constituent[16]: file:/usr/share/xmvn/lib/commons-codec-1.11.jar constituent[17]: file:/usr/share/xmvn/lib/maven-artifact-3.8.6.jar constituent[18]: file:/usr/share/xmvn/lib/maven-core-3.8.6.jar constituent[19]: file:/usr/share/xmvn/lib/maven-resolver-spi-1.6.3.jar constituent[20]: file:/usr/share/xmvn/lib/wagon-file-3.5.1.jar constituent[21]: file:/usr/share/xmvn/lib/maven-builder-support-3.8.6.jar constituent[22]: file:/usr/share/xmvn/lib/jcl-over-slf4j-1.7.36.jar constituent[23]: file:/usr/share/xmvn/lib/jansi-2.4.0.jar constituent[24]: file:/usr/share/xmvn/lib/jakarta.inject-api-1.0.jar constituent[25]: file:/usr/share/xmvn/lib/maven-plugin-api-3.8.6.jar constituent[26]: file:/usr/share/xmvn/lib/httpcore-4.4.15.jar constituent[27]: file:/usr/share/xmvn/lib/maven-resolver-impl-1.6.3.jar constituent[28]: file:/usr/share/xmvn/lib/maven-resolver-connector-basic-1.6.3.jar constituent[29]: file:/usr/share/xmvn/lib/guava-27.1-jre.jar constituent[30]: file:/usr/share/xmvn/lib/plexus-cipher-2.0.jar constituent[31]: file:/usr/share/xmvn/lib/maven-compat-3.8.6.jar constituent[32]: file:/usr/share/xmvn/lib/maven-slf4j-provider-3.8.6.jar constituent[33]: file:/usr/share/xmvn/lib/org.eclipse.sisu.inject-0.3.5.jar constituent[34]: file:/usr/share/xmvn/lib/maven-resolver-util-1.6.3.jar constituent[35]: file:/usr/share/xmvn/lib/maven-model-builder-3.8.6.jar constituent[36]: file:/usr/share/xmvn/lib/commons-cli-1.4.jar constituent[37]: file:/usr/share/xmvn/lib/failureaccess-1.0.1.jar constituent[38]: file:/usr/share/xmvn/lib/guice-4.2.2-no_aop.jar constituent[39]: file:/usr/share/xmvn/lib/plexus-interpolation-1.26.jar constituent[40]: file:/usr/share/xmvn/lib/httpclient-4.5.13.jar constituent[41]: file:/usr/share/xmvn/lib/maven-shared-utils-3.3.4.jar constituent[42]: file:/usr/share/xmvn/lib/maven-settings-builder-3.8.6.jar constituent[43]: file:/usr/share/xmvn/lib/plexus-utils-3.3.1.jar constituent[44]: file:/usr/share/xmvn/lib/wagon-provider-api-3.5.1.jar constituent[45]: file:/usr/share/xmvn/lib/maven-repository-metadata-3.8.6.jar constituent[46]: file:/usr/share/xmvn/lib/maven-settings-3.8.6.jar constituent[47]: file:/usr/share/xmvn/lib/plexus-sec-dispatcher-2.0.jar constituent[48]: file:/usr/share/xmvn/lib/maven-resolver-provider-3.8.6.jar constituent[49]: file:/usr/share/xmvn/lib/wagon-http-3.5.1.jar constituent[50]: file:/usr/share/xmvn/lib/maven-resolver-api-1.6.3.jar constituent[51]: file:/usr/share/xmvn/lib/maven-model-3.8.6.jar --------------------------------------------------- Exception in thread "main" java.lang.NoClassDefFoundError: com/google/inject/Module at org.apache.maven.cli.MavenCli.container(MavenCli.java:569) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:266) at org.apache.maven.cli.MavenCli.main(MavenCli.java:195) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:568) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:282) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:225) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:406) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:347) Caused by: java.lang.ClassNotFoundException: com.google.inject.Module at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50) at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:271) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:247) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:239) ... 11 more error: Bad exit status from /var/tmp/rpm-tmp.eGdqmz (%build) %patchN is deprecated (4 usages found), use %patch N (or %patch -P N) Bad exit status from /var/tmp/rpm-tmp.eGdqmz (%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/easymock.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/easymock.spec'