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/junit.spec'], chrootPath='/var/lib/mock/module-javapackages-tools-201902-8050020220619051254-a78e116a-build-8830-1300/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/junit.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: Macro expanded in comment on line 9: %{version} Building target platforms: noarch Building for target noarch Wrote: /builddir/build/SRPMS/junit-4.12-11.module+oc8.5.0+73+10426fc9.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target noarch --nodeps /builddir/build/SPECS/junit.spec'], chrootPath='/var/lib/mock/module-javapackages-tools-201902-8050020220619051254-a78e116a-build-8830-1300/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/junit.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: Macro expanded in comment on line 9: %{version} Building target platforms: noarch Building for target noarch Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.NN5Pum + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf junit-r4.12 + /usr/bin/gzip -dc /builddir/build/SOURCES/junit-4.12-clean.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd junit-r4.12 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . Patch #1 (0001-Port-to-hamcrest-2.1.patch): + echo 'Patch #1 (0001-Port-to-hamcrest-2.1.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file src/main/java/org/junit/internal/matchers/StacktracePrintingMatcher.java patching file src/main/java/org/junit/internal/matchers/ThrowableCauseMatcher.java patching file src/main/java/org/junit/internal/matchers/ThrowableMessageMatcher.java patching file src/main/java/org/junit/matchers/JUnitMatchers.java patching file src/test/java/org/junit/tests/experimental/theories/runner/WithDataPointMethod.java Patch #2 (0002-Port-to-OpenJDK-11.patch): + echo 'Patch #2 (0002-Port-to-OpenJDK-11.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file src/test/java/org/junit/runners/model/TestClassTest.java patching file src/test/java/org/junit/tests/running/core/MainRunner.java + sed -i /InaccessibleBaseClassTest/d src/test/java/org/junit/tests/AllTests.java + /usr/libexec/platform-python /usr/share/java-utils/pom_editor.py pom_remove_plugin :replacer + sed s/@version@/4.12/ src/main/java/junit/runner/Version.java.template + /usr/libexec/platform-python /usr/share/java-utils/pom_editor.py pom_remove_plugin :animal-sniffer-maven-plugin + /usr/libexec/platform-python /usr/share/java-utils/pom_editor.py pom_remove_plugin :maven-javadoc-plugin + /usr/libexec/platform-python /usr/share/java-utils/pom_editor.py pom_xpath_inject pom:project 'bundle' + /usr/libexec/platform-python /usr/share/java-utils/pom_editor.py pom_xpath_inject pom:build/pom:plugins ' org.apache.felix maven-bundle-plugin true org.junit {local-packages},!org.hamcrest*,*;x-internal:=true <_nouses>true ' + /usr/libexec/platform-python /usr/share/java-utils/mvn_file.py : junit + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.uguYWk + umask 022 + cd /builddir/build/BUILD + cd junit-r4.12 + /usr/libexec/platform-python /usr/share/java-utils/mvn_build.py --xmvn-javadoc -f -- -DjdkVersion=1.6 Executing: xmvn --batch-mode --offline -Dmaven.test.skip=true -DjdkVersion=1.6 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', '-DjdkVersion=1.6', '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 junit:junit:bundle:4.12 [WARNING] 'build.plugins.plugin.version' for org.apache.felix:maven-bundle-plugin is missing. @ line 135, 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] [WARNING] The project junit:junit:bundle:4.12 uses prerequisites which is only intended for maven-plugin projects but not for non maven-plugin projects. For such purposes you should use the maven-enforcer-plugin. See https://maven.apache.org/enforcer/enforcer-rules/requireMavenVersion.html [INFO] [INFO] ----------------------------< junit:junit >----------------------------- [INFO] Building JUnit 4.12 [INFO] -------------------------------[ bundle ]------------------------------- [INFO] [INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-versions) @ junit --- [INFO] [INFO] --- maven-resources-plugin:3.1.0:resources (default-resources) @ junit --- [INFO] Using 'ISO-8859-1' encoding to copy filtered resources. [INFO] Copying 2 resources [INFO] Copying 1 resource [INFO] [INFO] --- maven-compiler-plugin:3.7.0:compile (default-compile) @ junit --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 195 source files to /builddir/build/BUILD/junit-r4.12/target/classes [INFO] ------------------------------------------------------------- [WARNING] COMPILATION WARNING : [INFO] ------------------------------------------------------------- [WARNING] bootstrap class path not set in conjunction with -source 1.6 /builddir/build/BUILD/junit-r4.12/src/main/java/junit/extensions/TestDecorator.java:[3,22] [deprecation] Assert in junit.framework has been deprecated [WARNING] /builddir/build/BUILD/junit-r4.12/src/main/java/org/junit/internal/Classes.java:[13,7] no description for @throws [WARNING] /builddir/build/BUILD/junit-r4.12/src/main/java/org/junit/runner/JUnitCore.java:[66,7] no description for @param [WARNING] /builddir/build/BUILD/junit-r4.12/src/main/java/org/junit/internal/runners/statements/FailOnTimeout.java:[108,11] no description for @param [WARNING] /builddir/build/BUILD/junit-r4.12/src/main/java/org/junit/runner/FilterFactories.java:[19,7] no description for @throws [WARNING] /builddir/build/BUILD/junit-r4.12/src/main/java/junit/extensions/TestDecorator.java:[12,35] [deprecation] Assert in junit.framework has been deprecated [WARNING] /builddir/build/BUILD/junit-r4.12/src/main/java/junit/framework/TestCase.java:[76,39] [deprecation] Assert in junit.framework has been deprecated [WARNING] /builddir/build/BUILD/junit-r4.12/src/main/java/junit/framework/ComparisonCompactor.java:[23,19] [deprecation] Assert in junit.framework has been deprecated [WARNING] /builddir/build/BUILD/junit-r4.12/src/main/java/junit/framework/ComparisonCompactor.java:[30,15] [deprecation] Assert in junit.framework has been deprecated [INFO] 9 warnings [INFO] ------------------------------------------------------------- [INFO] ------------------------------------------------------------- [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] /builddir/build/BUILD/junit-r4.12/src/main/java/org/junit/matchers/JUnitMatchers.java:[60,37] error: incompatible types: Matcher> cannot be converted to Matcher> where T is a type-variable: T extends Object declared in method everyItem(Matcher) [INFO] 1 error [INFO] ------------------------------------------------------------- [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Skipping JUnit [INFO] This project has been banned from the build due to previous failures. [INFO] ------------------------------------------------------------------------ [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2.989 s [INFO] Finished at: 2022-06-19T15:08:20+08:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile (default-compile) on project junit: Compilation failure [ERROR] /builddir/build/BUILD/junit-r4.12/src/main/java/org/junit/matchers/JUnitMatchers.java:[60,37] error: incompatible types: Matcher> cannot be converted to Matcher> [ERROR] where T is a type-variable: [ERROR] T extends Object declared in method everyItem(Matcher) [ERROR] -> [Help 1] [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] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException error: Bad exit status from /var/tmp/rpm-tmp.uguYWk (%build) Macro expanded in comment on line 9: %{version} Bad exit status from /var/tmp/rpm-tmp.uguYWk (%build) RPM build errors: 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/junit.spec