Thanks for the reply. There is a bug open in the LSB bugzilla to drop
the pax requirement (http://bugs.linuxbase.org/show_bug.cgi?id=2785),
and I've spent some time looking at the tests to see where they fall
down using tar/cpio, and I've found that for the most part they can be
readily adapted.

The problem is, POSIX has deprecated tar/cpio in favor of pax. Yes, I
know few people in Linux use it, and we'll have to figure out what to do
about it.

Took a look at the debian pax build, and the patch looks pretty
straightforward and seems to do the right thing in testing here. I
lifted this directly from:

ftp://ftp.suse.com/pub/people/kukuk/pax/

Which looks to have the same roots as your build.

--- pax-20090728/tar.c.bug-609825       2011-01-20 11:38:36.000000000 -0500
+++ pax-20090728/tar.c  2011-01-20 11:38:45.000000000 -0500
@@ -1080,6 +1080,15 @@ ustar_wr(ARCHD *arcn)
        strncpy(hd->gname, name_gid(arcn->sb.st_gid, 0), sizeof(hd->gname));
 
        /*
+        * Always add devmajor and devminor
+        */
+       if (ul_oct ((u_long) MAJOR (arcn->sb.st_rdev), hd->devmajor,
+             sizeof (hd->devmajor), 3) ||
+           ul_oct ((u_long) MINOR (arcn->sb.st_rdev), hd->devminor,
+             sizeof (hd->devminor), 3))
+               goto out;
+
+       /*
         * calculate and store the checksum write the header to the archive
         * return 0 tells the caller to now write the file data, 1 says no data
         * needs to be written

Reply via email to