deps /builddir/build/SPECS/gstreamer1.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 BUILDSTDERR: warning: Macro expanded in comment on line 5: (c=%{gitcommit}; echo ${c:0:5}) Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1585872000 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.KErw5u + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf gstreamer-1.16.2 + /usr/bin/xz -dc /builddir/build/SOURCES/gstreamer-1.16.2.tar.xz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd gstreamer-1.16.2 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (gstreamer-inspect-rpm-format.patch):' Patch #0 (gstreamer-inspect-rpm-format.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .rpm-provides --fuzz=0 patching file tools/gst-inspect.c Hunk #1 succeeded at 1730 (offset 2 lines). Hunk #2 succeeded at 1973 (offset 2 lines). Hunk #3 succeeded at 2016 (offset 2 lines). Hunk #4 succeeded at 2038 (offset 2 lines). Hunk #5 succeeded at 2061 (offset 2 lines). Hunk #6 succeeded at 2080 (offset 2 lines). Hunk #7 succeeded at 2110 (offset 2 lines). Hunk #8 succeeded at 2177 (offset 4 lines). Hunk #9 succeeded at 2198 (offset 4 lines). Hunk #10 succeeded at 2356 (offset 4 lines). Hunk #11 succeeded at 2369 (offset 4 lines). Patch #1 (gstreamer-add-riscv64.patch): + echo 'Patch #1 (gstreamer-add-riscv64.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .riscv64 --fuzz=0 patching file common/m4/gst-arch.m4 patching file meson.build ~/build/BUILD/gstreamer-1.16.2/common ~/build/BUILD/gstreamer-1.16.2 Patch #2 (fix-for-make-4.3.patch): + pushd common + echo 'Patch #2 (fix-for-make-4.3.patch):' + /usr/bin/patch --no-backup-if-mismatch -p0 -b --suffix .fix-make43 --fuzz=0 can't find file to patch at input line 26 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |From 52adcdb89a9eb527df38c569539d95c1c7aeda6e Mon Sep 17 00:00:00 2001 |From: Debarshi Ray |Date: Thu, 12 Mar 2020 18:11:47 +0100 |Subject: [PATCH] build: Adapt to backwards incompatible change in GNU Make 4.3 | |GNU Make 4.3 has a backwards incompatible change affecting the use of |number signs or hashes (ie., #) inside function invocations. See: |https://lists.gnu.org/archive/html/info-gnu/2020-01/msg00004.html | |In this case, it would expand the '\#' in the '\n\#include \"$(h)\"' |argument to the foreach call to '\#', not '#'. This would lead to |spurious backslashes in front of the '#include' directives in the |generated fs-enumtypes.c file. | |Spotted by Ernestas Kulik. | |https://gitlab.freedesktop.org/gstreamer/common/-/merge_requests/4 |--- | gst-glib-gen.mak | 3 ++- | 1 file changed, 2 insertions(+), 1 deletion(-) | |diff --git a/gst-glib-gen.mak b/gst-glib-gen.mak |index 76b2233..bcb4240 100644 |--- a/gst-glib-gen.mak |+++ b/gst-glib-gen.mak -------------------------- File to patch: Skip this patch? [y] Skipping patch. 1 out of 1 hunk ignored RPM build errors: BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.KErw5u (%prep) BUILDSTDERR: Macro expanded in comment on line 5: (c=%{gitcommit}; echo ${c:0:5}) BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.KErw5u (%prep) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.7/site-packages/mockbuild/trace_decorator.py", line 96, in trace result = func(*args, **kw) File "/usr/lib/python3.7/site-packages/mockbuild/util.py", line 636, in do 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 riscv64 --nodeps /builddir/build/SPECS/gstreamer1.spec