forked from JuliaPackaging/Yggdrasil
-
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.
Merge branch 'master' into eschnett/hdf5-cross
* master: (38 commits) Bump LLVM to 14.0.6-3 (JuliaPackaging#6589) [llama_cpp] Bump version (JuliaPackaging#6588) [GMT] Let libcurl_jll compat have 7.7s and 8.0.1 (JuliaPackaging#6586) Make autotools more relocatable (JuliaPackaging#6585) [Libtool] Clean up, add more executable products (JuliaPackaging#6581) Bump MParT_jll to 2.0.2 (JuliaPackaging#6584) [automake] Add Automake `v1.16` (JuliaPackaging#6583) [autoconf] Add `autoconf` `v2.71` (JuliaPackaging#6582) [Bison] ensure the package does not hardcode paths (JuliaPackaging#6580) [gawk] Add v5.2.1 (JuliaPackaging#6579) New Recipe: Kira v2.3.0 (JuliaPackaging#6485) Regenerate PTSCOTCH_jll with a compat entry for SCOTCH_jll (JuliaPackaging#6575) [file] Add GNU file `v5.44` (JuliaPackaging#6573) [HSL] Compile v1.0.0 (JuliaPackaging#6549) Regenerate MUMPS_jll with a compat entry for SCOTCH_jll (JuliaPackaging#6576) Regenerate MMG_jll with a compat entry for SCOTCH_jll (JuliaPackaging#6571) Regenerate neper_jll with a compat entry for SCOTCH_jll (JuliaPackaging#6572) [Singular] update to 4.3.2-0 + depth pathches (JuliaPackaging#6577) Regenerate qr_mumps_jll with a compat entry for SCOTCH_jll (JuliaPackaging#6574) [patch] Add Patch `v2.7.6` (JuliaPackaging#6570) ...
- Loading branch information
Showing
62 changed files
with
3,666 additions
and
358 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
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,27 @@ | ||
using BinaryBuilder | ||
|
||
name = "autoconf" | ||
version = v"2.71" | ||
|
||
# Collection of sources required to complete build | ||
sources = [ | ||
ArchiveSource("https://ftp.gnu.org/gnu/autoconf/autoconf-$(version.major).$(version.minor).tar.xz", | ||
"f14c83cfebcc9427f2c3cea7258bd90df972d92eb26752da4ddad81c87a0faa4") | ||
] | ||
|
||
# Bash recipe for building across all platforms | ||
script = raw""" | ||
cd $WORKSPACE/srcdir/autoconf*/ | ||
./configure --prefix=${prefix} --build=${MACHTYPE} --host=${target} PERL="/usr/bin/env perl" | ||
make -j${nproc} | ||
make install | ||
""" | ||
|
||
platforms = [AnyPlatform()] | ||
products = [ | ||
FileProduct("bin/autoconf", :autoconf), | ||
] | ||
|
||
dependencies = Dependency[ | ||
] | ||
build_tarballs(ARGS, name, version, sources, script, platforms, products, dependencies; julia_compat="1.6") |
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,28 @@ | ||
using BinaryBuilder | ||
|
||
name = "automake" | ||
version = v"1.16.5" | ||
|
||
# Collection of sources required to complete build | ||
sources = [ | ||
ArchiveSource("https://ftp.gnu.org/gnu/automake/automake-$(version).tar.xz", | ||
"f01d58cd6d9d77fbdca9eb4bbd5ead1988228fdb73d6f7a201f5f8d6b118b469") | ||
] | ||
|
||
# Bash recipe for building across all platforms | ||
script = raw""" | ||
cd $WORKSPACE/srcdir/automake*/ | ||
./configure --prefix=${prefix} --build=${MACHTYPE} --host=${target} PERL="/usr/bin/env perl" | ||
make -j${nproc} | ||
make install | ||
""" | ||
|
||
platforms = [AnyPlatform()] | ||
products = [ | ||
FileProduct("bin/aclocal", :aclocal), | ||
] | ||
|
||
dependencies = [ | ||
Dependency("autoconf_jll"), | ||
] | ||
build_tarballs(ARGS, name, version, sources, script, platforms, products, dependencies; julia_compat="1.6") |
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 |
---|---|---|
|
@@ -56,3 +56,5 @@ for build in builds | |
skip_audit=true, dont_dlopen=true) | ||
end | ||
end | ||
|
||
# bump |
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 |
---|---|---|
@@ -0,0 +1,79 @@ | ||
# 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 | ||
using Base.BinaryPlatforms | ||
const YGGDRASIL_DIR = (dirname∘dirname∘dirname)(@__FILE__) | ||
(include∘joinpath)(YGGDRASIL_DIR, "platforms", "mpi.jl") | ||
|
||
name = "FireFly" | ||
version = v"2.0.3" | ||
|
||
# Collection of sources required to complete build | ||
sources = [ | ||
GitSource("https://gitlab.com/firefly-library/firefly.git", "f0b0b316790fbe23b88dd7b759220944bc77302d") | ||
] | ||
|
||
# Bash recipe for building across all platforms | ||
script = raw""" | ||
mkdir $WORKSPACE/srcdir/FireFly-build | ||
cd ${WORKSPACE}/srcdir/firefly | ||
sed -i "s/TARGETS FireFly_static FireFly_shared/TARGETS FireFly_shared/g" CMakeLists.txt | ||
cd $WORKSPACE/srcdir/FireFly-build | ||
cmake -DWITH_FLINT=true \ | ||
-DWITH_JEMALLOC=true \ | ||
-DWITH_MPI=true \ | ||
-DCMAKE_INSTALL_PREFIX=$prefix \ | ||
-DCMAKE_TOOLCHAIN_FILE=${CMAKE_TARGET_TOOLCHAIN} \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
${EXTRA_CMAKE_FLAGS} \ | ||
${WORKSPACE}/srcdir/firefly | ||
cmake --build . -j${nproc} -t install | ||
install_license ${WORKSPACE}/srcdir/firefly/LICENSE | ||
""" | ||
|
||
augment_platform_block = """ | ||
using Base.BinaryPlatforms | ||
$(MPI.augment) | ||
augment_platform!(platform::Platform) = augment_mpi!(platform) | ||
""" | ||
|
||
# These are the platforms we will build for by default, unless further | ||
# platforms are passed in on the command line | ||
platforms = supported_platforms(; exclude=Sys.iswindows) | ||
filter!(p -> nbits(p) ≠ 32, platforms) | ||
platforms = expand_cxxstring_abis(platforms) | ||
platforms, platform_dependencies = MPI.augment_platforms(platforms) | ||
|
||
# Avoid platforms where the MPI implementation isn't supported | ||
# OpenMPI | ||
platforms = filter(p -> !(p["mpi"] == "openmpi" && arch(p) == "armv6l" && libc(p) == "glibc"), platforms) | ||
# MPItrampoline | ||
platforms = filter(p -> !(p["mpi"] == "mpitrampoline" && libc(p) == "musl"), platforms) | ||
platforms = filter(p -> !(p["mpi"] == "mpitrampoline" && Sys.isfreebsd(p)), platforms) | ||
|
||
# The products that we will ensure are always built | ||
products = [ | ||
LibraryProduct("libfirefly", :libfirefly) | ||
] | ||
|
||
# Dependencies that must be installed before this package can be built | ||
dependencies = [ | ||
Dependency(PackageSpec(name="CompilerSupportLibraries_jll", uuid="e66e0078-7015-5450-92f7-15fbd957f2ae")) # ensure that the correct version of libatomic @ x86_64-linux-gnu-cxx11-mpi+openmpi | ||
Dependency(PackageSpec(name="FLINT_jll", uuid="e134572f-a0d5-539d-bddf-3cad8db41a82")) | ||
Dependency(PackageSpec(name="GMP_jll", uuid="781609d7-10c4-51f6-84f2-b8444358ff6d"); compat="6.2.0") | ||
Dependency(PackageSpec(name="Zlib_jll", uuid="83775a58-1f1d-513f-b197-d71354ab007a")) | ||
Dependency(PackageSpec(name="jemalloc_jll", uuid="454a8cc1-5e0e-5123-92d5-09b094f0e876")) | ||
] | ||
append!(dependencies, platform_dependencies) | ||
|
||
# Build the tarballs, and possibly a `build.jl` as well. | ||
build_tarballs(ARGS, name, version, sources, script, platforms, products, dependencies; | ||
augment_platform_block, | ||
julia_compat="1.6", | ||
# preferred_gcc_version = v"5.2.0" # for std=c++14 | ||
# preferred_gcc_version = v"6.1.0" # for making the target example | ||
preferred_gcc_version = v"7.1.0" # for avoiding unexpected segmentation fault on x86_64-linux-gnu-cxx11 @ Buildkite.com | ||
) |
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,41 @@ | ||
using BinaryBuilder | ||
|
||
name = "file" | ||
|
||
# NOTE: the cross-compilation story of `file` is kind of broken | ||
# and requires a two-step build; we dodge this by providing `file` | ||
# in the rootfs right now, but this locks us to exactly this version. | ||
version = v"5.41" | ||
|
||
# Collection of sources required to complete build | ||
sources = [ | ||
GitSource("https://github.com/file/file.git", | ||
"504206e53a89fd6eed71aeaf878aa3512418eab1") | ||
] | ||
|
||
# Bash recipe for building across all platforms | ||
script = raw""" | ||
cd $WORKSPACE/srcdir/file/ | ||
autoreconf -i -f | ||
./configure --prefix=${prefix} --host=${target} | ||
make -j${nproc} | ||
make install | ||
install_license COPYING | ||
""" | ||
|
||
# Disable windows for now, as that requires `libgnurx`. | ||
platforms = filter(!Sys.iswindows, supported_platforms()) | ||
# Disable i686-linux-musl because we end up in dynamic linker hell | ||
platforms = filter(p -> !(libc(p) == "musl" && arch(p) == "i686"), platforms) | ||
|
||
products = [ | ||
ExecutableProduct("file", :file) | ||
] | ||
dependencies = [ | ||
Dependency("Bzip2_jll"), | ||
Dependency("XZ_jll"), | ||
Dependency("Zlib_jll"), | ||
] | ||
build_tarballs(ARGS, name, version, sources, script, platforms, products, dependencies; julia_compat="1.6") |
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
using BinaryBuilder | ||
|
||
name = "gawk" | ||
version = v"5.2.1" | ||
|
||
# Collection of sources required to complete build | ||
sources = [ | ||
ArchiveSource("https://ftp.gnu.org/gnu/gawk/gawk-$(version).tar.xz", | ||
"673553b91f9e18cc5792ed51075df8d510c9040f550a6f74e09c9add243a7e4f") | ||
] | ||
|
||
# Bash recipe for building across all platforms | ||
script = raw""" | ||
cd $WORKSPACE/srcdir/gawk*/ | ||
CONFIGURE_ARGS=() | ||
if [[ ${target} == aarch64-apple-darwin* ]]; then | ||
# See https://git.savannah.gnu.org/cgit/gawk.git/tree/README_d/README.macosx?h=gawk-5.2.1#n1 | ||
CONFIGURE_ARGS+=( --disable-pma ) | ||
fi | ||
./configure --prefix=${prefix} --host=${target} ${CONFIGURE_ARGS[@]} | ||
make -j${nproc} | ||
make install | ||
install_license COPYING | ||
""" | ||
|
||
# Windows currently fails due to a problem with mingw headers (langinfo.h) not being found | ||
platforms = filter(!Sys.iswindows, supported_platforms()) | ||
products = [ | ||
ExecutableProduct("gawk", :gawk) | ||
] | ||
dependencies = Dependency[] | ||
build_tarballs(ARGS, name, version, sources, script, platforms, products, dependencies; julia_compat="1.6") |
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,34 @@ | ||
# 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 = "HSL" | ||
version = v"1.0.0" | ||
|
||
# Collection of sources required to complete build | ||
sources = [ | ||
GitSource("https://github.com/ralna/JuliaHSL.git", "3461aed2e62f6588098692891403d8737407131c") | ||
] | ||
|
||
# Bash recipe for building across all platforms | ||
script = raw""" | ||
cd $WORKSPACE/srcdir/JuliaHSL/dummy | ||
meson setup builddir --cross-file=${MESON_TARGET_TOOLCHAIN} --buildtype=release | ||
meson compile -C builddir | ||
meson install -C builddir | ||
""" | ||
|
||
# These are the platforms we will build for by default, unless further | ||
# platforms are passed in on the command line | ||
platforms = supported_platforms() | ||
|
||
# The products that we will ensure are always built | ||
products = [ | ||
LibraryProduct("libhsl", :libhsl) | ||
] | ||
|
||
# Dependencies that must be installed before this package can be built | ||
dependencies = [] | ||
|
||
# Build the tarballs, and possibly a `build.jl` as well. | ||
build_tarballs(ARGS, name, version, sources, script, platforms, products, dependencies; julia_compat="1.6") |
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
Oops, something went wrong.