From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12154 invoked by uid 1002); 4 Aug 2003 20:28:57 -0000 Mailing-List: contact gentoo-dev-help@gentoo.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Received: (qmail 27423 invoked from network); 4 Aug 2003 20:28:57 -0000 Date: Mon, 4 Aug 2003 15:28:56 -0500 From: splite-gentoo@sigint.cs.purdue.edu To: gentoo-dev@gentoo.org Message-ID: <20030804152856.B20555@sigint.cs.purdue.edu> References: <20030804160301.713ebda7.jani@iv.ro> <20030804153228.7f0ca3d5.genone@genone.homeip.net> <20030804093401.A20555@sigint.cs.purdue.edu> <200308041552.59383.vapier@gentoo.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200308041552.59383.vapier@gentoo.org>; from vapier@gentoo.org on Mon, Aug 04, 2003 at 03:52:58PM -0400 X-Disclaimer: Any similarity to an opinion of Purdue is purely coincidental Subject: Re: [gentoo-dev] emerge harmless buglet? X-Archives-Salt: 0ab50b32-9c6a-4076-9962-80d7ce45e078 X-Archives-Hash: 2da39bcbbadfd9df915263c9793a2dc9 On Mon, Aug 04, 2003 at 03:52:58PM -0400, Mike Frysinger wrote: Content-Description: signed data > On Monday 04 August 2003 10:34, splite-gentoo@sigint.cs.purdue.edu wrote: > > > Why not: > > > > notok=spawn("tar xpjf "+mytbz2,free=1) > > that assumes that tar supports bzip2 ... anyone who has used bsd/older *nixs > will tell you, dont plan on it :) Non-GNU tars don't support the "-z", "--files-from", "--no-recursion", "--exclude", or "--no-same-owner" flags either. emerge-webrsync and quickpkg already use the "-j" flag. # fgrep -r 'tar ' /usr/portage/eclass /usr/lib/portage /usr/portage/eclass/eutils.eclass: # to tar which will make tar not extract anything and exit with 0 /usr/portage/eclass/eutils.eclass: local out="`(tail +${skip} ${src} | gzip -cd | tar -x --no-same-owner -f -) 2>&1`" /usr/portage/eclass/eutils.eclass: tail +${skip} ${src} | tar -x --no-same-owner -f - \ /usr/portage/eclass/rpm.eclass:# 2. if it is a source rpm, it finds all .tar .tar.gz, .tgz, .tbz2, .tar.bz2, /usr/portage/eclass/rpm.eclass:# output tar again but directly extracts to ${WORKDIR} /usr/portage/eclass/selinux-policy.eclass: tar -C /etc/security/selinux/src --exclude policy.12 --exclude tmp \ /usr/lib/portage/bin/ebuild.sh: tar ${tarvars} -xf ${DISTDIR}/${x} || die "$myfail" /usr/lib/portage/bin/ebuild.sh: tar ${tarvars} -xzf ${DISTDIR}/${x} || die "$myfail" /usr/lib/portage/bin/ebuild.sh: bzip2 -dc ${DISTDIR}/${x} | tar ${tarvars} -xf - || die "$myfail" /usr/lib/portage/bin/ebuild.sh: tar ${tarvars} -xzf ${DISTDIR}/${x} || die "$myfail" /usr/lib/portage/bin/ebuild.sh: bzip2 -dc ${DISTDIR}/${x} | tar ${tarvars} -xf - || die "$myfail" /usr/lib/portage/bin/ebuild.sh: tar cpvf - * | bzip2 -f > ../bin.tar.bz2 || die "Failed to create tarball" /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." /usr/lib/portage/bin/emerge-webrsync: tar jxf $file /usr/lib/portage/bin/quickpkg: tar cjvf ${MYDIR}/bin.tar.bz2 --files-from=${MYDIR}/filelist --no-recursion -- gentoo-dev@gentoo.org mailing list