-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
169 additions
and
629 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
override/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
name = "Libgpg_error_jll" | ||
uuid = "7add5ba3-2f88-524e-9cd5-f83b8a55f7b8" | ||
version = "1.36.0+2" | ||
version = "1.36.0+3" | ||
|
||
[deps] | ||
JLLWrappers = "692b3bcd-3c85-4b1f-b108-f13ce0eb3210" | ||
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f" | ||
Libdl = "8f399da3-3557-5675-b5ff-fb832c97cbdb" | ||
Artifacts = "56f22d72-fd6d-98f1-02f0-08ddc0907c33" | ||
|
||
[compat] | ||
JLLWrappers = "1.1.0" | ||
julia = "1.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,9 @@ | ||
module Libgpg_error_jll | ||
|
||
if isdefined(Base, :Experimental) && isdefined(Base.Experimental, Symbol("@optlevel")) | ||
@eval Base.Experimental.@optlevel 0 | ||
end | ||
|
||
if VERSION < v"1.3.0-rc4" | ||
# We lie a bit in the registry that JLL packages are usable on Julia 1.0-1.2. | ||
# This is to allow packages that might want to support Julia 1.0 to get the | ||
# benefits of a JLL package on 1.3 (requiring them to declare a dependence on | ||
# this JLL package in their Project.toml) but engage in heroic hacks to do | ||
# something other than actually use a JLL package on 1.0-1.2. By allowing | ||
# this package to be installed (but not loaded) on 1.0-1.2, we enable users | ||
# to avoid splitting their package versions into pre-1.3 and post-1.3 branches | ||
# if they are willing to engage in the kinds of hoop-jumping they might need | ||
# to in order to install binaries in a JLL-compatible way on 1.0-1.2. One | ||
# example of this hoop-jumping being to express a dependency on this JLL | ||
# package, then import it within a `VERSION >= v"1.3"` conditional, and use | ||
# the deprecated `build.jl` mechanism to download the binaries through e.g. | ||
# `BinaryProvider.jl`. This should work well for the simplest packages, and | ||
# require greater and greater heroics for more and more complex packages. | ||
error("Unable to import Libgpg_error_jll on Julia versions older than 1.3!") | ||
end | ||
|
||
using Pkg, Pkg.BinaryPlatforms, Pkg.Artifacts, Libdl | ||
import Base: UUID | ||
|
||
# We put these inter-JLL-package API values here so that they are always defined, even if there | ||
# is no underlying wrapper held within this JLL package. | ||
const PATH_list = String[] | ||
const LIBPATH_list = String[] | ||
|
||
# Load Artifacts.toml file | ||
artifacts_toml = joinpath(@__DIR__, "..", "Artifacts.toml") | ||
|
||
# Extract all platforms | ||
artifacts = Pkg.Artifacts.load_artifacts_toml(artifacts_toml; pkg_uuid=UUID("7add5ba3-2f88-524e-9cd5-f83b8a55f7b8")) | ||
platforms = [Pkg.Artifacts.unpack_platform(e, "Libgpg_error", artifacts_toml) for e in artifacts["Libgpg_error"]] | ||
|
||
# Filter platforms based on what wrappers we've generated on-disk | ||
filter!(p -> isfile(joinpath(@__DIR__, "wrappers", replace(triplet(p), "arm-" => "armv7l-") * ".jl")), platforms) | ||
|
||
# From the available options, choose the best platform | ||
best_platform = select_platform(Dict(p => triplet(p) for p in platforms)) | ||
|
||
# Silently fail if there's no binaries for this platform | ||
if best_platform === nothing | ||
@debug("Unable to load Libgpg_error; unsupported platform $(triplet(platform_key_abi()))") | ||
else | ||
# Load the appropriate wrapper. Note that on older Julia versions, we still | ||
# say "arm-linux-gnueabihf" instead of the more correct "armv7l-linux-gnueabihf", | ||
# so we manually correct for that here: | ||
best_platform = replace(best_platform, "arm-" => "armv7l-") | ||
include(joinpath(@__DIR__, "wrappers", "$(best_platform).jl")) | ||
end | ||
|
||
# Use baremodule to shave off a few KB from the serialized `.ji` file | ||
baremodule Libgpg_error_jll | ||
using Base | ||
using Base: UUID | ||
import JLLWrappers | ||
|
||
JLLWrappers.@generate_main_file_header("Libgpg_error") | ||
JLLWrappers.@generate_main_file("Libgpg_error", UUID("7add5ba3-2f88-524e-9cd5-f83b8a55f7b8")) | ||
end # module Libgpg_error_jll |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,15 @@ | ||
# Autogenerated wrapper script for Libgpg_error_jll for aarch64-linux-gnu | ||
export libgpg_error | ||
|
||
## Global variables | ||
PATH = "" | ||
LIBPATH = "" | ||
LIBPATH_env = "LD_LIBRARY_PATH" | ||
LIBPATH_default = "" | ||
|
||
# Relative path to `libgpg_error` | ||
const libgpg_error_splitpath = ["lib", "libgpg-error.so"] | ||
|
||
# This will be filled out by __init__() for all products, as it must be done at runtime | ||
libgpg_error_path = "" | ||
|
||
# libgpg_error-specific global declaration | ||
# This will be filled out by __init__() | ||
libgpg_error_handle = C_NULL | ||
|
||
# This must be `const` so that we can use it with `ccall()` | ||
const libgpg_error = "libgpg-error.so.0" | ||
|
||
|
||
""" | ||
Open all libraries | ||
""" | ||
JLLWrappers.@generate_wrapper_header("Libgpg_error") | ||
JLLWrappers.@declare_library_product(libgpg_error, "libgpg-error.so.0") | ||
function __init__() | ||
global artifact_dir = abspath(artifact"Libgpg_error") | ||
|
||
# Initialize PATH and LIBPATH environment variable listings | ||
global PATH_list, LIBPATH_list | ||
global libgpg_error_path = normpath(joinpath(artifact_dir, libgpg_error_splitpath...)) | ||
|
||
# Manually `dlopen()` this right now so that future invocations | ||
# of `ccall` with its `SONAME` will find this path immediately. | ||
global libgpg_error_handle = dlopen(libgpg_error_path) | ||
push!(LIBPATH_list, dirname(libgpg_error_path)) | ||
|
||
# Filter out duplicate and empty entries in our PATH and LIBPATH entries | ||
filter!(!isempty, unique!(PATH_list)) | ||
filter!(!isempty, unique!(LIBPATH_list)) | ||
global PATH = join(PATH_list, ':') | ||
global LIBPATH = join(vcat(LIBPATH_list, [joinpath(Sys.BINDIR, Base.LIBDIR, "julia"), joinpath(Sys.BINDIR, Base.LIBDIR)]), ':') | ||
|
||
|
||
JLLWrappers.@generate_init_header() | ||
JLLWrappers.@init_library_product( | ||
libgpg_error, | ||
"lib/libgpg-error.so", | ||
RTLD_LAZY | RTLD_DEEPBIND, | ||
) | ||
|
||
JLLWrappers.@generate_init_footer() | ||
end # __init__() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,15 @@ | ||
# Autogenerated wrapper script for Libgpg_error_jll for aarch64-linux-musl | ||
export libgpg_error | ||
|
||
## Global variables | ||
PATH = "" | ||
LIBPATH = "" | ||
LIBPATH_env = "LD_LIBRARY_PATH" | ||
LIBPATH_default = "" | ||
|
||
# Relative path to `libgpg_error` | ||
const libgpg_error_splitpath = ["lib", "libgpg-error.so"] | ||
|
||
# This will be filled out by __init__() for all products, as it must be done at runtime | ||
libgpg_error_path = "" | ||
|
||
# libgpg_error-specific global declaration | ||
# This will be filled out by __init__() | ||
libgpg_error_handle = C_NULL | ||
|
||
# This must be `const` so that we can use it with `ccall()` | ||
const libgpg_error = "libgpg-error.so.0" | ||
|
||
|
||
""" | ||
Open all libraries | ||
""" | ||
JLLWrappers.@generate_wrapper_header("Libgpg_error") | ||
JLLWrappers.@declare_library_product(libgpg_error, "libgpg-error.so.0") | ||
function __init__() | ||
global artifact_dir = abspath(artifact"Libgpg_error") | ||
|
||
# Initialize PATH and LIBPATH environment variable listings | ||
global PATH_list, LIBPATH_list | ||
global libgpg_error_path = normpath(joinpath(artifact_dir, libgpg_error_splitpath...)) | ||
|
||
# Manually `dlopen()` this right now so that future invocations | ||
# of `ccall` with its `SONAME` will find this path immediately. | ||
global libgpg_error_handle = dlopen(libgpg_error_path) | ||
push!(LIBPATH_list, dirname(libgpg_error_path)) | ||
|
||
# Filter out duplicate and empty entries in our PATH and LIBPATH entries | ||
filter!(!isempty, unique!(PATH_list)) | ||
filter!(!isempty, unique!(LIBPATH_list)) | ||
global PATH = join(PATH_list, ':') | ||
global LIBPATH = join(vcat(LIBPATH_list, [joinpath(Sys.BINDIR, Base.LIBDIR, "julia"), joinpath(Sys.BINDIR, Base.LIBDIR)]), ':') | ||
|
||
|
||
JLLWrappers.@generate_init_header() | ||
JLLWrappers.@init_library_product( | ||
libgpg_error, | ||
"lib/libgpg-error.so", | ||
RTLD_LAZY | RTLD_DEEPBIND, | ||
) | ||
|
||
JLLWrappers.@generate_init_footer() | ||
end # __init__() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,15 @@ | ||
# Autogenerated wrapper script for Libgpg_error_jll for armv7l-linux-gnueabihf | ||
export libgpg_error | ||
|
||
## Global variables | ||
PATH = "" | ||
LIBPATH = "" | ||
LIBPATH_env = "LD_LIBRARY_PATH" | ||
LIBPATH_default = "" | ||
|
||
# Relative path to `libgpg_error` | ||
const libgpg_error_splitpath = ["lib", "libgpg-error.so"] | ||
|
||
# This will be filled out by __init__() for all products, as it must be done at runtime | ||
libgpg_error_path = "" | ||
|
||
# libgpg_error-specific global declaration | ||
# This will be filled out by __init__() | ||
libgpg_error_handle = C_NULL | ||
|
||
# This must be `const` so that we can use it with `ccall()` | ||
const libgpg_error = "libgpg-error.so.0" | ||
|
||
|
||
""" | ||
Open all libraries | ||
""" | ||
JLLWrappers.@generate_wrapper_header("Libgpg_error") | ||
JLLWrappers.@declare_library_product(libgpg_error, "libgpg-error.so.0") | ||
function __init__() | ||
global artifact_dir = abspath(artifact"Libgpg_error") | ||
|
||
# Initialize PATH and LIBPATH environment variable listings | ||
global PATH_list, LIBPATH_list | ||
global libgpg_error_path = normpath(joinpath(artifact_dir, libgpg_error_splitpath...)) | ||
|
||
# Manually `dlopen()` this right now so that future invocations | ||
# of `ccall` with its `SONAME` will find this path immediately. | ||
global libgpg_error_handle = dlopen(libgpg_error_path) | ||
push!(LIBPATH_list, dirname(libgpg_error_path)) | ||
|
||
# Filter out duplicate and empty entries in our PATH and LIBPATH entries | ||
filter!(!isempty, unique!(PATH_list)) | ||
filter!(!isempty, unique!(LIBPATH_list)) | ||
global PATH = join(PATH_list, ':') | ||
global LIBPATH = join(vcat(LIBPATH_list, [joinpath(Sys.BINDIR, Base.LIBDIR, "julia"), joinpath(Sys.BINDIR, Base.LIBDIR)]), ':') | ||
|
||
|
||
JLLWrappers.@generate_init_header() | ||
JLLWrappers.@init_library_product( | ||
libgpg_error, | ||
"lib/libgpg-error.so", | ||
RTLD_LAZY | RTLD_DEEPBIND, | ||
) | ||
|
||
JLLWrappers.@generate_init_footer() | ||
end # __init__() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,15 @@ | ||
# Autogenerated wrapper script for Libgpg_error_jll for armv7l-linux-musleabihf | ||
export libgpg_error | ||
|
||
## Global variables | ||
PATH = "" | ||
LIBPATH = "" | ||
LIBPATH_env = "LD_LIBRARY_PATH" | ||
LIBPATH_default = "" | ||
|
||
# Relative path to `libgpg_error` | ||
const libgpg_error_splitpath = ["lib", "libgpg-error.so"] | ||
|
||
# This will be filled out by __init__() for all products, as it must be done at runtime | ||
libgpg_error_path = "" | ||
|
||
# libgpg_error-specific global declaration | ||
# This will be filled out by __init__() | ||
libgpg_error_handle = C_NULL | ||
|
||
# This must be `const` so that we can use it with `ccall()` | ||
const libgpg_error = "libgpg-error.so.0" | ||
|
||
|
||
""" | ||
Open all libraries | ||
""" | ||
JLLWrappers.@generate_wrapper_header("Libgpg_error") | ||
JLLWrappers.@declare_library_product(libgpg_error, "libgpg-error.so.0") | ||
function __init__() | ||
global artifact_dir = abspath(artifact"Libgpg_error") | ||
|
||
# Initialize PATH and LIBPATH environment variable listings | ||
global PATH_list, LIBPATH_list | ||
global libgpg_error_path = normpath(joinpath(artifact_dir, libgpg_error_splitpath...)) | ||
|
||
# Manually `dlopen()` this right now so that future invocations | ||
# of `ccall` with its `SONAME` will find this path immediately. | ||
global libgpg_error_handle = dlopen(libgpg_error_path) | ||
push!(LIBPATH_list, dirname(libgpg_error_path)) | ||
|
||
# Filter out duplicate and empty entries in our PATH and LIBPATH entries | ||
filter!(!isempty, unique!(PATH_list)) | ||
filter!(!isempty, unique!(LIBPATH_list)) | ||
global PATH = join(PATH_list, ':') | ||
global LIBPATH = join(vcat(LIBPATH_list, [joinpath(Sys.BINDIR, Base.LIBDIR, "julia"), joinpath(Sys.BINDIR, Base.LIBDIR)]), ':') | ||
|
||
|
||
JLLWrappers.@generate_init_header() | ||
JLLWrappers.@init_library_product( | ||
libgpg_error, | ||
"lib/libgpg-error.so", | ||
RTLD_LAZY | RTLD_DEEPBIND, | ||
) | ||
|
||
JLLWrappers.@generate_init_footer() | ||
end # __init__() | ||
|
Oops, something went wrong.