From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1P4A1Z-0004Mi-UK for garchives@archives.gentoo.org; Fri, 08 Oct 2010 10:18:02 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 96C9CE09AD for ; Fri, 8 Oct 2010 10:18:01 +0000 (UTC) Received: from gw1.transmode.se (gw1.transmode.se [213.115.205.20]) by pigeon.gentoo.org (Postfix) with ESMTP id 0A193E074B for ; Fri, 8 Oct 2010 09:41:57 +0000 (UTC) Received: from sesr04.transmode.se (sesr04.transmode.se [192.168.201.15]) by gw1.transmode.se (Postfix) with ESMTP id 7B5D6650003; Fri, 8 Oct 2010 11:41:56 +0200 (CEST) In-Reply-To: <201010080420.26308.vapier@gentoo.org> References: <201010080420.26308.vapier@gentoo.org> Subject: Re: [gentoo-embedded] crossdev improvements X-KeepSent: 516604AB:7E45413D-C12577B6:00348A06; type=4; name=$KeepSent To: Mike Frysinger Cc: gentoo-embedded@lists.gentoo.org X-Mailer: Lotus Notes Release 8.5.2 August 10, 2010 Message-ID: From: Joakim Tjernlund Date: Fri, 8 Oct 2010 11:37:21 +0200 X-MIMETrack: Serialize by Router on sesr04/Transmode(Release 8.5.2 HF23|September 01, 2010) at 2010-10-08 11:41:56 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-embedded@lists.gentoo.org Reply-to: gentoo-embedded@lists.gentoo.org MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII X-Archives-Salt: 1a2a583c-1a5d-4dcd-9bc0-931efe9ebf74 X-Archives-Hash: b877a49f5a503f3289c6d07ad5617138 Mike Frysinger wrote on 2010/10/08 10:20:22: > > On Friday, October 08, 2010 03:32:55 Joakim Tjernlund wrote: > > Joakim Tjernlund wrote on 2010/10/08 08:37:51: > > > Yeah, I came to the same conclusion. I used qlist and tar instead: > > > TARGET="powerpc-e300c2-linux-gnu" > > > MY_ROOT="/usr/${TARGET}" > > > mkdir -p /tmp/${TARGET} > > > qlist --quiet --all ${TARGET} > /tmp/${TARGET}/cross-tools > > > ROOT=${MY_ROOT} qlist --quiet --all > /tmp/${TARGET}/pkgs > > > #prefix all paths with our target root prefix > > > sed -i s:/:${MY_ROOT}/: /tmp/${TARGET}/pkgs > > > tar czf /tmp/${TARGET}.tgz -T /tmp/${TARGET}/cross-tools \ > > > -T /tmp/${TARGET}/pkgs > > > > > > Would be nice if one could get rid of the sed hack by adding > > > an option to qlist to list the true abs path. > > > > Perhaps a --root=${MY_ROOT} option? > > Use like this: > > qlist --root=${MY_ROOT} --quiet --all > > instead of > > ROOT=${MY_ROOT} qlist --quiet --all > > The difference being --root lists the abs path, including ${MY_ROOT} > > tar has a --transform option Ah, tried it and it doesn't seem to work for me. It appears tar applies the transform after reading the files from the file system :( > > i dont think the behavior you propose is intuitive. better to have a > dedicated option to control this behavior (if we choose to include it) ... OK, perhaps --abspath will do? jocke