On Sun, May 13, 2012 at 02:10:13AM +0200, Guillem Jover wrote: > On Sat, 2012-05-12 at 22:47:22 +0100, Roger Leigh wrote: > > On Sat, May 12, 2012 at 03:55:24PM +0200, Guillem Jover wrote: > > > One option would be to make dpkg-deb use an internal tar implementation, > > > and add a file describing the attributes of the to be packaged files. > > > That might make needing root privs (either through fakeroot or sudo) > > > unneeded in most of the cases too. > > > > I found that this functionality is already present in BSD tar, > > according to the manpage. You can provide a file containing > > all the files to pack, plus their ownership and perms etc., > > rather than just specifying the files on the command-line. > > > > ----bsdtar(1)---- > > An input file in mtree(5) format can be used to create an output archive > > with arbitrary ownership, permissions, or names that differ from existing > > data on disk: > [...] > > ----------------- > > Yeah, mtree is actually one of the things I've been having in mind > when considering ways to store file metadata in the dpkg suite. > > > I can't see an equivalent in GNU tar. But BSD tar is available > > in Debian. > > This would imply BSD tar needs to be promoted to the Essential set > alongside GNU tar, at which point I might as well just use an > internal tar implementation.
Won't this only be needed for /packing/ the archive though? Can't any tar implementation still be used for unpacking? Or would dpkg-deb be constrained to a single tar for both operations? Regards, Roger -- .''`. Roger Leigh : :' : Debian GNU/Linux http://people.debian.org/~rleigh/ `. `' schroot and sbuild http://alioth.debian.org/projects/buildd-tools `- GPG Public Key F33D 281D 470A B443 6756 147C 07B3 C8BC 4083 E800 -- To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20120513001735.gp23...@codelibre.net