BinDeps.jl icon indicating copy to clipboard operation
BinDeps.jl copied to clipboard

Problem with CustomPathBinaries

Open malmaud opened this issue 9 years ago • 2 comments

Haven't tracked down exactly what's going on, but see https://github.com/JuliaWeb/MbedTLS.jl/pull/66 where this error was encountered on Travis:

LoadError: MethodError: no method matching generate_steps(::BinDeps.LibraryDependency, ::BinDeps.CustomPathBinaries, ::Dict{Symbol,Any})
Closest candidates are:
  generate_steps(::BinDeps.LibraryDependency, !Matched::BinDeps.AptGet, ::Any) at /Users/travis/.julia/v0.6/BinDeps/src/dependencies.jl:320
  generate_steps(::BinDeps.LibraryDependency, !Matched::BinDeps.Yum, ::Any) at /Users/travis/.julia/v0.6/BinDeps/src/dependencies.jl:331
  generate_steps(::BinDeps.LibraryDependency, !Matched::BinDeps.Pacman, ::Any) at /Users/travis/.julia/v0.6/BinDeps/src/dependencies.jl:343
  ...
while loading /Users/travis/.julia/v0.6/MbedTLS/deps/build.jl, in expression starting on line 83

malmaud avatar Aug 15 '16 21:08 malmaud

Try adding

function generate_steps(dep::LibraryDependency,h::CustomPathBinaries,opts)
    steps = @build_steps begin
        ChecksumValidator(get(opts,:SHA,get(opts,:sha,"")),h.path)
    end
end

and see if that helps

tkelman avatar Aug 16 '16 14:08 tkelman

Also seeing this here https://github.com/JuliaIO/ImageMagick.jl/issues/68 I tried tkelman's patch to no avail:

ERROR: LoadError: Provider BinDeps.Binaries failed to satisfy dependency libwand
Stacktrace:
 [1] satisfy!(::BinDeps.LibraryDependency, ::Array{DataType,1}) at C:\Users\Mus\.julia\v0.6\BinDeps\src\dependencies.jl:809
 [2] satisfy!(::BinDeps.LibraryDependency) at C:\Users\Mus\.julia\v0.6\BinDeps\src\dependencies.jl:786
 [3] macro expansion at C:\Users\Mus\.julia\v0.6\BinDeps\src\dependencies.jl:841 [inlined]
 [4] anonymous at .\<missing>:?
 [5] include_from_node1(::String) at .\loading.jl:539
 [6] include(::String) at .\sysimg.jl:14
while loading C:\Users\Mus\.julia\v0.6\ImageMagick\deps\build.jl, in expression starting on line 105

This occurs when MAGICK_HOME is an env variable that is a string pointing to a location on the system.

musm avatar Feb 04 '17 22:02 musm