Skip to content

Commit 8e1f7b3

Browse files
committed
Merge branch 'fix-cleanup-deps' into mg/go-upgrade
2 parents e36eac6 + 2aae2c1 commit 8e1f7b3

File tree

4 files changed

+15
-13
lines changed

4 files changed

+15
-13
lines changed

Manifest.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,11 @@ uuid = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f"
2828

2929
[[BinaryBuilderBase]]
3030
deps = ["CodecZlib", "Downloads", "InteractiveUtils", "JSON", "LibGit2", "Libdl", "Logging", "OutputCollectors", "Pkg", "Random", "SHA", "Scratch", "SimpleBufferStream", "TOML", "Tar", "UUIDs", "p7zip_jll", "pigz_jll"]
31-
git-tree-sha1 = "f229af963794c6464ac1e17788faea4729abdb06"
31+
git-tree-sha1 = "19f284061d723e0f4e172f349cdcfca2de065222"
32+
repo-rev = "mg/rootfs"
33+
repo-url = "https://github.com/JuliaPackaging/BinaryBuilderBase.jl.git"
3234
uuid = "7f725544-6523-48cd-82d1-3fa08ff4056e"
33-
version = "0.5.2"
35+
version = "0.6.0"
3436

3537
[[CodecZlib]]
3638
deps = ["TranscodingStreams", "Zlib_jll"]

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ ghr_jll = "07c12ed4-43bc-5495-8a2a-d5838ef8d533"
3333

3434
[compat]
3535
ArgParse = "1.1"
36-
BinaryBuilderBase = "0.5"
36+
BinaryBuilderBase = "0.6"
3737
GitHub = "5.1"
3838
HTTP = "0.8, 0.9"
3939
JLD2 = "0.1.6, 0.2, 0.3, 0.4"

src/AutoBuild.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -812,8 +812,8 @@ function autobuild(dir::AbstractString,
812812
end
813813

814814
# Unsymlink all the deps from the dest_prefix
815-
cleanup_dependencies(prefix, host_artifact_paths)
816-
cleanup_dependencies(prefix, target_artifact_paths)
815+
cleanup_dependencies(prefix, host_artifact_paths, default_host_platform)
816+
cleanup_dependencies(prefix, target_artifact_paths, concrete_platform)
817817

818818
# Search for dead links in dest_prefix; raise warnings about them.
819819
Auditor.warn_deadlinks(dest_prefix.path)

src/wizard/interactive_build.jl

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -406,15 +406,15 @@ function step3_interactive(state::WizardState, prefix::Prefix,
406406
platform::AbstractPlatform,
407407
ur::Runner, build_path::AbstractString, artifact_paths::Vector{String})
408408

409+
concrete_platform = get_concrete_platform(platform, state)
409410
if interactive_build(state, prefix, ur, build_path, platform)
410411
# Unsymlink all the deps from the dest_prefix before moving to the next step
411-
cleanup_dependencies(prefix, artifact_paths)
412+
cleanup_dependencies(prefix, artifact_paths, concrete_platform)
412413
state.step = :step3_retry
413414
else
414-
concrete_platform = get_concrete_platform(platform, state)
415415
step3_audit(state, platform, destdir(prefix, concrete_platform))
416416
# Unsymlink all the deps from the dest_prefix before moving to the next step
417-
cleanup_dependencies(prefix, artifact_paths)
417+
cleanup_dependencies(prefix, artifact_paths, concrete_platform)
418418
return step4(state, ur, platform, build_path, prefix)
419419
end
420420
end
@@ -451,7 +451,7 @@ function step3_retry(state::WizardState)
451451
end
452452
step3_audit(state, platform, destdir(prefix, concrete_platform))
453453
# Unsymlink all the deps from the dest_prefix before moving to the next step
454-
cleanup_dependencies(prefix, artifact_paths)
454+
cleanup_dependencies(prefix, artifact_paths, concrete_platform)
455455

456456
return step4(state, ur, platform, build_path, prefix)
457457
end
@@ -566,7 +566,7 @@ function step5_internal(state::WizardState, platform::AbstractPlatform)
566566
concrete_platform = get_concrete_platform(platform, state)
567567
prefix = setup_workspace(build_path, vcat(state.source_files, state.patches), concrete_platform; verbose=true)
568568
# Clean up artifacts in case there are some
569-
cleanup_dependencies(prefix, get(prefix_artifacts, prefix, String[]))
569+
cleanup_dependencies(prefix, get(prefix_artifacts, prefix, String[]), concrete_platform)
570570
artifact_paths = setup_dependencies(prefix, getpkg.(state.dependencies), concrete_platform; verbose=true)
571571
# Record newly added artifacts for this prefix
572572
prefix_artifacts[prefix] = artifact_paths
@@ -642,7 +642,7 @@ function step5_internal(state::WizardState, platform::AbstractPlatform)
642642
verbose=true,
643643
)
644644
# Clean up artifacts in case there are some
645-
cleanup_dependencies(prefix, get(prefix_artifacts, prefix, String[]))
645+
cleanup_dependencies(prefix, get(prefix_artifacts, prefix, String[]), concrete_platform)
646646
artifact_paths = setup_dependencies(prefix, getpkg.(state.dependencies), platform; verbose=true)
647647
# Record newly added artifacts for this prefix
648648
prefix_artifacts[prefix] = artifact_paths
@@ -698,7 +698,7 @@ function step5_internal(state::WizardState, platform::AbstractPlatform)
698698
end
699699
# Unsymlink all the deps from the prefixes before moving to the next step
700700
for (prefix, paths) in prefix_artifacts
701-
cleanup_dependencies(prefix, paths)
701+
cleanup_dependencies(prefix, paths, get_concrete_platform(platform, state))
702702
end
703703
return ok
704704
end
@@ -810,7 +810,7 @@ function step5c(state::WizardState)
810810
end
811811

812812
# Unsymlink all the deps from the prefix before moving to the next platform
813-
cleanup_dependencies(prefix, artifact_paths)
813+
cleanup_dependencies(prefix, artifact_paths, concrete_platform)
814814

815815
print(state.outs, "[")
816816
if ok

0 commit comments

Comments
 (0)