-
Notifications
You must be signed in to change notification settings - Fork 838
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
tar with symbolic links #9
Comments
The error messages are different. In my case, Here is the reverse operation output. ( extracting symlinks-containing tar whilch is built on real Linux )
|
I can echo this: I tried to install rvm from get.rvm.io and the script crashes and burns because of the tar symlink incompatibility. |
I also can confirm this. (Running on 64-bit, on the off chance that matters). Can create symlinks just fine, cannot tar them or untar packages which contain them. As an interesting consequence, apt packages which contain symlinks (Java) also cannot be installed. |
I was trying to copy files from a real linux box using tar. Also running into the symlink issue. As a workaround I was able to copy the files using bsdtar which creates symlinks correctly. |
This is affecting http://nvm.sh installs via windows as well. nvm-sh/nvm#1054 |
This might relate to is #44 as well...for me anyway, the move won't work on tarballs/zips from CPAN which contain soft links. |
+1. |
As @ljharb said: nvm doesn't install properly. And none of the tools that uses symlinks with tar works right now. |
To clarify, this is affecting |
because of this error i am not able to install rbenv |
The tar extraction problem with symlinks is caused by the missing symlinkat syscall (symlink was supported but not the at variant). This bug has been fixed internally. Similarly, I believe creating a tar file with symlinks fails because readlinkat is missing. |
Just as a note if someone else stumbles upon this: this also affects installation of Miniconda using Continuum Analytics Miniconda installation shell script that extracts a tar archive containing symlinks. You get errors like this:
|
Having the same trouble installing RVM. I can download the zip version and install manually, but I get a warning at the end of the install:
/proc/self/fd does exist, but following those instructions gives me:
This is a different error. I make a note here wondering if the (internal) fix would address this, or if we're into some unsupported behavior in the /proc filesystem now. I got RVM installed manually, but, of course, it wants to install rubies from tar-ed sources, which loops me back around to the original problem, and I'm tired of fighting it. |
DunKirk, that error is due to some limitations of our /dev filesystem that prevent you from creating a link there. We're working to address this. This is separate from the symlinkat error. |
@SvenGroot thank you much! |
I have an example where openat() on a symlink returns no such file or directory despite the symlink existing but not the target. Does the symlinkat fix also apply here?
Example: https://github.com/haiku/haiku/blob/master/src/bin/package/command_extract.cpp#L552 |
Thanks for the feedback. Support for both symlinkat and readlinkat has been added to the code, but the build has not made it to flighting yet. |
Is there some kind of workaround for this? |
@sunilmut - any idea about when the new build will be released? Is there a release plan hidden somewhere? 😉 |
@perlun - Sorry, that information is not something we can provide reliably at this time. Though, we understand the need for better tracking and availability of information, and are looking into how we can improve that on our side. So, please bear with us until then. |
its fixed in the new build? |
This doesn't appear to be completely fixed or has been reverted. I am running build 14342.rs1_release.160506-1708. This can be tested in the following way: JUPITER: |
Good detection! This thread is for the combination of symlink and 'tar', not for all things related to symlink or tar. |
@therevmj @tinysun212 I tried this repro internally and verified that this is now working. The fix will be making its way to a windows insider build soon. |
Sorry to be a bit OT, but how do you push your insider machine to download the latest build? Mine is still running the "original" 160402 (or so) release, meaning I don't have the symlink fixes etc... |
@hfaran - thanks. The problem is I am already on the fast ring, but the updates don't seem to be coming. And I cannot find a way to manually force them to come. Any suggestions? |
I could create a symbolic links by
ln -s
.But I can't archive with the
tar
.In reverse, the symbolic links in a
tar
file which built on Linux can't be extracted.The text was updated successfully, but these errors were encountered: