<div dir="ltr"><div dir="ltr"><div><br></div><div></div></div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Aug 19, 2020 at 3:59 PM Rob Landley <<a href="mailto:rob@landley.net">rob@landley.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
<br>
On 8/19/20 4:51 PM, enh via Toybox wrote:<br>
> Allow -pd to work by changing -p from an option that takes an<br>
> argument to an option that implies there will be an argument (that<br>
> is, `-pd x` is `-p -d x` with x being the directory for -p, rather<br>
> than `-p d x` with d being the directory, as we previously interpreted<br>
> it).<br>
> <br>
> Fix -d (aka --make-directories) to not be a no-op. Previously we<br>
> acted as if this was always on.<br>
> <br>
> Accept --quiet and effectively just ignore it, since toybox cpio<br>
> doesn't seem to produce any output that --quiet would suppress.<br>
<br>
$ echo yank | cpio out -pd<br>
cpio: You must specify one of -oipt options.<br>
Try `cpio --help' or `cpio --usage' for more information.<br>
It's not position independent, it uses Unix System 6 parsing logic like<br>
"tar cvfC file dir" does. Your fix doesn't make the semantics match, it works<br>
around a specific bug.<br>
<br>
Where's this bug? It's not in the vanilla linux as of yesterday?<br></blockquote><div><br></div><div><div dir="ltr"><div><br></div><a href="https://android.googlesource.com/kernel/common/+/refs/heads/android-mainline/kernel/gen_kheaders.sh#71">https://android.googlesource.com/kernel/common/+/refs/heads/android-mainline/kernel/gen_kheaders.sh#71</a><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr"></div></div></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
$ find . -name 'Makefile*' | xargs grep -w cpio | grep -v cpio- | grep -v '[.]cpio'<br>
./usr/Makefile:# For other cases, generate the initramfs cpio archive based on<br>
the contents<br>
$ grep -rw cpio scripts<br>
scripts/package/mkdebian:Build-Depends: bc, rsync, kmod, cpio, bison, flex |<br>
flex:native $extra_build_depends<br>
<br>
Rob<br>
</blockquote></div></div>