Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[oxigraph_server] Add Oxigraph RDF DB #4078

Merged
merged 20 commits into from
Dec 18, 2021
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions O/oxigraph/build_tarballs.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Note that this script can accept some limited command-line arguments, run
# `julia build_tarballs.jl --help` to see a usage message.
using BinaryBuilder, Pkg

name = "oxigraph"
version = v"0.2.5"

# Collection of sources required to complete build
sources = [
GitSource("https://github.com/oxigraph/oxigraph.git", "a21dcbb4f7355d7a00a86fbc5ad2c350a53629c4"),
DirectorySource("./bundled"),
jeremiahpslewis marked this conversation as resolved.
Show resolved Hide resolved
]

# Bash recipe for building across all platforms
script = raw"""
cd $WORKSPACE/srcdir/oxigraph/lib

cargo build --release -j${nproc}
jeremiahpslewis marked this conversation as resolved.
Show resolved Hide resolved

install_license $WORKSPACE/srcdir/oxigraph/LICENSE-MIT
"""
jeremiahpslewis marked this conversation as resolved.
Show resolved Hide resolved

# These are the platforms we will build for by default, unless further
# platforms are passed in on the command line
platforms = supported_platforms(; experimental=true)

# Rust toolchain for i686 Windows is unusable
filter!(p -> !Sys.iswindows(p) || arch(p) != "i686", platforms)

# The products that we will ensure are always built
products = Product[
jeremiahpslewis marked this conversation as resolved.
Show resolved Hide resolved
]

# Dependencies that must be installed before this package can be built
dependencies = Dependency[
]

# Build the tarballs, and possibly a `build.jl` as well.
build_tarballs(ARGS, name, version, sources, script, platforms, products, dependencies;
compilers=[:c, :rust], preferred_gcc_version=v"7", lock_microarchitecture=false, julia_compat="1.6")
2 changes: 2 additions & 0 deletions O/oxigraph/bundled/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[target.x86_64-unknown-linux-musl]
rustflags = ["-C", "linker-flavor=ld.lld"]
12 changes: 12 additions & 0 deletions O/oxigraph/bundled/patches/memchr_patch.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff --git a/lib/Cargo.toml b/lib/Cargo.toml
index e174425..972c88f 100644
--- a/lib/Cargo.toml
+++ b/lib/Cargo.toml
@@ -24,6 +24,7 @@ http_client = ["httparse", "native-tls"]
[dependencies]
rocksdb = { version = "0.16", optional = true }
sled = { version = "0.34", optional = true }
+memchr = { version = "2", default-features = false }
quick-xml = "0.22"
rand = "0.8"
md-5 = "0.9"