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

Windows, fails to unpack #190

Closed
SimonDanisch opened this issue Mar 12, 2018 · 5 comments
Closed

Windows, fails to unpack #190

SimonDanisch opened this issue Mar 12, 2018 · 5 comments

Comments

@SimonDanisch
Copy link
Contributor

pkg> add PackageCompiler
┌ Info: Pkg3 is still under development, please file issues at `https://github.com/JuliaLang/Pkg3.jl`.
└ Pkg3 is running without precompile statements, first action will be slow.
[ Info: Resolving package versions
ERROR: Error when installing packages:
failed process: Process(`'C:\Users\sdani\AppData\Local\Julia-0.7.0-DEV\bin\7z.exe' x -si -y -ttar '-oC:\Users\sdani\AppData\Local\Temp\4quPbMZVkekT'`, ProcessExited(2)) [2]
Stacktrace:
 [1] error(::String, ::Base.Process, ::String, ::Int64, ::String) at .\error.jl:42
 [2] pipeline_error at .\process.jl:712 [inlined]
 [3] pipeline_error(::Base.ProcessChain) at .\process.jl:725
 [4] #run#537(::Bool, ::Function, ::Base.OrCmds, ::Tuple{Base.DevNullStream,Base.DevNullStream,Base.DevNullStream}, ::Vararg{Tuple{Base.DevNullStream,Base.DevNullStream,Base.DevNullStream},N} where N) at .\process.jl:670
 [5] run(::Base.OrCmds, ::Tuple{Base.DevNullStream,Base.DevNullStream,Base.DevNullStream}, ::Vararg{Tuple{Base.DevNullStream,Base.DevNullStream,Base.DevNullStream},N} where N) at .\process.jl:668
 [6] install_archive(::Array{String,1}, ::VersionNumber, ::String) at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\site\v0.7\Pkg3\src\Operations.jl:350
 [7] macro expansion at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\site\v0.7\Pkg3\src\Operations.jl:451 [inlined]
 [8] (::getfield(Pkg3.Operations, Symbol("##21#24")){Pkg3.Types.Context,Dict{Base.UUID,Array{String,1}}})() at .\event.jl:92

The file:

grafik

@SimonDanisch
Copy link
Contributor Author

Other packages work, PackageCompiler even after deleting all Pkg3 folders, reproducably fails...

@KristofferC
Copy link
Member

The offending package is indeed "BufferedStreams".

@KristofferC
Copy link
Member

KristofferC commented Mar 12, 2018

So the problem is that 7z on Windows chokes when trying to create the symlink at https://github.com/BioJulia/BufferedStreams.jl/blob/master/docs/src/index.md.

ERROR: Can not create symbolic link : A required privilege is not held by the client. : \BufferedStreams.jl-0.4.0\docs\index.md

We should fall back to LibGit2 if we fail to extract.

cc @bicycle1885

@bicycle1885
Copy link
Member

This pull request may remove the problem: JuliaPackaging/WinRPM.jl#146.

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

3 participants