rpm2cpio and rpm2archive happily write binary data to the output
terminal. This happens, for example, when I'm typing a command such as
"rpm2cpio foo.rpm | less" and I make a typo, hitting <Return> instead of
the pipe key. This often results in hilarious (if bewildering) font and
character encoding changes. On some systems, this can even result in
installation of relatively arbitrary rpms!
Nobody has ever meant to do this, and it's easy to prevent, so that's
what this patch does.
This is needed as the new payload format for large files is not compatible with
rpm2cpio which basically just dumps the payload which happened to be cpio.
Use configure parameter --without-archive to not build this tool and get rid of the libarchive requirement.