Skip to content

Commit e9276b5

Browse files
committed
LibGit2_jll build 0.28.2+0
1 parent 49c27d5 commit e9276b5

17 files changed

+919
-0
lines changed

Artifacts.toml

Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
[[LibGit2]]
2+
arch = "i686"
3+
git-tree-sha1 = "bd8d681239648b9c9fdd43b6b8de2d3189b1d8bd"
4+
libc = "glibc"
5+
os = "linux"
6+
7+
[[LibGit2.download]]
8+
sha256 = "b4c0f24dec32dfbc1329bfbc8f3b1a8b1e77ce3c13292e6cba86062070c3f70a"
9+
url = "https://github.com/JuliaBinaryWrappers/LibGit2_jll.jl/releases/download/LibGit2-v0.28.2+0/LibGit2.v0.28.2.i686-linux-gnu.tar.gz"
10+
[[LibGit2]]
11+
arch = "x86_64"
12+
git-tree-sha1 = "663fe2411ff5985805f43ff9b321763e62c8bf77"
13+
libc = "glibc"
14+
os = "linux"
15+
16+
[[LibGit2.download]]
17+
sha256 = "53718ed08dc0f5fc483c4a15e823d0c02332da5789ffef0e48dbe241c1fef5ce"
18+
url = "https://github.com/JuliaBinaryWrappers/LibGit2_jll.jl/releases/download/LibGit2-v0.28.2+0/LibGit2.v0.28.2.x86_64-linux-gnu.tar.gz"
19+
[[LibGit2]]
20+
arch = "i686"
21+
git-tree-sha1 = "28733d55b59bf90d5723b4ef1f80c312209a9966"
22+
os = "windows"
23+
24+
[[LibGit2.download]]
25+
sha256 = "239cd71f292a6ef373bee9ac794a186c27828f254bc29ade8cadd2516a804b0d"
26+
url = "https://github.com/JuliaBinaryWrappers/LibGit2_jll.jl/releases/download/LibGit2-v0.28.2+0/LibGit2.v0.28.2.i686-w64-mingw32.tar.gz"
27+
[[LibGit2]]
28+
arch = "x86_64"
29+
git-tree-sha1 = "5ca76daccf8079217d2a74dc785da06b733150c5"
30+
libc = "musl"
31+
os = "linux"
32+
33+
[[LibGit2.download]]
34+
sha256 = "ef99d337535adf72e29a927e0def1b52018f649cf85bc4744d5f5c881558182a"
35+
url = "https://github.com/JuliaBinaryWrappers/LibGit2_jll.jl/releases/download/LibGit2-v0.28.2+0/LibGit2.v0.28.2.x86_64-linux-musl.tar.gz"
36+
[[LibGit2]]
37+
arch = "armv7l"
38+
git-tree-sha1 = "6f2e9d0fc6faf872801ea50e50b565ec4a5cae3c"
39+
libc = "glibc"
40+
os = "linux"
41+
42+
[[LibGit2.download]]
43+
sha256 = "aa4cbb6652784b00f84ecb4cee3ada19e4d365c6fc0077b4ee9310a4bfffe6c9"
44+
url = "https://github.com/JuliaBinaryWrappers/LibGit2_jll.jl/releases/download/LibGit2-v0.28.2+0/LibGit2.v0.28.2.arm-linux-gnueabihf.tar.gz"
45+
[[LibGit2]]
46+
arch = "aarch64"
47+
git-tree-sha1 = "aac95faf2d0d927a71a95a6981da07d134af1689"
48+
libc = "musl"
49+
os = "linux"
50+
51+
[[LibGit2.download]]
52+
sha256 = "de572eae0fc857d41bd2d2390dc3e42fa3c8bc56651bca9e02446c6fd23974de"
53+
url = "https://github.com/JuliaBinaryWrappers/LibGit2_jll.jl/releases/download/LibGit2-v0.28.2+0/LibGit2.v0.28.2.aarch64-linux-musl.tar.gz"
54+
[[LibGit2]]
55+
arch = "powerpc64le"
56+
git-tree-sha1 = "c478f2aa3dfa9650c11c9927e562ee530570385b"
57+
libc = "glibc"
58+
os = "linux"
59+
60+
[[LibGit2.download]]
61+
sha256 = "6ce545804f5f82fcc9d9354bf2a9dbf26918cbd7a7dd45837e8cebc6e3a59110"
62+
url = "https://github.com/JuliaBinaryWrappers/LibGit2_jll.jl/releases/download/LibGit2-v0.28.2+0/LibGit2.v0.28.2.powerpc64le-linux-gnu.tar.gz"
63+
[[LibGit2]]
64+
arch = "x86_64"
65+
git-tree-sha1 = "0f536bf36c44545b4cca93351429763042940545"
66+
os = "freebsd"
67+
68+
[[LibGit2.download]]
69+
sha256 = "4f911b01d890f6166bf958977105d4b5893b09da8f3947b2f3bc074c22bba02f"
70+
url = "https://github.com/JuliaBinaryWrappers/LibGit2_jll.jl/releases/download/LibGit2-v0.28.2+0/LibGit2.v0.28.2.x86_64-unknown-freebsd11.1.tar.gz"
71+
[[LibGit2]]
72+
arch = "aarch64"
73+
git-tree-sha1 = "a2f2f4494acfbeae0d421b90fc7cb2eff3f2157b"
74+
libc = "glibc"
75+
os = "linux"
76+
77+
[[LibGit2.download]]
78+
sha256 = "8558861664279e00c548ae460cd876a7503a8e42fc4c61ba8b264cdb5b370720"
79+
url = "https://github.com/JuliaBinaryWrappers/LibGit2_jll.jl/releases/download/LibGit2-v0.28.2+0/LibGit2.v0.28.2.aarch64-linux-gnu.tar.gz"
80+
[[LibGit2]]
81+
arch = "i686"
82+
git-tree-sha1 = "31f31db60b5f31e9a0781b03be0f06656d19d41f"
83+
libc = "musl"
84+
os = "linux"
85+
86+
[[LibGit2.download]]
87+
sha256 = "9fceb42d4ae26596154a3a7ba65e48a21115a42e90f45b50efcdee6e41a202e3"
88+
url = "https://github.com/JuliaBinaryWrappers/LibGit2_jll.jl/releases/download/LibGit2-v0.28.2+0/LibGit2.v0.28.2.i686-linux-musl.tar.gz"
89+
[[LibGit2]]
90+
arch = "armv7l"
91+
git-tree-sha1 = "8678920cc83e4f024844376716105fc5ecbc0856"
92+
libc = "musl"
93+
os = "linux"
94+
95+
[[LibGit2.download]]
96+
sha256 = "f983ebfde8034ab6c1d0df36ddb74d4db5d702786825c14e0dd22e070c37bfba"
97+
url = "https://github.com/JuliaBinaryWrappers/LibGit2_jll.jl/releases/download/LibGit2-v0.28.2+0/LibGit2.v0.28.2.arm-linux-musleabihf.tar.gz"
98+
[[LibGit2]]
99+
arch = "x86_64"
100+
git-tree-sha1 = "f2a8d28291b8a0dd9c5d3240a9ad4da94fafaad2"
101+
os = "windows"
102+
103+
[[LibGit2.download]]
104+
sha256 = "a2d73a9c5707fe17f215477e2e6c40e95697847c4c647aef2719bc1c0717fbc9"
105+
url = "https://github.com/JuliaBinaryWrappers/LibGit2_jll.jl/releases/download/LibGit2-v0.28.2+0/LibGit2.v0.28.2.x86_64-w64-mingw32.tar.gz"
106+
[[LibGit2]]
107+
arch = "x86_64"
108+
git-tree-sha1 = "ddda01bbb4de3a31a07a29851d1d03087ac93d5f"
109+
os = "macos"
110+
111+
[[LibGit2.download]]
112+
sha256 = "705aab5a292caffbcb0046a24f3192ae329a4658cf67f75de4d232f59d4f032b"
113+
url = "https://github.com/JuliaBinaryWrappers/LibGit2_jll.jl/releases/download/LibGit2-v0.28.2+0/LibGit2.v0.28.2.x86_64-apple-darwin14.tar.gz"

Project.toml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name = "LibGit2_jll"
2+
uuid = "e37daf67-58a4-590a-8e99-b0245dd2ffc5"
3+
version = "0.28.2+0"
4+
5+
[deps]
6+
MbedTLS_jll = "c8ffd9c3-330d-5841-b78e-0817d7145fa1"
7+
LibSSH2_jll = "29816b5a-b9ab-546f-933c-edad1886dfa8"
8+
LibCURL_jll = "deac9b47-8bc7-5906-a0fe-35ac56dc84c0"
9+
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
10+
Libdl = "8f399da3-3557-5675-b5ff-fb832c97cbdb"
11+
12+
[compat]
13+
julia = "1.3"

README.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# LibGit2_jll.jl
2+
3+
This is an autogenerated package constructed using [`BinaryBuilder.jl`](https://github.com/JuliaPackaging/BinaryBuilder.jl).
4+
5+
## Usage
6+
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:
8+
9+
```julia
10+
products = [
11+
FileProduct("src/data.txt", :data_txt),
12+
LibraryProduct("libdataproc", :libdataproc),
13+
ExecutableProduct("mungify", :mungify_exe)
14+
]
15+
```
16+
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:
18+
19+
```julia
20+
using LibGit2_jll
21+
22+
# For file products, you can access its file location directly:
23+
data_lines = open(data_txt, "r") do io
24+
readlines(io)
25+
end
26+
27+
# 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]))
29+
30+
# For executable products, you can use the exported variable name as a function that you can call
31+
mungify_exe() do mungify_exe_path
32+
run(`$mungify_exe_path $num_chars`)
33+
end
34+
```

src/LibGit2_jll.jl

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
module LibGit2_jll
2+
using Pkg, Pkg.BinaryPlatforms, Pkg.Artifacts, Libdl
3+
import Base: UUID
4+
5+
# We put these inter-JLL-package API values here so that they are always defined, even if there
6+
# is no underlying wrapper held within this JLL package.
7+
const PATH_list = String[]
8+
const LIBPATH_list = String[]
9+
10+
# Load Artifacts.toml file
11+
artifacts_toml = joinpath(@__DIR__, "..", "Artifacts.toml")
12+
13+
# Extract all platforms
14+
artifacts = Pkg.Artifacts.load_artifacts_toml(artifacts_toml; pkg_uuid=UUID("e37daf67-58a4-590a-8e99-b0245dd2ffc5"))
15+
platforms = [Pkg.Artifacts.unpack_platform(e, "LibGit2", artifacts_toml) for e in artifacts["LibGit2"]]
16+
17+
# Filter platforms based on what wrappers we've generated on-disk
18+
platforms = filter(p -> isfile(joinpath(@__DIR__, "wrappers", triplet(p) * ".jl")), platforms)
19+
20+
# From the available options, choose the best platform
21+
best_platform = select_platform(Dict(p => triplet(p) for p in platforms))
22+
23+
# Silently fail if there's no binaries for this platform
24+
if best_platform === nothing
25+
@debug("Unable to load LibGit2; unsupported platform $(triplet(platform_key_abi()))")
26+
else
27+
# Load the appropriate wrapper
28+
include(joinpath(@__DIR__, "wrappers", "$(best_platform).jl"))
29+
end
30+
31+
end # module LibGit2_jll

src/wrappers/aarch64-linux-gnu.jl

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# Autogenerated wrapper script for LibGit2_jll for aarch64-linux-gnu
2+
export libgit2
3+
4+
using MbedTLS_jll
5+
using LibSSH2_jll
6+
using LibCURL_jll
7+
## Global variables
8+
PATH = ""
9+
LIBPATH = ""
10+
LIBPATH_env = "LD_LIBRARY_PATH"
11+
12+
# Relative path to `libgit2`
13+
const libgit2_splitpath = ["lib", "libgit2.so"]
14+
15+
# This will be filled out by __init__() for all products, as it must be done at runtime
16+
libgit2_path = ""
17+
18+
# libgit2-specific global declaration
19+
# This will be filled out by __init__()
20+
libgit2_handle = C_NULL
21+
22+
# This must be `const` so that we can use it with `ccall()`
23+
const libgit2 = "libgit2.so.28"
24+
25+
26+
"""
27+
Open all libraries
28+
"""
29+
function __init__()
30+
global prefix = abspath(joinpath(@__DIR__, ".."))
31+
32+
# Initialize PATH and LIBPATH environment variable listings
33+
global PATH_list, LIBPATH_list
34+
append!.(Ref(PATH_list), (MbedTLS_jll.PATH_list, LibSSH2_jll.PATH_list, LibCURL_jll.PATH_list,))
35+
append!.(Ref(LIBPATH_list), (MbedTLS_jll.LIBPATH_list, LibSSH2_jll.LIBPATH_list, LibCURL_jll.LIBPATH_list,))
36+
37+
global libgit2_path = abspath(joinpath(artifact"LibGit2", libgit2_splitpath...))
38+
39+
# Manually `dlopen()` this right now so that future invocations
40+
# of `ccall` with its `SONAME` will find this path immediately.
41+
global libgit2_handle = dlopen(libgit2_path)
42+
push!(LIBPATH_list, dirname(libgit2_path))
43+
44+
# Filter out duplicate and empty entries in our PATH and LIBPATH entries
45+
filter!(!isempty, unique!(PATH_list))
46+
filter!(!isempty, unique!(LIBPATH_list))
47+
global PATH = join(PATH_list, ':')
48+
global LIBPATH = join(LIBPATH_list, ':')
49+
50+
# Add each element of LIBPATH to our DL_LOAD_PATH (necessary on platforms
51+
# that don't honor our "already opened" trick)
52+
#for lp in LIBPATH_list
53+
# push!(DL_LOAD_PATH, lp)
54+
#end
55+
end # __init__()
56+

src/wrappers/aarch64-linux-musl.jl

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# Autogenerated wrapper script for LibGit2_jll for aarch64-linux-musl
2+
export libgit2
3+
4+
using MbedTLS_jll
5+
using LibSSH2_jll
6+
using LibCURL_jll
7+
## Global variables
8+
PATH = ""
9+
LIBPATH = ""
10+
LIBPATH_env = "LD_LIBRARY_PATH"
11+
12+
# Relative path to `libgit2`
13+
const libgit2_splitpath = ["lib", "libgit2.so"]
14+
15+
# This will be filled out by __init__() for all products, as it must be done at runtime
16+
libgit2_path = ""
17+
18+
# libgit2-specific global declaration
19+
# This will be filled out by __init__()
20+
libgit2_handle = C_NULL
21+
22+
# This must be `const` so that we can use it with `ccall()`
23+
const libgit2 = "libgit2.so.28"
24+
25+
26+
"""
27+
Open all libraries
28+
"""
29+
function __init__()
30+
global prefix = abspath(joinpath(@__DIR__, ".."))
31+
32+
# Initialize PATH and LIBPATH environment variable listings
33+
global PATH_list, LIBPATH_list
34+
append!.(Ref(PATH_list), (MbedTLS_jll.PATH_list, LibSSH2_jll.PATH_list, LibCURL_jll.PATH_list,))
35+
append!.(Ref(LIBPATH_list), (MbedTLS_jll.LIBPATH_list, LibSSH2_jll.LIBPATH_list, LibCURL_jll.LIBPATH_list,))
36+
37+
global libgit2_path = abspath(joinpath(artifact"LibGit2", libgit2_splitpath...))
38+
39+
# Manually `dlopen()` this right now so that future invocations
40+
# of `ccall` with its `SONAME` will find this path immediately.
41+
global libgit2_handle = dlopen(libgit2_path)
42+
push!(LIBPATH_list, dirname(libgit2_path))
43+
44+
# Filter out duplicate and empty entries in our PATH and LIBPATH entries
45+
filter!(!isempty, unique!(PATH_list))
46+
filter!(!isempty, unique!(LIBPATH_list))
47+
global PATH = join(PATH_list, ':')
48+
global LIBPATH = join(LIBPATH_list, ':')
49+
50+
# Add each element of LIBPATH to our DL_LOAD_PATH (necessary on platforms
51+
# that don't honor our "already opened" trick)
52+
#for lp in LIBPATH_list
53+
# push!(DL_LOAD_PATH, lp)
54+
#end
55+
end # __init__()
56+
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# Autogenerated wrapper script for LibGit2_jll for arm-linux-gnueabihf
2+
export libgit2
3+
4+
using MbedTLS_jll
5+
using LibSSH2_jll
6+
using LibCURL_jll
7+
## Global variables
8+
PATH = ""
9+
LIBPATH = ""
10+
LIBPATH_env = "LD_LIBRARY_PATH"
11+
12+
# Relative path to `libgit2`
13+
const libgit2_splitpath = ["lib", "libgit2.so"]
14+
15+
# This will be filled out by __init__() for all products, as it must be done at runtime
16+
libgit2_path = ""
17+
18+
# libgit2-specific global declaration
19+
# This will be filled out by __init__()
20+
libgit2_handle = C_NULL
21+
22+
# This must be `const` so that we can use it with `ccall()`
23+
const libgit2 = "libgit2.so.28"
24+
25+
26+
"""
27+
Open all libraries
28+
"""
29+
function __init__()
30+
global prefix = abspath(joinpath(@__DIR__, ".."))
31+
32+
# Initialize PATH and LIBPATH environment variable listings
33+
global PATH_list, LIBPATH_list
34+
append!.(Ref(PATH_list), (MbedTLS_jll.PATH_list, LibSSH2_jll.PATH_list, LibCURL_jll.PATH_list,))
35+
append!.(Ref(LIBPATH_list), (MbedTLS_jll.LIBPATH_list, LibSSH2_jll.LIBPATH_list, LibCURL_jll.LIBPATH_list,))
36+
37+
global libgit2_path = abspath(joinpath(artifact"LibGit2", libgit2_splitpath...))
38+
39+
# Manually `dlopen()` this right now so that future invocations
40+
# of `ccall` with its `SONAME` will find this path immediately.
41+
global libgit2_handle = dlopen(libgit2_path)
42+
push!(LIBPATH_list, dirname(libgit2_path))
43+
44+
# Filter out duplicate and empty entries in our PATH and LIBPATH entries
45+
filter!(!isempty, unique!(PATH_list))
46+
filter!(!isempty, unique!(LIBPATH_list))
47+
global PATH = join(PATH_list, ':')
48+
global LIBPATH = join(LIBPATH_list, ':')
49+
50+
# Add each element of LIBPATH to our DL_LOAD_PATH (necessary on platforms
51+
# that don't honor our "already opened" trick)
52+
#for lp in LIBPATH_list
53+
# push!(DL_LOAD_PATH, lp)
54+
#end
55+
end # __init__()
56+

0 commit comments

Comments
 (0)