Skip to content

Commit b688ad0

Browse files
Fix architecture of default_host_platform to x86_64 (#222)
* Unlock BinaryBuilder for M1 * Tweak comment * Update src/Runner.jl Co-authored-by: Mosè Giordano <giordano@users.noreply.github.com> * Update src/Runner.jl Co-authored-by: Mosè Giordano <giordano@users.noreply.github.com> * Hostplatform fixes * Fix nonsense * Update test/runners.jl Co-authored-by: Mosè Giordano <giordano@users.noreply.github.com> * Tweak if statement * Only test preferred runner for test platform * Adjust test for mac binary logfiles * Update manifest (pigz now avail for mac m1) * Clean up /proc story * Indentation Co-authored-by: Mosè Giordano <giordano@users.noreply.github.com>
1 parent 1926acf commit b688ad0

File tree

4 files changed

+33
-19
lines changed

4 files changed

+33
-19
lines changed

Manifest.toml

Lines changed: 21 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,16 @@ deps = ["Markdown"]
2828
uuid = "b77e0a4c-d291-57a0-90e8-8db25a27a240"
2929

3030
[[JLLWrappers]]
31-
git-tree-sha1 = "a431f5f2ca3f4feef3bd7a5e94b8b8d4f2f647a0"
31+
deps = ["Preferences"]
32+
git-tree-sha1 = "abc9885a7ca2052a736a600f7fa66209f96506e1"
3233
uuid = "692b3bcd-3c85-4b1f-b108-f13ce0eb3210"
33-
version = "1.2.0"
34+
version = "1.4.1"
3435

3536
[[JSON]]
3637
deps = ["Dates", "Mmap", "Parsers", "Unicode"]
37-
git-tree-sha1 = "81690084b6198a2e1da36fcfda16eeca9f9f24e4"
38+
git-tree-sha1 = "3c837543ddb02250ef42f4738347454f95079d4e"
3839
uuid = "682c06a0-de6a-54ab-a142-c8b1cf79cde6"
39-
version = "0.21.1"
40+
version = "0.21.3"
4041

4142
[[LibCURL]]
4243
deps = ["LibCURL_jll", "MozillaCACerts_jll"]
@@ -82,20 +83,26 @@ uuid = "14a3606d-f60d-562e-9121-12d972cd8159"
8283
uuid = "ca575930-c2e3-43a9-ace4-1e988b2c1908"
8384

8485
[[OutputCollectors]]
85-
git-tree-sha1 = "d86c19b7fa8ad6a4dc8ec2c726642cc6291b2941"
86+
git-tree-sha1 = "5d3f2b3b2e2a9d7d6f1774c78e94530ac7f360cc"
8687
uuid = "6c11c7d4-943b-4e2b-80de-f2cfc2930a8c"
87-
version = "0.1.0"
88+
version = "0.1.1"
8889

8990
[[Parsers]]
9091
deps = ["Dates"]
91-
git-tree-sha1 = "50c9a9ed8c714945e01cd53a21007ed3865ed714"
92+
git-tree-sha1 = "13468f237353112a01b2d6b32f3d0f80219944aa"
9293
uuid = "69de0a69-1ddd-5017-9359-2bf0b02dc9f0"
93-
version = "1.0.15"
94+
version = "2.2.2"
9495

9596
[[Pkg]]
9697
deps = ["Artifacts", "Dates", "Downloads", "LibGit2", "Libdl", "Logging", "Markdown", "Printf", "REPL", "Random", "SHA", "Serialization", "TOML", "Tar", "UUIDs", "p7zip_jll"]
9798
uuid = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
9899

100+
[[Preferences]]
101+
deps = ["TOML"]
102+
git-tree-sha1 = "2cf929d64681236a2e074ffafb8d568733d2e6af"
103+
uuid = "21216c6a-2e73-6563-6e65-726566657250"
104+
version = "1.2.3"
105+
99106
[[Printf]]
100107
deps = ["Unicode"]
101108
uuid = "de0858da-6303-5e67-8744-51eddeeeb8d7"
@@ -113,9 +120,9 @@ uuid = "ea8e919c-243c-51af-8825-aaa63cd721ce"
113120

114121
[[Scratch]]
115122
deps = ["Dates"]
116-
git-tree-sha1 = "ad4b278adb62d185bbcb6864dc24959ab0627bf6"
123+
git-tree-sha1 = "0b4b7f1393cff97c33891da2a0bf69c6ed241fda"
117124
uuid = "6c6a2e73-6563-6170-7368-637461726353"
118-
version = "1.0.3"
125+
version = "1.1.0"
119126

120127
[[Serialization]]
121128
uuid = "9e88b42a-f829-5b0c-bbe9-9e923198166b"
@@ -142,9 +149,9 @@ uuid = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
142149

143150
[[TranscodingStreams]]
144151
deps = ["Random", "Test"]
145-
git-tree-sha1 = "7c53c35547de1c5b9d46a4797cf6d8253807108c"
152+
git-tree-sha1 = "216b95ea110b5972db65aa90f88d8d89dcb8851c"
146153
uuid = "3bb67fe8-82b1-5028-8e26-92a6c54297fa"
147-
version = "0.9.5"
154+
version = "0.9.6"
148155

149156
[[UUIDs]]
150157
deps = ["Random", "SHA"]
@@ -167,6 +174,6 @@ uuid = "3f19e933-33d8-53b3-aaab-bd5110c3b7a0"
167174

168175
[[pigz_jll]]
169176
deps = ["Artifacts", "JLLWrappers", "Libdl", "Pkg", "Zlib_jll"]
170-
git-tree-sha1 = "8c379a72c82099ceb4be53f4f427690376279052"
177+
git-tree-sha1 = "3c0c0b0c133b6ab53e1af05dc526091ce8781f16"
171178
uuid = "1bc43ea1-30af-5bc8-a9d4-c018457e6e3e"
172-
version = "2.5.0+0"
179+
version = "2.7.0+0"

src/Runner.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const AnyRedirectable = Union{Base.AbstractCmd, Base.TTY, IOStream, IOBuffer}
1313
1414
The default host platform in the build environment.
1515
"""
16-
const default_host_platform = Platform(arch(HostPlatform()), "linux"; libc="musl", cxxstring_abi="cxx11")
16+
const default_host_platform = Platform("x86_64", "linux"; libc="musl", cxxstring_abi="cxx11")
1717

1818
function nbits(p::AbstractPlatform)
1919
if arch(p) in ("i686", "armv6l", "armv7l")

test/dependencies.jl

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,13 @@ end
126126
ap = @test_logs setup_dependencies(prefix, getpkg.(dependencies), platform)
127127
@test "libz." * platform_dlext(platform) in readdir(last(libdirs(Prefix(destdir(dir, platform)))))
128128
@test "zlib.h" in readdir(joinpath(destdir(dir, platform), "include"))
129-
@test readdir(joinpath(destdir(dir, platform), "logs")) == ["Zlib.log.gz"]
129+
130+
if os(platform) == "macos"
131+
zlib_log_files = ["Zlib.log.gz", "fix_identity_mismatch_libz.1.2.11.dylib.log.gz", "ldid_libz.1.2.11.dylib.log.gz"]
132+
else
133+
zlib_log_files = ["Zlib.log.gz"]
134+
end
135+
@test readdir(joinpath(destdir(dir, platform), "logs")) == zlib_log_files
130136

131137
# Make sure the directories are emptied by `cleanup_dependencies`
132138
@test_nowarn cleanup_dependencies(prefix, ap, platform)

test/runners.jl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,13 @@ end
3030
# Are we using docker? If so, test that the docker runner works...
3131
@testset "Runner utilities" begin
3232
# Test that is_ecryptfs works for something we're certain isn't encrypted
33-
if isdir("/proc")
33+
34+
if isdir("/proc") && Sys.islinux()
3435
isecfs = (false, "/proc/")
3536
@test_logs (:info, "Checking to see if /proc/ is encrypted...") @test BinaryBuilderBase.is_ecryptfs("/proc"; verbose=true) == isecfs
3637
@test_logs (:info, "Checking to see if /proc/ is encrypted...") @test BinaryBuilderBase.is_ecryptfs("/proc/"; verbose=true) == isecfs
3738
@test_logs (:info, "Checking to see if /proc/not_a_file is encrypted...") @test BinaryBuilderBase.is_ecryptfs("/proc/not_a_file"; verbose=true) == isecfs
38-
else
39+
elseif Sys.islinux()
3940
@test_logs (:info, "Checking to see if /proc/ is encrypted...") @test BinaryBuilderBase.is_ecryptfs("/proc"; verbose=true) == (false, "/proc")
4041
@test_logs (:info, "Checking to see if /proc/ is encrypted...") @test BinaryBuilderBase.is_ecryptfs("/proc/"; verbose=true) == (false, "/proc/")
4142
@test_logs (:info, "Checking to see if /proc/not_a_file is encrypted...") @test BinaryBuilderBase.is_ecryptfs("/proc/not_a_file"; verbose=true) == (false, "/proc/not_a_file")
@@ -101,7 +102,7 @@ end
101102
@testset "Compilation - C++ string ABI" begin
102103
mktempdir() do dir
103104
# Host is x86_64-linux-musl-cxx11 and target is x86_64-linux-musl-cxx03
104-
ur = preferred_runner()(dir; platform=Platform(arch(HostPlatform()), "linux"; libc="musl", cxxstring_abi="cxx03"), preferred_gcc_version=v"5")
105+
ur = preferred_runner()(dir; platform=Platform("x86_64", "linux"; libc="musl", cxxstring_abi="cxx03"), preferred_gcc_version=v"5")
105106
iobuff = IOBuffer()
106107
test_script = raw"""
107108
set -e

0 commit comments

Comments
 (0)