{"thread":{"id":"1909","subject":"cg-export incompatible with older versions of GNU tar","startedAt":"2005-09-22T11:23:31Z","lastAt":"2005-09-22T19:13:26Z","messageCount":4,"participants":["Wolfgang Denk","Petr Baudis","Rene Scharfe"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"9101","messageId":"20050922112331.75971353A0B@atlas.denx.de","threadId":"1909","inReplyTo":null,"subject":"cg-export incompatible with older versions of GNU tar","fromName":"Wolfgang Denk","fromEmail":"wd@denx.de","sentAt":"2005-09-22T11:23:31Z","receivedAt":"2005-09-22T11:23:31Z","isPatch":false,"sender":{"key":"wd@denx.de","avatar":null},"body":"Minor compatibility issue:\n\nThe archives created by the \"cg-export\" command contain entries  that\ncause problems with older versions of GNU tar:\n\n-> cg-export /tmp/foo.tar.bz2\n-> tar jtvf /tmp/foo.tar.bz2\n?rw------- git/git          52 1970-01-01 01:00:00 pax_global_header unknown file type `g'\ndrwxr-xr-x git/git           0 2005-09-22 09:46:19 foo/\n-rw-r--r-- git/git      134225 2005-09-22 09:46:19 foo/CHANGELOG\n-rw-r--r-- git/git       15701 2005-09-22 09:46:19 foo/COPYING\n-rw-r--r-- git/git        9960 2005-09-22 09:46:19 foo/CREDITS\n-rw-r--r-- git/git        9578 2005-09-22 09:46:19 foo/MAINTAINERS\n...\n-> tar jxf foo.tar.bz2 \ntar: pax_global_header: Unknown file type 'g', extracted as normal file\n...\n-> tar --version\ntar (GNU tar) 1.13.25\n...\n-> rpm -q git-core cogito\ngit-core-0.99.7-1\ncogito-0.15-1\n\n\nBest regards,\n\nWolfgang Denk\n\n-- \nSoftware Engineering:  Embedded and Realtime Systems,  Embedded Linux\nPhone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de\nMan is the best computer we can put aboard a spacecraft ...  and  the\nonly one that can be mass produced with unskilled labor.\n                                                 -- Wernher von Braun\n"},{"id":"9104","messageId":"20050922120841.GH21019@pasky.or.cz","threadId":"1909","inReplyTo":"20050922112331.75971353A0B@atlas.denx.de","subject":"Re: cg-export incompatible with older versions of GNU tar","fromName":"Petr Baudis","fromEmail":"pasky@suse.cz","sentAt":"2005-09-22T12:08:41Z","receivedAt":"2005-09-22T12:08:41Z","isPatch":false,"sender":{"key":"pasky@ucw.cz","avatar":"https://avatars.githubusercontent.com/u/18439?v=4"},"body":"Dear diary, on Thu, Sep 22, 2005 at 01:23:31PM CEST, I got a letter\nwhere Wolfgang Denk <wd@denx.de> told me that...\n> Minor compatibility issue:\n> \n> The archives created by the \"cg-export\" command contain entries  that\n> cause problems with older versions of GNU tar:\n> \n> -> cg-export /tmp/foo.tar.bz2\n> -> tar jtvf /tmp/foo.tar.bz2\n> ?rw------- git/git          52 1970-01-01 01:00:00 pax_global_header unknown file type `g'\n> drwxr-xr-x git/git           0 2005-09-22 09:46:19 foo/\n> -rw-r--r-- git/git      134225 2005-09-22 09:46:19 foo/CHANGELOG\n> -rw-r--r-- git/git       15701 2005-09-22 09:46:19 foo/COPYING\n> -rw-r--r-- git/git        9960 2005-09-22 09:46:19 foo/CREDITS\n> -rw-r--r-- git/git        9578 2005-09-22 09:46:19 foo/MAINTAINERS\n> ...\n> -> tar jxf foo.tar.bz2 \n> tar: pax_global_header: Unknown file type 'g', extracted as normal file\n> ...\n> -> tar --version\n> tar (GNU tar) 1.13.25\n> ...\n> -> rpm -q git-core cogito\n> git-core-0.99.7-1\n> cogito-0.15-1\n\nThis would be a problem with Core GIT's git-tar-tree. The pax headers\nseem nice to have, though.\n\nIt is unclear if the tar actually extracts the archive or not, though.\nDoes it just complain with those warnings, or are they fatal errors?\n\n-- \n\t\t\t\tPetr \"Pasky\" Baudis\nStuff: http://pasky.or.cz/\nVI has two modes: the one in which it beeps and the one in which\nit doesn't.\n"},{"id":"9108","messageId":"20050922124338.246D535267B@atlas.denx.de","threadId":"1909","inReplyTo":"20050922120841.GH21019@pasky.or.cz","subject":"Re: cg-export incompatible with older versions of GNU tar","fromName":"Wolfgang Denk","fromEmail":"wd@denx.de","sentAt":"2005-09-22T12:43:38Z","receivedAt":"2005-09-22T12:43:38Z","isPatch":false,"sender":{"key":"wd@denx.de","avatar":null},"body":"In message <20050922120841.GH21019@pasky.or.cz> you wrote:\n>\n> > -> tar jxf foo.tar.bz2 \n> > tar: pax_global_header: Unknown file type 'g', extracted as normal file\n> > ...\n\n> It is unclear if the tar actually extracts the archive or not, though.\n> Does it just complain with those warnings, or are they fatal errors?\n\nIn this case extraction went fine, except for the warning message.\n\nI had other error reports from customers befroe, where unpacking  the\ntarballs failed - instead of the origianl source tree just a bunch of\n*.data  and  *.paxheader  were created; error messages in these cases\nlooked like this:\n\ntar: pax_global_header: Unknown file type 'g', extracted as normal file\ntar: ea1efd7f213469bcde030e00ac9f89ed16256869.paxheader: Unknown file type 'x', extracted as normal file\ntar: a9cb6572db37b1260205ff3b931a8a29f8d5d0fd.paxheader: Unknown file type 'x', extracted as normal file\ntar: 7cf505b98f5bceacbe4d4e5aca0c76beade1ba58.paxheader: Unknown file type 'x', extracted as normal file\ntar: 01a2ae2195da20744b04d31a4cf701bc1ac43be0.paxheader: Unknown file type 'x', extracted as normal file\ntar: d1cfe8f0c1806741d1723666db431331cb4ac74b.paxheader: Unknown file type 'x', extracted as normal file\ntar: 6f78ecf8a87f103864dea6bdfa9b767bc606a96c.paxheader: Unknown file type 'x', extracted as normal file\ntar: f6e986640b35d634574d14126402e09ef912d6f4.paxheader: Unknown file type 'x', extracted as normal file\ntar: 5064e2fad29381384227a47404b1b9ef1dbf18cb.paxheader: Unknown file type 'x', extracted as normal file\ntar: 29264b9d7d344b3908c8ebfea2d88b1319f18603.paxheader: Unknown file type 'x', extracted as normal file\n...\n\n\n[But this was with older versions of git / cogito, so I'm not sure if\nthis still applies.]\n\nBest regards,\n\nWolfgang Denk\n\n-- \nSoftware Engineering:  Embedded and Realtime Systems,  Embedded Linux\nPhone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de\nI think animal testing is a terrible idea; they get all  nervous  and\ngive the wrong answers.\n"},{"id":"9132","messageId":"43330256.7000505@lsrfire.ath.cx","threadId":"1909","inReplyTo":"20050922124338.246D535267B@atlas.denx.de","subject":"Re: cg-export incompatible with older versions of GNU tar","fromName":"Rene Scharfe","fromEmail":"rene.scharfe@lsrfire.ath.cx","sentAt":"2005-09-22T19:13:26Z","receivedAt":"2005-09-22T19:13:26Z","isPatch":false,"sender":{"key":"l.s.r@web.de","avatar":"https://avatars.githubusercontent.com/u/26122331?v=4"},"body":"Wolfgang Denk wrote:\n> In message <20050922120841.GH21019@pasky.or.cz> you wrote:\n> \n>>>-> tar jxf foo.tar.bz2 \n>>>tar: pax_global_header: Unknown file type 'g', extracted as normal file\n>>>...\n> \n> \n>>It is unclear if the tar actually extracts the archive or not, though.\n>>Does it just complain with those warnings, or are they fatal errors?\n> \n> \n> In this case extraction went fine, except for the warning message.\n\nAnd you get an extra file, pax_global_header, containing the commit ID\nof the archive's contents.\n\n> I had other error reports from customers befroe, where unpacking  the\n> tarballs failed - instead of the origianl source tree just a bunch of\n> *.data  and  *.paxheader  were created; error messages in these cases\n> looked like this:\n> \n> tar: pax_global_header: Unknown file type 'g', extracted as normal file\n> tar: ea1efd7f213469bcde030e00ac9f89ed16256869.paxheader: Unknown file type 'x', extracted as normal file\n\n[snip]\n\nThis happens when you have pathes inside the tar file that are longer\nthan 100 characters.  Is this taken from a real-world project or is it\njust some test?\n\nAll your files with pathes longer than 100 chars will be extracted as\n<SHA1>.data, with an accompanying <SHA1>.paxheader file.  The latter\ncontains the real filename.  You could then repair the mess by renaming\nthem manually or write a script that does it for you.  Or you could\nsimply update tar. :-)\n\nLately I noticed that the tar version used by the BSDs also doesn't\nunderstand Pax extended headers.  I guess they're not that popular a\nfeature.\n\n> [But this was with older versions of git / cogito, so I'm not sure if\n> this still applies.]\n\nNothing has changed in this respect, basicly since git-tar-tree went in.\n\nRené\n"}]}