Permalink
Browse files

osxfuse: don't build BridgeSupport metadata by default

Building BridgeSupport metadata is broken on High Sierra or newer due to
an macOS and/or Xcode bug [1]. As the workaround breaks building iTerm2
[2], I'd like to skip the fragile step instead playing more with Xcode
and macOS.

[1] https://trac.macports.org/ticket/54939
[2] #3525 (comment)
  • Loading branch information...
yan12125 committed Jan 30, 2019
1 parent 371fc88 commit be38d386c05c02383bc50c054c219a2930123146
Showing with 8 additions and 1 deletion.
  1. +8 −1 fuse/osxfuse/Portfile
@@ -109,6 +109,8 @@ if { $use_signed_kext } {
extract.only ${name}-${version}.dmg
}

variant bridge_support description {Build BridgeSupport metadata} {}

post-extract {
# Extract the pkg and the appropriate payload from the binary dmg
if { $use_signed_kext } {
@@ -127,10 +129,15 @@ post-extract {
move ${workpath}/osxfuse-${mp.comp}-${mp.rev} ${workpath}/${worksrcdir}/${mp.comp}
}
}

if {![variant_isset bridge_support]} {
reinplace "s|/usr/bin/gen_bridge_metadata|/usr/bin/gen_bridge_metadata-disabled|" \
${worksrcpath}/framework/OSXFUSE.xcodeproj/project.pbxproj
}
}

pre-build {
if {${os.major} >= 17 && [catch {system "/usr/bin/gen_bridge_metadata --version > /dev/null 2>&1"}]} {
if {[variant_isset bridge_support] && ${os.major} >= 17 && [catch {system "/usr/bin/gen_bridge_metadata --version > /dev/null 2>&1"}]} {
ui_error "This port will fail to build because of a bug in macOS,"
ui_error "unless you apply one of the following two workarounds:"
ui_error ""

0 comments on commit be38d38

Please sign in to comment.