From be259face096cc05648dfeb4372e965f1867a880 Mon Sep 17 00:00:00 2001 From: Elliot Saba Date: Thu, 13 Apr 2023 23:28:51 +0000 Subject: [PATCH 1/2] [file] Add GNU file `v5.44` It's incredibly difficult to search for this tool online. --- F/file/build_tarballs.jl | 41 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 F/file/build_tarballs.jl diff --git a/F/file/build_tarballs.jl b/F/file/build_tarballs.jl new file mode 100644 index 00000000000..a2cf59c68f9 --- /dev/null +++ b/F/file/build_tarballs.jl @@ -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[ + Dependency("Bzip2_jll"), + Dependency("XZ_jll"), + Dependency("Zlib_jll"), +] +build_tarballs(ARGS, name, version, sources, script, platforms, products, dependencies; julia_compat="1.6") From 037c19d2b9b469674a27490cd8cd95692178c92e Mon Sep 17 00:00:00 2001 From: Elliot Saba Date: Fri, 14 Apr 2023 07:45:03 -0700 Subject: [PATCH 2/2] Update F/file/build_tarballs.jl MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Mosè Giordano --- F/file/build_tarballs.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/F/file/build_tarballs.jl b/F/file/build_tarballs.jl index a2cf59c68f9..512fcab72c6 100644 --- a/F/file/build_tarballs.jl +++ b/F/file/build_tarballs.jl @@ -33,7 +33,7 @@ platforms = filter(p -> !(libc(p) == "musl" && arch(p) == "i686"), platforms) products = [ ExecutableProduct("file", :file) ] -dependencies = Dependency[ +dependencies = [ Dependency("Bzip2_jll"), Dependency("XZ_jll"), Dependency("Zlib_jll"),