diff --git a/Manifest.toml b/Manifest.toml index 33a3fdf81..e9dfeb663 100644 --- a/Manifest.toml +++ b/Manifest.toml @@ -1,8 +1,8 @@ # This file is machine-generated - editing it directly is not advised -julia_version = "1.8.1" +julia_version = "1.8.0" manifest_format = "2.0" -project_hash = "f35810f1518b3c855e1d8ed4f1522241fc6dcb7a" +project_hash = "1e87134dc5853b26c2f65af5a46eb0a2d987da86" [[deps.ArgParse]] deps = ["Logging", "TextWrap"] @@ -33,11 +33,11 @@ uuid = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f" [[deps.BinaryBuilderBase]] deps = ["CodecZlib", "Downloads", "InteractiveUtils", "JSON", "LibGit2", "LibGit2_jll", "Libdl", "Logging", "OrderedCollections", "OutputCollectors", "Pkg", "ProgressMeter", "Random", "SHA", "Scratch", "SimpleBufferStream", "TOML", "Tar", "UUIDs", "p7zip_jll", "pigz_jll"] -git-tree-sha1 = "9b1c2e9866fdf353f925693d69aa440dec5b4c60" +git-tree-sha1 = "29d27e44a3eb75a8487e08e7e26cf3873f1759db" repo-rev = "master" repo-url = "https://github.com/JuliaPackaging/BinaryBuilderBase.jl.git" uuid = "7f725544-6523-48cd-82d1-3fa08ff4056e" -version = "1.15.0" +version = "1.17.0" [[deps.CodecZlib]] deps = ["TranscodingStreams", "Zlib_jll"] diff --git a/Project.toml b/Project.toml index 7142747ef..47dea88fa 100644 --- a/Project.toml +++ b/Project.toml @@ -33,7 +33,7 @@ ghr_jll = "07c12ed4-43bc-5495-8a2a-d5838ef8d533" [compat] ArgParse = "1.1" -BinaryBuilderBase = "1.15" +BinaryBuilderBase = "1.17" GitHub = "5.1" HTTP = "0.8, 0.9, 1" JLD2 = "0.1.6, 0.2, 0.3, 0.4" diff --git a/src/AutoBuild.jl b/src/AutoBuild.jl index 7f4e78ff0..fde7e2cf7 100644 --- a/src/AutoBuild.jl +++ b/src/AutoBuild.jl @@ -1265,7 +1265,9 @@ function build_jll_package(src_name::String, """) end for dep in filter_platforms(dependencies, platform) - println(io, "using $(getname(dep))") + if !is_top_level_dependency(dep) + println(io, "using $(getname(dep))") + end end # Generate header definitions like `find_artifact_dir()` @@ -1388,6 +1390,12 @@ function build_jll_package(src_name::String, println(io, "using LazyArtifacts") end + for dep in dependencies + if is_top_level_dependency(dep) + println(io, "using $(getname(dep))") + end + end + if !isempty(augment_platform_block) print(io, """ Base.include(@__MODULE__, joinpath("..", ".pkg", "platform_augmentation.jl")) diff --git a/test/jll.jl b/test/jll.jl index cd24b90c9..e0ec070eb 100644 --- a/test/jll.jl +++ b/test/jll.jl @@ -48,7 +48,10 @@ end freebsd = Platform("x86_64", "freebsd") platforms = [platform, freebsd] # We depend on Zlib_jll only on the host platform, but not on FreeBSD - dependencies = [Dependency("Zlib_jll"; platforms=[platform])] + dependencies = [ + Dependency("Zlib_jll"; platforms=[platform]), + Dependency("Preferences"; top_level=true) + ] # Augment platform augment_platform_block = """ using Base.BinaryPlatforms @@ -176,8 +179,12 @@ end # platform and not the FreeBSD one. platform_wrapper = joinpath(code_dir, "src", "wrappers", triplet(platform) * ".jl") freebsd_wrapper = joinpath(code_dir, "src", "wrappers", triplet(freebsd) * ".jl") + main_src = joinpath(code_dir, "src", name * "_jll.jl") @test contains(readchomp(platform_wrapper), "using Zlib_jll") @test !contains(readchomp(freebsd_wrapper), "using Zlib_jll") + @test !contains(readchomp(platform_wrapper), "using Preferences") + @test !contains(readchomp(freebsd_wrapper), "using Preferences") + @test contains(readchomp(main_src), "using Preferences") # Load JLL package and run some actual code from it. @eval TestJLL using libfoo_jll @test 6.08 ≈ @eval TestJLL ccall((:foo, libfoo), Cdouble, (Cdouble, Cdouble), 2.3, 4.5)