On 07/30/2011 01:42 PM, Zac Medico wrote: > Hi everyone, > > We've found that portage's unpack behavior is inconsistent for non-tar > files compressed with gz|Z|z|bz2|bz|lzma|xz extensions [1]. Currently, > it emulates tools like gunzip and bunzip2, unpacking them to the > directory of the source file. > > For consistency, we could make it unpack them to cwd instead. PMS > already specifies that the files should unpack to cwd, so this change > will bring portage and PMS into agreement. Hopefully it won't break too > many ebuilds, and we can always add compatibility code to ebuilds, like > this: > > [[ ! -f ${x} ]] && { mv ${x}.gz ./ || die "mv failed"; } > > Is anyone opposed to making this change? > > [1] http://bugs.gentoo.org/show_bug.cgi?id=376741
The PMS compliant unpack behavior is implemented in sys-apps/portage-2.1.10.10. It's unlikely to cause any problems, if any, since the most common practice is to unpack source files that are already in the cwd. There were only 2 packages in all of gentoo-x86 that needed to be fixed because they unpacked files that weren't in the cwd: http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/www-plugins/google-talkplugin/google-talkplugin-2.1.7.0.ebuild?view=log#rev1.3 http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/games-arcade/tuxpuck/tuxpuck-0.8.2-r1.ebuild?view=log#rev1.7 -- Thanks, Zac