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/junit.spec'], chrootPath='/var/lib/mock/dist-an23-build-271150-64133/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/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 Building target platforms: noarch Building for target noarch setting SOURCE_DATE_EPOCH=1596499200 Wrote: /builddir/build/SRPMS/junit-4.12-1.an23.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target noarch --nodeps /builddir/build/SPECS/junit.spec'], chrootPath='/var/lib/mock/dist-an23-build-271150-64133/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/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 Building target platforms: noarch Building for target noarch setting SOURCE_DATE_EPOCH=1596499200 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.31GTBy + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf junit-r4.12 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/junit-4.12-clean.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd junit-r4.12 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + sed -i /InaccessibleBaseClassTest/d src/test/java/org/junit/tests/AllTests.java + /usr/bin/python3 /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/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 :maven-javadoc-plugin + /usr/bin/python3 /usr/share/java-utils/pom_editor.py pom_xpath_inject pom:project 'bundle' + /usr/bin/python3 /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/bin/python3 /usr/share/java-utils/pom_editor.py pom_xpath_inject pom:profiles ' jdk-release-flag [9,) ${jdkVersion} ' + sed -i -e /providesAnnotatedMethodsSortedByName/i@Ignore src/test/java/org/junit/runners/model/TestClassTest.java + /usr/bin/python3 /usr/share/java-utils/pom_editor.py pom_xpath_inject 'pom:plugin[pom:artifactId='\''maven-jar-plugin'\'']/pom:configuration/pom:archive' 'junit' + /usr/bin/python3 /usr/share/java-utils/mvn_file.py : junit + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.HQO7bh + 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 junit-r4.12 + 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 -- -DjdkVersion=8 Executing: xmvn --batch-mode --offline -DjdkVersion=8 verify org.fedoraproject.xmvn:xmvn-mojo:install org.fedoraproject.xmvn:xmvn-mojo:javadoc org.fedoraproject.xmvn:xmvn-mojo:builddep ['xmvn', '--batch-mode', '--offline', '-DjdkVersion=8', 'verify', '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:3.0.0.MBI:enforce (enforce-versions) @ junit --- [INFO] [INFO] --- maven-resources-plugin:3.2.0.MBI:resources (default-resources) @ junit --- [INFO] Using 'ISO-8859-1' encoding to copy filtered resources. [INFO] Using 'ISO-8859-1' encoding to copy filtered properties files. [INFO] Copying 2 resources [INFO] Copying 1 resource [INFO] [INFO] --- maven-compiler-plugin:3.10.1.MBI: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] /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/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/org/junit/matchers/JUnitMatchers.java:[39,57] [unchecked] Possible heap pollution from parameterized vararg type T where T is a type-variable: T extends Object declared in method hasItems(T...) [WARNING] /builddir/build/BUILD/junit-r4.12/src/main/java/org/junit/matchers/JUnitMatchers.java:[50,74] [unchecked] Possible heap pollution from parameterized vararg type Matcher where T is a type-variable: T extends Object declared in method hasItems(Matcher...) [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] 7 warnings [INFO] ------------------------------------------------------------- [INFO] ------------------------------------------------------------- [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] /builddir/build/BUILD/junit-r4.12/src/main/java/org/junit/internal/matchers/ThrowableCauseMatcher.java:[4,19] error: cannot find symbol symbol: class Factory location: package org.hamcrest [ERROR] /builddir/build/BUILD/junit-r4.12/src/main/java/org/junit/internal/matchers/ThrowableMessageMatcher.java:[4,19] error: cannot find symbol symbol: class Factory location: package org.hamcrest [ERROR] /builddir/build/BUILD/junit-r4.12/src/main/java/org/junit/internal/matchers/StacktracePrintingMatcher.java:[7,19] error: cannot find symbol symbol: class Factory location: package org.hamcrest [ERROR] /builddir/build/BUILD/junit-r4.12/src/main/java/org/junit/internal/matchers/ThrowableCauseMatcher.java:[46,5] error: cannot find symbol symbol: class Factory location: class ThrowableCauseMatcher where T is a type-variable: T extends Throwable declared in class ThrowableCauseMatcher [ERROR] /builddir/build/BUILD/junit-r4.12/src/main/java/org/junit/internal/matchers/ThrowableMessageMatcher.java:[33,5] error: cannot find symbol symbol: class Factory location: class ThrowableMessageMatcher where T is a type-variable: T extends Throwable declared in class ThrowableMessageMatcher [ERROR] /builddir/build/BUILD/junit-r4.12/src/main/java/org/junit/internal/matchers/StacktracePrintingMatcher.java:[45,5] error: cannot find symbol symbol: class Factory location: class StacktracePrintingMatcher where T is a type-variable: T extends Throwable declared in class StacktracePrintingMatcher [ERROR] /builddir/build/BUILD/junit-r4.12/src/main/java/org/junit/internal/matchers/StacktracePrintingMatcher.java:[51,5] error: cannot find symbol symbol: class Factory location: class StacktracePrintingMatcher where T is a type-variable: T extends Throwable declared in class StacktracePrintingMatcher [ERROR] /builddir/build/BUILD/junit-r4.12/src/main/java/org/junit/rules/ExpectedException.java:[20,3] error: heading used out of sequence:

, compared to implicit preceding heading:

[ERROR] /builddir/build/BUILD/junit-r4.12/src/main/java/org/junit/runners/Parameterized.java:[113,3] error: heading used out of sequence:

, compared to implicit preceding heading:

[ERROR] /builddir/build/BUILD/junit-r4.12/src/main/java/org/junit/matchers/JUnitMatchers.java:[60,37] error: incompatible types: no instance(s) of type variable(s) U exist so that Matcher> conforms to Matcher> where U,T are type-variables: U extends Object declared in method everyItem(Matcher) T extends Object declared in method everyItem(Matcher) [INFO] 10 errors [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.016 s [INFO] Finished at: 2023-05-31T18:11:17+08:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.10.1.MBI:compile (default-compile) on project junit: Compilation failure: Compilation failure: [ERROR] /builddir/build/BUILD/junit-r4.12/src/main/java/org/junit/internal/matchers/ThrowableCauseMatcher.java:[4,19] error: cannot find symbol [ERROR] symbol: class Factory [ERROR] location: package org.hamcrest [ERROR] /builddir/build/BUILD/junit-r4.12/src/main/java/org/junit/internal/matchers/ThrowableMessageMatcher.java:[4,19] error: cannot find symbol [ERROR] symbol: class Factory [ERROR] location: package org.hamcrest [ERROR] /builddir/build/BUILD/junit-r4.12/src/main/java/org/junit/internal/matchers/StacktracePrintingMatcher.java:[7,19] error: cannot find symbol [ERROR] symbol: class Factory [ERROR] location: package org.hamcrest [ERROR] /builddir/build/BUILD/junit-r4.12/src/main/java/org/junit/internal/matchers/ThrowableCauseMatcher.java:[46,5] error: cannot find symbol [ERROR] symbol: class Factory [ERROR] location: class ThrowableCauseMatcher [ERROR] where T is a type-variable: [ERROR] T extends Throwable declared in class ThrowableCauseMatcher [ERROR] /builddir/build/BUILD/junit-r4.12/src/main/java/org/junit/internal/matchers/ThrowableMessageMatcher.java:[33,5] error: cannot find symbol [ERROR] symbol: class Factory [ERROR] location: class ThrowableMessageMatcher [ERROR] where T is a type-variable: [ERROR] T extends Throwable declared in class ThrowableMessageMatcher [ERROR] /builddir/build/BUILD/junit-r4.12/src/main/java/org/junit/internal/matchers/StacktracePrintingMatcher.java:[45,5] error: cannot find symbol [ERROR] symbol: class Factory [ERROR] location: class StacktracePrintingMatcher [ERROR] where T is a type-variable: [ERROR] T extends Throwable declared in class StacktracePrintingMatcher [ERROR] /builddir/build/BUILD/junit-r4.12/src/main/java/org/junit/internal/matchers/StacktracePrintingMatcher.java:[51,5] error: cannot find symbol [ERROR] symbol: class Factory [ERROR] location: class StacktracePrintingMatcher [ERROR] where T is a type-variable: [ERROR] T extends Throwable declared in class StacktracePrintingMatcher [ERROR] /builddir/build/BUILD/junit-r4.12/src/main/java/org/junit/rules/ExpectedException.java:[20,3] error: heading used out of sequence:

, compared to implicit preceding heading:

[ERROR] /builddir/build/BUILD/junit-r4.12/src/main/java/org/junit/runners/Parameterized.java:[113,3] error: heading used out of sequence:

, compared to implicit preceding heading:

[ERROR] /builddir/build/BUILD/junit-r4.12/src/main/java/org/junit/matchers/JUnitMatchers.java:[60,37] error: incompatible types: no instance(s) of type variable(s) U exist so that Matcher> conforms to Matcher> [ERROR] where U,T are type-variables: [ERROR] U extends Object declared in method everyItem(Matcher) [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.HQO7bh (%build) Bad exit status from /var/tmp/rpm-tmp.HQO7bh (%build) 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/junit.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/junit.spec