Skip to content

Commit

Permalink
Libuuid_jll build 2.34.0+4
Browse files Browse the repository at this point in the history
  • Loading branch information
jlbuild committed Apr 2, 2020
1 parent da86c28 commit 02f7ed7
Show file tree
Hide file tree
Showing 15 changed files with 134 additions and 75 deletions.
88 changes: 44 additions & 44 deletions Artifacts.toml
Original file line number Diff line number Diff line change
@@ -1,89 +1,89 @@
[[Libuuid]]
arch = "aarch64"
git-tree-sha1 = "dbcf84c08df6cc003a11350fe0f90fd1755e2b71"
arch = "armv7l"
git-tree-sha1 = "948503974ba3f56a0bdb5a0bbe5a576dcd213452"
libc = "glibc"
os = "linux"

[[Libuuid.download]]
sha256 = "581ef032828ea65effc19e1ad92a48321ea55714e929c8c7811f2f7f807ed32a"
url = "https://github.com/JuliaBinaryWrappers/Libuuid_jll.jl/releases/download/Libuuid-v2.34.0+3/Libuuid.v2.34.0.aarch64-linux-gnu.tar.gz"
sha256 = "f9d5c4c8eadfad2738bf8a5a020685761d6366dddea6535510c734abcce238b5"
url = "https://github.com/JuliaBinaryWrappers/Libuuid_jll.jl/releases/download/Libuuid-v2.34.0+4/Libuuid.v2.34.0.armv7l-linux-gnueabihf.tar.gz"
[[Libuuid]]
arch = "aarch64"
git-tree-sha1 = "376357632d64b5471f06eef12c728bfcef85590c"
arch = "i686"
git-tree-sha1 = "3f7eedc8fa8bb9f72753c4b952b090048a481bb4"
libc = "musl"
os = "linux"

[[Libuuid.download]]
sha256 = "ead1aeba507973572b7e7a64ce132cdec6f091833137cf624a4ed0e18d5b0dac"
url = "https://github.com/JuliaBinaryWrappers/Libuuid_jll.jl/releases/download/Libuuid-v2.34.0+3/Libuuid.v2.34.0.aarch64-linux-musl.tar.gz"
sha256 = "58adc448f20b7d72c7df8bb49224e650dcb131211203bf88c1775bc6d123daa1"
url = "https://github.com/JuliaBinaryWrappers/Libuuid_jll.jl/releases/download/Libuuid-v2.34.0+4/Libuuid.v2.34.0.i686-linux-musl.tar.gz"
[[Libuuid]]
arch = "x86_64"
git-tree-sha1 = "714df3cd0b2d827ff8ff00c0b8d801aa9175f64b"
arch = "aarch64"
git-tree-sha1 = "e58fdb3b503b87dafc04e5760ca915cf594e6043"
libc = "glibc"
os = "linux"

[[Libuuid.download]]
sha256 = "7951a589812629d98bb861491ffeb2adcea1c82b14f51671faba9b9257c8eefc"
url = "https://github.com/JuliaBinaryWrappers/Libuuid_jll.jl/releases/download/Libuuid-v2.34.0+3/Libuuid.v2.34.0.x86_64-linux-gnu.tar.gz"
sha256 = "65a772d44a6e1b8ebfc8a66f8b3df635b46188cb87c90d6be0c4487524a557f9"
url = "https://github.com/JuliaBinaryWrappers/Libuuid_jll.jl/releases/download/Libuuid-v2.34.0+4/Libuuid.v2.34.0.aarch64-linux-gnu.tar.gz"
[[Libuuid]]
arch = "i686"
git-tree-sha1 = "9fbb3f93dc5b0bfebb0ef233badaf3fee310a683"
libc = "glibc"
arch = "armv7l"
git-tree-sha1 = "043544bac7b29155971ddfd27b9a7fc0157cb926"
libc = "musl"
os = "linux"

[[Libuuid.download]]
sha256 = "7639e7dad7a6138d8e074cded5354d087825be6351173b8590b13a5991aa44a2"
url = "https://github.com/JuliaBinaryWrappers/Libuuid_jll.jl/releases/download/Libuuid-v2.34.0+3/Libuuid.v2.34.0.i686-linux-gnu.tar.gz"
sha256 = "d8212479d0d07c2c5242886a7506b01053dac7a5d1976f57359880e616e39aa3"
url = "https://github.com/JuliaBinaryWrappers/Libuuid_jll.jl/releases/download/Libuuid-v2.34.0+4/Libuuid.v2.34.0.armv7l-linux-musleabihf.tar.gz"
[[Libuuid]]
arch = "x86_64"
git-tree-sha1 = "45248f25cfab7c21ee8713d3b8d8ea9b0160c008"
arch = "aarch64"
git-tree-sha1 = "080f0b7036455eb7759d59b9a98f5a8e2fba3369"
libc = "musl"
os = "linux"

[[Libuuid.download]]
sha256 = "7bad57cc41fac8de3b80879aecc7d02564154c984aaefcd48a8963e8fbc1610a"
url = "https://github.com/JuliaBinaryWrappers/Libuuid_jll.jl/releases/download/Libuuid-v2.34.0+3/Libuuid.v2.34.0.x86_64-linux-musl.tar.gz"
sha256 = "9d9fbf23df05235ff7da4a9e451f8b04b0f40560ae9aeb35ed6924d1950e0df5"
url = "https://github.com/JuliaBinaryWrappers/Libuuid_jll.jl/releases/download/Libuuid-v2.34.0+4/Libuuid.v2.34.0.aarch64-linux-musl.tar.gz"
[[Libuuid]]
arch = "powerpc64le"
git-tree-sha1 = "840f93e297a363adacea2eb103560bfae12c9607"
libc = "glibc"
os = "linux"
arch = "x86_64"
git-tree-sha1 = "ed09e6593d7be9d36adfa8ebdd8b6c2823170d5a"
os = "freebsd"

[[Libuuid.download]]
sha256 = "41b9fce387a1333dc871cc53dc482ceea7982728e5e28b54d4b8e8df2584ba3d"
url = "https://github.com/JuliaBinaryWrappers/Libuuid_jll.jl/releases/download/Libuuid-v2.34.0+3/Libuuid.v2.34.0.powerpc64le-linux-gnu.tar.gz"
sha256 = "75a3152dfd9a82356d08dc6a4a668eb298ff8611e74e77e9d06a0e226339ee75"
url = "https://github.com/JuliaBinaryWrappers/Libuuid_jll.jl/releases/download/Libuuid-v2.34.0+4/Libuuid.v2.34.0.x86_64-unknown-freebsd11.1.tar.gz"
[[Libuuid]]
arch = "i686"
git-tree-sha1 = "7a6f8c952e84450fa37e241c7e724c788e2305ec"
libc = "musl"
git-tree-sha1 = "0e50ec3a76ddfbe3a13bc2904e943449edaee4a2"
libc = "glibc"
os = "linux"

[[Libuuid.download]]
sha256 = "ac72f81bc0a746972255da7dd601b906037514f789e0646c1971efd794aa8d94"
url = "https://github.com/JuliaBinaryWrappers/Libuuid_jll.jl/releases/download/Libuuid-v2.34.0+3/Libuuid.v2.34.0.i686-linux-musl.tar.gz"
sha256 = "ec31e26a8a8082a03ee282981d76be32aa4fe81ca925d941bf76191c737c6652"
url = "https://github.com/JuliaBinaryWrappers/Libuuid_jll.jl/releases/download/Libuuid-v2.34.0+4/Libuuid.v2.34.0.i686-linux-gnu.tar.gz"
[[Libuuid]]
arch = "x86_64"
git-tree-sha1 = "210b2fb7c45a978ee95dea7db6ea88aedc6e56d1"
os = "freebsd"
git-tree-sha1 = "d103c7bd6110513562ac7180c5539d1e2df1ff97"
libc = "musl"
os = "linux"

[[Libuuid.download]]
sha256 = "1e93209a96bd52d371a964310cb4f04ec6b9308e5f3dd9fc617a32a7f94da2c4"
url = "https://github.com/JuliaBinaryWrappers/Libuuid_jll.jl/releases/download/Libuuid-v2.34.0+3/Libuuid.v2.34.0.x86_64-unknown-freebsd11.1.tar.gz"
sha256 = "2b40d6337c68e08b9a9f6d6e06ac65bf99261b3f9ee07b3ef9796ac269643ab2"
url = "https://github.com/JuliaBinaryWrappers/Libuuid_jll.jl/releases/download/Libuuid-v2.34.0+4/Libuuid.v2.34.0.x86_64-linux-musl.tar.gz"
[[Libuuid]]
arch = "armv7l"
git-tree-sha1 = "35355fe56af8e6bd7c712f2a513a157a3ce9dccd"
arch = "x86_64"
git-tree-sha1 = "d0db329428e64ed209e21a4f8c0c65f57614cd88"
libc = "glibc"
os = "linux"

[[Libuuid.download]]
sha256 = "1d4e08bb08561ba51a91aebf53a4c637491bb5a91647fc6c40979978a9197f54"
url = "https://github.com/JuliaBinaryWrappers/Libuuid_jll.jl/releases/download/Libuuid-v2.34.0+3/Libuuid.v2.34.0.arm-linux-gnueabihf.tar.gz"
sha256 = "c7d41e03108eb6591cc80563c05068175e0c4977b2a160ed8f8180800bed6e24"
url = "https://github.com/JuliaBinaryWrappers/Libuuid_jll.jl/releases/download/Libuuid-v2.34.0+4/Libuuid.v2.34.0.x86_64-linux-gnu.tar.gz"
[[Libuuid]]
arch = "armv7l"
git-tree-sha1 = "3e76a7c933df13b4f64ce8893fcd8b1d69c32d7a"
libc = "musl"
arch = "powerpc64le"
git-tree-sha1 = "6c7b614bc2aba869e92eff87d8d47f96fbd6289a"
libc = "glibc"
os = "linux"

[[Libuuid.download]]
sha256 = "767baf8d2156199917e56a03f2d62f82f65d8b460d5b3f847c14e630712388f8"
url = "https://github.com/JuliaBinaryWrappers/Libuuid_jll.jl/releases/download/Libuuid-v2.34.0+3/Libuuid.v2.34.0.arm-linux-musleabihf.tar.gz"
sha256 = "c9144efea9c8c72c8c4543e6f7e3c80739dcd5958ff10b2a8c26845bc19eb433"
url = "https://github.com/JuliaBinaryWrappers/Libuuid_jll.jl/releases/download/Libuuid-v2.34.0+4/Libuuid.v2.34.0.powerpc64le-linux-gnu.tar.gz"
7 changes: 7 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Copyright 2020

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name = "Libuuid_jll"
uuid = "38a345b3-de98-5d2b-a5d3-14cd9215e700"
version = "2.34.0+3"
version = "2.34.0+4"

[deps]
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
Libdl = "8f399da3-3557-5675-b5ff-fb832c97cbdb"

[compat]
julia = "1.3"
julia = "1.0"
20 changes: 15 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,19 @@

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

## Usage
## Products

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:
The code bindings within this package are autogenerated from the following `Products` defined within the `build_tarballs.jl` file that generated this package:

```julia
products = [
LibraryProduct(["libuuid"], :libuuid)
]
```

## Usage example

For example purposes, we will assume that the following products were defined in the imaginary package `Example_jll`:

```julia
products = [
Expand All @@ -14,18 +24,18 @@ products = [
]
```

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:
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:

```julia
using Libuuid_jll
using Example_jll

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

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

# For executable products, you can use the exported variable name as a function that you can call
mungify_exe() do mungify_exe_path
Expand Down
26 changes: 24 additions & 2 deletions src/Libuuid_jll.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,23 @@
module Libuuid_jll

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 wtihin 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 Libuuid_jll on Julia versions older than 1.3!")
end

using Pkg, Pkg.BinaryPlatforms, Pkg.Artifacts, Libdl
import Base: UUID

Expand All @@ -15,7 +34,7 @@ artifacts = Pkg.Artifacts.load_artifacts_toml(artifacts_toml; pkg_uuid=UUID("38a
platforms = [Pkg.Artifacts.unpack_platform(e, "Libuuid", artifacts_toml) for e in artifacts["Libuuid"]]

# Filter platforms based on what wrappers we've generated on-disk
platforms = filter(p -> isfile(joinpath(@__DIR__, "wrappers", triplet(p) * ".jl")), platforms)
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))
Expand All @@ -24,7 +43,10 @@ best_platform = select_platform(Dict(p => triplet(p) for p in platforms))
if best_platform === nothing
@debug("Unable to load Libuuid; unsupported platform $(triplet(platform_key_abi()))")
else
# Load the appropriate wrapper
# 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

Expand Down
6 changes: 4 additions & 2 deletions src/wrappers/aarch64-linux-gnu.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,13 @@ const libuuid = "libuuid.so.1"
Open all libraries
"""
function __init__()
global prefix = abspath(joinpath(@__DIR__, ".."))
global artifact_dir = abspath(artifact"Libuuid")

# Initialize PATH and LIBPATH environment variable listings
global PATH_list, LIBPATH_list
global libuuid_path = abspath(joinpath(artifact"Libuuid", libuuid_splitpath...))
# We first need to add to LIBPATH_list the libraries provided by Julia
append!(LIBPATH_list, [joinpath(Sys.BINDIR, Base.LIBDIR, "julia"), joinpath(Sys.BINDIR, Base.LIBDIR)])
global libuuid_path = normpath(joinpath(artifact_dir, libuuid_splitpath...))

# Manually `dlopen()` this right now so that future invocations
# of `ccall` with its `SONAME` will find this path immediately.
Expand Down
6 changes: 4 additions & 2 deletions src/wrappers/aarch64-linux-musl.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,13 @@ const libuuid = "libuuid.so.1"
Open all libraries
"""
function __init__()
global prefix = abspath(joinpath(@__DIR__, ".."))
global artifact_dir = abspath(artifact"Libuuid")

# Initialize PATH and LIBPATH environment variable listings
global PATH_list, LIBPATH_list
global libuuid_path = abspath(joinpath(artifact"Libuuid", libuuid_splitpath...))
# We first need to add to LIBPATH_list the libraries provided by Julia
append!(LIBPATH_list, [joinpath(Sys.BINDIR, Base.LIBDIR, "julia"), joinpath(Sys.BINDIR, Base.LIBDIR)])
global libuuid_path = normpath(joinpath(artifact_dir, libuuid_splitpath...))

# Manually `dlopen()` this right now so that future invocations
# of `ccall` with its `SONAME` will find this path immediately.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Autogenerated wrapper script for Libuuid_jll for arm-linux-gnueabihf
# Autogenerated wrapper script for Libuuid_jll for armv7l-linux-gnueabihf
export libuuid

## Global variables
Expand All @@ -24,11 +24,13 @@ const libuuid = "libuuid.so.1"
Open all libraries
"""
function __init__()
global prefix = abspath(joinpath(@__DIR__, ".."))
global artifact_dir = abspath(artifact"Libuuid")

# Initialize PATH and LIBPATH environment variable listings
global PATH_list, LIBPATH_list
global libuuid_path = abspath(joinpath(artifact"Libuuid", libuuid_splitpath...))
# We first need to add to LIBPATH_list the libraries provided by Julia
append!(LIBPATH_list, [joinpath(Sys.BINDIR, Base.LIBDIR, "julia"), joinpath(Sys.BINDIR, Base.LIBDIR)])
global libuuid_path = normpath(joinpath(artifact_dir, libuuid_splitpath...))

# Manually `dlopen()` this right now so that future invocations
# of `ccall` with its `SONAME` will find this path immediately.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Autogenerated wrapper script for Libuuid_jll for arm-linux-musleabihf
# Autogenerated wrapper script for Libuuid_jll for armv7l-linux-musleabihf
export libuuid

## Global variables
Expand All @@ -24,11 +24,13 @@ const libuuid = "libuuid.so.1"
Open all libraries
"""
function __init__()
global prefix = abspath(joinpath(@__DIR__, ".."))
global artifact_dir = abspath(artifact"Libuuid")

# Initialize PATH and LIBPATH environment variable listings
global PATH_list, LIBPATH_list
global libuuid_path = abspath(joinpath(artifact"Libuuid", libuuid_splitpath...))
# We first need to add to LIBPATH_list the libraries provided by Julia
append!(LIBPATH_list, [joinpath(Sys.BINDIR, Base.LIBDIR, "julia"), joinpath(Sys.BINDIR, Base.LIBDIR)])
global libuuid_path = normpath(joinpath(artifact_dir, libuuid_splitpath...))

# Manually `dlopen()` this right now so that future invocations
# of `ccall` with its `SONAME` will find this path immediately.
Expand Down
6 changes: 4 additions & 2 deletions src/wrappers/i686-linux-gnu.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,13 @@ const libuuid = "libuuid.so.1"
Open all libraries
"""
function __init__()
global prefix = abspath(joinpath(@__DIR__, ".."))
global artifact_dir = abspath(artifact"Libuuid")

# Initialize PATH and LIBPATH environment variable listings
global PATH_list, LIBPATH_list
global libuuid_path = abspath(joinpath(artifact"Libuuid", libuuid_splitpath...))
# We first need to add to LIBPATH_list the libraries provided by Julia
append!(LIBPATH_list, [joinpath(Sys.BINDIR, Base.LIBDIR, "julia"), joinpath(Sys.BINDIR, Base.LIBDIR)])
global libuuid_path = normpath(joinpath(artifact_dir, libuuid_splitpath...))

# Manually `dlopen()` this right now so that future invocations
# of `ccall` with its `SONAME` will find this path immediately.
Expand Down
6 changes: 4 additions & 2 deletions src/wrappers/i686-linux-musl.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,13 @@ const libuuid = "libuuid.so.1"
Open all libraries
"""
function __init__()
global prefix = abspath(joinpath(@__DIR__, ".."))
global artifact_dir = abspath(artifact"Libuuid")

# Initialize PATH and LIBPATH environment variable listings
global PATH_list, LIBPATH_list
global libuuid_path = abspath(joinpath(artifact"Libuuid", libuuid_splitpath...))
# We first need to add to LIBPATH_list the libraries provided by Julia
append!(LIBPATH_list, [joinpath(Sys.BINDIR, Base.LIBDIR, "julia"), joinpath(Sys.BINDIR, Base.LIBDIR)])
global libuuid_path = normpath(joinpath(artifact_dir, libuuid_splitpath...))

# Manually `dlopen()` this right now so that future invocations
# of `ccall` with its `SONAME` will find this path immediately.
Expand Down
6 changes: 4 additions & 2 deletions src/wrappers/powerpc64le-linux-gnu.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,13 @@ const libuuid = "libuuid.so.1"
Open all libraries
"""
function __init__()
global prefix = abspath(joinpath(@__DIR__, ".."))
global artifact_dir = abspath(artifact"Libuuid")

# Initialize PATH and LIBPATH environment variable listings
global PATH_list, LIBPATH_list
global libuuid_path = abspath(joinpath(artifact"Libuuid", libuuid_splitpath...))
# We first need to add to LIBPATH_list the libraries provided by Julia
append!(LIBPATH_list, [joinpath(Sys.BINDIR, Base.LIBDIR, "julia"), joinpath(Sys.BINDIR, Base.LIBDIR)])
global libuuid_path = normpath(joinpath(artifact_dir, libuuid_splitpath...))

# Manually `dlopen()` this right now so that future invocations
# of `ccall` with its `SONAME` will find this path immediately.
Expand Down
6 changes: 4 additions & 2 deletions src/wrappers/x86_64-linux-gnu.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,13 @@ const libuuid = "libuuid.so.1"
Open all libraries
"""
function __init__()
global prefix = abspath(joinpath(@__DIR__, ".."))
global artifact_dir = abspath(artifact"Libuuid")

# Initialize PATH and LIBPATH environment variable listings
global PATH_list, LIBPATH_list
global libuuid_path = abspath(joinpath(artifact"Libuuid", libuuid_splitpath...))
# We first need to add to LIBPATH_list the libraries provided by Julia
append!(LIBPATH_list, [joinpath(Sys.BINDIR, Base.LIBDIR, "julia"), joinpath(Sys.BINDIR, Base.LIBDIR)])
global libuuid_path = normpath(joinpath(artifact_dir, libuuid_splitpath...))

# Manually `dlopen()` this right now so that future invocations
# of `ccall` with its `SONAME` will find this path immediately.
Expand Down
Loading

0 comments on commit 02f7ed7

Please sign in to comment.