disable macFUSE extensions by default
Some checks are pending
brew test-bot / test-bot (macos-13) (push) Waiting to run
brew test-bot / test-bot (macos-14) (push) Waiting to run
brew test-bot / test-bot (macos-15) (push) Waiting to run

This commit is contained in:
Adrian Ho 2025-10-30 20:30:40 +08:00
parent 132f77949e
commit 164b7013b6

View file

@ -92,6 +92,13 @@ class Formula
Dir.glob("#{alt_fuse_root}/**/*").each { |f| odebug ">>> #{f}" } Dir.glob("#{alt_fuse_root}/**/*").each { |f| odebug ">>> #{f}" }
end end
def disable_macfuse_extensions
ENV.append "CFLAGS", "-DFUSE_DARWIN_ENABLE_EXTENSIONS=0"
ENV.append "CPPFLAGS", "-DFUSE_DARWIN_ENABLE_EXTENSIONS=0"
ENV.append "CXXFLAGS", "-DFUSE_DARWIN_ENABLE_EXTENSIONS=0"
ENV.append "CGO_CPPFLAGS", "-DFUSE_DARWIN_ENABLE_EXTENSIONS=0"
end
def setup_fuse_flags def setup_fuse_flags
ENV.append "CFLAGS", "-I#{alt_fuse_root}/include" ENV.append "CFLAGS", "-I#{alt_fuse_root}/include"
ENV.append "CFLAGS", "-I#{alt_fuse_root}/include/fuse" ENV.append "CFLAGS", "-I#{alt_fuse_root}/include/fuse"
@ -110,6 +117,7 @@ class Formula
ENV.append "CGO_CPPFLAGS", "-D_FILE_OFFSET_BITS=64" ENV.append "CGO_CPPFLAGS", "-D_FILE_OFFSET_BITS=64"
ENV.append "CGO_CPPFLAGS", "-D_USE_FILE_OFFSET_BITS=64" ENV.append "CGO_CPPFLAGS", "-D_USE_FILE_OFFSET_BITS=64"
ENV.append "CGO_LDFLAGS", "-L#{alt_fuse_root}/lib" ENV.append "CGO_LDFLAGS", "-L#{alt_fuse_root}/lib"
disable_macfuse_extensions
odebug "PKG_CONFIG = #{ENV.fetch("PKG_CONFIG", nil)}" odebug "PKG_CONFIG = #{ENV.fetch("PKG_CONFIG", nil)}"
odebug "PKG_CONFIG_PATH = #{ENV.fetch("PKG_CONFIG_PATH", nil)}" odebug "PKG_CONFIG_PATH = #{ENV.fetch("PKG_CONFIG_PATH", nil)}"
odebug "CFLAGS = #{ENV.fetch("CFLAGS", nil)}" odebug "CFLAGS = #{ENV.fetch("CFLAGS", nil)}"
@ -130,6 +138,7 @@ class Formula
ENV.append "CGO_CPPFLAGS", "-D_FILE_OFFSET_BITS=64" ENV.append "CGO_CPPFLAGS", "-D_FILE_OFFSET_BITS=64"
ENV.append "CGO_CPPFLAGS", "-D_USE_FILE_OFFSET_BITS=64" ENV.append "CGO_CPPFLAGS", "-D_USE_FILE_OFFSET_BITS=64"
ENV.append "CGO_LDFLAGS", "-L#{alt_fuse_root}/lib" ENV.append "CGO_LDFLAGS", "-L#{alt_fuse_root}/lib"
disable_macfuse_extensions
odebug "PKG_CONFIG = #{ENV.fetch("PKG_CONFIG", nil)}" odebug "PKG_CONFIG = #{ENV.fetch("PKG_CONFIG", nil)}"
odebug "PKG_CONFIG_PATH = #{ENV.fetch("PKG_CONFIG_PATH", nil)}" odebug "PKG_CONFIG_PATH = #{ENV.fetch("PKG_CONFIG_PATH", nil)}"
odebug "CFLAGS = #{ENV.fetch("CFLAGS", nil)}" odebug "CFLAGS = #{ENV.fetch("CFLAGS", nil)}"