Some of my builds have been failing lately like this:
File series fully applied, ends at patch patches/0001-Add-plugin-support-to-bash.patch^M
make[1]: *** [Makefile:8: /sonic/target/debs/buster/bash_5.1-2_amd64.deb] Error 2^M
make[1]: Leaving directory '/sonic/src/bash'^M
[ FAIL LOG END ] [ target/debs/buster/bash_5.1-2_amd64.deb ]^M
make: *** [
slave.mk:450: target/debs/buster/bash_5.1-2_amd64.deb] Error 1^M
by liuh-80. Several commands were added to the file, including the one that fails:
quilt push -a
Here is some more detailed information. The failure occurs in the second invocation of this Makefile. In the first invocation, there are no files in the current directory, and
MAIN_TARGET = bash_5.1-2_amd64.deb
BASH_VERSION_MAJOR = 5.1
BASH_VERSION_FULL = 5.1-2
DEB_BUILD_OPTIONS=nocheck dpkg-buildpackage -us -uc -b -j64 --admindir /sonic/dpkg/tmp.YgMzj6AEX7
Last line: mv bash_5.1-2_amd64.deb /sonic/target/debs/buster/
In the second invocation, the current directory contains:
Makefile^M
bash-5.1^M
bash-builtins-dbgsym_5.1-2_amd64.deb^M
bash-builtins_5.1-2_amd64.deb^M
bash-dbgsym_5.1-2_amd64.deb^M
bash-doc_5.1-2_all.deb^M
bash-static-dbgsym_5.1-2_amd64.deb^M
bash-static_5.1-2_amd64.deb^M
bash_5.1-2.debian.tar.xz^M
bash_5.1-2.dsc^M
bash_5.1-2_amd64.buildinfo^M
bash_5.1-2_amd64.changes^M
bash_5.1.orig.tar.xz^M
patches^M
bash-5.1 disappears after the rm command and reappears after the dget command.
MAIN_TARGET = bash_5.1-2_amd64.deb
BASH_VERSION_MAJOR = 5.1
BASH_VERSION_FULL = 5.1-2
dget: using existing bash_5.1.orig.tar.xz^M
dget: using existing bash_5.1-2.debian.tar.xz^M
dpkg-source: info: extracting bash in bash-5.1^M
dpkg-source: info: unpacking bash_5.1.orig.tar.xz^M
dpkg-source: info: unpacking bash_5.1-2.debian.tar.xz^M
dpkg-source: info: using patch list from debian/patches/series^M
dpkg-source: info: applying bash51-001.diff^M
dpkg-source: info: applying bash51-002.diff^M
dpkg-source: info: applying bash51-003.diff^M
dpkg-source: info: applying bash51-004.diff^M
dpkg-source: info: applying bashbug-editor.diff^M
dpkg-source: info: applying deb-bash-config.diff^M
dpkg-source: info: applying deb-examples.diff^M
dpkg-source: info: applying man-arithmetic.diff^M
dpkg-source: info: applying man-fignore.diff^M
dpkg-source: info: applying man-bashrc.diff^M
dpkg-source: info: applying man-bashlogout.diff^M
dpkg-source: info: applying man-nocaseglob.diff^M
dpkg-source: info: applying man-test.diff^M
dpkg-source: info: applying man-test2.diff^M
dpkg-source: info: applying rbash-manpage.diff^M
dpkg-source: info: applying bash-default-editor.diff^M
dpkg-source: info: applying input-err.diff^M
dpkg-source: info: applying exec-redirections-doc.diff^M
dpkg-source: info: applying bash-aliases-repeat.diff^M
dpkg-source: info: applying use-system-texi2html.diff^M
dpkg-source: info: applying bzero.diff^M
dpkg-source: info: applying man-macro-warnings.diff^M
dpkg-source: info: applying man-vx-opts.diff^M
And then quilt gives the output listed above.