When using dodoc on a directory like this "dodoc dir/*" all files are queued for compression with "ecompress --queue "${dir}/${x##*/}"". If the directory already contains compressed files ecompress tries to compress them anyway. This leads to various problems. If there are bzip2 compressed files and ${PORTAGE_COMPRESS} is also bzip2, bzip2 throws a warning "bzip2: Input file file.bz2 already has .bz2 suffix." If the folder contains gz files they are compressed again with bzip2 and you get bz.gzip2 compressed files. So it would be nice if ecompress only treats uncompressed files.
Created attachment 212844 [details, diff] add decompression support to ecompress (for dodoc) I've added decompression support to ecompress so that if the $PORTAGE_COMPRESS is empty then it automatically decompresses the docs for the user (consistent with ecompressdir behavior).
This is fixed in 2.1.7.14 and 2.2_rc59.