1 |
On Mon, Aug 04, 2003 at 03:52:58PM -0400, Mike Frysinger wrote: |
2 |
Content-Description: signed data |
3 |
> On Monday 04 August 2003 10:34, splite-gentoo@××××××××××××××××.edu wrote: |
4 |
> |
5 |
> > Why not: |
6 |
> > |
7 |
> > notok=spawn("tar xpjf "+mytbz2,free=1) |
8 |
> |
9 |
> that assumes that tar supports bzip2 ... anyone who has used bsd/older *nixs |
10 |
> will tell you, dont plan on it :) |
11 |
|
12 |
Non-GNU tars don't support the "-z", "--files-from", "--no-recursion", |
13 |
"--exclude", or "--no-same-owner" flags either. emerge-webrsync and |
14 |
quickpkg already use the "-j" flag. |
15 |
|
16 |
# fgrep -r 'tar ' /usr/portage/eclass /usr/lib/portage |
17 |
/usr/portage/eclass/eutils.eclass: # to tar which will make tar not extract anything and exit with 0 |
18 |
/usr/portage/eclass/eutils.eclass: local out="`(tail +${skip} ${src} | gzip -cd | tar -x --no-same-owner -f -) 2>&1`" |
19 |
/usr/portage/eclass/eutils.eclass: tail +${skip} ${src} | tar -x --no-same-owner -f - \ |
20 |
/usr/portage/eclass/rpm.eclass:# 2. if it is a source rpm, it finds all .tar .tar.gz, .tgz, .tbz2, .tar.bz2, |
21 |
/usr/portage/eclass/rpm.eclass:# output tar again but directly extracts to ${WORKDIR} |
22 |
/usr/portage/eclass/selinux-policy.eclass: tar -C /etc/security/selinux/src --exclude policy.12 --exclude tmp \ |
23 |
/usr/lib/portage/bin/ebuild.sh: tar ${tarvars} -xf ${DISTDIR}/${x} || die "$myfail" |
24 |
/usr/lib/portage/bin/ebuild.sh: tar ${tarvars} -xzf ${DISTDIR}/${x} || die "$myfail" |
25 |
/usr/lib/portage/bin/ebuild.sh: bzip2 -dc ${DISTDIR}/${x} | tar ${tarvars} -xf - || die "$myfail" |
26 |
/usr/lib/portage/bin/ebuild.sh: tar ${tarvars} -xzf ${DISTDIR}/${x} || die "$myfail" |
27 |
/usr/lib/portage/bin/ebuild.sh: bzip2 -dc ${DISTDIR}/${x} | tar ${tarvars} -xf - || die "$myfail" |
28 |
/usr/lib/portage/bin/ebuild.sh: tar cpvf - * | bzip2 -f > ../bin.tar.bz2 || die "Failed to create tarball" |
29 |
/usr/lib/portage/bin/ebuild.sh: tar czf /usr/src/redhat/SOURCES/${PF}.tar.gz ${O}/${PF}.ebuild ${O}/files || die "Failed to create base rpm tarball." |
30 |
/usr/lib/portage/bin/emerge-webrsync: tar jxf $file |
31 |
/usr/lib/portage/bin/quickpkg: tar cjvf ${MYDIR}/bin.tar.bz2 --files-from=${MYDIR}/filelist --no-recursion |
32 |
|
33 |
-- |
34 |
gentoo-dev@g.o mailing list |