From 6de8c1455224f0c7949aa103a6cf5721a7dcdde5 Mon Sep 17 00:00:00 2001 From: Carlo Cabrera <30379873+carlocab@users.noreply.github.com> Date: Mon, 8 Mar 2021 09:04:50 +0000 Subject: [PATCH] libfuse 3.10.2 (#72217) --- Formula/libfuse.rb | 34 +++++++++++++--------------------- 1 file changed, 13 insertions(+), 21 deletions(-) diff --git a/Formula/libfuse.rb b/Formula/libfuse.rb index ffcb43a200b..dd308362064 100644 --- a/Formula/libfuse.rb +++ b/Formula/libfuse.rb @@ -1,36 +1,28 @@ class Libfuse < Formula desc "Reference implementation of the Linux FUSE interface" homepage "https://github.com/libfuse/libfuse" - url "https://github.com/libfuse/libfuse/releases/download/fuse-2.9.8/fuse-2.9.8.tar.gz" - sha256 "5e84f81d8dd527ea74f39b6bc001c874c02bad6871d7a9b0c14efb57430eafe3" + url "https://github.com/libfuse/libfuse/releases/download/fuse-3.10.2/fuse-3.10.2.tar.xz" + sha256 "736e8d1ce65c09cb435fbbb500d53dc75f4d6e93bd325d22adc890951cf56337" license any_of: ["LGPL-2.1-only", "GPL-2.0-only"] head "https://github.com/libfuse/libfuse.git" - depends_on "autoconf" => :build - depends_on "automake" => :build - depends_on "libtool" => :build + depends_on "meson" => :build + depends_on "ninja" => :build depends_on :linux def install - ENV["MOUNT_FUSE_PATH"] = sbin - ENV["UDEV_RULES_PATH"] = etc/"udev/rules.d" - ENV["INIT_D_PATH"] = etc/"init.d" - system "./configure", - "--prefix=#{prefix}", - "--disable-silent-rules", - "--enable-lib", - "--enable-util", - "--enable-example", - "--disable-rpath" - - system "make" - system "make", "install" - (pkgshare/"doc").install Dir["./doc/how-fuse-works", "./doc/kernel.txt"] + mkdir "build" do + system "meson", *std_meson_args, "-Dudevrulesdir=#{etc}/udev/rules.d", ".." + system "ninja", "-v" + system "ninja", "install", "-v" + end + (pkgshare/"doc").install "doc/kernel.txt" end test do (testpath/"fuse-test.c").write <<~EOS - #include + #define FUSE_USE_VERSION 31 + #include #include int main() { printf("%d%d\\n", FUSE_MAJOR_VERSION, FUSE_MINOR_VERSION); @@ -38,7 +30,7 @@ class Libfuse < Formula return 0; } EOS - system ENV.cc, "fuse-test.c", "-L#{lib}", "-I#{include}", "-D_FILE_OFFSET_BITS=64", "-lfuse", "-o", "fuse-test" + system ENV.cc, "fuse-test.c", "-L#{lib}", "-I#{include}", "-D_FILE_OFFSET_BITS=64", "-lfuse3", "-o", "fuse-test" system "./fuse-test" end end