Skip to content

Commit 885e8aa

Browse files
committed
OpenSSL_jll build 1.1.1+2
1 parent dbd7ac6 commit 885e8aa

17 files changed

+564
-549
lines changed

Artifacts.toml

Lines changed: 58 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -1,113 +1,113 @@
11
[[OpenSSL]]
2-
arch = "i686"
3-
git-tree-sha1 = "9063054c6c3b12d2fffe50f67cb7eda97b0814e2"
4-
libc = "glibc"
2+
arch = "aarch64"
3+
git-tree-sha1 = "dc86b3ebea075bf86c883c68070612b7b03b6fef"
4+
libc = "musl"
55
os = "linux"
66

77
[[OpenSSL.download]]
8-
sha256 = "89ad5443976496d97a8da843fa98899e472e0d3869da46689fdefc631b65ef4b"
9-
url = "https://github.com/JuliaBinaryWrappers/OpenSSL_jll.jl/releases/download/OpenSSL-v1.1.1+1/OpenSSL.v1.1.1.i686-linux-gnu.tar.gz"
8+
sha256 = "385eedaafd409abf4114ee0b33c70a89145695984282c20ca7c4cede3ed62260"
9+
url = "https://github.com/JuliaBinaryWrappers/OpenSSL_jll.jl/releases/download/OpenSSL-v1.1.1+2/OpenSSL.v1.1.1.aarch64-linux-musl.tar.gz"
1010
[[OpenSSL]]
1111
arch = "i686"
12-
git-tree-sha1 = "9aed576a2acde95dd53e41977bd5f380c6b7fa91"
13-
libc = "musl"
14-
os = "linux"
12+
git-tree-sha1 = "d8b0248ce602cc09242f64c056d1e3da23f804bd"
13+
os = "windows"
1514

1615
[[OpenSSL.download]]
17-
sha256 = "f2b6fce059998d3e4e3973bdc787c6ad2eb009c394318656c520e81f41bb5de5"
18-
url = "https://github.com/JuliaBinaryWrappers/OpenSSL_jll.jl/releases/download/OpenSSL-v1.1.1+1/OpenSSL.v1.1.1.i686-linux-musl.tar.gz"
16+
sha256 = "3c942cd0a69ab5a4cef72042d2ba1562b92ceb58112a1d62ae8d324ff603da52"
17+
url = "https://github.com/JuliaBinaryWrappers/OpenSSL_jll.jl/releases/download/OpenSSL-v1.1.1+2/OpenSSL.v1.1.1.i686-w64-mingw32.tar.gz"
1918
[[OpenSSL]]
2019
arch = "x86_64"
21-
git-tree-sha1 = "608eb06b5b9f078b0755ef97b8a5d07f6f4f57e5"
22-
os = "macos"
20+
git-tree-sha1 = "0a8349feaf2ab0d12fb9377cb17da46fd73076cb"
21+
libc = "musl"
22+
os = "linux"
2323

2424
[[OpenSSL.download]]
25-
sha256 = "6ff1942636fcfc62bbfe30ea230a87705a90d955d15d3b9cb2dc341185203130"
26-
url = "https://github.com/JuliaBinaryWrappers/OpenSSL_jll.jl/releases/download/OpenSSL-v1.1.1+1/OpenSSL.v1.1.1.x86_64-apple-darwin14.tar.gz"
25+
sha256 = "5c40cef594c4126885e5409fcb5c18a354dd437d86c77f6be631ac704958e254"
26+
url = "https://github.com/JuliaBinaryWrappers/OpenSSL_jll.jl/releases/download/OpenSSL-v1.1.1+2/OpenSSL.v1.1.1.x86_64-linux-musl.tar.gz"
2727
[[OpenSSL]]
28-
arch = "powerpc64le"
29-
git-tree-sha1 = "0184886d519e2e0c6556194279ed8a3b657fb105"
28+
arch = "i686"
29+
git-tree-sha1 = "b904445e13171c668363796eee2c507614afc72f"
3030
libc = "glibc"
3131
os = "linux"
3232

3333
[[OpenSSL.download]]
34-
sha256 = "09615dabe990ceaf830bd278ec9eaef25b22a841b91df011ecf34309df04f52f"
35-
url = "https://github.com/JuliaBinaryWrappers/OpenSSL_jll.jl/releases/download/OpenSSL-v1.1.1+1/OpenSSL.v1.1.1.powerpc64le-linux-gnu.tar.gz"
34+
sha256 = "844a452a6a5dea681bb60dde94c67a880ae96aec97bbc5e111310a5be5bdbf89"
35+
url = "https://github.com/JuliaBinaryWrappers/OpenSSL_jll.jl/releases/download/OpenSSL-v1.1.1+2/OpenSSL.v1.1.1.i686-linux-gnu.tar.gz"
3636
[[OpenSSL]]
37-
arch = "aarch64"
38-
git-tree-sha1 = "37e136aa7d2b7304c7a7f2cc4b5ec7f9aa773471"
37+
arch = "armv7l"
38+
git-tree-sha1 = "82c502e684bf79297faf4d265b27c72e18d8ce63"
3939
libc = "glibc"
4040
os = "linux"
4141

4242
[[OpenSSL.download]]
43-
sha256 = "3f23289e31c55d39c3416f71857471c2013b864c1975cc91b91d1410757d4628"
44-
url = "https://github.com/JuliaBinaryWrappers/OpenSSL_jll.jl/releases/download/OpenSSL-v1.1.1+1/OpenSSL.v1.1.1.aarch64-linux-gnu.tar.gz"
43+
sha256 = "00e1413c4d5f022b20d8824eeb6e1d50b90cc938a2c5e179de64f815b2980e66"
44+
url = "https://github.com/JuliaBinaryWrappers/OpenSSL_jll.jl/releases/download/OpenSSL-v1.1.1+2/OpenSSL.v1.1.1.armv7l-linux-gnueabihf.tar.gz"
4545
[[OpenSSL]]
46-
arch = "x86_64"
47-
git-tree-sha1 = "7bc35a65a6842cd942b6abb4c270fce7055bc995"
48-
libc = "musl"
46+
arch = "aarch64"
47+
git-tree-sha1 = "4beb36769748433902c7fa31c6580888fa22f462"
48+
libc = "glibc"
4949
os = "linux"
5050

5151
[[OpenSSL.download]]
52-
sha256 = "9da3b5ee287cfcd01bb98712cd5d0424a04d5e0557e50ca7dafda3e8a776be11"
53-
url = "https://github.com/JuliaBinaryWrappers/OpenSSL_jll.jl/releases/download/OpenSSL-v1.1.1+1/OpenSSL.v1.1.1.x86_64-linux-musl.tar.gz"
52+
sha256 = "deae2e855536f8ca336870450c555335db94647e93d7150134269ee234b2f004"
53+
url = "https://github.com/JuliaBinaryWrappers/OpenSSL_jll.jl/releases/download/OpenSSL-v1.1.1+2/OpenSSL.v1.1.1.aarch64-linux-gnu.tar.gz"
5454
[[OpenSSL]]
55-
arch = "aarch64"
56-
git-tree-sha1 = "40e99784a544adae578cf9ffbfa97b201ca9b1fd"
57-
libc = "musl"
55+
arch = "x86_64"
56+
git-tree-sha1 = "e6e5f41352118bbeb44677765ebccab8c151c72a"
57+
libc = "glibc"
5858
os = "linux"
5959

6060
[[OpenSSL.download]]
61-
sha256 = "8086c7218c7a10e533033aa40732f29a6baa2c48d25d6fc1588731c055de725b"
62-
url = "https://github.com/JuliaBinaryWrappers/OpenSSL_jll.jl/releases/download/OpenSSL-v1.1.1+1/OpenSSL.v1.1.1.aarch64-linux-musl.tar.gz"
61+
sha256 = "77be5b30230b67396a691ba8be144824b515e8ea5070df7bd5b06026fdc5ca56"
62+
url = "https://github.com/JuliaBinaryWrappers/OpenSSL_jll.jl/releases/download/OpenSSL-v1.1.1+2/OpenSSL.v1.1.1.x86_64-linux-gnu.tar.gz"
6363
[[OpenSSL]]
64-
arch = "armv7l"
65-
git-tree-sha1 = "2f596a27aaf78e524534928383460485862dc090"
66-
libc = "musl"
64+
arch = "powerpc64le"
65+
git-tree-sha1 = "79cd976691912df42253cc530f1dc1823e16c28b"
66+
libc = "glibc"
6767
os = "linux"
6868

6969
[[OpenSSL.download]]
70-
sha256 = "bdcedc556ca69fe1083f3fb77a698500eb3375c40fc49ec89f17572cb51d3f6d"
71-
url = "https://github.com/JuliaBinaryWrappers/OpenSSL_jll.jl/releases/download/OpenSSL-v1.1.1+1/OpenSSL.v1.1.1.arm-linux-musleabihf.tar.gz"
70+
sha256 = "07f1161572ccf1beaf1f7affb9996d6387f7417a4a7d8b128e4efaf7812f1927"
71+
url = "https://github.com/JuliaBinaryWrappers/OpenSSL_jll.jl/releases/download/OpenSSL-v1.1.1+2/OpenSSL.v1.1.1.powerpc64le-linux-gnu.tar.gz"
7272
[[OpenSSL]]
73-
arch = "i686"
74-
git-tree-sha1 = "28971a21b0aee43b04d8711f17b9582718840f75"
75-
os = "windows"
73+
arch = "x86_64"
74+
git-tree-sha1 = "6b04ad7f71b1a29adad801f4fdd0d34b3535c638"
75+
os = "macos"
7676

7777
[[OpenSSL.download]]
78-
sha256 = "2317b2bb7f0d054664b76a2064587ff2c6f8a97bf9c821564553c3099e3611fe"
79-
url = "https://github.com/JuliaBinaryWrappers/OpenSSL_jll.jl/releases/download/OpenSSL-v1.1.1+1/OpenSSL.v1.1.1.i686-w64-mingw32.tar.gz"
78+
sha256 = "72a73b0015dd3116186197b3adeb6dfd1715974aff7cccc9cc0742f80f07678e"
79+
url = "https://github.com/JuliaBinaryWrappers/OpenSSL_jll.jl/releases/download/OpenSSL-v1.1.1+2/OpenSSL.v1.1.1.x86_64-apple-darwin14.tar.gz"
8080
[[OpenSSL]]
8181
arch = "x86_64"
82-
git-tree-sha1 = "80f7beaebb053b04fe5934f20fade67070da67df"
82+
git-tree-sha1 = "d5ebf9399a330fa3c61512f7ffd5e0808e6f4493"
8383
os = "freebsd"
8484

8585
[[OpenSSL.download]]
86-
sha256 = "4eb203c409f96fd1f71f6db7ff56f86c721bfdfbba87e790ae65e5a9536192a8"
87-
url = "https://github.com/JuliaBinaryWrappers/OpenSSL_jll.jl/releases/download/OpenSSL-v1.1.1+1/OpenSSL.v1.1.1.x86_64-unknown-freebsd11.1.tar.gz"
86+
sha256 = "6736ce1e2daa69ff443675ae3f784433b58bcebac3d084e510e44bba7f0fc026"
87+
url = "https://github.com/JuliaBinaryWrappers/OpenSSL_jll.jl/releases/download/OpenSSL-v1.1.1+2/OpenSSL.v1.1.1.x86_64-unknown-freebsd11.1.tar.gz"
8888
[[OpenSSL]]
89-
arch = "armv7l"
90-
git-tree-sha1 = "ecd945f96075d56aaaccbd4314b13b820598ac37"
91-
libc = "glibc"
89+
arch = "i686"
90+
git-tree-sha1 = "e11defe09de147cfcc49497afa98fea11c8f9702"
91+
libc = "musl"
9292
os = "linux"
9393

9494
[[OpenSSL.download]]
95-
sha256 = "8fd3cc4f224977c4865aa1257fd24793d7e8968e74b01fcbfea8c64763bba1f7"
96-
url = "https://github.com/JuliaBinaryWrappers/OpenSSL_jll.jl/releases/download/OpenSSL-v1.1.1+1/OpenSSL.v1.1.1.arm-linux-gnueabihf.tar.gz"
95+
sha256 = "fd4beae0cb0d1cd17923985a219c1569346b7b32f5c579746919cb81971e37fb"
96+
url = "https://github.com/JuliaBinaryWrappers/OpenSSL_jll.jl/releases/download/OpenSSL-v1.1.1+2/OpenSSL.v1.1.1.i686-linux-musl.tar.gz"
9797
[[OpenSSL]]
98-
arch = "x86_64"
99-
git-tree-sha1 = "ba07d63b144c4affcc1e92e0d4b06647cf3952de"
100-
libc = "glibc"
98+
arch = "armv7l"
99+
git-tree-sha1 = "1bf14360f8ea050406e104b47fa45d97987b51ca"
100+
libc = "musl"
101101
os = "linux"
102102

103103
[[OpenSSL.download]]
104-
sha256 = "e33131286c0d398bd45c02d2c2c6d7af4e281dac70950834f046ba70c71f1440"
105-
url = "https://github.com/JuliaBinaryWrappers/OpenSSL_jll.jl/releases/download/OpenSSL-v1.1.1+1/OpenSSL.v1.1.1.x86_64-linux-gnu.tar.gz"
104+
sha256 = "c0ba637c8301834a0357aac7ef3cfe6c60254b95d62d06de7802dc2441185c66"
105+
url = "https://github.com/JuliaBinaryWrappers/OpenSSL_jll.jl/releases/download/OpenSSL-v1.1.1+2/OpenSSL.v1.1.1.armv7l-linux-musleabihf.tar.gz"
106106
[[OpenSSL]]
107107
arch = "x86_64"
108-
git-tree-sha1 = "7dc85c0dc0969854a6dae412b5bd8183baa07f9c"
108+
git-tree-sha1 = "6dfc19bf108bf76578b7b5ae91aa833a814278f2"
109109
os = "windows"
110110

111111
[[OpenSSL.download]]
112-
sha256 = "9960a873ae56f8aeffc2d0619ba37e734389969f57740a07ad9a78bb55d084ef"
113-
url = "https://github.com/JuliaBinaryWrappers/OpenSSL_jll.jl/releases/download/OpenSSL-v1.1.1+1/OpenSSL.v1.1.1.x86_64-w64-mingw32.tar.gz"
112+
sha256 = "c38348da07a449a96b767f782b053b150d7837aa0c7bd94a3f6f632886b26d93"
113+
url = "https://github.com/JuliaBinaryWrappers/OpenSSL_jll.jl/releases/download/OpenSSL-v1.1.1+2/OpenSSL.v1.1.1.x86_64-w64-mingw32.tar.gz"

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "OpenSSL_jll"
22
uuid = "458c3c95-2e84-50aa-8efc-19380b2a3a95"
3-
version = "1.1.1+1"
3+
version = "1.1.1+2"
44

55
[deps]
66
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"

README.md

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,21 @@
22

33
This is an autogenerated package constructed using [`BinaryBuilder.jl`](https://github.com/JuliaPackaging/BinaryBuilder.jl).
44

5-
## Usage
5+
## Products
66

7-
The code bindings within this package are autogenerated from the `Products` defined within the `build_tarballs.jl` file that generated this package. For example purposes, we will assume that the following products were defined:
7+
The code bindings within this package are autogenerated from the following `Products` defined within the `build_tarballs.jl` file that generated this package:
8+
9+
```julia
10+
products = [
11+
LibraryProduct(["libssl", "libssl-1_1", "libssl-1_1-x64"], :libssl),
12+
LibraryProduct(["libcrypto", "libcrypto-1_1", "libcrypto-1_1-x64"], :libcrypto),
13+
ExecutableProduct(["openssl"], :openssl)
14+
]
15+
```
16+
17+
## Usage example
18+
19+
For example purposes, we will assume that the following products were defined in the imaginary package `Example_jll`:
820

921
```julia
1022
products = [
@@ -14,18 +26,18 @@ products = [
1426
]
1527
```
1628

17-
With such products defined, this package will contain `data_txt`, `libdataproc` and `mungify_exe` symbols exported. For `FileProduct` variables, the exported value is a string pointing to the location of the file on-disk. For `LibraryProduct` variables, it is a string corresponding to the `SONAME` of the desired library (it will have already been `dlopen()`'ed, so typical `ccall()` usage applies), and for `ExecutableProduct` variables, the exported value is a function that can be called to set appropriate environment variables. Example:
29+
With such products defined, `Example_jll` would contain `data_txt`, `libdataproc` and `mungify_exe` symbols exported. For `FileProduct` variables, the exported value is a string pointing to the location of the file on-disk. For `LibraryProduct` variables, it is a string corresponding to the `SONAME` of the desired library (it will have already been `dlopen()`'ed, so typical `ccall()` usage applies), and for `ExecutableProduct` variables, the exported value is a function that can be called to set appropriate environment variables. Example:
1830

1931
```julia
20-
using OpenSSL_jll
32+
using Example_jll
2133

2234
# For file products, you can access its file location directly:
2335
data_lines = open(data_txt, "r") do io
2436
readlines(io)
2537
end
2638

2739
# For library products, you can use the exported variable name in `ccall()` invocations directly
28-
num_chars = ccall((libdataproc, :count_characters), Cint, (Cstring, Cint), data_lines[1], length(data_lines[1]))
40+
num_chars = ccall((:count_characters, libdataproc), Cint, (Cstring, Cint), data_lines[1], length(data_lines[1]))
2941

3042
# For executable products, you can use the exported variable name as a function that you can call
3143
mungify_exe() do mungify_exe_path

src/OpenSSL_jll.jl

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ artifacts = Pkg.Artifacts.load_artifacts_toml(artifacts_toml; pkg_uuid=UUID("458
3434
platforms = [Pkg.Artifacts.unpack_platform(e, "OpenSSL", artifacts_toml) for e in artifacts["OpenSSL"]]
3535

3636
# Filter platforms based on what wrappers we've generated on-disk
37-
platforms = filter(p -> isfile(joinpath(@__DIR__, "wrappers", triplet(p) * ".jl")), platforms)
37+
filter!(p -> isfile(joinpath(@__DIR__, "wrappers", replace(triplet(p), "arm-" => "armv7l-") * ".jl")), platforms)
3838

3939
# From the available options, choose the best platform
4040
best_platform = select_platform(Dict(p => triplet(p) for p in platforms))
@@ -43,7 +43,10 @@ best_platform = select_platform(Dict(p => triplet(p) for p in platforms))
4343
if best_platform === nothing
4444
@debug("Unable to load OpenSSL; unsupported platform $(triplet(platform_key_abi()))")
4545
else
46-
# Load the appropriate wrapper
46+
# Load the appropriate wrapper. Note that on older Julia versions, we still
47+
# say "arm-linux-gnueabihf" instead of the more correct "armv7l-linux-gnueabihf",
48+
# so we manually correct for that here:
49+
best_platform = replace(best_platform, "arm-" => "armv7l-")
4750
include(joinpath(@__DIR__, "wrappers", "$(best_platform).jl"))
4851
end
4952

src/wrappers/aarch64-linux-gnu.jl

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,39 @@
11
# Autogenerated wrapper script for OpenSSL_jll for aarch64-linux-gnu
2-
export openssl, libcrypto, libssl
2+
export libssl, libcrypto, openssl
33

44
## Global variables
55
PATH = ""
66
LIBPATH = ""
77
LIBPATH_env = "LD_LIBRARY_PATH"
88

9+
# Relative path to `libssl`
10+
const libssl_splitpath = ["lib", "libssl.so"]
11+
12+
# This will be filled out by __init__() for all products, as it must be done at runtime
13+
libssl_path = ""
14+
15+
# libssl-specific global declaration
16+
# This will be filled out by __init__()
17+
libssl_handle = C_NULL
18+
19+
# This must be `const` so that we can use it with `ccall()`
20+
const libssl = "libssl.so.1.1"
21+
22+
23+
# Relative path to `libcrypto`
24+
const libcrypto_splitpath = ["lib", "libcrypto.so"]
25+
26+
# This will be filled out by __init__() for all products, as it must be done at runtime
27+
libcrypto_path = ""
28+
29+
# libcrypto-specific global declaration
30+
# This will be filled out by __init__()
31+
libcrypto_handle = C_NULL
32+
33+
# This must be `const` so that we can use it with `ccall()`
34+
const libcrypto = "libcrypto.so.1.1"
35+
36+
937
# Relative path to `openssl`
1038
const openssl_splitpath = ["bin", "openssl"]
1139

@@ -36,34 +64,6 @@ function openssl(f::Function; adjust_PATH::Bool = true, adjust_LIBPATH::Bool = t
3664
end
3765

3866

39-
# Relative path to `libcrypto`
40-
const libcrypto_splitpath = ["lib", "libcrypto.so"]
41-
42-
# This will be filled out by __init__() for all products, as it must be done at runtime
43-
libcrypto_path = ""
44-
45-
# libcrypto-specific global declaration
46-
# This will be filled out by __init__()
47-
libcrypto_handle = C_NULL
48-
49-
# This must be `const` so that we can use it with `ccall()`
50-
const libcrypto = "libcrypto.so.1.1"
51-
52-
53-
# Relative path to `libssl`
54-
const libssl_splitpath = ["lib", "libssl.so"]
55-
56-
# This will be filled out by __init__() for all products, as it must be done at runtime
57-
libssl_path = ""
58-
59-
# libssl-specific global declaration
60-
# This will be filled out by __init__()
61-
libssl_handle = C_NULL
62-
63-
# This must be `const` so that we can use it with `ccall()`
64-
const libssl = "libssl.so.1.1"
65-
66-
6767
"""
6868
Open all libraries
6969
"""
@@ -74,23 +74,23 @@ function __init__()
7474
global PATH_list, LIBPATH_list
7575
# We first need to add to LIBPATH_list the libraries provided by Julia
7676
append!(LIBPATH_list, [joinpath(Sys.BINDIR, Base.LIBDIR, "julia"), joinpath(Sys.BINDIR, Base.LIBDIR)])
77-
global openssl_path = normpath(joinpath(artifact_dir, openssl_splitpath...))
77+
global libssl_path = normpath(joinpath(artifact_dir, libssl_splitpath...))
78+
79+
# Manually `dlopen()` this right now so that future invocations
80+
# of `ccall` with its `SONAME` will find this path immediately.
81+
global libssl_handle = dlopen(libssl_path)
82+
push!(LIBPATH_list, dirname(libssl_path))
7883

79-
push!(PATH_list, dirname(openssl_path))
8084
global libcrypto_path = normpath(joinpath(artifact_dir, libcrypto_splitpath...))
8185

8286
# Manually `dlopen()` this right now so that future invocations
8387
# of `ccall` with its `SONAME` will find this path immediately.
8488
global libcrypto_handle = dlopen(libcrypto_path)
8589
push!(LIBPATH_list, dirname(libcrypto_path))
8690

87-
global libssl_path = normpath(joinpath(artifact_dir, libssl_splitpath...))
88-
89-
# Manually `dlopen()` this right now so that future invocations
90-
# of `ccall` with its `SONAME` will find this path immediately.
91-
global libssl_handle = dlopen(libssl_path)
92-
push!(LIBPATH_list, dirname(libssl_path))
91+
global openssl_path = normpath(joinpath(artifact_dir, openssl_splitpath...))
9392

93+
push!(PATH_list, dirname(openssl_path))
9494
# Filter out duplicate and empty entries in our PATH and LIBPATH entries
9595
filter!(!isempty, unique!(PATH_list))
9696
filter!(!isempty, unique!(LIBPATH_list))

0 commit comments

Comments
 (0)