Gentoo Archives: gentoo-dev

From: Zac Medico <zmedico@g.o>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] RFC: Changing portage's unpack behavior for non-tar files compressed with gz|Z|z|bz2|bz|lzma|xz extensions
Date: Sat, 30 Jul 2011 20:43:21
Message-Id: 4E346CB4.8050106@gentoo.org
1 Hi everyone,
2
3 We've found that portage's unpack behavior is inconsistent for non-tar
4 files compressed with gz|Z|z|bz2|bz|lzma|xz extensions [1]. Currently,
5 it emulates tools like gunzip and bunzip2, unpacking them to the
6 directory of the source file.
7
8 For consistency, we could make it unpack them to cwd instead. PMS
9 already specifies that the files should unpack to cwd, so this change
10 will bring portage and PMS into agreement. Hopefully it won't break too
11 many ebuilds, and we can always add compatibility code to ebuilds, like
12 this:
13
14 [[ ! -f ${x} ]] && { mv ${x}.gz ./ || die "mv failed"; }
15
16 Is anyone opposed to making this change?
17
18 [1] http://bugs.gentoo.org/show_bug.cgi?id=376741
19 --
20 Thanks,
21 Zac

Replies