From 7eacfec303f0f1f291e431cc6c261b03e2a439b1 Mon Sep 17 00:00:00 2001 From: jlbuild Date: Fri, 16 Oct 2020 18:52:11 +0000 Subject: [PATCH] Libgpg_error_jll build 1.36.0+3 --- .gitignore | 1 + Project.toml | 5 +- README.md | 32 +++++------ src/Libgpg_error_jll.jl | 64 +++------------------- src/wrappers/aarch64-linux-gnu.jl | 52 ++++-------------- src/wrappers/aarch64-linux-musl.jl | 52 ++++-------------- src/wrappers/armv7l-linux-gnueabihf.jl | 52 ++++-------------- src/wrappers/armv7l-linux-musleabihf.jl | 52 ++++-------------- src/wrappers/i686-linux-gnu.jl | 52 ++++-------------- src/wrappers/i686-linux-musl.jl | 52 ++++-------------- src/wrappers/i686-w64-mingw32.jl | 52 ++++-------------- src/wrappers/powerpc64le-linux-gnu.jl | 52 ++++-------------- src/wrappers/x86_64-apple-darwin.jl | 15 +++++ src/wrappers/x86_64-apple-darwin14.jl | 47 ---------------- src/wrappers/x86_64-linux-gnu.jl | 52 ++++-------------- src/wrappers/x86_64-linux-musl.jl | 52 ++++-------------- src/wrappers/x86_64-unknown-freebsd.jl | 15 +++++ src/wrappers/x86_64-unknown-freebsd11.1.jl | 47 ---------------- src/wrappers/x86_64-w64-mingw32.jl | 52 ++++-------------- 19 files changed, 169 insertions(+), 629 deletions(-) create mode 100644 .gitignore create mode 100644 src/wrappers/x86_64-apple-darwin.jl delete mode 100644 src/wrappers/x86_64-apple-darwin14.jl create mode 100644 src/wrappers/x86_64-unknown-freebsd.jl delete mode 100644 src/wrappers/x86_64-unknown-freebsd11.1.jl diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3ae43e4 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +override/ diff --git a/Project.toml b/Project.toml index 20009f4..961e627 100644 --- a/Project.toml +++ b/Project.toml @@ -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" diff --git a/README.md b/README.md index d8cb631..fd36b5d 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -# `Libgpg_error_jll.jl` (v1.36.0+2) +# `Libgpg_error_jll.jl` (v1.36.0+3) -This is an autogenerated package constructed using [`BinaryBuilder.jl`](https://github.com/JuliaPackaging/BinaryBuilder.jl). The originating [`build_tarballs.jl`](https://github.com/JuliaPackaging/Yggdrasil/blob/b81d0067d2dd19f6f1ffe2a15b3a595c4ccc204c/L/Libgpg_error/build_tarballs.jl) script can be found on [`Yggdrasil`](https://github.com/JuliaPackaging/Yggdrasil/), the community build tree. +This is an autogenerated package constructed using [`BinaryBuilder.jl`](https://github.com/JuliaPackaging/BinaryBuilder.jl). The originating [`build_tarballs.jl`](https://github.com/JuliaPackaging/Yggdrasil/blob/7ba2d10fc09d381d00d04998b552851b0cded15f/L/Libgpg_error/build_tarballs.jl) script can be found on [`Yggdrasil`](https://github.com/JuliaPackaging/Yggdrasil/), the community build tree. If you have any issue, please report it to the Yggdrasil [bug tracker](https://github.com/JuliaPackaging/Yggdrasil/issues). For more details about JLL packages and how to use them, see `BinaryBuilder.jl` [documentation](https://juliapackaging.github.io/BinaryBuilder.jl/dev/jll/). @@ -9,25 +9,25 @@ For more details about JLL packages and how to use them, see `BinaryBuilder.jl` The tarballs for `Libgpg_error_jll.jl` have been built from these sources: * compressed archive: https://gnupg.org/ftp/gcrypt/libgpg-error/libgpg-error-1.36.tar.bz2 (SHA256 checksum: `babd98437208c163175c29453f8681094bcaf92968a15cafb1a276076b33c97c`) -* files in directory, relative to originating `build_tarballs.jl`: [`./bundled`](https://github.com/JuliaPackaging/Yggdrasil/tree/b81d0067d2dd19f6f1ffe2a15b3a595c4ccc204c/L/Libgpg_error/bundled) +* files in directory, relative to originating `build_tarballs.jl`: [`./bundled`](https://github.com/JuliaPackaging/Yggdrasil/tree/7ba2d10fc09d381d00d04998b552851b0cded15f/L/Libgpg_error/bundled) ## Platforms `Libgpg_error_jll.jl` is available for the following platforms: -* `Linux(:aarch64, libc=:glibc)` (`aarch64-linux-gnu`) -* `Linux(:aarch64, libc=:musl)` (`aarch64-linux-musl`) -* `Linux(:armv7l, libc=:glibc, call_abi=:eabihf)` (`armv7l-linux-gnueabihf`) -* `Linux(:armv7l, libc=:musl, call_abi=:eabihf)` (`armv7l-linux-musleabihf`) -* `Linux(:i686, libc=:glibc)` (`i686-linux-gnu`) -* `Linux(:i686, libc=:musl)` (`i686-linux-musl`) -* `Windows(:i686)` (`i686-w64-mingw32`) -* `Linux(:powerpc64le, libc=:glibc)` (`powerpc64le-linux-gnu`) -* `MacOS(:x86_64)` (`x86_64-apple-darwin14`) -* `Linux(:x86_64, libc=:glibc)` (`x86_64-linux-gnu`) -* `Linux(:x86_64, libc=:musl)` (`x86_64-linux-musl`) -* `FreeBSD(:x86_64)` (`x86_64-unknown-freebsd11.1`) -* `Windows(:x86_64)` (`x86_64-w64-mingw32`) +* `Linux aarch64 {libc=glibc}` (`aarch64-linux-gnu`) +* `Linux aarch64 {libc=musl}` (`aarch64-linux-musl`) +* `Linux armv7l {call_abi=eabihf, libc=glibc}` (`armv7l-linux-gnueabihf`) +* `Linux armv7l {call_abi=eabihf, libc=musl}` (`armv7l-linux-musleabihf`) +* `Linux i686 {libc=glibc}` (`i686-linux-gnu`) +* `Linux i686 {libc=musl}` (`i686-linux-musl`) +* `Windows i686` (`i686-w64-mingw32`) +* `Linux powerpc64le {libc=glibc}` (`powerpc64le-linux-gnu`) +* `macOS x86_64` (`x86_64-apple-darwin`) +* `Linux x86_64 {libc=glibc}` (`x86_64-linux-gnu`) +* `Linux x86_64 {libc=musl}` (`x86_64-linux-musl`) +* `FreeBSD x86_64` (`x86_64-unknown-freebsd`) +* `Windows x86_64` (`x86_64-w64-mingw32`) ## Products diff --git a/src/Libgpg_error_jll.jl b/src/Libgpg_error_jll.jl index 097ba91..78042f9 100644 --- a/src/Libgpg_error_jll.jl +++ b/src/Libgpg_error_jll.jl @@ -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 diff --git a/src/wrappers/aarch64-linux-gnu.jl b/src/wrappers/aarch64-linux-gnu.jl index cd27177..f705bff 100644 --- a/src/wrappers/aarch64-linux-gnu.jl +++ b/src/wrappers/aarch64-linux-gnu.jl @@ -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__() - diff --git a/src/wrappers/aarch64-linux-musl.jl b/src/wrappers/aarch64-linux-musl.jl index 3fc1039..641b2cf 100644 --- a/src/wrappers/aarch64-linux-musl.jl +++ b/src/wrappers/aarch64-linux-musl.jl @@ -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__() - diff --git a/src/wrappers/armv7l-linux-gnueabihf.jl b/src/wrappers/armv7l-linux-gnueabihf.jl index e1dfb29..f482e1c 100644 --- a/src/wrappers/armv7l-linux-gnueabihf.jl +++ b/src/wrappers/armv7l-linux-gnueabihf.jl @@ -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__() - diff --git a/src/wrappers/armv7l-linux-musleabihf.jl b/src/wrappers/armv7l-linux-musleabihf.jl index d5c9483..f1d96c0 100644 --- a/src/wrappers/armv7l-linux-musleabihf.jl +++ b/src/wrappers/armv7l-linux-musleabihf.jl @@ -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__() - diff --git a/src/wrappers/i686-linux-gnu.jl b/src/wrappers/i686-linux-gnu.jl index 5f5d9fe..6ce1160 100644 --- a/src/wrappers/i686-linux-gnu.jl +++ b/src/wrappers/i686-linux-gnu.jl @@ -1,47 +1,15 @@ # Autogenerated wrapper script for Libgpg_error_jll for i686-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__() - diff --git a/src/wrappers/i686-linux-musl.jl b/src/wrappers/i686-linux-musl.jl index 6d1a3de..f572e60 100644 --- a/src/wrappers/i686-linux-musl.jl +++ b/src/wrappers/i686-linux-musl.jl @@ -1,47 +1,15 @@ # Autogenerated wrapper script for Libgpg_error_jll for i686-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__() - diff --git a/src/wrappers/i686-w64-mingw32.jl b/src/wrappers/i686-w64-mingw32.jl index c078a45..2d50886 100644 --- a/src/wrappers/i686-w64-mingw32.jl +++ b/src/wrappers/i686-w64-mingw32.jl @@ -1,47 +1,15 @@ # Autogenerated wrapper script for Libgpg_error_jll for i686-w64-mingw32 export libgpg_error -## Global variables -PATH = "" -LIBPATH = "" -LIBPATH_env = "PATH" -LIBPATH_default = "" - -# Relative path to `libgpg_error` -const libgpg_error_splitpath = ["bin", "libgpg-error-0.dll"] - -# 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-0.dll" - - -""" -Open all libraries -""" +JLLWrappers.@generate_wrapper_header("Libgpg_error") +JLLWrappers.@declare_library_product(libgpg_error, "libgpg-error-0.dll") 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, [Sys.BINDIR, joinpath(Sys.BINDIR, Base.LIBDIR, "julia"), joinpath(Sys.BINDIR, Base.LIBDIR)]), ';') - - + JLLWrappers.@generate_init_header() + JLLWrappers.@init_library_product( + libgpg_error, + "bin\\libgpg-error-0.dll", + RTLD_LAZY | RTLD_DEEPBIND, + ) + + JLLWrappers.@generate_init_footer() end # __init__() - diff --git a/src/wrappers/powerpc64le-linux-gnu.jl b/src/wrappers/powerpc64le-linux-gnu.jl index 17ef1f3..b2ee607 100644 --- a/src/wrappers/powerpc64le-linux-gnu.jl +++ b/src/wrappers/powerpc64le-linux-gnu.jl @@ -1,47 +1,15 @@ # Autogenerated wrapper script for Libgpg_error_jll for powerpc64le-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__() - diff --git a/src/wrappers/x86_64-apple-darwin.jl b/src/wrappers/x86_64-apple-darwin.jl new file mode 100644 index 0000000..c0dc4ff --- /dev/null +++ b/src/wrappers/x86_64-apple-darwin.jl @@ -0,0 +1,15 @@ +# Autogenerated wrapper script for Libgpg_error_jll for x86_64-apple-darwin +export libgpg_error + +JLLWrappers.@generate_wrapper_header("Libgpg_error") +JLLWrappers.@declare_library_product(libgpg_error, "@rpath/libgpg-error.0.dylib") +function __init__() + JLLWrappers.@generate_init_header() + JLLWrappers.@init_library_product( + libgpg_error, + "lib/libgpg-error.0.dylib", + RTLD_LAZY | RTLD_DEEPBIND, + ) + + JLLWrappers.@generate_init_footer() +end # __init__() diff --git a/src/wrappers/x86_64-apple-darwin14.jl b/src/wrappers/x86_64-apple-darwin14.jl deleted file mode 100644 index bd4b167..0000000 --- a/src/wrappers/x86_64-apple-darwin14.jl +++ /dev/null @@ -1,47 +0,0 @@ -# Autogenerated wrapper script for Libgpg_error_jll for x86_64-apple-darwin14 -export libgpg_error - -## Global variables -PATH = "" -LIBPATH = "" -LIBPATH_env = "DYLD_FALLBACK_LIBRARY_PATH" -LIBPATH_default = "~/lib:/usr/local/lib:/lib:/usr/lib" - -# Relative path to `libgpg_error` -const libgpg_error_splitpath = ["lib", "libgpg-error.0.dylib"] - -# 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 = "@rpath/libgpg-error.0.dylib" - - -""" -Open all libraries -""" -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)]), ':') - - -end # __init__() - diff --git a/src/wrappers/x86_64-linux-gnu.jl b/src/wrappers/x86_64-linux-gnu.jl index ec7cb32..b3dcdcf 100644 --- a/src/wrappers/x86_64-linux-gnu.jl +++ b/src/wrappers/x86_64-linux-gnu.jl @@ -1,47 +1,15 @@ # Autogenerated wrapper script for Libgpg_error_jll for x86_64-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__() - diff --git a/src/wrappers/x86_64-linux-musl.jl b/src/wrappers/x86_64-linux-musl.jl index ff48c39..5e56042 100644 --- a/src/wrappers/x86_64-linux-musl.jl +++ b/src/wrappers/x86_64-linux-musl.jl @@ -1,47 +1,15 @@ # Autogenerated wrapper script for Libgpg_error_jll for x86_64-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__() - diff --git a/src/wrappers/x86_64-unknown-freebsd.jl b/src/wrappers/x86_64-unknown-freebsd.jl new file mode 100644 index 0000000..124385f --- /dev/null +++ b/src/wrappers/x86_64-unknown-freebsd.jl @@ -0,0 +1,15 @@ +# Autogenerated wrapper script for Libgpg_error_jll for x86_64-unknown-freebsd +export libgpg_error + +JLLWrappers.@generate_wrapper_header("Libgpg_error") +JLLWrappers.@declare_library_product(libgpg_error, "libgpg-error.so.27") +function __init__() + JLLWrappers.@generate_init_header() + JLLWrappers.@init_library_product( + libgpg_error, + "lib/libgpg-error.so", + RTLD_LAZY | RTLD_DEEPBIND, + ) + + JLLWrappers.@generate_init_footer() +end # __init__() diff --git a/src/wrappers/x86_64-unknown-freebsd11.1.jl b/src/wrappers/x86_64-unknown-freebsd11.1.jl deleted file mode 100644 index acbe36b..0000000 --- a/src/wrappers/x86_64-unknown-freebsd11.1.jl +++ /dev/null @@ -1,47 +0,0 @@ -# Autogenerated wrapper script for Libgpg_error_jll for x86_64-unknown-freebsd11.1 -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.27" - - -""" -Open all libraries -""" -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)]), ':') - - -end # __init__() - diff --git a/src/wrappers/x86_64-w64-mingw32.jl b/src/wrappers/x86_64-w64-mingw32.jl index e731fc8..fab376d 100644 --- a/src/wrappers/x86_64-w64-mingw32.jl +++ b/src/wrappers/x86_64-w64-mingw32.jl @@ -1,47 +1,15 @@ # Autogenerated wrapper script for Libgpg_error_jll for x86_64-w64-mingw32 export libgpg_error -## Global variables -PATH = "" -LIBPATH = "" -LIBPATH_env = "PATH" -LIBPATH_default = "" - -# Relative path to `libgpg_error` -const libgpg_error_splitpath = ["bin", "libgpg-error6-0.dll"] - -# 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-error6-0.dll" - - -""" -Open all libraries -""" +JLLWrappers.@generate_wrapper_header("Libgpg_error") +JLLWrappers.@declare_library_product(libgpg_error, "libgpg-error6-0.dll") 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, [Sys.BINDIR, joinpath(Sys.BINDIR, Base.LIBDIR, "julia"), joinpath(Sys.BINDIR, Base.LIBDIR)]), ';') - - + JLLWrappers.@generate_init_header() + JLLWrappers.@init_library_product( + libgpg_error, + "bin\\libgpg-error6-0.dll", + RTLD_LAZY | RTLD_DEEPBIND, + ) + + JLLWrappers.@generate_init_footer() end # __init__() -