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/maven.spec'], chrootPath='/home/lib/mock/dist-ocs23-loongarch64-build-199392-14242/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=983gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target noarch --nodeps /builddir/build/SPECS/maven.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/maven-3.8.6-8.ocs23.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/maven.spec'], chrootPath='/home/lib/mock/dist-ocs23-loongarch64-build-199392-14242/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=983gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target noarch --nodeps /builddir/build/SPECS/maven.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.Jv5l7i + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf apache-maven-3.8.6 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/apache-maven-3.8.6-src.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd apache-maven-3.8.6 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + find -name '*.java' -exec sed -i 's/\r//' '{}' + + find -name pom.xml -exec sed -i 's/\r//' '{}' + + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0001-Adapt-mvn-script.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0002-Invoke-logback-via-reflection.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0003-Use-non-shaded-HTTP-wagon.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0004-Remove-dependency-on-powermock.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0005-Port-to-maven-resolver-1.7.2.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0006-Restore-DefaultModelValidator-compatibility-with-Mav.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + find -name '*.jar' -not -path '*/test/*' -delete + find -name '*.class' -delete + find -name '*.bat' -delete + /usr/bin/python3 /usr/share/java-utils/pom_editor.py pom_remove_dep -r :powermock-reflect + sed -i 's:\r::' apache-maven/src/conf/settings.xml + rm apache-maven/src/main/appended-resources/META-INF/LICENSE.vm + /usr/bin/python3 /usr/share/java-utils/pom_editor.py pom_remove_plugin -r :animal-sniffer-maven-plugin + /usr/bin/python3 /usr/share/java-utils/pom_editor.py pom_remove_plugin -r :apache-rat-plugin + /usr/bin/python3 /usr/share/java-utils/pom_editor.py pom_remove_plugin -r :maven-site-plugin + /usr/bin/python3 /usr/share/java-utils/pom_editor.py pom_remove_plugin -r :buildnumber-maven-plugin ++ find -name build.properties + sed -i ' /buildNumber=/ { s/=.*/=OpenCloudOS 3.8.6-8.ocs23/ s/.ocs23$// } /timestamp=/ d ' ./maven-core/src/main/resources/org/apache/maven/messages/build.properties ./maven-core/src/test/resources/projects/build.properties + /usr/bin/python3 /usr/share/java-utils/mvn_package.py :apache-maven __noinstall + /usr/bin/python3 /usr/share/java-utils/pom_editor.py pom_change_dep :jansi :::runtime maven-embedder + /usr/bin/python3 /usr/share/java-utils/pom_editor.py pom_remove_dep -r :logback-classic + /usr/bin/python3 /usr/share/java-utils/mvn_alias.py :maven-resolver-provider :maven-aether-provider + /usr/bin/python3 /usr/share/java-utils/pom_editor.py pom_xpath_inject pom:build/pom:plugins ' org.eclipse.sisu sisu-maven-plugin ' maven-model-builder/pom.xml + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.sN4enR + 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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection' + export CXXFLAGS + FFLAGS='-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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib/gfortran/modules' + export FFLAGS + FCFLAGS='-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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -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 apache-maven-3.8.6 + /usr/bin/python3 /usr/share/java-utils/mvn_build.py --xmvn-javadoc -- -Dproject.build.sourceEncoding=UTF-8 Executing: xmvn --batch-mode --offline -Dproject.build.sourceEncoding=UTF-8 verify org.fedoraproject.xmvn:xmvn-mojo:install org.fedoraproject.xmvn:xmvn-mojo:javadoc org.fedoraproject.xmvn:xmvn-mojo:builddep ['xmvn', '--batch-mode', '--offline', '-Dproject.build.sourceEncoding=UTF-8', 'verify', 'org.fedoraproject.xmvn:xmvn-mojo:install', 'org.fedoraproject.xmvn:xmvn-mojo:javadoc', 'org.fedoraproject.xmvn:xmvn-mojo:builddep'] [INFO] Scanning for projects... [ERROR] Unable to configure XMvn toolchain: Non-existing JDK home configuration at /usr/lib/jvm/java-1.8.0 -> [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/MavenExecutionException error: Bad exit status from /var/tmp/rpm-tmp.sN4enR (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.sN4enR (%build) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target noarch --nodeps /builddir/build/SPECS/maven.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.10/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/maven.spec