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

[file] Add GNU file v5.44 #6573

Merged
merged 2 commits into from
Apr 14, 2023
Merged
Changes from all 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
41 changes: 41 additions & 0 deletions F/file/build_tarballs.jl
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")
staticfloat marked this conversation as resolved.
Show resolved Hide resolved
]

# 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")