Mock Version: 1.2.17 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target ppc --nodeps /builddir/build/SPECS/log4j.spec'], chrootPath='/var/lib/mock/log4j-1.2.17-17.el7_4-20211220150604-13804/root'shell=FalseprintOutput=Falseenv={'LANG': 'en_GB.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'}gid=135user='mockbuild'timeout=0logger=uid=1005) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target ppc --nodeps /builddir/build/SPECS/log4j.spec'] with env {'LANG': 'en_GB.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'} and shell False Building target platforms: ppc Building for target ppc Wrote: /builddir/build/SRPMS/log4j-1.2.17-17.el7_4.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', u'/usr/bin/rpmbuild -bb --target ppc --nodeps /builddir/build/SPECS/log4j.spec'], chrootPath='/var/lib/mock/log4j-1.2.17-17.el7_4-20211220150604-13804/root'shell=Falseuid=1005env={'LANG': 'en_GB.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'}gid=135user='mockbuild'timeout=0private_network=Truelogger=printOutput=False) Executing command: ['bash', '--login', '-c', u'/usr/bin/rpmbuild -bb --target ppc --nodeps /builddir/build/SPECS/log4j.spec'] with env {'LANG': 'en_GB.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'} and shell False Building target platforms: ppc Building for target ppc Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.6NUnxq + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf apache-log4j-1.2.17 + /usr/bin/gzip -dc /builddir/build/SOURCES/log4j-1.2.17.tar.gz + /usr/bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd apache-log4j-1.2.17 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (0001-logfactor5-changed-userdir.patch):' Patch #0 (0001-logfactor5-changed-userdir.patch): + /usr/bin/cat /builddir/build/SOURCES/0001-logfactor5-changed-userdir.patch + /usr/bin/patch -p1 -b --suffix .logfactor-home --fuzz=0 patching file src/main/java/org/apache/log4j/lf5/viewer/configure/ConfigurationManager.java patching file src/main/java/org/apache/log4j/lf5/viewer/configure/MRUFileManager.java Patch #1 (0006-Remove-mvn-clirr-plugin.patch): + echo 'Patch #1 (0006-Remove-mvn-clirr-plugin.patch):' + /usr/bin/cat /builddir/build/SOURCES/0006-Remove-mvn-clirr-plugin.patch + /usr/bin/patch -p1 -b --suffix .remove-mvn-clirr --fuzz=0 patching file pom.xml Hunk #1 succeeded at 394 (offset 44 lines). Patch #2 (0009-Fix-tests.patch): + echo 'Patch #2 (0009-Fix-tests.patch):' + /usr/bin/cat /builddir/build/SOURCES/0009-Fix-tests.patch + /usr/bin/patch -p1 -b --suffix .fix-tests --fuzz=0 patching file tests/build.xml Patch #3 (0010-Fix-javadoc-link.patch): + echo 'Patch #3 (0010-Fix-javadoc-link.patch):' + /usr/bin/cat /builddir/build/SOURCES/0010-Fix-javadoc-link.patch + /usr/bin/patch -p1 -b --suffix .xlink-javadoc --fuzz=0 patching file build.xml Patch #4 (0011-Remove-openejb.patch): + echo 'Patch #4 (0011-Remove-openejb.patch):' + /usr/bin/cat /builddir/build/SOURCES/0011-Remove-openejb.patch + /usr/bin/patch -p1 -b --suffix .openejb --fuzz=0 patching file pom.xml Hunk #1 succeeded at 529 (offset 1 line). Patch #5 (0012-Add-proper-bundle-symbolicname.patch): + echo 'Patch #5 (0012-Add-proper-bundle-symbolicname.patch):' + /usr/bin/cat /builddir/build/SOURCES/0012-Add-proper-bundle-symbolicname.patch + /usr/bin/patch -p1 -b --suffix .bundlename --fuzz=0 patching file pom.xml Hunk #1 succeeded at 421 (offset 1 line). Patch #6 (0001-Backport-fix-for-CVE-2017-5645.patch): + echo 'Patch #6 (0001-Backport-fix-for-CVE-2017-5645.patch):' + /usr/bin/cat /builddir/build/SOURCES/0001-Backport-fix-for-CVE-2017-5645.patch + /usr/bin/patch -p1 -b --suffix .cve-2017-5645 --fuzz=0 patching file src/main/java/org/apache/log4j/FilteredObjectInputStream.java patching file src/main/java/org/apache/log4j/net/SocketNode.java Patch #7 (0001-Add-test-case-for-JNDI-disablement.patch): + echo 'Patch #7 (0001-Add-test-case-for-JNDI-disablement.patch):' + /usr/bin/cat /builddir/build/SOURCES/0001-Add-test-case-for-JNDI-disablement.patch + /usr/bin/patch -p1 -b --suffix .log4shell --fuzz=0 patching file tests/build.xml patching file tests/input/JNDI0.properties patching file tests/input/JNDI1.properties patching file tests/src/java/org/apache/log4j/JNDITestCase.java Patch #8 (0002-Disable-JNDI-by-default.patch): + echo 'Patch #8 (0002-Disable-JNDI-by-default.patch):' + /usr/bin/cat /builddir/build/SOURCES/0002-Disable-JNDI-by-default.patch + /usr/bin/patch -p1 -b --suffix .log4shell --fuzz=0 patching file src/main/java/org/apache/log4j/net/JMSAppender.java + . /usr/share/java-utils/pom_editor.sh + pom_remove_plugin :maven-site-plugin + set +x + sed -i 's|groupId>ant<|groupId>org.apache.ant<|g' pom.xml + sed -i 's/\r//g' LICENSE NOTICE site/css/maven-base.css site/css/maven-theme.css site/css/site.css site/xref/stylesheet.css site/xref-test/stylesheet.css + for i in 'contribs/JimMoore/mail*' + iconv --from=ISO-8859-1 --to=UTF-8 contribs/JimMoore/mail-2001-03-12T1326 + mv new contribs/JimMoore/mail-2001-03-12T1326 + for i in 'contribs/JimMoore/mail*' + iconv --from=ISO-8859-1 --to=UTF-8 contribs/JimMoore/mail-2001-03-12T1454 + mv new contribs/JimMoore/mail-2001-03-12T1454 + for i in 'contribs/JimMoore/mail*' + iconv --from=ISO-8859-1 --to=UTF-8 contribs/JimMoore/mail-2001-03-13T0646 + mv new contribs/JimMoore/mail-2001-03-13T0646 + find -name '*.jar' -o -name '*.class' -delete + rm -rf docs/api + mkdir -p tests/lib/ + cd tests/lib/ ++ build-classpath jakarta-oro + ln -s /usr/share/java/jakarta-oro.jar ++ build-classpath javamail/mail + ln -s /usr/share/java/javamail/mail.jar ++ build-classpath junit + ln -s /usr/share/java/junit.jar ++ build-classpath jms + ln -s /usr/share/java/jms.jar + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.mPzHFm + umask 022 + cd /builddir/build/BUILD + cd apache-log4j-1.2.17 + python /usr/share/java-utils/mvn_file.py : log4j + python /usr/share/java-utils/mvn_build.py -n log4j [INFO] Scanning for projects... [WARNING] Failed to resolve artifact: org.apache.felix:maven-bundle-plugin:pom:2.1.0 [WARNING] The POM for org.apache.felix:maven-bundle-plugin:jar:2.1.0 is missing, no dependency information available [WARNING] Failed to resolve artifact: org.apache.felix:maven-bundle-plugin:jar:2.1.0 [WARNING] Failed to resolve artifact: org.codehaus.plexus:plexus-utils:jar:1.1 [ERROR] The build could not read 1 project -> [Help 1] [ERROR] [ERROR] The project log4j:log4j:1.2.17 (/builddir/build/BUILD/apache-log4j-1.2.17/pom.xml) has 2 errors [ERROR] Unresolveable build extension: Plugin org.apache.felix:maven-bundle-plugin:2.1.0 or one of its dependencies could not be resolved: The following artifacts could not be resolved: org.apache.felix:maven-bundle-plugin:jar:2.1.0, org.codehaus.plexus:plexus-utils:jar:1.1: The repository system is offline but the artifact org.apache.felix:maven-bundle-plugin:jar:2.1.0 is not available in the local repository. -> [Help 2] [ERROR] Unknown packaging: bundle @ line 33, column 14 [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/ProjectBuildingException [ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.mPzHFm (%build) Bad exit status from /var/tmp/rpm-tmp.mPzHFm (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/mockbuild/trace_decorator.py", line 88, in trace result = func(*args, **kw) File "/usr/lib/python2.7/site-packages/mockbuild/util.py", line 547, in do raise exception.Error("Command failed. See logs for output.\n # %s" % (command,), child.returncode) Error: Command failed. See logs for output. # bash --login -c /usr/bin/rpmbuild -bb --target ppc --nodeps /builddir/build/SPECS/log4j.spec