Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for @LongLink #35

Closed
piranna opened this issue Mar 25, 2015 · 4 comments
Closed

Add support for @LongLink #35

piranna opened this issue Mar 25, 2015 · 4 comments

Comments

@piranna
Copy link
Collaborator

piranna commented Mar 25, 2015

GNU tar use @LongLink to set when the next entry will have a long name. This is used in the GCC and Linux kernel .tar.gz files, so when using tar-stream to de-compress them some files are not extracted and other times there are EACCESS errors.

@piranna
Copy link
Collaborator Author

piranna commented Mar 25, 2015

/home/piranna/Proyectos/NodeOS/node_modules/nodeos-barebones/node_modules/nodeos-cross-toolchain/scripts/preinstall.js:35
  if(error) throw error;
                  ^
Error: EACCES, open '/home/piranna/Proyectos/NodeOS/node_modules/nodeos-barebones/node_modules/nodeos-cross-toolchain/deps/gcc/@LongLink'
    at Error (native)

@piranna
Copy link
Collaborator Author

piranna commented Mar 25, 2015

I've found the same problem is happening when extracting Node.js source code:

#!/usr/bin/env node

var Download = require('download');


// Source versions

const NODEJS_VERSION = "v0.11.14"


// Source URLs

const NODEJS_URL="http://nodejs.org/dist/"+NODEJS_VERSION+"/node-"+NODEJS_VERSION+".tar.gz"


Download({ extract: true, strip: 1 })
.get(NODEJS_URL, 'deps/node')
.run(function(error)
{
  if(error) throw error;

  console.log('Download finished!');
})

download uses internally tar-stream.

@mafintosh
Copy link
Owner

Fixed in 1.1.4 \o/

@piranna
Copy link
Collaborator Author

piranna commented Apr 18, 2015

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants